
Statistical Hypotheses Tests – Notes
Hypothesis testing:
Hypothesis:
• Population parameter
• Population
• Hypothesised value of parameter
There are two kinds of hypotheses for a one sample t-test, the null hypothesis and the alternative
hypothesis. The alternative hypothesis assumes that some difference exists between the true mean
(μ) and the comparison value (m0), whereas the null hypothesis assumes that no difference exists.
The null: The true mean battery life of Buzzy phones is 72 hours.
The alternative: The true mean battery life of Buzzy phones is not 72 hours.
Use RStudio to calculate mean, then the test statistic. This tells us how many SD the sample mean is
from the hypothesised mean.
If the p-value is less than 0.05, the alternative is favoured. The more extreme the test statistic, the
smaller the p-value is.
If the p-value is greater than 0.05, then the null is valid.
Conclusion:
• Population parameter
• Population
• Whether the parameter is equal to the hypothesised value
• 'the evidence suggests that true average battery life of Buzzy phones is not 72 hours.
Check conditions:
• The sample is representative. 'Random sample' or assume it is.
• The sample mean is normally distributed. Sample size > 30.
If both conditions are satisfied, the conclusion can be trusted.
One sample t-test:
• Used with numerical data.
• Used with one sample observations.
• Determines whether the population mean is different from a hypothesised value.
Use to see if there is evidence that the claim is true.
Write the null and alternative hypotheses.
Test statistic = (sample mean - hypothesised mean)/SE
Sample mean= 251.33
Hypothesised mean = 250
SE= SD/(root of sample size) = 1.0496
T=Sample mean - hypothesised mean)/SE
T=(251.33-250)/1.0496