1/36
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What is a fitted value y^i?
y^i=β^0+β^1xi, the estimated mean response at xi (a point on the fitted line).
What is a residual ei?
ei=yi−y^i (observed minus fitted), also called the crude residual. It estimates the error εi.
What is SSE, what does it measure, and how many d.f. does it have?
SSE=∑(yi−y^i)2=∑ei2: variation about the fitted line; the minimum of S(β0,β1). d.f. n−2. Shortcut: SSE=Syy−SSR.
What is SSE for the constant model?
SSE=SST, since y^i=yˉ.
What is SST, what does it measure, and how many d.f. does it have?
SST=∑(yi−yˉ)2: total variation in y about its mean. d.f. n−1.
What is SSR, what does it measure, and how many d.f. does it have?
SSR=∑(y^i−yˉ)2: variation explained by the fitted model. d.f. 1. Shortcut: SSR=β^12Sxx=β^1Sxy.
What is the ANOVA identity?
SST=SSR+SSE (the cross term vanishes because ∑ei=0 and ∑xiei=0).
What is the ANOVA table for simple linear regression?
Regression: d.f. 1, SSR, MSR, F=MSEMSR. Residual: d.f. n−2, SSE, MSE. Total: d.f. n−1, SST.
What are degrees of freedom, and why do SST, SSE and SSR have n−1, n−2 and 1?
The number of independent pieces of information that go into an estimate. SST: n−1 (one used by yˉ). SSE: n−2 (two used by β^0,β^1). SSR: (n−1)−(n−2)=1.
What are the mean squares MSR and MSE?
Sum of squares divided by its d.f.: MSR=1SSR, MSE=n−2SSE.
What is the variance ratio F, and what does it measure?
F=MSEMSR: variation explained by the model relative to variation due to residuals.
How is the F distribution defined?
If X∼χν12 and Y∼χν22 are independent, Y/ν2X/ν1∼Fν1,ν2. Skewed; ν1 numerator d.f., ν2 denominator d.f.
How do you carry out the F test for the slope?
H0:β1=0 vs H1:β1=0. Under H0, F=MSEMSR∼Fn−21. Reject H0 at level α if Fcal>Fn−21(α).
What does rejecting H0:β1=0 mean?
The slope is non-zero, so the full model yi=β0+β1xi+εi is better than the constant model yi=β0+εi.
What is E(SSE)?
E(SSE)=(n−2)σ2.
What is the unbiased estimator of σ2?
S2=MSE=n−2SSE=n−21∑(yi−y^i)2. In R it appears as "Residual standard error" =MSE.
Is MSE the sample variance?
Not in the full model. Only in the constant model (y^i=yˉ, d.f. n−1) is S2=n−11∑(yi−yˉ)2.
What is the coefficient of determination R2?
R2=SSTSSR=1−SSTSSE (× 100%): the percentage of total variation in y explained by the fitted model.
What is the range of R2, and what do R2=0 and R2=100% mean?
R2∈[0,100]%. R2=0: the model explains none of the variability. R2=100%: SSE=0, all points on the line.
What is the main caveat when interpreting R2?
It measures linear association only; a small R2 does not always mean a poor relationship (e.g. it may be quadratic).
What is R2 when all the y values are equal?
Syy=0, so R2=00 is undefined; it is typically taken as 0.
How is R2 defined for a no-intercept model, and what is the caution?
Use SST=∑yi2, so R2=1−∑yi2SSE. It can be artificially high and is not comparable with the usual R2.
What is the formula for adjusted R2?
Radj2=1−(1−R2)n−k−1n−1, k = number of predictors. For SLR: Radj2=1−n−2n−1(1−R2).
Why use adjusted R2 instead of R2?
It penalises extra parameters, so it can compare models with different numbers of predictors. R2 always increases when a regressor is added; Radj2 increases only if that variable's F statistic is greater than 1.
What are the properties of adjusted R2?
Radj2≤R2; it can be negative (model worse than the mean); it equals 1 for a perfect fit; it is close to R2 when n is large.
What are the key properties of the residuals?
∑ei=0 (so eˉ=0), ∑xiei=0, ∑y^iei=0, and E[ei]=0.
What is the variance of the residual ei?
var(ei)=σ2(1−vi) with vi=n1+Sxx(xi−xˉ)2. Not constant: it depends on i.
What is the covariance of two residuals ei and ej?
cov(ei,ej)=−σ2(n1+Sxx(xi−xˉ)(xj−xˉ)), not 0. So residuals do not quite mimic the errors.
What is the difference between an error εi and a residual ei?
The error εi comes from the model (unobservable); the residual ei comes from fitting the model to the data.
What is the standardised residual di, and why use it?
di=s2(1−vi)ei, vi=n1+Sxx(xi−xˉ)2. More nearly constant variance and smaller covariance than ei.
Which residual plot checks linearity?
Plot di against xi.
Which residual plot checks constant variance?
Plot di against the fitted values y^i.
What does an acceptable residual plot look like?
Random scatter around zero with roughly constant spread and no pattern.
What patterns make a residual plot unacceptable?
Fan shape (non-constant variance), curve (non-linearity), outliers, systematic pattern (missing predictor), pattern in observation order (autocorrelation), influential high-leverage point, different spread by group.
How do you check the normality assumption?
Normal QQ plot of the residuals: points should lie close to a straight line. Heavy tails or skewness show as departures. A formal test is better (later in the course).
What assumption do the F and t tests need?
Normality of the errors. If it fails, the tests may not be valid.