This calculator runs a two sample independent proportions test for given sample data and specified null and alternative hypotheses. Enter the data in the fields below. For each sample enter the total number of scores (\(n_1\) and \(n_2\)) and the number of scores that have the trait of interest (\(f_1\) and \(f_2\)).

Enter a value for the null hypothesis. This value should indicate the absence of an effect in your data. It must be between the values 0 and 1. Indicate whether your alternative hypothesis involves one-tail or two-tails. If it is a one-tailed test, then you need to indicate whether it is a positive (right tail) test or a negative (left tail) test.

Enter an \(\alpha\) value for the hypothesis test. This is the Type I error rate for your hypothesis test. It also determines the confidence level \(100 \times (1-\alpha)\) for a confidence interval. The confidence interval is based on the normal distribution, which is an approximation.

Press the Run Test button and a table summarizing the computations and conclusions will appear below.

Enter data:
Sample size for group 1: \(n_1 =\)
Number of scores with trait for group 1: \(f_1 =\)
Sample size for group 2: \(n_2 =\)
Number of scores with trait for group 2: \(f_2 =\)
Specify hypotheses:
\(H_0: P_1 - P_2=\)
\(H_a:\)
\(\alpha=\)
Test summary
Null hypothesis \(H_0: P_1 - P_2=\)
Alternative hypothesis \(H_a: P_1 - P_2 \)
Type I error rate \(\alpha=\)
Sample size for group 1 \(n_1=\)
Sample size for group 2 \(n_2=\)
Sample proportion for group 1 \(p_1=\)
Sample proportion for group 2 \(p_2=\)
Pooled proportion \(p=\)
Standard error \(s_{p_1 - p_2}=\)
Test statistic \(z=\)
\(p\) value \(p=\)
Decision
Confidence interval critical value \(z_{cv}=\)
Confidence interval CI95=