Skip to content
Sahithyan's S3
1
Sahithyan's S3 — Applied Statistics

Proportion Test

Used to test whether the sample proportion p^ from a population differs significantly from a claimed or hypothesized population proportion p0p_0.

Let pp the true population proportion, p^=xn\hat{p} = \frac{x}{n}. Here xx = number of successes. nn = sample size.

Then:

H0:p=p0H_0 : p = p_0

Alternative hypothesis depends on the problem:

H1:p<p0(left-tailed)H_1 : p < p_0 \quad \text{(left-tailed)} H1:p>p0(right-tailed)H_1 : p > p_0 \quad \text{(right-tailed)} H1:pp0(two-tailed)H_1 : p \neq p_0 \quad \text{(two-tailed)}

Used when nn is large and both np05np_0 \ge 5 and n(1p0)5n(1 − p_0) \ge 5, the sampling distribution of p̂ is approximately normal.

So, under H₀:

Z=p^p0p0(1p0)nN(0,1)Z = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}} \quad \sim N(0, 1)
  • For a two-tailed test, reject H0H_0 if ZZ1α/2|Z| ≥ Z_{1-\alpha/2}
  • For a right-tailed test, reject H0H_0 if ZZ1αZ ≥ Z_{1-\alpha}
  • For a left-tailed test, reject H0H_0 if ZZ1αZ ≤ −Z_{1-\alpha}

The confidence interval for pp is:

p^±Z1α/2p^(1p^)n\hat{p} \pm Z_{1-\alpha/2} \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

If p0p_0 lies outside the confidence interval, reject H0H_0 at significance level α\alpha.

XBinomial(n,p0)X \sim \text{Binomial}(n, p_0)

For tailed tests, calculate p-value directly by summing over binomial probabilities. H0H_0 is rejected if p-valueαp\text{-value} \le \alpha.