Regression

17
Regression

description

Regression. Population Covariance and Correlation. Sample Correlation. Sample Correlation. -.04. .98. -.79. Linear Model. DATA. REGRESSION LINE. (Still) Linear Model. DATA. REGRESSION CURVE. Parameter Estimation. Minimize SSE over possible parameter values. - PowerPoint PPT Presentation

Transcript of Regression

Page 1: Regression

Regression

Page 2: Regression

Population Covariance and Correlation

Page 3: Regression

Sample Correlation

Page 4: Regression

Sample Correlation

.98 -.04 -.79

Page 5: Regression

Linear Model

DATA

REGRESSION LINE

Page 6: Regression

(Still) Linear Model

DATA

REGRESSION CURVE

Page 7: Regression

Parameter Estimation

Minimize SSE over possible parameter values

Page 8: Regression

Fitting a linear model in R

Page 9: Regression

Fitting a linear model in R

Intercept parameter is significant at .0623 level

Page 10: Regression

Fitting a linear model in R

Slope parameter is significant at .001 level, so reject

Page 11: Regression

Fitting a linear model in R

Residual Standard Error:

Page 12: Regression

Fitting a linear model in R

R-squared is the correlation squared, also % of variation explained by the linear regression

Page 13: Regression

Create a Best Fit Scatter Plot

Page 14: Regression

Add X and Y Labels

Page 15: Regression

Inspect Residuals

Page 16: Regression

Multiple Regression

Example: we could try to predict change in diameterusing both change in height as well as starting heightand Fertilizer

Page 17: Regression

Multiple Regression

• All variables are significant at .05 level • The Error went down and R-squared went up (this is good)• Can even handle categorical variables