Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.

Similar presentations


Presentation on theme: "Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved."— Presentation transcript:

1 Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.

2 Chapter Outline 9.1 Correlation 9.2 Linear Regression 9.3 Measures of Regression and Prediction Intervals 9.4 Multiple Regression © 2012 Pearson Education, Inc. All rights reserved. 2 of 84

3 Section 9.1 Correlation © 2012 Pearson Education, Inc. All rights reserved. 3 of 84

4 Section 9.1 Objectives Introduce linear correlation, independent and dependent variables, and the types of correlation Find a correlation coefficient Test a population correlation coefficient ρ using a table Perform a hypothesis test for a population correlation coefficient ρ Distinguish between correlation and causation © 2012 Pearson Education, Inc. All rights reserved. 4 of 84

5 Correlation A relationship between two variables. The data can be represented by ordered pairs (x, y)  x is the independent (or explanatory) variable  y is the dependent (or response) variable © 2012 Pearson Education, Inc. All rights reserved. 5 of 84

6 Correlation x12345 y– 4– 2– 102 A scatter plot can be used to determine whether a linear (straight line) correlation exists between two variables. x 24 –2–2 – 4 y 2 6 Example: © 2012 Pearson Education, Inc. All rights reserved. 6 of 84

7 Types of Correlation x y Negative Linear Correlation x y No Correlation x y Positive Linear Correlation x y Nonlinear Correlation As x increases, y tends to decrease. As x increases, y tends to increase. © 2012 Pearson Education, Inc. All rights reserved. 7 of 84

8 Example: Constructing a Scatter Plot An economist wants to determine whether there is a linear relationship between a country’s gross domestic product (GDP) and carbon dioxide (CO 2 ) emissions. The data are shown in the table. Display the data in a scatter plot and determine whether there appears to be a positive or negative linear correlation or no linear correlation. (Source: World Bank and U.S. Energy Information Administration) GDP (trillions of $), x CO 2 emission (millions of metric tons), y 1.6428.2 3.6828.8 4.91214.2 1.1444.6 0.9264.0 2.9415.3 2.7571.8 2.3454.9 1.6358.7 1.5573.5 © 2012 Pearson Education, Inc. All rights reserved. 8 of 84

9 Solution: Constructing a Scatter Plot Appears to be a positive linear correlation. As the gross domestic products increase, the carbon dioxide emissions tend to increase. © 2012 Pearson Education, Inc. All rights reserved. 9 of 84

10 Example: Constructing a Scatter Plot Using Technology Old Faithful, located in Yellowstone National Park, is the world’s most famous geyser. The duration (in minutes) of several of Old Faithful’s eruptions and the times (in minutes) until the next eruption are shown in the table. Using a TI-83/84, display the data in a scatter plot. Determine the type of correlation. Duration x Time, y Duration x Time, y 1.80563.7879 1.82583.8385 1.90623.8880 1.93564.1089 1.98574.2790 2.05574.3089 2.13604.4389 2.30574.4786 2.37614.5389 2.82734.5586 3.13764.6092 3.27774.6391 3.6577 © 2012 Pearson Education, Inc. All rights reserved. 10 of 84

11 Solution: Constructing a Scatter Plot Using Technology Enter the x-values into list L 1 and the y-values into list L 2. Use Stat Plot to construct the scatter plot. STAT > Edit…STATPLOT From the scatter plot, it appears that the variables have a positive linear correlation. 15 50 100 © 2012 Pearson Education, Inc. All rights reserved. 11 of 84

12 Correlation Coefficient Correlation coefficient A measure of the strength and the direction of a linear relationship between two variables. The symbol r represents the sample correlation coefficient. A formula for r is The population correlation coefficient is represented by ρ (rho). n is the number of data pairs © 2012 Pearson Education, Inc. All rights reserved. 12 of 84

13 Correlation Coefficient The range of the correlation coefficient is –1 to 1. 0 1 If r = –1 there is a perfect negative correlation If r = 1 there is a perfect positive correlation If r is close to 0 there is no linear correlation © 2012 Pearson Education, Inc. All rights reserved. 13 of 84

14 Linear Correlation Strong negative correlation Weak positive correlation Strong positive correlation Nonlinear Correlation x y x y x y x y r = –0.91r = 0.88 r = 0.42r = 0.07 © 2012 Pearson Education, Inc. All rights reserved. 14 of 84

15 Calculating a Correlation Coefficient 1.Find the sum of the x- values. 2.Find the sum of the y- values. 3.Multiply each x-value by its corresponding y-value and find the sum. In WordsIn Symbols © 2012 Pearson Education, Inc. All rights reserved. 15 of 84

16 Calculating a Correlation Coefficient 4.Square each x-value and find the sum. 5.Square each y-value and find the sum. 6.Use these five sums to calculate the correlation coefficient. In WordsIn Symbols © 2012 Pearson Education, Inc. All rights reserved. 16 of 84

17 Example: Finding the Correlation Coefficient Calculate the correlation coefficient for the gross domestic products and carbon dioxide emissions data. What can you conclude? GDP (trillions of $), x CO 2 emission (millions of metric tons), y 1.6428.2 3.6828.8 4.91214.2 1.1444.6 0.9264.0 2.9415.3 2.7571.8 2.3454.9 1.6358.7 1.5573.5 © 2012 Pearson Education, Inc. All rights reserved. 17 of 84

18 Solution: Finding the Correlation Coefficient xyxyx2x2 y2y2 1.6428.2685.122.56183,355.24 3.6828.82983.6812.96686,909.44 4.91214.25949.5824.011,474,281.64 1.1444.6489.061.21197,669.16 0.9264.0237.60.8169,696 2.9415.31204.378.41172,474.09 2.7571.81543.867.29326,955.24 2.3454.91046.275.29206,934.01 1.6358.7573.922.56128,665.69 1.5573.5860.252.25328,902.25 Σx = 23.1Σy = 5554Σxy = 15,573.71Σx 2 = 67.35Σy 2 = 3,775,842.76 © 2012 Pearson Education, Inc. All rights reserved. 18 of 84

19 Solution: Finding the Correlation Coefficient Σx = 23.1Σy = 5554Σxy = 15,573.71Σx 2 = 32.44 Σy 2 = 3,775,842.76 r ≈ 0.882 suggests a strong positive linear correlation. As the gross domestic product increases, the carbon dioxide emissions also increase. © 2012 Pearson Education, Inc. All rights reserved. 19 of 84

20 Example: Using Technology to Find a Correlation Coefficient Use a technology tool to calculate the correlation coefficient for the Old Faithful data. What can you conclude? Duration x Time, y Duration x Time, y 1.8563.7879 1.82583.8385 1.9623.8880 1.93564.189 1.98574.2790 2.05574.389 2.13604.4389 2.3574.4786 2.37614.5389 2.82734.5586 3.13764.692 3.27774.6391 3.6577 © 2012 Pearson Education, Inc. All rights reserved. 20 of 84

21 Solution: Using Technology to Find a Correlation Coefficient STAT > Calc To calculate r, you must first enter the DiagnosticOn command found in the Catalog menu r ≈ 0.979 suggests a strong positive correlation. © 2012 Pearson Education, Inc. All rights reserved. 21 of 84

22 Using a Table to Test a Population Correlation Coefficient ρ Once the sample correlation coefficient r has been calculated, we need to determine whether there is enough evidence to decide that the population correlation coefficient ρ is significant at a specified level of significance. Use Table 11 in Appendix B. If |r| is greater than the critical value, there is enough evidence to decide that the correlation coefficient ρ is significant. © 2012 Pearson Education, Inc. All rights reserved. 22 of 84

23 Using a Table to Test a Population Correlation Coefficient ρ Determine whether ρ is significant for five pairs of data (n = 5) at a level of significance of α = 0.01. If |r| > 0.959, the correlation is significant. Otherwise, there is not enough evidence to conclude that the correlation is significant. Number of pairs of data in sample level of significance © 2012 Pearson Education, Inc. All rights reserved. 23 of 84

24 Using a Table to Test a Population Correlation Coefficient ρ 1.Determine the number of pairs of data in the sample. 2.Specify the level of significance. 3.Find the critical value. Determine n. Identify α. Use Table 11 in Appendix B. In WordsIn Symbols © 2012 Pearson Education, Inc. All rights reserved. 24 of 84

25 Using a Table to Test a Population Correlation Coefficient ρ In WordsIn Symbols 4.Decide if the correlation is significant. 5.Interpret the decision in the context of the original claim. If |r| > critical value, the correlation is significant. Otherwise, there is not enough evidence to support that the correlation is significant. © 2012 Pearson Education, Inc. All rights reserved. 25 of 84

26 Example: Using a Table to Test a Population Correlation Coefficient ρ Using the Old Faithful data, you used 25 pairs of data to find r ≈ 0.979. Is the correlation coefficient significant? Use α = 0.05. Duration x Time, y Duration x Time, y 1.8563.7879 1.82583.8385 1.9623.8880 1.93564.189 1.98574.2790 2.05574.389 2.13604.4389 2.3574.4786 2.37614.5389 2.82734.5586 3.13764.692 3.27774.6391 3.6577 © 2012 Pearson Education, Inc. All rights reserved. 26 of 84

27 Solution: Using a Table to Test a Population Correlation Coefficient ρ n = 25, α = 0.05 |r| ≈ 0.979 > 0.396 There is enough evidence at the 5% level of significance to conclude that there is a significant linear correlation between the duration of Old Faithful’s eruptions and the time between eruptions. © 2012 Pearson Education, Inc. All rights reserved. 27 of 84

28 Hypothesis Testing for a Population Correlation Coefficient ρ A hypothesis test can also be used to determine whether the sample correlation coefficient r provides enough evidence to conclude that the population correlation coefficient ρ is significant at a specified level of significance. A hypothesis test can be one-tailed or two-tailed. © 2012 Pearson Education, Inc. All rights reserved. 28 of 84

29 Hypothesis Testing for a Population Correlation Coefficient ρ Left-tailed test Right-tailed test Two-tailed test H 0 : ρ ≥ 0 (no significant negative correlation) H a : ρ < 0 (significant negative correlation) H 0 : ρ ≤ 0 (no significant positive correlation) H a : ρ > 0 (significant positive correlation) H 0 : ρ = 0 (no significant correlation) H a : ρ ≠ 0 (significant correlation) © 2012 Pearson Education, Inc. All rights reserved. 29 of 84

30 The t-Test for the Correlation Coefficient Can be used to test whether the correlation between two variables is significant. The test statistic is r. The standardized test statistic follows a t-distribution with d.f. = n – 2. In this text, only two-tailed hypothesis tests for ρ are considered. © 2012 Pearson Education, Inc. All rights reserved. 30 of 84

31 Using the t-Test for ρ 1.State the null and alternative hypothesis. 2.Specify the level of significance. 3.Identify the degrees of freedom. 4.Determine the critical value(s) and rejection region(s). State H 0 and H a. Identify α. d.f. = n – 2 Use Table 5 in Appendix B. In WordsIn Symbols © 2012 Pearson Education, Inc. All rights reserved. 31 of 84

32 Using the t-Test for ρ 5.Find the standardized test statistic. 6.Make a decision to reject or fail to reject the null hypothesis. 7.Interpret the decision in the context of the original claim. In WordsIn Symbols If t is in the rejection region, reject H 0. Otherwise fail to reject H 0. © 2012 Pearson Education, Inc. All rights reserved. 32 of 84

33 Example: t-Test for a Correlation Coefficient Previously you calculated r ≈ 0.882. Test the significance of this correlation coefficient. Use α = 0.05. GDP (trillions of $), x CO 2 emission (millions of metric tons), y 1.6428.2 3.6828.8 4.91214.2 1.1444.6 0.9264.0 2.9415.3 2.7571.8 2.3454.9 1.6358.7 1.5573.5 © 2012 Pearson Education, Inc. All rights reserved. 33 of 84

34 Solution: t-Test for a Correlation Coefficient H 0 : H a :  d.f. = Rejection Region: Test Statistic: 0.05 10 – 2 = 8 ρ = 0 ρ ≠ 0 Decision: At the 5% level of significance, there is enough evidence to conclude that there is a significant linear correlation between gross domestic products and carbon dioxide emissions. Reject H 0 © 2012 Pearson Education, Inc. All rights reserved. 34 of 84

35 Correlation and Causation The fact that two variables are strongly correlated does not in itself imply a cause-and-effect relationship between the variables. If there is a significant correlation between two variables, you should consider the following possibilities. 1.Is there a direct cause-and-effect relationship between the variables? Does x cause y? © 2012 Pearson Education, Inc. All rights reserved. 35 of 84

36 Correlation and Causation 2.Is there a reverse cause-and-effect relationship between the variables? Does y cause x? 3.Is it possible that the relationship between the variables can be caused by a third variable or by a combination of several other variables? 4.Is it possible that the relationship between two variables may be a coincidence? © 2012 Pearson Education, Inc. All rights reserved. 36 of 84

37 Section 9.1 Summary Introduced linear correlation, independent and dependent variables and the types of correlation Found a correlation coefficient Tested a population correlation coefficient ρ using a table Performed a hypothesis test for a population correlation coefficient ρ Distinguished between correlation and causation © 2012 Pearson Education, Inc. All rights reserved. 37 of 84

38 Section 9.2 Linear Regression © 2012 Pearson Education, Inc. All rights reserved. 38 of 84

39 Section 9.2 Objectives Find the equation of a regression line Predict y-values using a regression equation © 2012 Pearson Education, Inc. All rights reserved. 39 of 84

40 Regression lines After verifying that the linear correlation between two variables is significant, next we determine the equation of the line that best models the data (regression line). Can be used to predict the value of y for a given value of x. x y © 2012 Pearson Education, Inc. All rights reserved. 40 of 84

41 Residuals Residual The difference between the observed y-value and the predicted y-value for a given x-value on the line. For a given x-value, d i = (observed y-value) – (predicted y-value) x y }d1}d1 }d2}d2 d3{d3{ d4{d4{ }d5}d5 d6{d6{ Predicted y-value Observed y-value © 2012 Pearson Education, Inc. All rights reserved. 41 of 84

42 Regression line (line of best fit) The line for which the sum of the squares of the residuals is a minimum. The equation of a regression line for an independent variable x and a dependent variable y is ŷ = mx + b Regression Line Predicted y-value for a given x- value Slope y-intercept © 2012 Pearson Education, Inc. All rights reserved. 42 of 84

43 The Equation of a Regression Line ŷ = mx + b where is the mean of the y-values in the data is the mean of the x-values in the data The regression line always passes through the point © 2012 Pearson Education, Inc. All rights reserved. 43 of 84

44 Example: Finding the Equation of a Regression Line Find the equation of the regression line for the gross domestic products and carbon dioxide emissions data. GDP (trillions of $), x CO 2 emission (millions of metric tons), y 1.6428.2 3.6828.8 4.91214.2 1.1444.6 0.9264.0 2.9415.3 2.7571.8 2.3454.9 1.6358.7 1.5573.5 © 2012 Pearson Education, Inc. All rights reserved. 44 of 84

45 Solution: Finding the Equation of a Regression Line xyxyx2x2 y2y2 1.6428.2685.122.56183,355.24 3.6828.82983.6812.96686,909.44 4.91214.25949.5824.011,474,281.64 1.1444.6489.061.21197,669.16 0.9264.0237.60.8169,696 2.9415.31204.378.41172,474.09 2.7571.81543.867.29326,955.24 2.3454.91046.275.29206,934.01 1.6358.7573.922.56128,665.69 1.5573.5860.252.25328,902.25 Σx = 23.1Σy = 5554Σxy = 15,573.71Σx 2 = 67.35 Σy 2 = 3,775,842.76 Recall from section 9.1: © 2012 Pearson Education, Inc. All rights reserved. 45 of 84

46 Solution: Finding the Equation of a Regression Line Σx = 23.1Σy = 5554 Σxy = 15,573.71 Σx 2 = 67.35Σy 2 = 3,775,842.76 Equation of the regression line © 2012 Pearson Education, Inc. All rights reserved. 46 of 84

47 Solution: Finding the Equation of a Regression Line To sketch the regression line, use any two x-values within the range of the data and calculate the corresponding y-values from the regression line. © 2012 Pearson Education, Inc. All rights reserved. 47 of 84

48 Example: Using Technology to Find a Regression Equation Use a technology tool to find the equation of the regression line for the Old Faithful data. Duration x Time, y Duration x Time, y 1.8563.7879 1.82583.8385 1.9623.8880 1.93564.189 1.98574.2790 2.05574.389 2.13604.4389 2.3574.4786 2.37614.5389 2.82734.5586 3.13764.692 3.27774.6391 3.6577 © 2012 Pearson Education, Inc. All rights reserved. 48 of 84

49 Solution: Using Technology to Find a Regression Equation 5 50 100 1 © 2012 Pearson Education, Inc. All rights reserved. 49 of 84

50 Example: Predicting y-Values Using Regression Equations The regression equation for the gross domestic products (in trillions of dollars) and carbon dioxide emissions (in millions of metric tons) data is ŷ = 196.152x + 102.289. Use this equation to predict the expected carbon dioxide emissions for the following gross domestic products. (Recall from section 9.1 that x and y have a significant linear correlation.) 1. 1.2 trillion dollars 2. 2.0 trillion dollars 3. 2.5 trillion dollars © 2012 Pearson Education, Inc. All rights reserved. 50 of 84

51 Solution: Predicting y-Values Using Regression Equations ŷ = 196.152x + 102.289 1.1.2 trillion dollars When the gross domestic product is $1.2 trillion, the CO 2 emissions are about 337.671 million metric tons. ŷ =196.152(1.2) + 102.289 ≈ 337.671 2.2.0 trillion dollars When the gross domestic product is $2.0 trillion, the CO 2 emissions are 494.595 million metric tons. ŷ =196.152(2.0) + 102.289 = 494.593 © 2012 Pearson Education, Inc. All rights reserved. 51 of 84

52 Solution: Predicting y-Values Using Regression Equations 3.2.5 trillion dollars When the gross domestic product is $2.5 trillion, the CO 2 emissions are 592.669 million metric tons. ŷ =196.152(2.5) + 102.289 = 592.669 Prediction values are meaningful only for x-values in (or close to) the range of the data. The x-values in the original data set range from 0.9 to 4.9. So, it would not be appropriate to use the regression line to predict carbon dioxide emissions for gross domestic products such as $0.2 or $14.5 trillion dollars. © 2012 Pearson Education, Inc. All rights reserved. 52 of 84

53 Section 9.2 Summary Found the equation of a regression line Predicted y-values using a regression equation © 2012 Pearson Education, Inc. All rights reserved. 53 of 84

54 Section 9.3 Measures of Regression and Prediction Intervals © 2012 Pearson Education, Inc. All rights reserved. 54 of 84

55 Section 9.3 Objectives Interpret the three types of variation about a regression line Find and interpret the coefficient of determination Find and interpret the standard error of the estimate for a regression line Construct and interpret a prediction interval for y © 2012 Pearson Education, Inc. All rights reserved. 55 of 84

56 Variation About a Regression Line Three types of variation about a regression line  Total variation  Explained variation  Unexplained variation To find the total variation, you must first calculate  The total deviation  The explained deviation  The unexplained deviation © 2012 Pearson Education, Inc. All rights reserved. 56 of 84

57 Variation About a Regression Line (x i, ŷ i ) x y (x i, y i ) Unexplained deviation Total deviation Explained deviation Total Deviation = Explained Deviation = Unexplained Deviation = © 2012 Pearson Education, Inc. All rights reserved. 57 of 84

58 Total variation The sum of the squares of the differences between the y-value of each ordered pair and the mean of y. Explained variation The sum of the squares of the differences between each predicted y-value and the mean of y. Variation About a Regression Line Total variation = Explained variation = © 2012 Pearson Education, Inc. All rights reserved. 58 of 84

59 Unexplained variation The sum of the squares of the differences between the y-value of each ordered pair and each corresponding predicted y-value. Variation About a Regression Line Unexplained variation = The sum of the explained and unexplained variation is equal to the total variation. Total variation = Explained variation + Unexplained variation © 2012 Pearson Education, Inc. All rights reserved. 59 of 84

60 Coefficient of Determination Coefficient of determination The ratio of the explained variation to the total variation. Denoted by r 2 © 2012 Pearson Education, Inc. All rights reserved. 60 of 84

61 Example: Coefficient of Determination About 77.8% of the variation in the carbon emissions can be explained by the variation in the gross domestic products. About 22.2% of the variation is unexplained. The correlation coefficient for the gross domestic products and carbon dioxide emissions data as calculated in Section 9.1 is r ≈ 0.882. Find the coefficient of determination. What does this tell you about the explained variation of the data about the regression line? About the unexplained variation? Solution: © 2012 Pearson Education, Inc. All rights reserved. 61 of 84

62 The Standard Error of Estimate Standard error of estimate The standard deviation of the observed y i -values about the predicted ŷ-value for a given x i -value. Denoted by s e. The closer the observed y-values are to the predicted y-values, the smaller the standard error of estimate will be. n is the number of ordered pairs in the data set © 2012 Pearson Education, Inc. All rights reserved. 62 of 84

63 The Standard Error of Estimate 1.Make a table that includes the column headings shown. 2.Use the regression equation to calculate the predicted y-values. 3.Calculate the sum of the squares of the differences between each observed y-value and the corresponding predicted y-value. 4.Find the standard error of estimate. In WordsIn Symbols © 2012 Pearson Education, Inc. All rights reserved. 63 of 84

64 Example: Standard Error of Estimate The regression equation for the gross domestic products and carbon dioxide emissions data as calculated in section 9.2 is ŷ = 196.152x + 102.289 Find the standard error of estimate. Solution: Use a table to calculate the sum of the squared differences of each observed y-value and the corresponding predicted y-value. © 2012 Pearson Education, Inc. All rights reserved. 64 of 84

65 Solution: Standard Error of Estimate xyŷ iŷ i y i – ŷ i (y i – ŷ i ) 2 1.6428.2416.132212.0678145.63179684 3.6828.8808.436220.3638414.68435044 4.91214.21063.4338150.766222,730.44706244 1.1444.6318.0562126.543816,013.33331844 0.9264.0278.8258–14.8258219.80434564 2.9415.3671.1298–255.829865,448.88656804 2.7571.8631.8994–60.09943611.93788036 2.3454.9553.4386–98.53869709.85568996 1.6358.7416.1322–57.43223298.45759684 1.5573.5396.517176.98331,322.982289 Σ = 152,916.020898 unexplained variation © 2012 Pearson Education, Inc. All rights reserved. 65 of 84

66 Solution: Standard Error of Estimate n = 10, Σ(y i – ŷ i ) 2 = 152,916.020898 The standard error of estimate of the carbon dioxide emissions for a specific gross domestic product is about 138.255 million metric tons. © 2012 Pearson Education, Inc. All rights reserved. 66 of 84

67 Prediction Intervals Two variables have a bivariate normal distribution if for any fixed value of x, the corresponding values of y are normally distributed and for any fixed values of y, the corresponding x-values are normally distributed. © 2012 Pearson Education, Inc. All rights reserved. 67 of 84

68 Prediction Intervals A prediction interval can be constructed for the true value of y. Given a linear regression equation ŷ = mx + b and x 0, a specific value of x, a c-prediction interval for y is ŷ – E < y < ŷ + E where The point estimate is ŷ and the margin of error is E. The probability that the prediction interval contains y is c. © 2012 Pearson Education, Inc. All rights reserved. 68 of 84

69 Constructing a Prediction Interval for y for a Specific Value of x 1.Identify the number of ordered pairs in the data set n and the degrees of freedom. 2.Use the regression equation and the given x-value to find the point estimate ŷ. 3.Find the critical value t c that corresponds to the given level of confidence c. Use Table 5 in Appendix B. In WordsIn Symbols d.f. = n – 2 © 2012 Pearson Education, Inc. All rights reserved. 69 of 84

70 Constructing a Prediction Interval for y for a Specific Value of x 4.Find the standard error of estimate s e. 4.Find the margin of error E. 5.Find the left and right endpoints and form the prediction interval. In WordsIn Symbols Left endpoint: ŷ – E Right endpoint: ŷ + E Interval: ŷ – E < y < ŷ + E © 2012 Pearson Education, Inc. All rights reserved. 70 of 84

71 Example: Constructing a Prediction Interval Construct a 95% prediction interval for the carbon dioxide emission when the gross domestic product is $3.5 trillion. What can you conclude? Recall, n = 10, ŷ = 196.152x + 102.289, s e = 138.255 Solution: Point estimate: ŷ = 196.152(3.5) + 102.289 ≈ 788.821 Critical value: d.f. = n –2 = 10 – 2 = 8 t c = 2.306 © 2012 Pearson Education, Inc. All rights reserved. 71 of 84

72 Solution: Constructing a Prediction Interval Left Endpoint: ŷ – ERight Endpoint: ŷ + E 439.397 < y < 1138.245 788.821 – 349.424 = 439.397 788.821 + 349.424 = 1138.245 You can be 95% confident that when the gross domestic product is $3.5 trillion, the carbon dioxide emissions will be between 439.397 and 1138.245 million metric tons. © 2012 Pearson Education, Inc. All rights reserved. 72 of 84

73 Section 9.3 Summary Interpreted the three types of variation about a regression line Found and interpreted the coefficient of determination Found and interpreted the standard error of the estimate for a regression line Constructed and interpreted a prediction interval for y © 2012 Pearson Education, Inc. All rights reserved. 73 of 84

74 Section 9.4 Multiple Regression © 2012 Pearson Education, Inc. All rights reserved. 74 of 84

75 Section 9.4 Objectives Use technology to find a multiple regression equation, the standard error of estimate and the coefficient of determination Use a multiple regression equation to predict y-values © 2012 Pearson Education, Inc. All rights reserved. 75 of 84

76 Multiple Regression Equation In many instances, a better prediction can be found for a dependent (response) variable by using more than one independent (explanatory) variable. For example, a more accurate prediction for the carbon dioxide emissions discussed in previous sections might be made by considering the number of cars as well as the gross domestic product. © 2012 Pearson Education, Inc. All rights reserved. 76 of 84

77 Multiple Regression Equation Multiple regression equation ŷ = b + m 1 x 1 + m 2 x 2 + m 3 x 3 + … + m k x k x 1, x 2, x 3,…, x k are independent variables b is the y-intercept y is the dependent variable * Because the mathematics associated with this concept is complicated, technology is generally used to calculate the multiple regression equation. © 2012 Pearson Education, Inc. All rights reserved. 77 of 84

78 Example: Finding a Multiple Regression Equation A researcher wants to determine how employee salaries at a certain company are related to the length of employment, previous experience, and education. The researcher selects eight employees from the company and obtains the data shown on the next slide. Use MINITAB to find a multiple regression equation that models the data. © 2012 Pearson Education, Inc. All rights reserved. 78 of 84

79 Example: Finding a Multiple Regression Equation EmployeeSalary, y Employment (yrs), x 1 Experience (yrs), x 2 Education (yrs), x 3 A57,31010216 B57,3805616 C54,1353112 D56,9856514 E58,7158816 F60,62020012 G59,2008418 H60,32014617 © 2012 Pearson Education, Inc. All rights reserved. 79 of 84

80 Solution: Finding a Multiple Regression Equation Enter the y-values in C1 and the x 1 -, x 2 -, and x 3 - values in C2, C3 and C4 respectively. Select “Regression > Regression…” from the Stat menu. Use the salaries as the response variable and the remaining data as the predictors. © 2012 Pearson Education, Inc. All rights reserved. 80 of 84

81 Solution: Finding a Multiple Regression Equation The regression equation is ŷ = 49,764 + 364x 1 + 228x 2 + 267x 3 © 2012 Pearson Education, Inc. All rights reserved. 81 of 84

82 Predicting y - Values After finding the equation of the multiple regression line, you can use the equation to predict y-values over the range of the data. To predict y-values, substitute the given value for each independent variable into the equation, then calculate ŷ. © 2012 Pearson Education, Inc. All rights reserved. 82 of 84

83 Example: Predicting y-Values Use the regression equation ŷ = 49,764 + 364x 1 + 228x 2 + 267x 3 to predict an employee’s salary given 12 years of current employment, 5 years of experience, and 16 years of education. Solution: ŷ = 49,764 + 364(12) + 228(5) + 267(16) = 59,544 The employee’s predicted salary is $59,544. © 2012 Pearson Education, Inc. All rights reserved. 83 of 84

84 Section 9.4 Summary Used technology to find a multiple regression equation, the standard error of estimate and the coefficient of determination Used a multiple regression equation to predict y- values © 2012 Pearson Education, Inc. All rights reserved. 84 of 84


Download ppt "Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved."

Similar presentations


Ads by Google