This calculator runs a one sample proportion test for a given sample data set and specified null and alternative hypotheses. In the fields below enter the sample size \(n\) and the number of scores with the trait of interest, \(f\).

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 \(n=\)
Number of scores with trait \(f=\)
Specify hypotheses:
\(H_0: P=\)
\(H_a:\)
\(\alpha=\)
Test summary
Null hypothesis \(H_0: P=\)
Alternative hypothesis \(H_a: P \)
Type I error rate \(\alpha=\)
Sample size \(n=\)
Sample proportion \(p=\)
Sample standard error \(s_p=\)
Test statistic \(z=\)
\(p\) value \(p=\)
Decision
Confidence interval critical value \(z_{cv}=\)
Confidence interval standard error \(s_p=\)
Confidence interval CI95=