1/56
Looks like no tags are added yet.
Multiple regression model
y = β₀ + β₁x₁ + β₂x₂ + … + β_k x_k + ε
Difference between simple and multiple regression
Simple uses one independent variable; multiple uses two or more. Both have only one dependent variable.
Interpreting a coefficient in multiple regression
b_j is the estimated change in mean y for a one-unit increase in x_j, holding all other variables constant.
Multiple R
√R². Always positive; use the sign of each b_j to see direction.
R²
SSR / SST: the proportion of variation in y explained by all the x variables together.
Why R² can mislead
It rises whenever any variable is added, even a useless one.
Adjusted R²
1 − (1 − R²)(n − 1)/(n − k − 1). Penalizes extra variables, so it's better for comparing models.
Mean square error (MSE)
SSE / (n − k − 1)
Standard error (s)
√MSE
Mean square regression (MSR)
SSR / k
Overall F statistic
F = MSR / MSE
Degrees of freedom in multiple regression
Regression = k; Residual = n − k − 1; Total = n − 1.
Overall F test hypotheses
H₀: β₁ = β₂ = … = β_k = 0; Ha: at least one β_j ≠ 0.
Overall F test decision rule
Reject H₀ if F(model) > F-alpha, or if Significance F (p-value) < α.
Test for an individual variable
H₀: β_j = 0; Ha: β_j ≠ 0. t = b_j / SE(b_j), df = n − k − 1. Reject H₀ if p-value < α.
CI for a coefficient
b_j ± t* · SE(b_j)
Mean-of-zero assumption
The mean of the error terms is 0.
Constant variance assumption
The error variance σ² is the same for every combination of x values.
Normality assumption
The error terms are normally distributed.
Independence assumption
The error terms are statistically independent of each other.
Prediction in multiple regression
Plug the x values into the estimated equation. Example (illustrative): ŷ = 10 + 12(Labor) + 90(Hours); at 20.8 and 3, ŷ = 529.6.
Residual
Observed y − predicted ŷ. Example: 527.1 − 529.6 = −2.5.
Bakery sales example
Cakes, cookies, tea, and sandwiches predict sales. Use the overall F test, then p-values to see which variables are significant at α.
Dependent (response) variable
The variable we want to understand or predict (y).
Independent (predictor) variable
The variable used to explain or predict the dependent variable (x).
Simple linear regression model
y = β₀ + β₁x + ε
Estimated regression equation
ŷ = b₀ + b₁x
Intercept (b₀)
The predicted mean of y when x = 0 (may not be meaningful in context).
Slope (b₁)
The estimated change in the mean of y for each one-unit increase in x.
Error term (ε)
The effect on y of all factors other than x.
Residual
Observed y − predicted ŷ.
First step before fitting a regression
Make a scatter plot to check for a linear trend.
Total variation (SST)
Σ(y − ȳ)²
Explained variation (SSR)
Σ(ŷ − ȳ)²
Unexplained variation (SSE)
Σ(y − ŷ)²
Relationship among sums of squares
SST = SSR + SSE
Coefficient of determination (R²)
SSR / SST: the proportion of total variation in y explained by x.
Correlation coefficient (r)
±√R², with the same sign as the slope b₁.
Mean square error (MSE)
SSE / (n − 2)
Standard error of the regression (s)
√MSE: the typical size of the residuals.
F statistic (simple regression)
F = MSR / MSE, where MSR = SSR / 1. For simple regression, F = t².
t statistic for the slope
t = b₁ / SE(b₁), df = n − 2.
CI for the slope
b₁ ± t* · SE(b₁)
Degrees of freedom in simple regression
Regression = 1; Residual = n − 2; Total = n − 1.
Hypotheses for testing the slope
H₀: β₁ = 0 (no relationship); Ha: β₁ ≠ 0.
Significance F
The p-value for the overall regression F test. Reject H₀ if it is less than α.
Four assumptions of simple regression
Linearity, independence, constant variance of residuals, normality of residuals.
Fan-shaped residual plot means…
Variance is increasing (constant variance assumption violated).
Funnel-shaped residual plot means…
Variance is decreasing (constant variance assumption violated).
Which data most likely violates independence?
Time-series data.
House price example: equation
ŷ = 98.248 + 0.10977x (price in $1000s, x = square feet).
House price example: slope interpretation
Each extra square foot is associated with an average price increase of about $109.77.
House price example: R²
0.58082: about 58.1% of the variation in house price is explained by house size.
House price example: prediction at 2,000 sq ft
ŷ ≈ 317.8 ($1000s), which is about $317,800.
House price example: F test
F = 11.08, Significance F = 0.0104 < 0.05, so reject H₀; the model is significant.
House price example: 95% CI for slope
(0.0337, 0.1858). It does not contain 0, so the slope is significant.
Tasty Sub Shop example
ŷ = 183.31 + 15.59x; at x = 20.8, ŷ ≈ 507.69; observed 527.1, so residual = 19.41.