- Given a Regression line and a data point, find the residual
In the linear regression part of statistics we are often asked to find the residuals. Given a data point and the regression line, the residual is defined by the vertical difference between the observed value of \(y\) and the computed value of \(\hat y\) based on the equation of the regression line:
\[Residual = y - \hat y \nonumber\nonumber \]
A study was conducted asking female college students how tall they are and how tall their mother is. The results are show in the table below:
The equation of the regression line is
\[\hat y=30.28\:+0.52x\nonumber \]
Find the residual for the mother who is 59 inches tall.
First note that the Daughter's Height associated with the mother who is 59 inches tall is 61 inches. This is \(y\). Next we use the equation of the regression line to find \(\hat y\). Since \(x=59\), we have
\[\hat y=30.28\:+0.52(59)\nonumber \]
We can use a calculator to get:
\[\hat y = 61.06\nonumber \]
Now we are ready to put the values into the residual formula:
\[Residual = y-\hat y = 61-61.06=-0.06\nonumber \]
Therefore the residual for the 59 inch tall mother is -0.06. Since this residual is very close to 0, this means that the regression line was an accurate predictor of the daughter's height.
An online retailer wanted to see how much bang for the buck was obtained from online advertising. The retailer experimented with different weekly advertising budgets and logged the number of visitors who came to the retailer's online site. The regression line for this is shown below.
Find the residual for the week when the retailer spent $600 on advertising.
First notice that the point of the scatterplot with x-coordinate of 600 has y-coordinate 800. Thus \(y = 800\). Next note that the point on the line with x-coordinate 600 has y-coordinate 700. Thus \(\hat y = 700\). Now we are ready to put the values into the residual formula:
\[Residual = y-\hat y = 800-700=100\nonumber \]
Therefore the residual for the $600 advertising budget is -100.
Data was taken from the recent Olympics on the GDP in trillions of dollars of 8 of the countries that competed and the number of gold medals that they won. The equation of the regression line is:
\[\hat y=7.55\:+\:1.57x\nonumber \]
The table below shows the data:
Find the residual for the country with a GDP of 4 trillion dollars.