{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lec09.PolyReg

# Lec09.PolyReg - Polynomial Regression Kutner Nachtsheim...

This preview shows pages 1–11. Sign up to view the full content.

Polynomial Regression Kutner, Nachtsheim, Neter and Li Chapter 8.1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
i i i i i i i i i i i i x x x x y x x x x y ε β β β β β ε β β β β β + + + + + = + + + + + = 4 4 3 3 2 2 1 0 4 4 3 3 2 2 1 1 0 Polynomial Regression Multiple Linear Regression Polynomial Regression
Alligator Weight vs. Length alligator\$Length 60 80 100 120 140 100 200 300 400 500 600 alligator\$Weight

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
alligator\$Length 60 80 100 120 140 100 200 300 400 500 600 alligator\$Weight 0 th , 1 st , 2 nd , 3 rd Order Polynomials
alligator3.lm  =  lm(Weight ~ Length +  I(Length^2) +  I(Length^3), data = alligator) summary(alligator3.lm) Coefficients:                 Value Std. Error   t value   Pr(>|t|)  (Intercept) -288.3150  163.9858    -1.7582     0.0940      Length   11.8242    5.3387     2.2148     0.0385 I(Length^2)   -0.1579    0.0559    -2.8247     0.0105 I(Length^3)    0.0008    0.0002     4.3870     0.0003 Third Order Polynomial

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
alligator\$Length 60 80 100 120 140 100 200 300 400 500 600 alligator\$Weight 0 th , 1 st , 2 nd , 3 rd , 4 th Order Polynomials
alligator4.lm  =  lm(Weight ~ I(Length) +  I(Length^2) +     I(Length^3) + I(Length^4), data =  alligator) summary(alligator4.lm) Coefficients:                 Value Std. Error   t value  Pr(>| t|)  (Intercept)  327.2456  724.9689     0.4514     0.6568      Length  -14.9769   31.2023    -0.4800     0.6367 I(Length^2)    0.2655    0.4887     0.5432     0.5933 I(Length^3)   -0.0021    0.0033    -0.6226     0.5409 I(Length^4)    0.0000    0.0000     0.8720     Fourth Order Polynomial

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Analysis of Variance 1 - n ) ( Total p - n ) ˆ ( Error 1 1 - p ) ˆ ( Regression Test Square Mean df squares of Sum Source 2 2 2 - = = - = - = - = - = Y Y SSTO MSE MSR Fstat p n SSE MSE Y Y SSE p SSR MSR Y Y SSR i i i i
F-test Proposed Proposed Proposed Prior Proposed Prior df SS df df SS SS F - - =

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
anova(alligator3.lm,alligator2.lm,test="F")
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 45

Lec09.PolyReg - Polynomial Regression Kutner Nachtsheim...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online