A.9 Answer: TW 9 tutorial

Answers for Sect. 9.2

Answers implied by H5P.

Null hypotheses:

  • Is the mean length of a \(12\)-inch sub really \(12\) inches? \(\mu = 12\)
  • Is the mean length of a \(12\)-inch sub different for white and wholemeal subs? \(\mu_{\text{white}} = \mu_{\text{wholemeal}}\)
  • Is the proportion of \(12\)-inch subs shorter than \(12\) inches different for white, wholemeal subs? \(p_{\text{white}} = p_{\text{wholemeal}}\)
  • Is the mean length of a \(12\)-inch sub longer for white (compared to wholemeal) subs? \(\mu_{\text{white}} = \mu_{\text{wholemeal}}\)

Alternative hypotheses:

  • Is the mean length of a \(12\)-inch sub really \(12\) inches? \(\mu \ne 12\)
  • Is the mean length of a \(12\)-inch sub different for white and wholemeal subs? \(\mu_{\text{white}} \ne \mu_{\text{wholemeal}}\)
  • Is the proportion of \(12\)-inch subs shorter than \(12\) inches different for white, wholemeal subs? \(p_{\text{white}} \ne p_{\text{wholemeal}}\)
  • Is the mean length of a \(12\)-inch sub longer for white (compared to wholemeal) subs? \(\mu_{\text{white}} > \mu_{\text{wholemeal}}\)

Answers for Sect. 9.3

  1. Repeated-measures: Every subject has two TWMT recorded.
  2. \(\mu_d\) is the mean difference in the target population; \(\bar{d}\) is the mean difference in this sample.
  3. Each measurement is measured after and before on the same subject.
  4. \(32\); \(12\); \(24\); \(30\); \(8\); \(14\); \(14\); \(28\); \(38\); \(49\). (Differences in the other direction are also acceptable; it just changes the signs of these differences and so on. Importantly, the direction should be stated somewhere.)
  5. It makes more sense to define directions this way, so that the difference is the increase in 2MWT.
  6. \(\bar{d} = 24.9\); \(s_d=13.03372\).
  7. \(\text{s.e.}(\bar{d}) = s_d/\sqrt{n} = 13.03372/\sqrt{10} = 4.121623\).
  8. This is the standard deviation of the sample mean difference, a measurement of how precisely the sample mean difference measures the population mean difference.
  9. Almost impossible. Sample means vary every time we take a sample around the true mean difference, with a normal distribution with standard error \(4.12\). Since we don't know \(\mu\), the best we can say is that the sample mean will vary about our best guess of the population mean; in other words, the sample means vary around \(24.9\) with a standard deviation of about \(4.12\).
  10. Normal; mean \(\mu\), std deviation is the standard error of \(4.121\).
  11. \(24.9\pm (2\times 4.121623)\), or \(24.9\pm 8.243246\), or from \(16.65675\) to \(33.143245\)m.
  12. \(H_0\): \(\mu_d = 0\), differences defined as 'with' minus 'without'. \(H_1\): \(\mu_d > 0\) the way I defined differences.
  13. \(t = 6.041\) and since \(t\) is very large, expect \(P\) to be very small.
  14. The differences have just been defined in the opposite directions. (Notice the \(P\)-values are the same.)
  15. Very strong evidence exists in the sample (paired \(t = 6.041\); one-tailed \(P\) less than \(0.0005\)) that the population mean 2MWT are higher after receiving the implant compared to without the implant (mean difference: \(24.9\)m higher after receiving the implant; standard deviation: \(13.034\) m; \(95\)% CI from \(15.58\) to \(34.224\)m).
  16. The population of differences has a normal distribution, and/or \(n > 25\) or so.
  17. Since \(n < 25\), must assume the population of differences has a normal distribution. The histogram suggests this is not unreasonable.

Answers for Sect. 9.5

  1. The two groups are different rats.

  2. The parameter of interest is the difference between the population mean lifetimes, say \(\mu_R - \mu_F\).

  3. Table not shown.

  4. The \(95\)% CI is the bottom one: from \(223.34\) to \(346.13\) days.

  5. The best of these is Option (e)... but in practice, we usually think about CIs in terms of Option (d) so Option (d) is fine.

  6. The CI explanation can be improved by (i) indicating which diet leads to larger average lifetimes; and (ii) providing sample summary info. Here is a better answer:

    "The \(95\)% confidence interval for the difference between the populations mean lifetimes of rats on the restricted diet (sample mean: \(968.8\) days; std dev: \(284.6\) days) and on the free-eating diet (\(684.0\) days; std dev: \(134.1\) days) is that rats on a restricted diet live between \(223.34\) and \(346.13\) days longer."

  7. Boxplots: shows the variation in the lifetimes of individual rats. Error bar chart: displays the variation that the sample means would be expected to show from sample to sample.

  8. The null hypothesis is that there is no difference in the mean lifetimes of the two groups of rats. In symbols (where \(\mu\) represents the mean lifetime in the population):

    \(H_0\): \(\mu_R = \mu_{FE}\); and \(H_1\): \(\mu_R > \mu_{FE}\); one-tailed, because of the RQ.

  9. Either sampling variation explain the difference, or the diets really are different.

  10. Use the not-equal variance (Welch's test) row: \(t = 9.161\); one-tailed \(P < 0.0005\) (test is one-tailed).

  11. \(t = (284.73 - 0/31.08 = 9.16\), as per output.

  12. The evidence contradicts \(H_0\). Very strong evidence exists in the sample (\(t = 9.161\) for two independent samples; \(\text{df} = 154.94\); one-tailed \(P < 0.0005\)) that the population mean lifetime of rats on a restricted diet (mean lifetime: 968.75 days; std. dev.: \(284.6\)) is greater than rats on a free-eating diet (\(684.01\) days; \(134.1\)) (\(95\)% CI for the difference from \(223.3\) to \(346.1\) days).

  13. The the sample means have a normal distribution. Since both sample sizes are greater than \(24\), this is true. The Figure suggests not very severe non-normality.

  14. Rats from the same litter are likely to be similar to each other. The litter would probably be the unit of analysis then, not the individual rat.

Answers for Sect. 9.6.1

  1. Before and after measurement on same runner.
  2. Each plasma \(\beta\) measurement is measured after and before on the same runner.
  3. No shown.
  4. \(\bar{d} = 18.736\); \(s_d = 8.3297\)
  5. \(\text{s.e.}(\bar{d}) = s_d/\sqrt{n} = 8.3297/\sqrt{11} = 2.5115\).
  6. Almost impossible. The sample means would vary every time we took a sample, around the true mean difference with a normal distribution having a standard error of about \(2.51\). Since we don't know the population mean, the best we can say is that the sample mean will vary about our best guess of the population mean. In other words, the sample means will vary around \(8.33\) with a standard deviation of about \(2.51\).
  7. \(18.736\pm (2\times 2.5115)\), or \(18.736\pm5.023\), or from \(13.7\) to \(23.8\) pmol/litre.
  8. \(H_0\): \(\mu_d = 0\), differences defined as 'after' minus 'before'. \(H_1\): \(\mu_d > 0\) the way I defined the differences.
    We are explicitly seeking to test for an increase, so the test is one-tailed. (Diffs in the other direction are also OK; the signs of the differences and some other subsequent things change.)
  9. \(t = 7.46\) and \(\text{df} = 11 - 1 = 10\). Since \(t\) is very large, expect \(P\) to be very small.
  10. Very strong evidence exists in the sample (paired \(t = 7.46\); \(\text{df} = 10\); one-tailed \(P\) less than \(0.0005\)) that the population mean \(\beta\) plasma concentrations are higher after the race compared to before the race (mean difference: \(18.73\) pmol/litre higher after the race; std. dev.: \(8.33\) pmol/litre; \(95\)% CI from \(13.14\) to \(24.33\) pmol/litre).
  11. The population of differences has a normal distribution, and/or \(n > 25\) or so.
  12. Since \(n < 25\), must assume the population of differences has a normal distribution. The histogram suggests this is not unreasonable.

Answers for Sect. 9.6.2

  1. Because each method is used in each sea state.
  2. \(\bar{d} = 0.06167\); \(s_d = 0.2901\). The mean difference is positive: Method 1 measurements slightly higher (on average) than Method 2.
  3. \(\text{s.e.}({\bar{d}}) = s_d/\sqrt{n} = 0.2901/\sqrt{18} = 0.0684\). \(\text{s.e.}({\bar{d}})\) measures the precision with which the sample mean difference estimates the population mean difference.
  4. \(0.06167\pm(2\times 0.0684)\), which is \(0.06167 \pm 0.137\), or from \(-0.075\) to \(0.199\) Newton--metres.
  5. \(t = 0.9016\), sp \(P\)-value large: no evidence of difference.
  6. Since \(n < 25s\), we require that the differences in the population have a normal distribution.
  7. The stem-and-leaf plot of the sample doesn't suggest the population is non-normal; probably OK.

Answers for Sect. 9.6.3

  1. Observational.
  2. Relational.
  3. Two completely different groups of pizzas (stores) are compared.
  4. \(-0.774\) to \(-0.560\) inches (differences are Dominos less Eagle Boys).
  5. From output, \(t = -14.6\) and \(P < 0.001\): very strong evidence of a difference.
  6. Since the sample sizes are large (both \(125\)), we do not require that the populations have normal distributions.
  7. The sample sizes are large (\(n = 125\) in each), so we don't need the populations to be normally distributed; we don't need the histogram.
  8. Probably true. Amount of topping on the pizza? Which tastes better? Whether the samples were randomly selected or not? Are sizes before of after cooking?

Answers for Sect. 9.6.4

  1. \(H_0\): \(\mu_E = \mu_U\) (that is, the means are the same in the two populations) and \(H_1\): \(\mu_E\ne\mu_U\), which can also be expressed in words. Two-tailed.
  2. The precision with which the sample mean battery life estimate the population mean battery life.
  3. Use the second row (though it matters little here): \(t = -0.486\); \(\text{df} = 13.1\) and \(P = 0.635\).
  4. The sample presents no evidence (\(t = -0.486\); \(\text{df} = 13.0\) and \(P = 0.635\)) of a difference in the mean lifetimes (mean difference: \(-0.0544\); s.e.: \(0.112\)) of the batteries in the population. (\(95\)% CI for the difference from \(-0.30\) to \(0.19\)mins in favour of Ultracell.)
  5. Both population have a normal distribution, and/or \(n > 25\) or so.
  6. Since \(n < 25\) for both samples, we must assume the populations both have a normal distribution. Stem-and-leaf plots aren't convincing (possible outliers) but the samples are too small to know anything for sure.

Answer for Sect. 9.6.5

The sample sizes are both much larger than \(25\), so neither sample needs to be normally distributed for statistical validity: the sample means will have an approximate normal distribution. None of the graphs are needed.