Learning Objectives

By the end of this note, you will formulate $H_{0}$ and $H_{1}$, distinguish one and two sided tests, define Type I error $\alpha$, Type II error $\beta$, power $1-\beta$, and $p$ value, and link those concepts to evidence based decisions in public administration.

Why Test a Hypothesis

Estimation asks how large $\mu$ appears to be. Testing asks whether data contradict a specific claim about $\mu$ at a stated risk. A Palika charter claims mean service time is $20$ minutes. A citizen group claims it is longer. Both cannot steer the budget until evidence is weighed. A hypothesis test formalizes that weighing: assume the charter claim, measure how surprising the sample is under that assumption, and reject the claim only when surprise exceeds a pre chosen threshold $\alpha$.

Testing does not prove a policy works forever. It decides whether the sample is inconsistent enough with the status quo to act as if the claim has changed, while controlling the chance of a false alarm.

Grouped Framework: Claims, Errors, and Evidence

Null hypothesis $H_{0}$. The status quo with equality.

\[H_{0}:\mu=\mu_{0}\quad\text{or}\quad p=p_{0}\]

Examples: $\mu=30$ minutes, $p=0.05$, $\mu_{1}=\mu_{2}$.

Alternative hypothesis $H_{1}$ (also $H_{a}$). The research claim that contradicts $H_{0}$.

\[H_{1}:\mu\neq\mu_{0}\quad\text{or}\quad\mu>\mu_{0}\quad\text{or}\quad\mu<\mu_{0}\]

Formulate $H_{1}$ from the question wording before seeing the data. Avoid switching tails after observing $\bar{x}$.

Three forms.

$H_{1}$ Test type Keywords
$\mu\neq\mu_{0}$ Two tailed different, changed, not equal
$\mu>\mu_{0}$ Right tailed greater, increased, higher than
$\mu<\mu_{0}$ Left tailed less, below, reduced, fewer than

$H_{0}$ always contains equality. $H_{1}$ never does. That assignment makes the rejection region well defined.

Significance level $\alpha$. The tolerated Type I error probability.

\[\alpha = P(\text{reject }H_{0}\mid H_{0}\text{ true})\]

Common choices: $0.10$ exploratory, $0.05$ standard, $0.01$ strict for safety or fiscal stakes. $\alpha$ sets the critical region, not the truth of $H_{0}$.

Decision table and error types.

  $H_{0}$ true $H_{0}$ false
Reject $H_{0}$ Type I error, probability $\alpha$ Correct, power $1-\beta$
Fail to reject $H_{0}$ Correct Type II error, probability $\beta$
  • Type I is a false positive: declare reform effective when it is not, waste NPR and political capital.
  • Type II is a false negative: miss a real improvement, continue a poor process.
  • Costs are asymmetric in PA. Adopting a useless program across all Palikas differs from overlooking a promising pilot. Choose $\alpha$ with that cost in mind and raise power with larger $n$ or larger true effects.

Power.

\[\text{Power}=1-\beta = P(\text{reject }H_{0}\mid H_{1}\text{ true})\]

Power rises with larger $n$, larger true difference from $H_{0}$, and larger $\alpha$. Underpowered pilots often fail to reject even when the effect is real, so report power alongside nonsignificant results.

Test statistic. A standardized distance from $H_{0}$.

Mean, $\sigma$ known: $z=(\bar{x}-\mu_{0})/(\sigma/\sqrt{n})$

Mean, $\sigma$ unknown: $t=(\bar{x}-\mu_{0})/(s/\sqrt{n})$

Proportion: $z=(\hat{p}-p_{0})/\sqrt{p_{0}(1-p_{0})/n}$

The denominator is the standard error under $H_{0}$, so the statistic measures how many SEs the estimate sits from the claim.

$p$ value. Probability of a result at least as extreme as observed if $H_{0}$ were true.

\[p = P(\text{statistic as or more extreme}\mid H_{0})\]

Decision rule: reject $H_{0}$ when $p<\alpha$, fail to reject when $p\ge\alpha$. Both the critical value and $p$ value methods lead to the same decision.

Evidence scale. $p>0.10$ no evidence against $H_{0}$, $0.05$ to $0.10$ weak, $0.01$ to $0.05$ moderate, $0.001$ to $0.01$ strong, $\le 0.001$ very strong. $p$ is not $P(H_{0}\text{ true})$ and not the probability you are wrong. It conditions on $H_{0}$.

Worked Example: Service Time Claim in BS 2081

Context. Dharan Sub Metropolitan City citizen charter, approved Jestha 2081, claims mean counter service time is $\mu_{0}=20$ minutes. In Asoj 2081 a citizen audit samples $n=64$ visits, finds $\bar{x}=22.5$ minutes with known $\sigma=8$ minutes from the long administrative log. The audit asks whether service is longer than chartered, at $\alpha=0.05$, one sided.

Step 1: Form hypotheses from the question. The challenge is longer than claim, so

\[H_{0}:\mu=20\quad\text{vs}\quad H_{1}:\mu>20\;\text{(right tailed)}\]

Step 2: Fix $\alpha$ and error meaning. $\alpha=0.05$ accepts a 5 percent false positive risk. Type I here means accuse the Palika of breach when true mean is still $20$, possibly triggering unwarranted overtime at NPR 800 per hour. Type II means overlook a real breach, leaving citizens waiting. The audit treats Type I as reputationally costly and keeps $\alpha=0.05$ rather than $0.10$.

Step 3: Compute the test statistic under $H_{0}$.

\[\text{SE}=8/\sqrt{64}=1\] \[z=\frac{22.5-20}{1}=2.5\]

The sample mean sits 2.5 SEs above the charter value.

Step 4: Find $p$ value for a right tailed $z$.

\[p = P(Z>2.5)=1-0.9938=0.0062\]

Step 5: Decide and interpret power context. Since $p=0.0062<\alpha=0.05$, reject $H_{0}$. The data are inconsistent with $\mu=20$ at 5 percent significance. Report the effect size as well: the point gap is $2.5$ minutes above claim, not merely reject or not. If the true mean were $22$, power at $n=64$ and $\alpha=0.05$ would be substantially higher than at $n=25$, which explains why the audit insisted on $n\ge 60$.

Two sided variant. Had the question been has service time changed, $H_{1}:\mu\neq20$ with same $z=2.5$ would give $p=2\times0.0062=0.0124$, still below $0.05$. Direction and tail count change the calculation, so state $H_{1}$ explicitly before computing.

Self-check

Try this (calculable): A Palika claims mean building permit time is $\mu_{0}=30$ days. In Mangsir 2081 you sample $n=36$ files, $\bar{x}=33$ days, $\sigma=9$ days.

(a) Set $H_{0}$ and $H_{1}$ for testing longer than claimed. (b) Compute $z$ and right tailed $p$ value. (c) Decide at $\alpha=0.05$ and state Type I meaning in NPR terms if extra staffing is triggered by rejection.

Answer: (a) $H_{0}:\mu=30$, $H_{1}:\mu>30$ right tailed. (b) $\text{SE}=9/\sqrt{36}=1.5$, $z=(33-30)/1.5=2.0$, $p=P(Z>2.0)=0.0228$. (c) $0.0228<0.05$, reject $H_{0}$. Type I would mean pay for extra staff based on a false alarm that permits are slower. Report gap $3$ days alongside the decision. If $H_{1}$ were two sided, $p=0.0456$, still reject at $0.05$ but not at $0.01$.

Check: recompute with $n=16$ and $s$ replaced by $\sigma$ to see $z=1.33$, $p=0.0918$, and fail to reject, showing how $n$ drives power.

Summary

Hypothesis testing weighs a status quo claim $H_{0}$ against a research alternative $H_{1}$ using a test statistic scaled by standard error and a $p$ value that assumes $H_{0}$. Classify $H_{1}$ as two tailed $\neq$, right tailed $>$, or left tailed $<$, fix $\alpha=P(\text{Type I})$, recognize $\beta$ and power $1-\beta$, and reject $H_{0}$ when $p<\alpha$ or equivalently when the statistic falls in the $\alpha$ rejection region. Always report the estimated gap alongside the decision to separate statistical from practical significance.

Key Takeaways

  • Write $H_{0}$ with equality and $H_{1}$ without, chosen from the question wording before looking at $\bar{x}$.
  • Define $\alpha$ as the allowed Type I rate, $\beta$ as Type II rate, and power as $1-\beta$. Trade $\alpha$ against the real cost of false alarms versus missed improvements.
  • Standardize with $z=(\bar{x}-\mu_{0})/(\sigma/\sqrt{n})$, $t=(\bar{x}-\mu_{0})/(s/\sqrt{n})$, or $z=(\hat{p}-p_{0})/\sqrt{p_{0}(1-p_{0})/n}$ under $H_{0}$.
  • Compute $p$ as tail probability assuming $H_{0}$. Reject when $p<\alpha$, fail to reject otherwise.
  • Use fail to reject rather than accept $H_{0}$. Nonsignificance signals insufficient evidence, not proof of equality, and requires effect size and power context.

Discussion

  • A mayor says $p=0.04$ means 96 percent chance the Palika reform worked. What misreading does this reveal, and how would you restate $p$ correctly using the Dharan charter example at $p=0.0062$?
  • Your pilot on staffing reform shows $p=0.12$ at $n=20$. A larger rollout with $n=80$ and same effect size later gives $p=0.01$. How do power and SE explain the change, and what does this imply for planning BS 2081 pilots?
  • When would you advise a ministry to test at $\alpha=0.01$ rather than $0.05$ for a nationwide benefit targeting change, even though $0.01$ reduces power?

Exercises

  1. Write $H_{0}$ and $H_{1}$ for (a) new training improves score above $75$, (b) average commute changed from $45$ minutes, (c) defect rate below $3$ percent. State the tail type for each.
  2. Define Type I and Type II errors for testing whether a new waste collection route reduces average collection time below $30$ minutes. Assign which error wastes NPR and which leaves inefficiency in place.
  3. A test uses $\alpha=0.05$. Explain in words what that risk means for repeated Palika audits that correctly satisfy $H_{0}$.
  4. Observed $p=0.03$. State the decision at $\alpha=0.05$ and at $\alpha=0.01$. Explain why the two alphas can disagree and what this says about evidence strength.
  5. A poll gives $\hat{p}=0.52$ with $p_{0}=0.50$, $n=400$. Compute $z=(\hat{p}-p_{0})/\sqrt{p_{0}(1-p_{0})/n}$, find two sided $p\approx0.42$, and discuss statistical versus practical significance of a $2$ point gap.