Skip to main content

Section 27.3 Investigation 5.12: Boys’ Heights

Exercises The Study

Suppose we have data on the height (in centimeters) of boys for 3 different random samples at ages 2, 3, 4. The data in hypoHt.txt are modeled after data from the Berkeley Guidance Study which monitored the height (and weight) of boys and girls born in Berkeley, California between January 1928 and June 1929.

1. Identify Variables.

Which is the explanatory variable and which is the response variable?
Solution.
Explanatory variable is age and the response variable is height.

2. Within vs Between Variability.

Do you expect the 2-year-old boys to all have the same height? Do you expect the 3-year-old boys to all have the same height? Do you expect the mean height of the 3-year-old boys to be the same as the mean height of the 2-year-old boys? Explain.
Solution.
We expect there to be variability in the boys’ heights within ages but we also expect a tendency for the 3 year old boys to be taller than the 2 year old boys in general.
The regression equation for these sample data turns out to be \(\hat{height} = 75.2 + 6.47\,age\text{,}\) with a correlation coefficient of \(r = 0.857\text{.}\)

3. No-Association Plausibility.

Is it possible that in the population of all Berkeley boys in the 1920s, there really is no linear relationship between age (2-4 years) and height, but that we obtained a correlation coefficient and sample slope coefficient this large just by random chance? Explain.
Solution.
It is possible that the sample slope differs from zero by chance.

4. Simulation Strategy.

Describe how we might investigate the likelihood of obtaining such sample statistics by chance alone, if there really were no association between age and height in the population.
Solution.
We could investigate what the lines look like when we choose random samples from a population where we know the population slope is equal to zero.
One way to determine whether our sample slope is significantly different from a conjectured value of the population slope is to assume a mathematical model.
To understand the most basic regression model, consider conditioning your data set on a particular value of \(x\text{.}\) For example, let’s look at the distribution of heights for each age group.
described in detail following the image
Build model section of the Multiple Variables applet with age in the Variables list, height in the Response box, and agecat in the Subset By box.

5. Compare the Three Distributions.

Compare the shape, center, and variability of the three distributions:
How would you describe the shape of each distribution?
Numerically, how do the means differ for the three distributions? Has the average height increased roughly the same amount each year?
Is the variability in the heights roughly the same for each age group?
Solution.
Example output
described in detail following the image
Stacked dotplots of height for ages 2, 3, and 4; each age group’s heights are roughly symmetric and shift to the right as age increases.
described in detail following the image
Applet Results panel showing histograms of height for age2, age3, and age4 with means 88.24, 94.30, and 101.18.
described in detail following the image
Show descriptive output: age4 n=40, mean=101.18, SD=2.95; age3 n=40, mean=94.30, SD=3.09; age2 n=40, mean=88.24, SD=2.83.
The distributions look roughly normal with similar variability but different centers. The means each differ by about 6.
The basic regression model specifies the following conditions:
  • The relationship between the mean (expected value) of the response variable and the explanatory variable is linear: \(E(Y \text{ at each } x) = \beta_0 + \beta_1 x\text{.}\)
  • The variability of the observations at each value of \(x\text{,}\) \(SD(Y \text{ at each } x)\text{,}\) is constant. We will refer to this constant value as \(\sigma\text{.}\) This means that the variability of the (conditional) response variable distributions does not depend on \(x\text{.}\)
  • The distribution of the response variable at each value of \(x\) is normal.
To determine whether this mathematical model is appropriate we will check for three things: linearity, equal variance, and normality.

6. Condition Assessment.

Do these conditions appear to be met for the Berkeley boys’ heights? Explain.
Solution.
These conditions do appear to be met for the Berkeley boys’ heights. We have a normal distribution at each \(x\) and the spread of each distribution is similar.

Discussion.

In the above example, checking the conditions was straight forward because we could easily examine the distribution of the heights at the 3 different values of \(x\text{.}\) When we don’t have many repeat values at each value of \(x\) we will need other ways to check these conditions. However, you should notice that the only thing that changes about the distribution of the response as we change \(x\) is the mean. So if we were to subtract the mean from each observation and pool these values together, then we should have one big distribution with mean 0, standard deviation equal to \(\sigma\text{,}\) and a normal shape.
described in detail following the image
Two diagrams. Left: a scatter of conditional distributions of the response variable at three values of the explanatory variable, each roughly normal, centered on the population regression line E(Y at x) = beta 0 plus beta 1 x. Right: the same three distributions after subtracting beta 0 plus beta 1 x, now all centered at a horizontal line at zero with common standard deviation sigma.
However we don’t know \(\beta_0\) and \(\beta_1\text{,}\) the population regression coefficients, but we have their least squares estimates. If we subtract the fitted values from each response value, these differences are simply the residuals from the least squares regression. So to check the technical conditions we will use residual plots.
  • The linearity condition is considered met if a plot of the residuals vs. the explanatory variable does not show any patterns such as curvature.
described in detail following the image
Scatterplot of residuals versus explanatory variable showing a random scatter of points with no curvature.
  • The equal variance condition is considered met if a plot of the residuals vs. the explanatory variable shows the similarly variability in residuals across the values of \(x\text{.}\)
described in detail following the image
Scatterplot of residuals versus explanatory variable with dashed horizontal bands showing similar spread in the residuals across the values of x.
  • The normality condition is considered met if a histogram and/or normal probability plot of the residuals look normal.
described in detail following the image
Histogram of residuals that is roughly symmetric and bell-shaped, centered at zero.
  • Another condition is that the observations are independent. We will usually appeal to the data being collected randomly or randomization being used. The main thing is to make sure there is not something like time dependence in the data.

7. Condition Summary.

Comment on whether you think each of these conditions is met for the Berkeley data.
Solution.
The residuals plots show data that satisfy these conditions nicely, and in this case we would consider the \(t\)-procedures from Investigation 5.10 to be valid.
described in detail following the image
Applet Show residuals output: histogram of residuals centered at mean = 0.00 with SE = 2.953 (df = 118), roughly normal in shape.
described in detail following the image
Plot of residuals versus predicted values showing three vertical bands of points, each centered around zero with similar spread.
You have attempted of activities on this page.