Simple Linear Regression Question Is annual carbon dioxide concentration related to annual global temperature? 1 Simple Linear Regression Response variable, Y. Annual global temperature (o C). Explanatory (predictor) variable, x. Annual atmospheric CO2 concentration. 2 Regression model Y y| x •Y represents a value of the response variable. • y| x represents the population mean response for a given value of the explanatory variable, x. • represents the random error 3 Linear Model Y y| x 0 1 x 0 The Y-intercept parameter. 1 The slope parameter. 4 Conditions The relationship is linear. The random error term, , is Independent Identically distributed Normally distributed with standard deviation, . 5 15.0 Temp 14.5 14.0 13.5 300 350 CO2 400 6 Describe the plot. Direction – positive/negative. Form – linear/non-linear. Strength. Unusual points? 7 Method of Least Squares Find estimates of 0 and 1 such that the sum of squared vertical deviations from the estimated straight line is the smallest possible. 8 Least Squares Estimates ˆ1 x x y y x x 2 ˆ ˆ 0 y 1 x ˆy ˆ ˆ x 0 1 9 Bivariate Fit of Temp By CO2 15.0 Temp 14.5 14.0 13.5 300 350 400 CO2 Linear Fit 10 Linear Fit yˆ ˆ0 ˆ1 x Predicted Temp = 9.8815 + 0.012584*CO2 11 Interpretation Estimated Y-intercept. This does not have an interpretation within the context of the problem. Having no CO2 in the atmosphere is not reasonable given the data. 12 Interpretation Estimated slope. For each additional 1 ppmv of CO2, the annual global temperature goes up o 0.012584 C, on average. 13 Bivariate Fit of Temp By CO2 15.0 Temp 14.5 14.0 13.5 300 350 400 CO2 Linear Fit 14 How Strong? The strength of a linear relationship can be measured by R2, the coefficient of determination. RSquare in JMP output. 15 How Strong? SS Model R SSTotal 2 0.80145 R 0.806 0.99450 2 16 Interpretation 80.6% of the variation in the global temperature can be explained by the linear relationship with carbon dioxide concentration. 19.4% is unexplained. 17 Interpretation There is a fairly strong positive linear relationship between carbon dioxide concentration and global temperature. Cause and effect? 18 Cause and Effect? There is a strong positive linear relationship between the number of 2nd graders in communities and the number of crimes committed in those communities. 19 Connection to Correlation If you square the correlation coefficient, r, relating carbon dioxide to global temperature you get R2, the coefficient of determination. r R 0.806 0.898 2 20 Connection to Correlation s y ˆ1 r sx s y is the standard deviation of the y values s x is the standard deviation of the x values 21