


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Each pair of people is equally likely to occur, with probability 1/10. For each different sample, we will get a (perhaps) different value for ¯p, the proportion ...
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Consider categorical data for a population of size N. If M individuals from the population belong to a certain group, we say that the proportion of the population that belongs to this group is p = M/N.
Now suppose that a sample of size m is randomly selected and k individuals from the sample belong to the group in question. We say that the proportion of the sample that belongs to this group is ¯p = m/n. The sample proportion may or may not equal the population proportion.
Since ¯p was obtained through a random process, it is a random variable. Therefore, it has a set of possible values, a probability distribution, an expected value or mean, a variance, and a standard deviation. Since ¯p represents a proportion, its set of possible values is limited to the interval between 0 and 1. We let μ¯p denote the mean of ¯p and we let σ¯p denote the standard deviation of ¯p.
It turns out that the mean and standard deviation of the sample proportion are related to the population proportion in the following way: μ¯p = p
That is, the mean or expected value of the sample proportion is the same as the population proportion. Notice that this does not depend on the sample size or the population size.
σ¯p =
p(1 − p) n
N − n
︸ N︷︷^ − 1 ︸ FPCF
The finite population correction factor appears again. We can ignore it in the same three cases that we did when considering the sample mean. Observe that, as the sample size n increases, the standard deviation of the sample proportion gets smaller. That is, as the sample size increases, the sample proportion becomes more likely to be closer to the population proportion.
Notice that we have not said anything about the distribution of ¯p so far other than its mean and standard deviation. For all we know at this point, it could follow a normal distribution, or a uniform distribution, or any distribution really. We will give a more precise description of the distribution of ¯p later.
As an example, suppose that a family has five people, A, B, C, D, and E. A and D are women and B, C, and E are men. This is our population data. The proportion of the population which is men is p = 3/5.
Now suppose that we obtain a simple random sample of 2 people from the family, without replacement. That
is, the sample must consist of 2 different people. From Lecture 7, we know that there are 5 C 2 =
possible ways of doing this. Each pair of people is equally likely to occur, with probability 1/10. For each different sample, we will get a (perhaps) different value for ¯p, the proportion of men in the sample. For example, if the sample consists of people A and B, then ¯p is 1/2. We can then fill in the rest of the table below. sample p¯ A,B 1/ A,C 1/ A,D 0/ A,E 1/ B,C 2/ B,D 1/ B,E 2/ C,D 1/ C,E 2/ D,E 1/
In the second column, we see all the possible values of ¯p. The probability distribution of ¯x is: k P (¯p = k) 0/2 1/ 1/2 6/ 2/2 3/
From this, we can use techniques of Lectures 8 and 9 to compute the mean and standard deviation of ¯p using a table. For example, the next step in computing the mean would be to compute the values of kP (¯p = k) for all the possible values k. The mean would then be the sum of those values. We could compute the standard deviation from the variance. Computing the variance requires several more columns.
Since ¯p is a sample proportion, we don’t actually need to use these old techniques here. We can use formulas to compute the mean and standard deviation of the sample proportion. The mean of ¯p is simply the population proportion, so μp¯ = p = 3/ 5.
Since our population is small and the sample is 40% of the population and the sample did not allow replace- ment, we must include the FPCF in our computation of the standard deviation of the sample proportion, so
σp¯ =
p(1 − p) n
N − n N − 1
Consider a population of size N with proportion p belonging to a certain category. Also consider the pro- portion ¯p belonging to the same category from a randomly selected sample of size n. Provided that np ≥ 5 and n(1 − p) ≥ 5, ¯p is normally distributed.
The problem of estimating the population proportion using the sample proportion is analogous to the problem of estimating the population mean using the sample mean. Under the conditions described above, ¯p is
normally distributed with mean p and standard deviation σp¯. Therefore,
p¯ − p σ¯p
follows a standard normal
distribution.
Once again, we can convert between:
Computation of σp¯ requires knowledge of ¯p. Typically, ¯p is unknown, and we approximate σp¯ with
s¯p =
¯p(1 − p¯) n
N − n N − 1
which uses ¯p in places where the formula for σ¯p used p. Provided that np¯ ≥ 5 and n(1 − p¯) ≥ 5, p¯ − p sp¯
follows
a standard normal distribution.
To get a maximum sampling error E from a z score, we use the formula
E = zsp¯.
To get a z-score from a maximum sampling error E, we us the inverse formula
z =
p ¯
If the sample size is unknown, but we know the z-score and the maximum sampling error E, we can force the appropriate relationship between z and E to hold by setting
E = zsp¯ = z
p¯(1 − p¯) n
Suppose that, in our sample, 75% of people vote for candidate A. How large must our sample size be so that we can be 99.7% confident that between 72% and 78% of the population vote for A?
First we find the maximum sampling error E. The confidence interval is 0.72 to 0.78, so the maximum sampling error is E = 0.03.
Second we find the z-score corresponding to a 99% confidence level. That is, we look up an area of 0.495 on the standard normal table and we find z = 2.575.
Third we find the sample size using the formula
n =
( (^) z E
p ¯(1 − p¯) =
Since n represents the number of individuals in our sample, it does not make sense to say n = 1381.3. A sample size of 1381 is not big enough to guarantee that our confidence interval has the desired confidence level. However, a sample size of 1382 is.