





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!






Nancy Pfenning Stats 1000
Recall: If the underlying population variable X is normal with mean μ, standard deviation σ, then for a random sample of size n, the random variable X¯ is normal with mean μ, standard deviation √σn. We used
this fact to transform X¯ to a standard normal random variable Z, and solved for probabilities with normal tables: Z = X¯−μ σ/√n is normal with mean 0, standard deviation 1.^ [Note that the spread of^ Z^ is always 1, regardless of sample size n.] In situations involving a large sample size n, sample standard deviation s is approximately equal to σ,
and we can treat X¯−μ s/√n as (approximately) a standard normal variable^ Z. If sample size n is small, s may be quite different from σ, and the random variable which we call t = X¯−μ s/√n does not follow a standard normal distribution. Because of subtracting the expected value of X¯ (that is, μ)
from X¯ in the numerator, the distribution of t = X¯−μ s/√n is (like^ Z) centered at zero and symmetric. Because of dividing by s/
n (which is not the standard deviation of (^) X¯), the standard deviation of t is not fixed at 1 as it is for Z. Sample standard deviation s contains less information than σ, so the spread of t is greater than that of Z, especially for small sample sizes n. Since s approaches σ as sample size n increases, the t distribution approaches the standard normal Z distribution as n increases. Thus, the spread of sample mean standardized using s instead of σ depends on the sample size n. We say the distribution has n − 1 “degrees of freedom”, abbreviated df. Since there are many different t distributions—one for each df —it would take too much space to provide tables for each of them in as much detail as was provided for the standard normal z in Table A.1. Instead, t tables are condensed to provide minimal adequate information needed to state useful results.
Statistical inference is the process of inferring something about a larger group (the population) by analyzing data for a part of that group (the sample). There are two general forms of statements we make using statistical inference: (1) confidence intervals; and (2) significance tests. We use these forms of inference in order to answer questions about (a) population proportion p [for categorical data] or (b) the population mean μ [for quantitative data]. [In addition, we can use significance tests to answer questions about relationships between two variables, such as the chi-square test of a relationship between two categorical variables. The chi-square statistic
chi-square = sum of all (observed−expected)
2 expected is another standardized statistic that follows a known pattern with values and probabilities that can be summarized in a table.]
(a) (for p) In May, 2000, .56 of 1,012 respondents to an Associated Press survey supported gays’ rights to inherit from their partners. What interval should contain the proportion of all Americans who support gays’ rights to inherit? How confident can we be that this interval contains the true proportion p? (b) (for μ) A random sample of 25 laboratory mice from a large colony was found to have mean weight 33 grams and standard deviation 5 grams. Within what interval does mean weight for all colony mice lie? How confident can we be about the correctness of this interval?
(a) (for p) In May, 2000, .56 of 1,012 respondents to an Associated Press survey supported gays’ rights to inherit from their partners. Can we conclude that a majority of the population support gays’ rights to inherit?
(b) (for μ) Researchers are going under the assumption that their lab mice weigh an average of 30 grams, but an assistant feels they actually weigh more. She takes an SRS of 25 mice and finds their mean weight to be 33 grams. [Somehow it is known that weights of all mice in the lab vary normally with standard deviation 5 grams.] If the mean weight were really only 30 grams, how unlikely would it be to get a sample of 25 whose mean weight is as high as 33 grams?
The laws of probability will enable us to answer such questions with precision. But these laws are inapplicable and useless if our data have not been produced correctly. [For example, maybe the lab assistant’s selection was biased towards slower, heavier mice, or maybe it was biased towards smaller, cuter mice.] The sample must be chosen at random in such a way that it serves as an adequate representative of the entire population. The reliability of our conclusions still depends on conscientious adherence to the basic principles of statistical design presented in Chapters 3 and 4.
Recall: our Rules for Sample Proportions stated that if numerous samples or repetitions of the same size are taken, sample proportion ˆ√ p has mean p, the true proportion for the population, standard deviation p(1−p) n , and a shape that is approximately normal as long as^ np^ ≥^ 10 and^ n(1^ −^ p)^ ≥^ 10.^ Because of approximate normality, we can invoke the Empirical Rule: it tells us that the approximate probability is
.68 that ˆp falls within
p(1−p) n of^ p; .95 that ˆp falls within 2
p(1−p) n of^ p; .997 that ˆp falls within 3
p(1−p) n of^ p. If ˆp falls within
p(1−p) n of^ p, then^ p^ must fall within
p(1−p) n of ˆp! Similarly, if ˆp^ falls within 2
p(1−p) n
of p, then p must fall within 2
p(1−p) n of ˆp, etc. But p is not a random variable like ˆp: its value is not a “numerical outcome of a random phenomenon”, but fixed and unchanging (even if we don’t happen to know what it is). Thus, we cannot talk about the “probability” of p lying in a certain interval. Instead, if we take a sample of size n from a population and record the sample proportion ˆp in the category of interest, we can be
approximately “68% confident” that the interval ˆp ±
p(1−p) n contains the unknown population proportion p.
Notice that the standard deviation of ˆp is
p(1−p) n. Since^ p^ is unknown, this standard deviation cannot be known either, so we estimate it by substituting ˆp for p: the standard error of ˆp is
s.e.(ˆp) =
pˆ(1 − pˆ) n
[In general, standard error is calculated from the sample as an estimate for population standard deviation.] Now, combining the Empirical Rule with the language of confidence and the standard error approxima- tion, we say we are approximately
68% confident that p is in the interval pˆ ±
pˆ(1− pˆ) n ; 95% confident that p is in the interval pˆ ± 2
ˆp(1− pˆ) n ; 99.7% confident that p is in the interval pˆ ± 3
pˆ(1− ˆp) n. The 95% confidence interval is by far the one most commonly seen. When news reports refer to the “margin of error”, they mean the give-or-take around the estimate that results in an interval that captures
the unknown parameter with a 95% success rate in the long run, namely 2
ˆp(1− pˆ) n.
Example
1000 husbands and wives were surveyed about the secrets they kept from their spouses; the most common secret, admitted by 48% of the 40% who said they kept secrets (that is, by 19% of the original 1000), was not telling their spouses about the real price of something they bought.
(Notice that the margin of error is smaller this way than it is when we use the easier, more conservative formula √^1 n , because .19 is rather far from .5.) Unfortunately, the level of precision obtained from the Empirical Rule is not always adequate for our purposes, and so we turn now to normal tables to understand how to obtain a higher level of precision. In fact, 95% probability of being within a certain distance of the mean corresponds to left and right tail areas of .0250, which correspond to z not quite 2, but 1.96. The margin of error for 95% confidence is not quite 2
.19(.81) 1000 =^ .0248 but
.19(.81) 1000 =^ .0243.
= P (− 2. 576 < (^) s.e.pˆ−( ˆpp) < +2.576) = P (− 2 .576(s.e.(ˆp)) < pˆ − p < +2.576(s.e.(ˆp)) = P (p − 2 .576(s.e.(ˆp)) < p < pˆ + 2.576(s.e.(ˆp))
so .99 is the probability that ˆp lies within 2.576(s.e.(ˆp)) of p, so we are 99% confident that the interval ˆp ± 2 .576(s.e.(ˆp)) contains p, i.e. that p is in the interval
.19(.81) 1000 =^.^19 ±^ .02 = (.^17 , .21) Note the tradeoff: we have a higher rate of confidence for a wider, less precise interval, and a lower rate of confidence for a narrower, more precise interval.
In general, a level C confidence interval for any parameter is an interval computed from sample data by a method that has probability C of producing an interval that contains the true value of the parameter. For now (Chapter 10), the parameter of interest is p; in Chapter 12 it will be μ or other parameters involving population mean. We want to say our confidence level is C that the actual proportion p lies in a certain interval, in other words that p lies within a certain distance of ˆp, in other words that p lies in the interval estimate ± margin of error where the estimate is ˆp, and the margin of error depends on confidence C. C equals a probability, associated with a standard normal value z∗. First note that if C is the area under the standard normal curve between −z∗^ and +z∗, then the regions to the left of −z∗^ and to the right of +z∗^ each have area 1 − 2 C. We call z∗^ with probability 1 − 2 C lying to the right under the standard normal curve the multiplier that accompanies the confidence level C. The “infinite” row of Table A.2 provides z∗^ values for the four most common confidence levels C:
For a given C, the approximate margin of error is z∗
ˆp(1− pˆ) n. Conditions: The interval ˆp±z∗
pˆ(1− ˆp) n is approximately correct as long as the population is at least ten times the sample, and npˆ and n(1− pˆ) are both at least 10. The former guarantees approximate independence of selections; if they were dependent, the standard deviation would change. The latter simply requires a check that there have been at least ten each of “successes” and “failures” observed. In general
Example
An article reported that in a random sample of 244 doctors, 184 said they would object to the sale of human organs for transplants. Obtain a 90% confidence interval for the proportion p of all doctors objecting to such sales.
First we find ˆp = 184244 = .754. For C=.90, z∗^ = 1.645. s.e.(ˆp) =
.754(.246) 244 =^ .0276.^ A 90% confidence interval for p is. 754 ± 1 .645(.0276) =. 754 ±. 045 ≈ (. 71 , .80). We are 90% confident that between 71% and 80% of all doctors object to the sale of human organs for transplant. Caution: the margin of error accounts for random sampling error only; it does not include bias which may result from the selection process, the wording of questions, etc.
Sometimes, before the sample has been taken, we have in mind a particular margin of error that we would like to report in our confidence interval. It is easy enough to take our expression for a conservative margin of error m = √^1 n and turn it around to solve for n in terms of m:
n =
m^2
because we built the interval around ˆp! Remember that setting up a confidence interval is a form of statistical inference, a process whereby we use statistics to draw conclusions about parameters, and so we need to be making a statement about p, not ˆp.
Picture 100 students each selecting a random sample of 75 M&Ms from a large bowlful and setting up a 95% confidence interval for the proportion p of all M&Ms that are blue. Roughly 95% of those 100 intervals, that is, 95 of the intervals, should contain p. Now imagine the students each randomly selected 75 M&Ms from a huge barrelful instead of a bowlful. Would their confidence intervals be any more or less accurate? No: population size does not enter into our calculations. It is irrelevant as long as it is at least ten times the sample size, and as long as the samples are selected at random.
Example
In a group of 371 college students, 196 wore some type of corrective lenses.
Example
In a group of 371 college students, 128 wore contact lenses.
Example
32 /233 = .137 of the 233 females in a group of college students wore glasses whereas 36/138 =. 261 of the 138 males wore glasses. Compare the confidence intervals for population proportions of females and of males wearing glasses in order to decide if these population proportions could be equal.
For the females, a 95% confidence interval for p is. 137 ± 2
.137(.863) 233 =^.^137 ±^ .045 = (.^092 , .182).
For the males, a 95% confidence interval for p is. 261 ± 2
.261(.739) 138 =^.^261 ±^ .075 = (.^186 , .336) The males’ interval for p is higher than that of the females’, to the point where the intervals share no overlap. It seems doubtful that the proportion of all males wearing glasses is the same as the proportion of all females wearing glasses.
Example
A 95% confidence interval for the proportion of female students smoking is (. 081 , .167) and a 95% confidence interval for the proportion of male students smoking is (. 062 , .170). Is it reasonable to assume that the proportion smoking is the same for females and males? Yes, because the intervals do overlap.
Remember that we set up a confidence interval, based on sample data, in order to draw conclusions about the larger population from which the sample was obtained. Confidence intervals are not appropriate if there is no larger group being represented by the sample.
Example
In 2000, 1238928 ,,^000000 = .75 of all bachelor’s degrees were earned by whites. Construct a 95% confidence interval for the proportion of all bachelor’s degrees earned by whites. There is no need to construct a confidence interval, because the given proportion already describes the population.
In the preceding examples, we examined confidence intervals for popuation proportion in order to get a feel for whether or not the population proportion could take a hypothetical value. Because this type of conclusion, in the form of a yes-or-no decision, is often quite important, we will now take a more rigorous approach to such problems. The following pairs of problems will help us to highlight the similarities and differences between situations involving confidence intervals and hypothesis tests.