9-4. Comparison of Two Population Proportions
Last updated
Last updated
Suppose we wish to compare the proportions of two populations that have a specific characteristic, such as the proportion of men who are left-handed compared to the proportion of women who are left-handed.
Figure 9.7 "Independent Sampling from Two Populations In Order to Compare Proportions" illustrates the conceptual framework of our investigation. Each population is divided into two groups, the group of elements that have the characteristic of interest (for example, being left-handed) and the group of elements that do not. We arbitrarily label one population as Population 1 and the other as Population 2, and subscript the proportion of each population that possesses the characteristic with the number 1 or 2 to tell them apart.
We draw a random sample from Population 1 and label the sample statistic it yields with the subscript 1. Without reference to the first sample we draw a sample from Population 2 and label its sample statistic with the subscript 2.
Figure 9.7 Independent Sampling from Two Populations In Order to Compare Proportions
Our goal is to use the information in the samples to estimate the difference in the two population proportions and to make statistically valid inferences about it.
Since the sample proportion computed using the sample drawn from Population 1 is a good estimator of population proportion p1 of Population 1 and the sample proportion computed using the sample drawn from Population 2 is a good estimator of population proportion of Population 2, a reasonable point estimate of the difference is
In order to widen this point estimate into a confidence interval we suppose that both samples are large, as described in Section 7.3 "Large Sample Estimation of a Population Proportion" in Chapter 7 "Estimation" and repeated below. If so, then the following formula for a confidence interval for is valid.
Confidence Interval for the Difference Between Two Population Proportions
The samples must be independent, and each sample must be large: each of the intervals
and
must lie wholly within the interval
EXAMPLE 10. The department of code enforcement of a county government issues permits to general contractors to work on residential projects. For each permit issued, the department inspects the result of the project and gives a “pass” or “fail” rating. A failed project must be re-inspected until it receives a pass rating. The department had been frustrated by the high cost of re-inspection and decided to publish the inspection records of all contractors on the web. It was hoped that public access to the records would lower the re-inspection rate. A year after the web access was made public, two samples of records were randomly selected. One sample was selected from the pool of records before the web publication and one after. The proportion of projects that passed on the first inspection was noted for each sample. The results are summarized below. Construct a point estimate and a 90% confidence interval for the difference in the passing rate on first inspection between the two time periods. No public web access : Public web access :
[ Solution ]
The point estimate of is
Because the “No public web access” population was labeled as Population 1 and the “Public web access” population was labeled as Population 2, in words this means that we estimate that the proportion of projects that passed on the first inspection increased by 13 percentage points after records were posted on the web.
The sample sizes are sufficiently large for constructing a confidence interval since for sample 1:
so that
and for sample 2:
so that
To apply the formula for the confidence interval, we first observe that the 90% confidence level means that so that From Figure 12.3 "Critical Values of " we read directly that
Thus the desired confidence interval is
The 90% confidence interval is
We are 90% confident that the difference in the population proportions lies in the interval , in the sense that in repeated sampling 90% of all intervals constructed from the sample data in this manner will contain
Taking into account the labeling of the two populations, this means that we are 90% confident that the proportion of projects that pass on the first inspection is between 6 and 20 percentage points higher after public access to the records than before.
In hypothesis tests concerning the relative sizes of the proportions and of two populations that possess a particular characteristic, the null and alternative hypotheses will always be expressed in terms of the difference of the two population proportions. Hence the null hypothesis is always written
The three forms of the alternative hypothesis, with the terminology for each case, are:
Form of HaHa
Terminology
Left-tailed
Right-tailed
Two-tailed
As long as the samples are independent and both are large the following formula for the standardized test statistic is valid, and it has the standard normal distribution.
Standardized Test Statistic for Hypothesis Tests Concerning the Difference Between Two Population Proportions
The test statistic has the standard normal distribution.
The samples must be independent, and each sample must be large: each of the intervals
and
must lie wholly within the interval
EXAMPLE 11. Using the data of Note 9.25 "Example 10", test whether there is sufficient evidence to conclude that public web access to the inspection records has increased the proportion of projects that passed on the first inspection by more than 5 percentage points. Use the critical value approach at the 10% level of significance.
[ Solution ]
Step 1. the hypothesis test is
Step 2. Since the test is with respect to a difference in population proportions the test statistic is
Step 3. Inserting the values given in Note 9.25 "Example 10" and the value into the formula for the test statistic gives
Step 4. Since the symbol in is “ ” this is a left-tailed test, so there is a single critical value, From the last row in Figure 12.3 "Critical Values of " , so The rejection region is
Step 5. As shown in Figure 9.8 "Rejection Region and Test Statistic for " the test statistic falls in the rejection region. The decision is to reject .
In the context of the problem our conclusion is:
The data provide sufficient evidence, at the 10% level of significance, to conclude that the rate of passing on the first inspection has increased by more than 5 percentage points since records were publicly posted on the web.
Figure 9.8 Rejection Region and Test Statistic for Note 9.27 "Example 11"
EXAMPLE 12. Perform the test of Note 9.27 "Example 11" using the p-value approach.
[ Solution ]
Step 4. Because the test is left-tailed the observed significance or p-value of the test is just the area of the left tail of the standard normal distribution that is cut off by the test statistic From Figure 12.2 "Cumulative Normal Probability" the area of the left tail determined by −1.77 is 0.0384. The p-value is 0.0384.
Step 5. Since the p-value 0.0384 is less than , the decision is to reject the null hypothesis: The data provide sufficient evidence, at the 10% level of significance, to conclude that the rate of passing on the first inspection has increased by more than 5 percentage points since records were publicly posted on the web.
Finally a common misuse of the formulas given in this section must be mentioned. Suppose a large pre-election survey of potential voters is conducted. Each person surveyed is asked to express a preference between, say, Candidate A and Candidate B. (Perhaps “no preference” or “other” are also choices, but that is not important.) In such a survey, estimators and of and can be calculated. It is important to realize, however, that these two estimators were not calculated from two independent samples. While may be a reasonable estimator of the formulas for confidence intervals and for the standardized test statistic given in this section are not valid for data obtained in this manner.