Clip 9 statistics
Regression Analysis Overview
Definition: Regression analysis is a statistical technique where a continuous dependent variable (Y) is modeled as a linear function of a set of explanatory variables (both continuous and discrete).
General Formula:
Purposes of Regression Analysis
Describe relationships between X and Y
Explain past values of Y
Predict future values of Y
Comparison to ANOVA
Regression analysis is equivalent to ANOVA when applicable dummy variables represent discrete groups (with one group as the benchmark category).
Regression Models
Types of Regression Models
Simple Regression: Involves 1 explanatory variable.
Multiple Regression: Involves 2 or more explanatory variables.
Simple Linear Regression Example
Goal: Predict overall satisfaction based on the number of customer contacts.
Data (14 observations):
Number of Contacts vs. Satisfaction:
(1, 4)
(2, 5)
(3, 6)
(7, 9)
(6, 3)
(6, 5)
(8, 8)
(9, 9)
(7, 1)
(2, 2)
(2, 2)
(3, 3)
(4, 6)
(5, 4)
Basic Components of Regression Models
Dependent Variable (Y): Continuous outcome variable, to be predicted (interval or ratio-scaled).
Independent Variable (X): Explanatory variable(s), which can be nominal, ordinal, interval, or ratio-scaled.
: Intercept of the regression line.
: Slope parameter indicating the expected change in Y for a one-unit increase in X.
: Random error term specific to observation i.
Residuals
Definition: The residual (or deviation) is the difference between the observed value () and the predicted value ():
Conducting Multiple Regression Analysis
General Equation
For multiple regression with various independent variables:
Steps in Regression Analysis
Research Design and Model Specification:
Selection of dependent variable (Y) must relate directly to the research question and be metric and continuous.
Selection of independent variables (X) should be based on theoretical, practical, or statistical grounds.
Model should be parsimonious, including important variables and excluding irrelevant ones.
Estimation of Model Parameters:
Utilize the least squares method to estimate parameters that minimize the squared differences between observed and predicted Y values.
Examine Model Assumptions:
The assumptions to check include:
Linear relationship between Y and X.
Constant variance of errors (homoscedasticity).
Independence of errors.
Normal distribution of errors.
Model Fit Assessment:
Evaluate how well the model explains the variation in the dependent variable using R-squared.
Interpretation of the Results:
Analyze the coefficients to understand the influence of each explanatory variable on the dependent variable.
Assess significance levels (p-values) to interpret the acceptability of each coefficient.
Model Usage:
Use the regression equation to make predictions about Y based on values of X.
Important Considerations
Dummy Variables
Dummy variables represent categorical data where you transform categories into binary variables.
Example: Education levels can be represented as two dummy variables (Medium, High) relative to a benchmark (Low).
Multicollinearity
Definition: Occurs when two or more independent variables are highly correlated, making it difficult to isolate their individual effects.
Indications of multicollinearity:
High correlation coefficients (e.g., above 0.50 or 0.70).
Tolerance and VIF (Variance Inflation Factor); multicollinearity is problematic if VIF > 10.
Solutions to Multicollinearity
Increase dataset diversity to lower correlations.
Eliminate one of the correlated independent variables.
Combine correlated variables into a composite index.
Model Fit Assessment
R-squared: Represent the proportion of variance in Y explained by the independent variables.
Adjusted R-squared: Adjusts R-squared based on the number of independent variables relative to sample size to mitigate overfitting.
Example Result Interpretation
Regression results revealed:
The R-squared was 6.2%, suggesting explanatory variables explain a small fraction of the variation in expenditures.
The intercept (constant) represented an expected expenditure amount based solely on the reference group conditions.
Estimated coefficients:
For gender, males predicted to spend significantly more: .
For the online purchase vs offline, a significant difference of with p<.001.
Final Regression Model Example
Outline of a final regression model could be represented as:
Specific Predictions
Example Calculation: For a 25-year-old female making an online purchase residing in the North:
(euro).
Conclusion
Regression analysis is a powerful tool providing insights into relationships between variables, facilitating predictions and understanding of underlying data structures.