Download presentation
Presentation is loading. Please wait.
Published byMalcolm Sherman Modified over 9 years ago
1
Section 12.2 Linear Regression HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved.
2
If r is statistically significant, then a regression line can be used to make predictions regarding the data. Regression Line – the line from which the average variation from the data is the smallest. Also known as the line of best fit. There is only one regression line for each data set. Other commonly used regression line formulas: Definitions: Regression, Inference, and Model Building 12.2 Linear Regression HAWKES LEARNING SYSTEMS math courseware specialists b 0 y-intercept b 1 slope
3
Slope: Regression, Inference, and Model Building 12.2 Linear Regression HAWKES LEARNING SYSTEMS math courseware specialists y-Intercept: When calculating the slope, round your answers to three decimal places. When calculating the y-intercept, round your answers to three decimal places.
4
HAWKES LEARNING SYSTEMS math courseware specialists TI-84 Plus Instructions: 1.Press STAT, then EDIT 2.Type the x-variable values into L1 3.Type the y-variable values into L2 4.Press STAT, then CALC 5.Choose 4: Linreg(ax+b) 6.Press ENTER Regression, Inference, and Model Building 12.2 Linear Regression a b 1 slope b b 0 y-intercept
5
HAWKES LEARNING SYSTEMS math courseware specialists Determine the regression line: The local school board wants to evaluate the relationship between class size and performance on the state achievement test. They decide to collect data from various schools in the county. A portion of the data collected is listed below. Each pair represents the class size and corresponding average score on the achievement test for 8 schools. Solution: First decide which variable should be the x variable and which variable should be y. Class size is the independent variable, x, and average score is the dependent variable, y. We can use a calculator or the equations to find the regression line. Class Size1517182021242629 Average Score85.386.285.082.781.978.875.372.1 Regression, Inference, and Model Building 12.2 Linear Regression
6
HAWKES LEARNING SYSTEMS math courseware specialists Solution (continued): Using the equations for slope and y-intercept: n 8, ∑x 170, ∑y 647.3, ∑xy 13588.7, ∑x 2 3772 Now place the slope and y-intercept into the regression line equation: –1.043 Regression, Inference, and Model Building 12.2 Linear Regression 103.085
7
HAWKES LEARNING SYSTEMS math courseware specialists Predictions: A prediction should not be made with a regression model if: 1.The correlation is not statistically significant. 2.You are using a value outside of the range of the sample data. 3.The population is different than that of the sample data. Regression, Inference, and Model Building 12.2 Linear Regression
8
Calculate the prediction: HAWKES LEARNING SYSTEMS math courseware specialists a.16 b.19 c.25 d.45 Since 45 is outside the range of the original data of 15 to 29, we cannot predict the test score. Use the equation of the regression line, to predict what the average achievement test score will be for the following class size: Regression, Inference, and Model Building 12.2 Linear Regression 86.397 83.268 77.010
9
HAWKES LEARNING SYSTEMS math courseware specialists Putting it all together: The table below gives the average monthly temperature and corresponding monthly precipitation totals for one year in Key West, Florida. a.Create a scatter plot. b.Calculate the correlation coefficient, r. c.Verify that the correlation coefficient is statistically significant at the 0.05 level of significance. d.Calculate the equation of the line of best fit. e.Calculate and interpret the coefficient of determination, r 2. f.If appropriate, make a prediction for the monthly precipitation for a month in which the average temperature is 80 degrees. g.If appropriate, make a prediction for the monthly precipitation in Destin, FL for a month in which the average temperature is 83 degrees. Temperatures (in °F) and Precipitation (in inches) in Key West, FL Average Temperature 757679828588899088858177 Inches in Precipitation 2.221.511.862.063.484.573.275.405.454.342.642.14 Regression, Inference, and Model Building 12.2 Linear Regression
10
HAWKES LEARNING SYSTEMS math courseware specialists Solution (continued): a.Create a scatter plot. Regression, Inference, and Model Building 12.2 Linear Regression The scatter plot shows a positive trend in data.
11
HAWKES LEARNING SYSTEMS math courseware specialists Solution (continued): b.Calculate the correlation coefficient, r. Regression, Inference, and Model Building 12.2 Linear Regression n 12, ∑x 995, ∑y 38.94, ∑xy 3299.23, ∑x 2 82815, ∑y 2 147.847 0.859
12
HAWKES LEARNING SYSTEMS math courseware specialists Solution (continued): c.Verify that the correlation coefficient is statistically significant at the 0.05 level of significance. Regression, Inference, and Model Building 12.2 Linear Regression n 12, r 0.859, 0.05 r r Statistically significant if |r | > r . Therefore, r is statistically significant at the 0.05 level. 0.576
13
HAWKES LEARNING SYSTEMS math courseware specialists Solution (continued): n 12, ∑x 995, ∑y 38.94, ∑xy 3299.23, ∑x 2 82815 Now place the slope and y-intercept into the regression line equation: 0.225 Regression, Inference, and Model Building 12.2 Linear Regression –15.424 d.Calculate the equation of the line of best fit.
14
HAWKES LEARNING SYSTEMS math courseware specialists r 0.859 r 2 So about 73.8% of the variation in precipitation can be attributed to the linear relationship between temperature and precipitation. The remaining 26.2% of the variation is from unknown sources. 0.738 Regression, Inference, and Model Building 12.2 Linear Regression Solution (continued): e.Calculate and interpret the coefficient of determination, r 2.
15
HAWKES LEARNING SYSTEMS math courseware specialists Thus a reasonable estimate for the precipitation for a month in which the average temperature is 80 degrees is about 2.58 inches. Regression, Inference, and Model Building 12.2 Linear Regression Solution (continued): f.If appropriate, make a prediction for the monthly precipitation for a month in which the average temperature is 80 degrees. 2.576 g.If appropriate, make a prediction for the monthly precipitation in Destin, FL for a month in which the average temperature is 83 degrees. The data was collected in Key West, not Destin, FL. Therefore, it is not appropriate to use the linear regression line to make predictions regarding the precipitation in Destin.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.