2018-10-24
e.g. Question: Published data suggests that the failure rate for a particular piece of equipment from a supplier is 2.1%
A research facility want to know if this holds true in their own lab?
Tails: two-tailed
Either reject or do not reject the null hypothesis -
Month Monthly.failure.rate 1 January 2.90 2 February 2.99 3 March 2.48 4 April 1.48 5 May 2.71 6 June 4.17 7 July 3.74 8 August 3.04 9 September 1.23 10 October 2.72 11 November 3.23 12 December 3.40
mean = \((2.9 + \dots + 3.40) / 12\) = 2.841
Standard deviation = 0.837
Hypothesised Mean = 2.1
Test statistic: \[t_{n-1} = t_{11} = \frac{\bar{x} - \mu_0} {s.d. / \sqrt{n}} = \frac{2.84 - 2.10}{s.e.(\bar{x})} = \]3.065
Test statistic: \[t_{n-1} = t_{11} = \frac{\bar{x} - \mu_0} {s.d. / \sqrt{n}} = \frac{2.84 - 2.10}{s.e.(\bar{x})} = \]3.065
df = 11 P = 0.01
Reject \(H_0\) - Evidence that mean monthly failure rate \(\ne\) 2.1%
e.g. research question: 40 male mice (20 of breed A and 20 of breed B) were weighed at 4 weeks old
Does the weight of 4-week old male mice depend on breed?
\(t_{df} = \frac{\bar{X_A} - \bar{X_B}}{s.e.(\bar{X_A} - \bar{X_B})}\) = -1.21
df = 29.78 (with Welch's correction)
P-value: 0.24
Do not reject \(H_0\)
(No evidence that mean weight of breed A \(\ne\) mean weight of breed B)
\(t_{n-1} = t_{19} = \frac{\bar{X_{A-B}}}{s.e.(\bar{X_{A-B}})} =\) 3.66
df = 19
P-value: 0.002
Reject \(H_0\) (evidence that cellularity at Site A \(\ne\) site B)
Turn scientific question to null and alternative hypothesis
Think about test assumptions
Calculate summary statistics
Carry out t-test if appropriate