## A Complete Example

This section explains linear regression, from presenting the data to using scatter plots to identify the linear pattern. It then fits a linear model using least squares estimation and addresses statistical inferences on correlation coefficient and slope parameter.

### Exercises

The exercises in this section are unrelated to those in previous sections.

1. The data give the amount of silicofluoride in the water (mg/L) and the amount y of lead in the bloodstream (μg/dL) of ten children in various communities with and without municipal water. Perform a complete analysis of the data, in analogy with the discussion in this section (that is, make a scatter plot, do preliminary computations, find the least squares regression line, find , , and , and so on). In the hypothesis test use as the alternative hypothesis , and test at the 5% level of significance. Use confidence level 95% for the confidence interval for . Construct 95% confidence and predictions intervals at at the end.

#### Large Data Set Exercises

3. Large Data Sets 3 and 3A list the shoe sizes and heights of 174 customers entering a shoe store. The gender of the customer is not indicated in Large Data Set 3. However, men's and women's shoes are not measured on the same scale; for example, a size 8 shoe for men is not the same size as a size 8 shoe for women. Thus it would not be meaningful to apply regression analysis to Large Data Set 3. Nevertheless, compute the scatter diagrams, with shoe size as the independent variable and height as the dependent variable , for (i) just the data on men, (ii) just the data on women, and (iii) the full mixed data set with both men and women. Does the third, invalid scatter diagram look markedly different from the other two?

http://www.gone.2012books.lardbucket.org/sites/all/files/data3.xls

http://www.gone.2012books.lardbucket.org/sites/all/files/data3A.xls

5. Separate out from Large Data Set 3A just the data on women and do a complete analysis, with shoe size as the independent variable and height as the dependent variable . Use and whenever appropriate.

http://www.gone.2012books.lardbucket.org/sites/all/files/data3A.xls