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:

    • Y<em>i=a+b</em>1X<em>1i+b</em>2X<em>2i+e</em>iY<em>i = a + b</em>1 X<em>{1i} + b</em>2 X<em>{2i} + e</em>i

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 (Y<em>iY<em>i) and the predicted value (Y</em>i^\hat{Y</em>i}):

    • ε<em>i^=Y</em>i−Yi^\hat{ε<em>i} = Y</em>i - \hat{Y_i}

Conducting Multiple Regression Analysis

General Equation

  • For multiple regression with various independent variables:

    • Y<em>i^=α+β</em>1X<em>1i+β</em>2X<em>2i+…+β</em>kX<em>ki+ε</em>i\hat{Y<em>i} = α + β</em>1X<em>{1i} + β</em>2X<em>{2i} + … + β</em>kX<em>{ki} + ε</em>i

Steps in Regression Analysis

  1. 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.

  2. Estimation of Model Parameters:

    • Utilize the least squares method to estimate parameters that minimize the squared differences between observed and predicted Y values.

  3. 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.

  4. Model Fit Assessment:

    • Evaluate how well the model explains the variation in the dependent variable using R-squared.

  5. 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.

  6. 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: b=23.391b = 23.391.

    • For the online purchase vs offline, a significant difference of b=−345.442b = -345.442 with p<.001.

Final Regression Model Example

  • Outline of a final regression model could be represented as:

    • Expenditures<em>i=1070.788+0.591Age</em>i+23.391Gender<em>i−345.442Online</em>i−264.249North<em>i−117.176East</em>i−7.210South<em>i+e</em>iExpenditures<em>i = 1070.788 + 0.591Age</em>i + 23.391Gender<em>i - 345.442Online</em>i - 264.249North<em>i - 117.176East</em>i - 7.210South<em>i + e</em>i

Specific Predictions
  • Example Calculation: For a 25-year-old female making an online purchase residing in the North:

    • Y=1070.788+0.591imes25+23.391imes0−345.442imes1−264.249imes1−117.176imes0−7.210imes0=476.37Y = 1070.788 + 0.591 imes 25 + 23.391 imes 0 - 345.442 imes 1 - 264.249 imes 1 - 117.176 imes 0 - 7.210 imes 0 = 476.37 (euro).

Conclusion

Regression analysis is a powerful tool providing insights into relationships between variables, facilitating predictions and understanding of underlying data structures.