Statistical Models - Theory and Practice

Chapter 2 - Observational Studies and Experiments

June 12, 2018



Set A

  1. In the Pearson-Lee data, the average height of the fathers was 67.7 inches; the SD was 2.74 inches. The average height of the sons was 68.7 inches; the SD was 2.81 inches. The correlation was 0.501. a. True or false and explain: because the sons average an inch taller than the fathers, if the father is 72 inches tall, it’s 50-50 whether the son is taller than 73 inches.

    Intuitively, no. The average son will be 68.7 inches and the correlation between fathers and sons is only 0.501. Formally, to calculate the probability a given son with father 72 inches, we need to somehow factor in both the average height of a given son, 68.7 inches, and the amount the father’s height impacts our predicted son height. To do this, we use our result from b to predict what the average son born to a father of height 72 inches would be:

    Therefore, the 50-50 son of a 72 inch tall father will be shorter than 73 inches by over two inches.

    b. Find the regression line of son’s height on father’s height, and its RMS error.

    Slope is , equal to 0.51379927007. The y-intercept is , equal to 33.9157894163. MSE is , equal to 5.9141710039. RMSE is , equal to 2.43.

  2. Can you determine a in equation 7 (Hooke’s Law regression equation) by measuring the length of the spring with no load? With one measurement? Ten measurements? Explain briefly.

    Yes, you can determine an value even with no, one, or ten measurements, but the fewer measurements you have, the less accurate your value will be. When you have 0 measurements, your value will equal delta whatever you have. When you have one measurement, your value will only be influenced by that one data point.

  3. Use the data in table 1 to find the MSE and the RMS error for the regression line predicting length from weight. Which statistic gives a better sense of how far the data are from the regression line? Hint: keep track of the units, plot the data, or both.

    RMSE is a better measure because it’s in the right units, cm.

  4. The correlation coefficient is a good descriptive statistic for one of the three diagrams below. Which one, and why?

    The correlation coefficient is a good descriptive statistic for the first plot because its points closely approximate a line. The other two graphs approximate a curve and two disjoint clusters respectively.

Set B

  1. In Equation (1), variance applies to data, or random variables? What about correlation in Equation (4)?

    In Equation (1), variance applies to data, as does the correlation coefficient in Equation (4).

  2. On page 22, below table 1, you will find the number 439.01. Is this a parameter or an estimate? What about the 0.05?

    Both are estimates.

  3. Find what the regression coefficient would be for the data in Table 1 if we didn’t have the 5th (last) item.

    To recap,

    So, our regression line is .

  4. In Example 1, is 900 square pounds the variance of a random variable or data?
    900 square pounds is the variance of data.

  5. In example 2, is 35/12 the variance of a random variable? of data? maybe both? Discuss briefly.

    35/12 is the variance of a random variable as it’s presented because it’s calculated based off of the individual probabilities of different rolls rather than the outcomes of 100 real rolls. That said, we expect the variance of 100 real rolls to be close to 35/12.

    Wrong: The correct answer is that 35/12 starts as the variance of data, a 6-item, monotonically increasing list. It becomes the variance of a random variable once the hypothetical situation shifts to being about rolling a dice where one of 1 through 6 will appear at random.

  6. A dice is rolled 180 times. Find the expected number of aces and the expected “give or take” of that number.

    Let be a random variable that represents the total number of aces.

    Hence, we expect 30 aces, give or take 5 when rolling a fair dice 180 times.

  7. A die is rolled 250 times. The fraction of time it lands ace will be around give or take or so.

    The fraction of times it lands ace, , will be .

    The variance of the fraction of times it lands ace is more complicated to calculate. Let our new random variable be .

    Because of the squared term within variance, every multiplicative factor for a variable’s “reward” gets squared when factored into variance, i.e. . Therefore,

    Hence, .

  8. One hundred draws are made at random with replacement from the box containing {1, 2, 2, 5}. The draws come out as follows: 17 “1”s, 54 “2”s, and 29 “5”s. Fill in the blanks.

    a. For the [blank], the observed value is .8 SEs above the expected value.

    Out of 100, we should expect 50 to be “2”s, 25 to be “1”s, and 25 to be “5”s. Hence, we can immediately eliminate “1” as an option.

    Let where is a random variable with value one for every roll that comes out as 2.

    Therefore, 54 “2”s is in fact .8 SEs above the expected value of 50 “2”s.

    b. For the [blank], the observed value is 1.33 SEs above the expected value. It’s either the number of “5”s drawn or the sum of the draws.

    Let where is a random variable representing the choice of a 5.

    Thus, the number of fives is less than 1 SE above the mean, meaning the sum of the draws must be 1.33 SEs above its expected value.

    Doing a quick estimation, the expected value of the sum of the draws is and the actual value is . The variance of the sum of the draws is 15, so the observed value is the expected value plus 1.33 times the SE.

  9. Equation (7) (the formula for sample mean) is a [blank].

    [blank] is “model”.

  10. In Equation (7), is a [blank], is a [blank], is a [blank], and is a blank. is a parameter, is a parameter, is a random variable, and is an observable.

    Wrong: I missed that and are observable parameters, is an unobservable random variable, and is an observable random variable.
    I still don’t totally understand what it means for to be un-observable.

  11. According to equation (7), the 439.00 in Table 1 is a [blank]. The observed value of a random variable.

  12. [Still need to transcribe.]

  13. A statistician has a sample, and is computing the sum of the squared deviations of the sample numbers from a number . The sum of the squared deviations will be smallest when is the [blank]. Fill in [blank] and explain.

    The sum of the squared deviation will be smallest when is the mean. Can be determined by plugging into the equation from exercise 12c.

… Last few exercises done on paper, will write up eventually.

Discussion, links, and tweets

I'm a software developer currently working at UberEats. I keep a low social media presence, but, if you enjoy what I have to say or want to rant at me, you should email me at If you're interested in what I'm currently programming, check out my Github. I occasionally rant on Twitter as well.