12.07.2015 Views

Course Notes - Department of Mathematics and Statistics

Course Notes - Department of Mathematics and Statistics

Course Notes - Department of Mathematics and Statistics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.3 Confidence Intervals <strong>and</strong> Regression• We have looked at ANOVA to test the fit <strong>of</strong> the model.• It is also possible to get an idea <strong>of</strong> the fit <strong>of</strong> the model, by calculatinga 95% confidence interval for the slope <strong>of</strong> the model.• If β 1 is the true slope <strong>of</strong> the regression line then the st<strong>and</strong>ard error<strong>of</strong> β 1 is :σ β1 =√ n∑√i=1σ e(x i − ¯x) 2• Where the variance <strong>of</strong> the errors σe 2 is estimated using the formula:n∑(y i − ŷ) 2• NOTE: s 2 e is just MSEs 2 e =i=1• The divisor is (n-2) rather than (n-1) because we are estimatingβ 0 <strong>and</strong> β 1 in ŷ.n−2• Therefore, the 95% confidence interval for β 1 isˆβ 1 ± t n−2√ n∑√i=1s e(x i − ¯x) 2• Easiest way to explain this concept is through an example, so letus return to our height correlation example.• Using ANOVA we found that the regression effect dominated theresidual effect.• Running a regression we get the line <strong>of</strong> least squares as:ŷ = 107.996 + 0.366x• Where ŷ is the height <strong>of</strong> the child <strong>and</strong> x is the height <strong>of</strong> the father<strong>and</strong>:218

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!