AP Statistics Curriculum 2007 Infer BiVar
From Socr
Contents |
General Advance-Placement (AP) Statistics Curriculum - Comparing Two Variances
In the section on inference about the variance and the standard deviation we already learned how to do inference on either of these two population paparemters. Now we discuss the comparison of the variances (or standard deviations) using data randomly sampled from two different populations.
Background
Recall that the sample-variance (s^{2}) is an unbiased point estimate for the population variance σ^{2}, and similarly, the sample-standard-deviation (s) is a point estimate for the population-standard-deviation σ.
The sample-variance is roughly Chi-square distributed:
Comparing Two Variances (?)
Suppose we study two populations which are approximately Normally distributed, and we take a random sample from each population, {} and {}. Recall that and have and distributions. We are interested in assessing vs. , where s_{1} and σ_{1}, and s_{2} and σ_{2} and the sample and the population standard deviations for the two populations/samples, respectively.
Notice that the Chi-square distribution is not symmetric (it is positively skewed). You can visualize the Chi-Square distribution and compute all critical values either using the SOCR Chi-Square Distribution or using the SOCR Chi-square distribution calculator.
The Fisher's F distribution, and the corresponding F-test, is used to test if the variances of two populations are equal. Depending on the alternative hypothesis, we can use either a two-tailed test or a one-tailed test. The two-tailed version tests against an alternative that the standard deviations are not equal (). The one-tailed version only tests in one direction ( or ). The choice is determined by the study design before any data is analyzed. For example, if a modification to an existent medical treatment is proposed, we may only be interested in knowing if the new treatment is more consistent and less variable than the established medical intervention.
- Test Statistic:
The higher the deviation of this ratio away from 1, the stronger the evidence for unequal population variances.
- Inference: Suppose we test at significance level α = 0.05. Then the hypothesis that the two standard deviations are equal is rejected if the test statistics is outside this interval
- : If F_{o} > F(α,df_{1} = n_{1} − 1,df_{2} = n_{2} − 1)
- : If F_{o} < F(1 − α,df_{1} = n_{1} − 1,df_{2} = n_{2} − 1)
- : If F_{o} < F(1 − α / 2,df_{1} = n_{1} − 1,df_{2} = n_{2} − 1) or F_{o} > F(α / 2,df_{1} = n_{1} − 1,df_{2} = n_{2} − 1),
where F(α,df_{1} = n_{1} − 1,df_{2} = n_{2} − 1) is the critical value of the F distribution with degrees of freedom for the numerator and denominator, df_{1} = n_{1} − 1,df_{2} = n_{2} − 1, respectively.
In the image below the left and right critical regions are white with F(α,df_{1} = n_{1} − 1,df_{2} = n_{2} − 1) and F(1 − α,df_{1} = n_{1} − 1,df_{2} = n_{2} − 1) representing the lower and upper, respectively, critical values. In this example of F(df_{1} = 12,df_{2} = 15), the left and right critical values at α / 2 = 0.025 are F(α / 2 = 0.025,df_{1} = 9,df_{2} = 14) = 0.314744 and F(1 − α / 2 = 0.975,df_{1} = 9,df_{2} = 14) = 2.96327, respectively.
Comparing Two Standard Deviations (σ_{1} = σ_{2}?)
As the standard deviation is just the square root of the variance (), we do significance testing for the standard deviation analogously.
For Normally distributed random variables, given H_{o}:σ = σ_{o} vs. , then has a distribution, where s^{2} is the square of the sample standard deviation.
Hands-on activities
- Formulate appropriate hypotheses and assess the significance of the evidence to reject the null hypothesis for the population standard deviation (σ) assuming the observations below represent a random sample from the liquid content (in fluid ounces) of 16 beverage cans and can be considered as Normally distributed. Use a 90% level of confidence (α = 0.1).
14.816 | 14.863 | 14.814 | 14.998 | 14.965 | 14.824 | 14.884 | 14.838 | 14.916 | 15.021 | 14.874 | 14.856 | 14.860 | 14.772 | 14.980 | 14.919 |
- Hypotheses: H_{o}:σ = 0.06(σ_{o}) vs. .
- Get the sample statistics from SOCR Charts (e.g., Index Plot); Sample-Mean=14.8875; Sample-SD=0.072700298, Sample-Var=0.005285333.
- Identify the degrees of freedom (df = n − 1 = 15).
- Test Statistics:
- Significance Inference:
- P-value=. This p-value does not indicate strong evidence in the data to reject a possible population standard deviation of 0.06.
More examples
- You randomly select and measure the contents of 15 bottles of cough syrup. The results (in fluid ounces) are shown. Formulate and test hypotheses about the standard deviation (σ_{o} = 0.025) assuming the contents of these cough syrup bottles are Normally distributed. Is there data-driven evidence suggesting that the standard-deviation of the fluids in the bottles is not at an acceptable level?
4.211 | 4.246 | 4.269 | 4.241 | 4.260 | 4.293 | 4.189 | 4.248 | 4.220 | 4.239 | 4.253 | 4.209 | 4.300 | 4.256 | 4.290 |
- The gray whale has the longest annual migration distance of any mammal. Gray whales leave Baja, California, and western Mexico in the spring, migrating to the Bering and Chukchi seas for the summer months. Tracking a sample of 50 whales for a year provided a sample mean migration distance of 11,064 miles with a standard deviation of 860 miles. Assume that the population of migration distances is Normally distributed to formulate and test hypotheses for the population standard deviation (σ_{o} = 500).
- Use the hot-dogs dataset to formulate and test hypotheses about the population standard deviation of the sodium content in the poultry hot-dogs (σ_{o} = 70).
References
- TBD
- SOCR Home page: http://www.socr.ucla.edu
Translate this page: