A.8 Answer: TW 8 tutorial

Answers for Sect. 8.2

Answers implied by H5P.

  1. The decision-making process begins with making an assumption about the population parameter. This means we know what to expect from the sample statistic. We never know exactly what value of the statistic we will see in the sample, because of sampling variation. But we can have some of idea of what values are reasonable to expect. Then we take the sample (that is, we make the observations). Then we compare the sample statistic that we observed... to the sample statistic we expected. If what we observe is inconsistent with what was expected, then the the assumption is unlikely to be true. However, if what we observe is consistent with what was expected, then the the assumption is probably true.

Answers for Sect. 8.3

\(H_0\): \(p = 0.3\) and \(H_1\): \(p > 0.3\). Here, \(n = 35\) and \(\hat{p} = 12/35 = 0.3428571\). Then,
\[ \text{s.e.}(\hat{p}) = \sqrt{\frac{0.3 \times 0.7}{35}} = 0.07745967, \] (make sure to use \(p\) not \(\hat{p}\) in the standard error calculation for the test!), and so
\[ z = \frac{0.3428571 - 0.3}{0.07745967} = 0.553. \] This is very small---less than one standard deviation from the mean---so the \(P\)-value will be quite large:

'The data present no evidence (\(z = 0.55\); \(P\) large) that computer programmers are more likely to wear contact lenses (\(\hat{p} = 0.342\); approx. \(95\)% CI from \(0.182\) to \(0.503\)).'

For statistical validity, we require that the number of people with and without contact lenses to be at least \(5\), which is true (\(12\) and \(23\) respectively). For external validity, the sample must be a random sample of Swedish programmers.

(For the CI, remember to use \(\hat{p}\) in the standard error calculation: \(\text{s.e.}(\hat{p}) = 0.0802329\).)

Answers for Sect. 8.4

  1. The parameter of interest is the population mean pizza diameter, say \(\mu\).

  2. From the output: \(\bar{x} = 11.486\) inches and \(s = 0.247\) inches.

  3. Use \(\text{s.e.}(\bar{x}) = s/\sqrt{n} = 0.247/\sqrt{125} = 0.02205479\) inches.

  4. \(s\) tells us the variation in diameter from pizza to pizza. \(\text{s.e.}(\bar{x})\) tells us how much the sample mean is likely to vary from sample to sample, in sample of size \(125\).

  5. The hypotheses are:

    \(H_0\): The mean diameter is \(12\) inches; or \(\mu = 12\).
    \(H_1\): The mean diameter is not \(12\) inches; or \(\mu \ne 12\)

  6. Two-tailed, because the RQ asks if the diameter is \(12\) inches, or not.

  7. The normal distribution has a mean of \(12\), and a standard deviation of \(\text{s.e.}(\bar{x}) = 0.02205\).

  8. \(t = (11.486-12)/0.02205 = -23.3\).

  9. The \(t\)-value is huge (and negative), so the \(P\)-value is very small. (Two-tailed \(P<0.001\) from the table or from software.)

  10. Very strong evidence exists in the sample (\(t = -23.3\); \(\text{df} = 124\); two-tailed \(P\) less than \(0.001\)) that the population mean pizza diameter of pizzas from Eagle Boys' is less than \(12\) inches (sample mean diameter: \(11.49\) inches; std. dev.: \(0.246\); \(95\)% CI from \(11.44\) to \(11.53\) inches; approximate 95% CI is \(11.486\pm 0.0441\)).

  11. Since \(n\) is much larger than \(25\), we do not require that the population has a normal distribution, just that the population is not grossly non-normal; the sample means will still have an approximate normal distribution.

  12. Very unlikely!

Answers for Sect. 8.5

Use the \(68\)--\(95\)--\(99.7\) rule to approximate the \(P\)-values:

Less than \(0.05\); Greater than \(0.05\); Less than \(0.003\); Greater than \(0.05\); Greater than \(0.05\); Very small.