Lab 3 - Hypothesis testing for variance, proportion and goodness-of-fit
1 Welcome to Lab 3
Intended Learning Outcomes:
- Perform hypothesis test for various scenarios manually.
- Conduct a hypothesis test for the population variance in
Rwith a step-by-step guide.
1.1 A summary of the type of the hypothesis test and R commands used today
Test for population variance

The \(F\)-test can be implemented in R by using var.test:
ratio: the hypothesised ratio of the population variances of \(X\) and \(Y\), i.e. \(\frac{\sigma_X^2}{\sigma_Y^2}\) under \(H_0\)alternative: the type of alternative hypothesis, wheretwo.sidedcorresponds to \(\sigma_X^2 \neq \sigma_Y^2\),greatercorresponds to \(\sigma_X^2 > \sigma_Y^2\), andlesscorresponds to \(\sigma_X^2 < \sigma_Y^2\).conf.level: confidence level, which equals to \(1-\alpha\) (significance level).