00:01
Computing the regression line and making predictions.
00:04
Suppose you are a dolphin trainer at seaworld.
00:07
You teach the dolphins by rewarding them with fish treats after each successful attempt at a new trick.
00:11
The following table lists the dolphins, the number of treats per success given to each, and the average number of attempts necessary for them to learn to perform the tricks.
00:20
You can use the preceding data to obtain the regression line, or y prime is the predicted value of bx plus a.
00:33
One formula for the slope of the regression line is as follows.
00:39
B equals sp divided by sss subx.
00:47
So sp is negative 5 and ss subx is positive 5, which means our slope is negative 1.
00:58
So our equation is negative 1x plus 8 .5.
01:09
And we can calculate your y intersect.
01:14
Using several different methods, but that would be our regression equation.
01:22
The difference between y and y prime for a particular sample point is called a residual.
01:27
Calculate the predicted residual for each of the dolphins.
01:35
So i'm going to add that to my table.
01:37
So to calculate y prime, i'm going to plug in my number of treats and see what the regression equation says i should have for attempts.
01:48
So when i plug in a 4, i get 4 .5, which means i have a residual of a difference of 0 .5.
01:57
When i plug in 2, i get 6 .5...