Download presentation
Presentation is loading. Please wait.
1
3.2 (part 2)
4
An Example Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 Letβs use scores on the chapter 1 test to predict scores on the chapter 2 test First step: we need to find the mean and st. dev for each variable
5
An Example Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 First step: we need to find the mean and st. dev for each variable Test 1 π₯ =82.65 π π₯ =5.52 Test 2 π₯ =77.77 π π₯ =8.98
6
An Example Second step: we need to find the correlation
Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 π₯ 77.77 π π₯ 5.52 8.98 Second step: we need to find the correlation For now, Iβm just going to give it to you: r=.36 Now we can find the slope: π=(.36) π=.59
7
An Example Now we can find the y-intercept π=77.77β .59 82.65 π=28.94
Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 π₯ 77.77 π π₯ 5.52 8.98 Now we can find the y-intercept π=77.77β π=28.94 So our regression equation is: πππ π‘2 = (πππ π‘1) r=.36 b=.59
8
An Example So our regression equation is: πππ π‘2 =28.94+.59(πππ π‘1)
Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 π₯ 77.77 π π₯ 5.52 8.98 So our regression equation is: πππ π‘2 = (πππ π‘1) A fifth student got a on the Chapter 1 Test. What would we expect his/her grade to be on the chapter 2 test? r=.36 b=.59
9
An Example So our regression equation is: πππ π‘2 =28.94+.59(πππ π‘1)
Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 π₯ 77.77 π π₯ 5.52 8.98 So our regression equation is: πππ π‘2 = (πππ π‘1) A fifth student got a on the Chapter 1 Test. What would we expect his/her grade to be on the chapter 2 test? 28.94+(.59)(79.04) We would expect him/her to get a 75.57 r=.36 b=.59
10
An Example Letβs do the same thing on our calculator
Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 π₯ 77.77 π π₯ 5.52 8.98 Letβs do the same thing on our calculator Enter our x-values (Test1 scores) into L1 and our y-values (Test2 scores) into L2 πππ π‘2 = (πππ π‘1)
11
An Example Letβs do the same thing on our calculator
Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 π₯ 77.77 π π₯ 5.52 8.98 Letβs do the same thing on our calculator Enter our x-values (Test1 scores) into L1 and our y-values (Test2 scores) into L2 Stat---Calc---Linreg(a+bx) πππ π‘2 = (πππ π‘1)
12
An Example Letβs do the same thing on our calculator
Test 1 Test 2 Student 1 83.73 90.57 Student 2 88.8 74.59 Student 3 82.65 76.23 Student 4 75.42 69.67 π₯ 77.77 π π₯ 5.52 8.98 Letβs do the same thing on our calculator Stat---Calc---Linreg(a+bx) A=29.92 B=.58 Notice: very similar to our equation Why is it a bit different? πππ π‘2 = (πππ π‘1)
13
A New Example: Stadium Size
Stadium Size (thousands) 2016 Win Pct Texas 100.1 .417 Old Dominion 20.1 .769 Auburn 87.5 .615 Hawaii 50.0 .500 Kansas 50.1 .167 Colorado 50.2 .714 Colorado State 41.2 .538 Using your calculator, find the regression line that uses stadium size to predict 2016 Winning Percentage Use the regression line to predict the 2016 winning percentage for Tulane (stadium seats 30,000)
14
A New Example: Stadium Size
Stadium Size (thousands) 2016 Win Pct Texas 100.1 .417 Old Dominion 20.1 .769 Auburn 87.5 .615 Hawaii 50.0 .500 Kansas 50.1 .167 Colorado 50.2 .714 Colorado State 41.2 .538 Using your calculator, find the regression line that uses stadium size to predict 2016 Winning Percentage π€ππ =.654β.002(Stadium) Use the regression line to predict the 2016 winning percentage for Tulane (stadium seats 30,000) .594
15
A New Example: Stadium Size
Stadium Size (thousands) 2016 Win Pct Texas 100.1 .417 Old Dominion 20.1 .769 Auburn 87.5 .615 Hawaii 50.0 .500 Kansas 50.1 .167 Colorado 50.2 .714 Colorado State 41.2 .538 π€ππ =.654β.002(Stadium) Use the regression line to predict the 2016 winning percentage for Tulane (stadium seats 30,000) .594 Tulaneβs actual winning percentage last year was Did our model do a very good job of predicting this?
18
No PatternβGood!
19
Residual Plots What if the residual plot DOES have a pattern?
Linear regression is probably not appropriate For now, we just stop there There are non-linear regression methods (your calculator can even do some of them) But for now we are focused only on linear regression
20
Using Technologyβmaking a scatterplot
We still have these data in L1 and L2 of our calculator We can use L1 and L2 to make a scatterplot Go to Y= and delete any equations you have in there Go to 2ndβStat plot
21
Using Technologyβmaking a scatterplot
Go to Y= and delete any equations you have in there Go to 2ndβStat plot Turn Plot1 on (make sure you choose L1 and L2) Hit Graphβyou will probably see no points. Why?
22
Using Technologyβmaking a scatterplot
Hit Graphβyou will probably see no points. Why? Click Windowβchange xmin, xmax, ymin, and ymax Now letβs add our regression line: π€ππ =.654β.002(Stadium)
23
Using TechnologyβMaking a Residual Plot (Page 178)
Go to Stat---Edit Leave data in L1 and L2 Scroll over to L3 and highlight βL3β Type: .654β .002βπΏ1 Now L3 is holding predicted values Now highlight βL4β Type: L2-L3 Now L4 is holding residuals Go back to Stat Plot Turn Plot 1 off, and turn plot 2 on Specify L1 as X variable, and L4 as y-variable Go to Window and change ymin (-1 works in this case) Go to Y= and delete your regression line (or hide it) Hit graph
24
HW Time
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.