1/15
Looks like no tags are added yet.
What are the two main purposes of regression analysis?
Test associations between numeric variables, and predict new values of the DV
Regression tests hypotheses about associations (equivalent to correlation for simple regression) and predicts DV values from the IV(s).
In Y_i = a + b × X_i + e_i, what does b represent?
The change in Y for each one-unit increase in X (the slope)
b is the slope. a is the intercept (Y when X = 0), and e_i is the residual. In the example, b ≈ 0.36 lbs per extra week of gestation.
What is the null hypothesis for the slope in simple regression?
b = 0 (no linear association)
H0 predicts a flat line (slope b = 0). H1 predicts a linear association (b ≠ 0).
How does ordinary least squares (OLS) choose the regression line?
It minimises the sum of squared residuals
OLS minimises SS_error, the sum of squared differences between observed and predicted values. Software finds this by optimisation.
How do you make a prediction for a new case from the model?
Use a + b×X and ignore the error term
For unobserved cases we use Ŷ = a + b×X without the error term. In R: predict(model, newdata).
The two types of hypothesis test in regression are:
An F-test of overall model fit and t-tests of individual coefficients
F = MS_model / MS_residual tests whether the model explains variance. t = (b − 0) / SE_b tests whether each coefficient differs from 0.
In simple regression the slope's t = 6.346 and the model F = 40.27. How are they related?
F = t²
With one predictor, t² = F (6.346² ≈ 40.27). This does not hold in multiple regression.
How is SS_Model obtained?
SS_Total − SS_Residual
SS_T is the squared distance of scores from the mean of Y, SS_R is the squared distance from the regression line, so SS_M = SS_T − SS_R is the variance the model explains.
With N = 42 and 2 predictors, what are df_model and df_residual?
2 and 39
df_model = number of predictors = 2. df_residual = N − k − 1 = 42 − 2 − 1 = 39. The −1 is because the intercept is also estimated.
What does R² tell you, and which version should you use in multiple regression?
The proportion of variance explained (SS_Model / SS_Total); use adjusted R²
R² is the coefficient of determination. Adjusted R² penalises extra predictors, so it is the one to report for multiple regression.
In the model Y = a + b1·X1 + b2·X2 + e, how is b1 interpreted?
The change in Y per unit of X1, holding X2 constant
Each slope in multiple regression is the unique effect of that predictor with the other predictors held constant.
Which R formula fits birth weight from gestation, mother's weight, and their interaction?
lm(Birthweight ~ Gestation * mppwt)
The DV goes before the ~. Use + to add predictors and * to add the interaction as well.
What does centring a predictor do, and what does the intercept become when all predictors are centred?
Subtracts the mean from each value; intercept = mean of the DV
Centring (x − mean(x)) makes the intercept the DV's mean, like ANOVA's grand mean (7.30 lbs in the example). Slopes, R² and F are unchanged.
Using predict(mod2, tibble(Gestation = 40, mppwt = 140)) gave 7.83. What does this value mean?
The predicted birth weight (lbs) for 40 weeks' gestation and mother's weight of 140
It is a = −7.996 plus 0.3265 × 40 plus 0.0198 × 140, about 7.83 lbs.
Which is NOT an assumption of regression covered in the lecture?
Sphericity of difference scores
The regression assumptions are normal residuals, homoscedasticity, linearity and no multicollinearity. Sphericity belongs to repeated-measures ANOVA.
What does multicollinearity affect, and what VIF value is acceptable in check_model()?
Interpreting and testing correlated predictors' coefficients; VIF below 5
Highly correlated IVs (|r| > .7) make their coefficients and p-values hard to interpret, but overall fit and prediction are unaffected. Check that VIF < 5.