Learning Objectives

By the end of this note, you will test a claim $p=p_{0}$ with a large sample, verify $np_{0}\ge 10$ and $n(1-p_{0})\ge 10$, compute $z=(\hat{p}-p_{0})/\sqrt{p_{0}(1-p_{0})/n}$, and decide with critical values and $p$ values using a BS 2081 Palika example.

Why Test a Single Proportion With $z$

Citizen satisfaction is a proportion: share who rate service as satisfactory. Training uptake is a proportion: share of eligible staff who complete a course. Revenue digitization is a proportion: share of wards that file electronically. Each is $p$, the population share with the trait. A survey gives $\hat{p}=x/n$. The question is whether $\hat{p}$ diverges from a claimed $p_{0}$ beyond chance.

For large $n$, $\hat{P}$ is approximately normal with mean $p$ and variance $p(1-p)/n$ under random sampling. Standardize under $H_{0}$ using $p_{0}$ in the denominator and read the tail from $N(0,1)$.

Grouped Framework: Conditions, Statistic, and Decision

Condition 1: Single proportion question. The claim states one $p_{0}$, for example $0.60$ satisfied, $0.50$ majority, $0.80$ compliance, $0.05$ defect.

Condition 2: Large enough $n$ for normal approximation. Check both

\[np_{0}\ge 10\quad\text{and}\quad n(1-p_{0})\ge 10\]

When either fails, keep the exact binomial test. The check uses $p_{0}$ from $H_{0}$, not $\hat{p}$, because the approximation is evaluated assuming $H_{0}$.

Condition 3: Random and independent observations. Ensure no clustering that would deflate SE. If households are sampled within wards, adjust for design before quoting $z$.

Hypotheses.

\[H_{0}:p=p_{0}\quad\text{vs}\quad H_{1}:p\neq p_{0}\text{ or }p>p_{0}\text{ or }p<p_{0}\]

Test statistic under $H_{0}$.

\[z=\frac{\hat{p}-p_{0}}{\sqrt{p_{0}(1-p_{0})/n}}\] \[\text{SE}_{0}=\sqrt{p_{0}(1-p_{0})/n}\]

Use $p_{0}$, not $\hat{p}$, in SE because the denominator assumes $H_{0}$ is true. This is the key difference from the confidence interval for $p$, which uses $\hat{p}$.

Critical values and $p$ values.

$H_{1}$ Region Critical at $0.05$ $p$ form        
$\neq$ $ z >z_{\alpha/2}$ $\pm 1.96$ $2P(Z> z )$
$>$ $z>z_{\alpha}$ $+1.645$ $P(Z>z)$        
$<$ $z< -z_{\alpha}$ $-1.645$ $P(Z<z)$        

At $\alpha=0.01$, use $\pm 2.576$ or $\pm 2.33$ one sided.

Interval dual. A $95$ percent CI for $p$ uses $\hat{p}$:

\[\hat{p}\pm z^{*}\sqrt{\hat{p}(1-\hat{p})/n}\]

When that interval excludes $p_{0}$, the two tailed test at $0.05$ rejects. Keep test SE with $p_{0}$ and CI SE with $\hat{p}$ separate.

Worked Example: Satisfaction With Palika Services in BS 2081

Context. Bagmati Province local governance guidelines set a benchmark that $60$ percent of citizens feel satisfied with Palika counter services. In Asoj 2081, Bharatpur Metropolitan City surveys $n=400$ randomly selected service users. $220$ report satisfaction, so $\hat{p}=220/400=0.55$. The communications section tests whether the true satisfaction share differs from $0.60$ at $\alpha=0.05$ two sided. The survey cost is NPR 120000, so the test must justify any campaign to revise the service charter.

Step 1: Hypotheses.

\[H_{0}:p=0.60\quad\text{vs}\quad H_{1}:p\neq 0.60\]

Step 2: Conditions check.

\[np_{0}=400(0.60)=240\ge 10,\quad n(1-p_{0})=400(0.40)=160\ge 10\]

Normal approximation applies.

Step 3: SE under $H_{0}$ and $z$.

\[\text{SE}_{0}=\sqrt{0.60(0.40)/400}=\sqrt{0.24/400}=\sqrt{0.0006}\approx 0.0245\] \[z=\frac{0.55-0.60}{0.0245}=\frac{-0.05}{0.0245}\approx -2.04\]

Step 4: Critical values and $p$ value.

Critical values $\pm 1.96$. Two tailed $p$:

\[p=2P(Z<-2.04)=2(0.0207)=0.0414\]
Step 5: Decision. $ z =2.04>1.96$ and $p=0.0414<0.05$, so reject $H_{0}$ by either method.

Step 6: Conclude with interval and practical meaning. At 5 percent significance, satisfaction sits below the $60$ percent benchmark by an estimated $5$ points. 95 percent CI using $\hat{p}$:

\(\text{SE}_{\text{CI}}=\sqrt{0.55(0.45)/400}\approx 0.0249\) \(0.55\pm 1.96(0.0249)=0.55\pm 0.049=(0.501,0.599)\)

The interval lies slightly below $0.60$ and excludes the benchmark, which matches the test. The $5$ point gap on a base of $40000$ service contacts suggests about $2000$ additional dissatisfied users versus benchmark, which the communications budget can address through queue and information fixes rather than a full charter rewrite. At $\alpha=0.01$ with critical $\pm 2.576$, the same $z=-2.04$ would fail to reject, so the report flags borderline strength.

Self-check

Try this (calculable): In Mangsir 2081, a Palika tests whether more than $50$ percent of voters support a new waste fee. Survey $n=500$, $270$ support, so $\hat{p}=0.54$, $\alpha=0.05$ right tailed.

(a) State $H_{0}$ and $H_{1}$ and verify $np_{0}$ and $n(1-p_{0})$. (b) Compute $\text{SE}_{0}$ and $z$. (c) Give critical $1.645$, $p=P(Z>z)$, decision, and the 95 percent CI for $p$.

Answer: (a) $H_{0}:p=0.50$, $H_{1}:p>0.50$, $np_{0}=250$, $n(1-p_{0})=250$, both $\ge 10$. (b) $\text{SE}{0}=\sqrt{0.50(0.50)/500}=\sqrt{0.0005}\approx 0.0224$, $z=(0.54-0.50)/0.0224\approx 1.79$. (c) Critical $1.645$, $p=1-0.9633=0.0367$. Since $1.79>1.645$ and $p<0.05$, reject $H{0}$, support exceeds $50$ percent by $4$ points. 95 percent CI: $0.54\pm 1.96\sqrt{0.54(0.46)/500}=0.54\pm 0.044=(0.496,0.584)$, which barely overlaps $0.50$, showing two sided versus one sided framing matters.

Check: recompute as two tailed $\neq$ with $\pm 1.96$ and $p=0.073$, which would fail to reject, so direction changes the message.

Summary

Test a single proportion at large $n$ by checking $np_{0}\ge 10$ and $n(1-p_{0})\ge 10$, computing $\hat{p}=x/n$, then $z=(\hat{p}-p_{0})/\sqrt{p_{0}(1-p_{0})/n}$, comparing $ z $ to $z_{\alpha/2}$ or $z_{\alpha}$ or $p$ to $\alpha$, and concluding with the point gap and a confidence interval $\hat{p}\pm z^{*}\sqrt{\hat{p}(1-\hat{p})/n}$. Use $p_{0}$ in the test SE and $\hat{p}$ in the interval SE. The gap in percentage points and its NPR or program cost impact separate statistical from practical significance.

Key Takeaways

  • Verify $np_{0}\ge 10$ and $n(1-p_{0})\ge 10$ using $p_{0}$ before $z$. Otherwise use exact binomial.
  • Compute $\text{SE}{0}=\sqrt{p{0}(1-p_{0})/n}$ and $z=(\hat{p}-p_{0})/\text{SE}{0}$ under $H{0}$.
  • Choose tail from $H_{1}$ before seeing $\hat{p}$: $\neq$ uses $\pm z_{\alpha/2}$, $>$ uses $+z_{\alpha}$, $<$ uses $-z_{\alpha}$.
  • Report $\hat{p}-p_{0}$ in points and the CI with $\hat{p}$ to show precision and practical import.
  • Remember duality: a $95$ percent CI that excludes $p_{0}$ aligns with a two tailed reject at $0.05$.

Discussion

  • A Palika reports $\hat{p}=0.52$ with $n=50$ and $p_{0}=0.50$, computes $z$ using $\hat{p}$ in SE, and reports a small $p$. What SE error did it make, and how does using $p_{0}$ versus $\hat{p}$ change $z$?
  • Why does testing $p=0.03$ with $n=200$ sit on the $np_{0}=6$ boundary, and what alternative method protects the tail when $p_{0}$ is near $0$?
  • A report says $p=0.041$ proves the benchmark is false. How would you restate the conclusion as reject at $0.05$ with a $5$ point gap and note failure to reject at $0.01$?

Exercises

  1. Benchmark $p_{0}=0.60$, $n=400$, $x=220$, $\alpha=0.05$ two tailed. Compute $\hat{p}$, $\text{SE}{0}$, $z$, $p$, decision, and 95 percent CI with $\text{SE}{\text{CI}}$.
  2. Test majority support $p_{0}=0.50$, $n=500$, $x=270$ right tailed at $0.05$. Give $z\approx1.79$, critical $1.645$, $p$, and interpret a $4$ point gap.
  3. Defect claim $p_{0}=0.05$, $n=200$, $x=6$, left tailed at $0.05$. Verify $np_{0}=10$, compute $z=-1.30$, critical $-1.645$, $p$, and decision.
  4. Hospital satisfaction $p_{0}=0.80$, $n=250$, $x=185$, two tailed. Compute $z=-2.37$, $p\approx0.0178$, decide at $0.05$ versus $0.01$, and give 95 percent CI.
  5. Explain why $p<0.05$ does not measure size of the gap. Use $\hat{p}=0.54$ versus $0.51$ at $n=5000$ to show how $n$ drives $z$ while the point gap remains small.