





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Text Sections 9.4, 9. So far we have seen how to think rationally about conducting tests for the various aspects of a population that we care about. Since most people like to have a quick summary of a large data set (for example, what is the median selling price for a home in your neighborhood?) we like to be able to obtain useful information from our sample regarding population parameters such as the mean and the standard deviation.
At this point you should feel reasonably comfortable with our methodology for conducting a test (the 6 steps) and how to implement this methodology for several particular cases. In particular, you should know how to Conduct a test about the population mean 𝜇 when you have a large sample for reasonably shaped populations and when you have a small sample in the special case of a normal population. Remember that our class does not discuss small samples from non-nomral populations. If your population has a good deal of skew you need to think carefully about how to proceed.
Large sample statistic when testing 𝜇 : 𝑧 = 𝑥 −𝜎 𝜇 𝑛
Small sample statistic when testing 𝜇 : 𝑡 = 𝑥 −𝑠 𝜇 𝑛
You know how to conduct a test about a population proportion.
Statistic when testing 𝑝 : 𝑧 = 𝑝 −^ 𝑝 𝑝 1 − 𝑝 𝑛
When you have a question about whether two populations have the same mean and you obtain independent samples you know how to use the statistic
Small sample statistic when testing 𝜇 1 − 𝜇 2 : 𝑡 = 𝑥^1 − 𝑥^2 −^ 𝜇^1 − 𝜇^2 𝑠 12 𝑛 1 +^
If you have a question about whether two populations have the same mean and you obtain independent samples you can use the following statistic if your samples are both at least of size 30:
Large sample statistic when testing 𝜇 1 − 𝜇 2 : 𝑧 = 𝑥^1 − 𝑥^2 −^ 𝜇^1 − 𝜇^2 𝜎 12 𝑛 1 +^
So, what’s left to do? Your book tells you how to conduct tests concerning a population’s standard deviation, and how to compare standard deviations from two populations. In this introductory class we aren’t going to worry about that. You may want to compare proportions from two populations. For example, you might want to test whether men and women have high blood pressure at the same rates. In this case you would want to test whether 𝑝𝑚𝑒𝑛 = 𝑝𝑤𝑜𝑚𝑒𝑛 for example. You also might want to test for a difference in population means when your data come from samples which are not independent (for instance, to see whether an SAT preparation course adds value you could round up 40 highschoolers, give them the SAT, give them the course, then give them the SAT again. We’ll treat both of these topics below. Remember the 6 steps: State clearly what your variables are Compute a test statistic State the null and alternative hypotheses Find the 𝑝-value Decide upon a level of significance, 𝛼 Form a conclusion
Looking at the picture it certainly seems like high bottom concentration values correspond to high top concentration values, and the same for low values. These data clearly come in pairs. A clever way to treat this case is by taking that fact seriously. Instead of seeing 12 data points, see 6 differences. Bottom Water Top Water Differences 0.430 0.415 0. 0.266 0.238 0. 0.567 0.390 0. 0.531 0.410 0. 0.707 0.605 0. 0.716 0.609 0.
If you want to test whether there is a difference on average between the bottom concentrations and the top concentrations, test whether the average difference is equal to zero. We know how to do this when the population of differences is normal, and that is what we will assume here.
State clearly what your variables are Compute a test statistic State the null and alternative hypotheses Find the 𝑝-value Decide upon a level of significance, 𝛼 Form a conclusion
Here we are saying that the “difference of the averages 𝑥𝑏𝑜𝑡𝑡𝑜𝑚 − 𝑥𝑡𝑜𝑝 works out to the same number as the average of the differences 𝑥𝑑. The same holds true for the population means. We will take 𝑠𝑑 to be the standard deviation of the differences and the sample size 𝑛 to be the number of differences, 6. Remember how to compute a standard deviation for a set of numbers. We’ll use the “computing formula: 𝑫𝒊𝒇𝒇𝒆𝒓𝒆𝒏𝒄𝒆𝒔 𝑫𝒊𝒇𝒇𝒆𝒓𝒆𝒏𝒄𝒆𝒔𝟐 0.015 0. 0.028 0. 0.177 0. 0.121 0. 0.102 0. 0.107 0. 0.55 0.
So that
𝑥𝑑 = 0.55 6 = 0.
And then
𝑡 = 𝑥 −𝑠 𝜇 𝑛
Differences between Population Proportions It seems very natural to look at different populations and determine whether, for instance, high blood pressure is as common in men as it is in women. We already know how to handle tests in general. All we ever really need in a given situation is the proper statistic- everything else stays the same.
So, here’s the statistic. If we were to repeatedly form samples of women of size 𝑛𝑤𝑜𝑚𝑒𝑛 , find out how many of them have high blood pressure, 𝑟𝑤𝑜𝑚𝑒𝑛 and divide to get
𝑝𝑤𝑜𝑚𝑒𝑛 = (^) 𝑛𝑟𝑤𝑜𝑚𝑒𝑛 𝑤𝑜𝑚𝑒𝑛
And do the same for men
𝑝𝑚𝑒𝑛 = (^) 𝑛𝑟𝑚𝑒𝑛𝑚𝑒𝑛
And then considered the sampling distribution of the differences in the sample proportions (it’s a mouthful, but make sure you know what we are talking about) we would get roughly a normal distribution from the statistic
𝑧 = (^) 𝑝𝑝𝑤𝑜𝑚𝑒𝑛^ − 𝑝𝑚𝑒𝑛^ −^ 𝑝𝑤𝑜𝑚𝑒𝑛^ − 𝑝𝑚𝑒𝑛 𝑤𝑜𝑚𝑒𝑛 1 − 𝑝𝑤𝑜𝑚𝑒𝑛 𝑛𝑤𝑜𝑚𝑒𝑛 +^
as long as our sample sizes were decently large. Here’s an example to make this a bit more concrete.
An experiment was conducted to test the effect of a new drug on a viral infection. The infection was induced in 100 mice after which the mice were randomly split into two groups of 50. The first group (called the treatment group) received the drug. The second group (called the control group) received no treatment for the infection. After a 30 day period, the proportions of survivors, 𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡 and 𝑝𝑐𝑜𝑛𝑡𝑟𝑜𝑙 , in the two groups were found to be 𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡 = 0.60 and 𝑝𝑐𝑜𝑛𝑡𝑟𝑜𝑙 = 0.36. Test at the 𝛼 = 0.05 level of significance whether the proportion of survivors was higher in the treatment group.
Note: Try this yourself before looking at the solution.
Six Steps:
𝑧 = (^) 𝑝𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡^ − 𝑝𝑐𝑜𝑛𝑡𝑟𝑜𝑙^ −^ 𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡^ − 𝑝𝑐𝑜𝑛𝑡𝑟𝑜𝑙 𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡 𝑛 1 − 𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡 𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡 +^
Note that your textbook (pooled estimate, page 464) makes a valid point here. If we are trying to see whether the data are consistent with 𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡 = 𝑝𝑐𝑜𝑛𝑡𝑟𝑜𝑙 = 𝑝 then we should construct our statistic as if this is true. What’s the best way to estimate 𝑝? We would do this by taking the number of surviving mice and dividing by the number of mice participating. That is, estimate this common value as
𝑝 = (^) 𝑛𝑟^1 +^ 𝑟^2 1 +^ 𝑛 2
And then use
𝑧 = 𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡^ − 𝑝𝑐𝑜𝑛𝑡𝑟𝑜𝑙^ −^ 𝑝𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡^ − 𝑝𝑐𝑜𝑛𝑡𝑟𝑜𝑙 𝑝 1 − 𝑝 𝑛𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡 +^