Basic Analysis > Contingency Analysis > Additional Examples of the Contingency Platform > Example of a Two Sample Test for Proportions
Publication date: 07/08/2024

Example of a Two Sample Test for Proportions

Use the Contingency platform to examine the probability of being married for males and females.

1. Select Help > Sample Data Folder and open Car Poll.jmp.

2. Select Analyze > Fit Y by X.

3. Select marital status and click Y, Response.

4. Select sex and click X, Factor.

5. Click OK.

6. Click the Contingency Analysis red triangle menu and select Two Sample Test for Proportions.

Figure 7.14 Example of the Two Sample Test for Proportions Report 

Example of the Two Sample Test for Proportions Report

In this example, you are comparing the probability of being married between females and males. See the Row% in the Contingency Table to obtain the following:

P(Married|Female) = 0.6884

P(Married|Male) = 0.6121

The difference between these two numbers, 0.0763, is the Proportion Difference shown in the report. The two-sided confidence interval is [-0.03175, 0.181621]. The p-value by the adjusted Wald method corresponding to the confidence interval is 0.1686, which is close to the p-value (0.1665) by Pearson’s chi-square test. The Pearson’s chi-square test is more common than the modified Wald’s test for testing the difference of two proportions.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).