Lecture 19
Regression Inference
Regression Model
A “Model”: Signal + Noise
Distance drawn at random from normal distribution with mean 0
Another distance drawn independently from the same normal distribution
What We Get to See
(Demo)
How do we assess performance?
i.e., Goodness of Fit
Variance of Fitted Values
= Mean Square of the Deviations
--------------------------------- = r²
Variance of y
Coefficient of Determination
(Demo)
A Variance Decomposition
--------------------------------- = r²
Variance of y
--------------------------------- = 1 - r²
Variance of y
Residual Average and SD
--------------------------------- = 1 - r²
Variance of y
The True Slope
(Demo)
Confidence Interval for True Slope
(Demo)
Rain on the Regression Parade
We observed a slope based on our sample of points.
But what if the sample scatter plot got its slope just by chance?
What if the true line is actually FLAT?
(Demo)
Test Whether There Really is a Slope
Uncertainty in Prediction
Regression Prediction
(Demo)
Confidence Interval for Prediction
Predictions at Different Values of x
Summary