# Question # The Information Please Almanac provides data on the ages at inauguration and of death for the presidents of the United States. We give those data on t

Scatterplots
ANSWERED The Information Please Almanac provides data on the ages at inauguration and of death for the presidents of the United States. We give those data on the WeissStats CD for those presidents who are not still living at the time of this writing. a) Obtain a scatterplot for the data. b) Decide whether finding a regression line for the data is reasonable. If so, then also do parts (c)-(f). c) Determine and interpret the regression equation for the data. d) Identify potential outliers and influential observations. e) In case a potential outlier is present, remove it and discuss the effect. f) In case a potential influential observation is present, remove it and discuss the effect. 2021-02-01

Given: $$\displaystyle{n}=\ \text{Sample size}\ ={39}$$ a) Inauguration is on the horixontal axis and Death is on the vertical axis.. b) It is reasonable to find a regression lien for the data if there is no strong curvature present in the scatterplot. We note that there is no strong curvature in the scatterplot of part (a) and thus it is reasonable to find a regression line for the data. c) Let us first determine the necessary sums: $$\displaystyle\sum\ {x}_{{{i}}}={2142}$$
$$\displaystyle\sum\ {{x}_{{{i}}}^{{{2}}}}={119098}$$
$$\displaystyle\sum\ {y}_{{{i}}}={2747}$$
$$\displaystyle\sum\ {x}_{{{i}}}{y}_{{{i}}}={152587}$$ Next, we can determine $$\displaystyle{S}_{{xx}}$$ and $$\displaystyle{S}_{{{x}{y}}}$$
$$\displaystyle{S}_{{xx}}=\ \sum\ {{x}_{{{i}}}^{{{2}}}}\ -\ {\frac{{{\left(\sum\ {x}_{{{i}}}\right)}^{{{2}}}}}{{{n}}}}={119098}\ -\ {\frac{{{2142}^{{{2}}}}}{{{39}}}}={1452.7692}$$
$$\displaystyle{S}_{{{x}{y}}}=\ \sum\ {x}_{{{i}}}{y}_{{{i}}}\ -\ {\frac{{{\left(\sum\ {x}_{{{i}}}\right)}{\left(\sum\ {y}_{{{i}}}\right)}}}{{{n}}}}={152587}\ -\ {\frac{{{2142}\ \cdot\ {2747}}}{{{39}}}}={1713.3077}$$ The estimate b of the slope $$\displaystyle\beta$$ is the ratio of $$\displaystyle{S}_{{{x}{y}}}$$ and $$\displaystyle{S}_{{xx}}$$: $$\displaystyle{b}=\ {\frac{{{S}_{{{x}{y}}}}}{{{S}_{{xx}}}}}=\ {\frac{{{1713.3077}}}{{{1452.7692}}}}={1.1793}$$ The mean is the sum of all values divided by the number of values: $$\displaystyle\overline{{{x}}}=\ {\frac{{\sum\ {x}_{{{i}}}}}{{{n}}}}=\ {\frac{{{2142}}}{{{39}}}}={54.9231}$$
$$\displaystyle\overline{{{y}}}=\ {\frac{{\sum\ {y}_{{{i}}}}}{{{n}}}}=\ {\frac{{{2747}}}{{{39}}}}={70.4359}$$ The estimate a of the intercept $$\displaystyle\alpha$$ is the average of y decreased by the product of the estimate of the slope and the average of x. $$\displaystyle{a}=\ \overline{{{y}}}\ -\ {b}\ \overline{{{x}}}={70.4359}\ -\ {1.1793}\ \cdot\ {54.9231}={5.6630}$$ General least-squares equation: $$\displaystyle\hat{{{y}}}=\ \alpha\ +\ \beta\ {x}$$. Replace $$\displaystyle\alpha$$ by $$\displaystyle{a}={5.6630}$$ and $$\displaystyle\beta$$ by $$\displaystyle{b}={1.1793}$$ in the general least-squares equation: $$\displaystyle{y}={a}\ +\ {b}{x}={5.6630}\ +\ {1.1793}{x}$$ d) There appear to be no outliers, because no points in the graph deviate strongly from the general pattern in the other points. There appear to be no influential observatioons, because all data values lie near the regression line. e) Not applicable, because we concluded that there are no potential outliers in part (d). f) Not applicable, because we concluded that there are no potential outliers in part (d).