regression. population covariance and correlation

17
Regression

Upload: charlotte-mccormick

Post on 13-Jan-2016

223 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Regression. Population Covariance and Correlation

Regression

Page 2: Regression. Population Covariance and Correlation

Population Covariance and Correlation

Page 3: Regression. Population Covariance and Correlation

Sample Correlation

Page 4: Regression. Population Covariance and Correlation

Sample Correlation

.98 -.04 -.79

Page 5: Regression. Population Covariance and Correlation

Linear Model

DATA

REGRESSION LINE

Page 6: Regression. Population Covariance and Correlation

(Still) Linear Model

DATA

REGRESSION CURVE

Page 7: Regression. Population Covariance and Correlation

Parameter Estimation

Minimize SSE over possible parameter values

Page 8: Regression. Population Covariance and Correlation

Fitting a linear model in R

Page 9: Regression. Population Covariance and Correlation

Fitting a linear model in R

Intercept parameter is significant at .0623 level

Page 10: Regression. Population Covariance and Correlation

Fitting a linear model in R

Slope parameter is significant at .001 level, so reject

Page 11: Regression. Population Covariance and Correlation

Fitting a linear model in R

Residual Standard Error:

Page 12: Regression. Population Covariance and Correlation

Fitting a linear model in R

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

Page 13: Regression. Population Covariance and Correlation

Create a Best Fit Scatter Plot

Page 14: Regression. Population Covariance and Correlation

Add X and Y Labels

Page 15: Regression. Population Covariance and Correlation

Inspect Residuals

Page 16: Regression. Population Covariance and Correlation

Multiple Regression

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

Page 17: Regression. Population Covariance and Correlation

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