VerifiedEvidence: highv1.0.0

Hypothesis Testing

A formal framework for evaluating whether observed data provide enough evidence to reject a null hypothesis in favour of an alternative.

Last reviewedDarrin Baines IP Ltd

Concept Architecture

Concept

Theoretically, Hypothesis Testing is a formal statistical framework used to evaluate whether observed data provide sufficient evidence against a specified null hypothesis. It is founded on frequentist statistical inference and sampling theory, allowing conclusions about population parameters to be drawn from sample data while controlling the probability of incorrect decisions. In health economics, hypothesis testing is used to assess treatment effects, cost differences, utility differences and associations between healthcare variables.

Mathematically, hypothesis testing is based on calculating a test statistic whose sampling distribution is known under the null hypothesis. The observed test statistic is compared with its theoretical distribution to obtain a p-value or compared directly with a critical value. The null hypothesis is rejected when the evidence exceeds a pre-specified significance level.

In practice, hypothesis testing is implemented by specifying null and alternative hypotheses, selecting an appropriate statistical test, calculating the test statistic and interpreting the resulting p-value or confidence interval. In health economics, hypothesis testing is routinely applied in clinical trials, observational studies, economic evaluations and regression analyses to evaluate evidence regarding treatment effectiveness and healthcare outcomes.


Purpose

Used to evaluate statistical evidence against a null hypothesis, quantify uncertainty in observed results and support inference for healthcare and health economic decision-making.


Mathematical Formulae

Primary Formula

Test statistic:

T = (?? ? ??) � SE(??)

where:

  • T = test statistic
  • ?? = estimated parameter
  • ?? = hypothesised parameter value
  • SE(??) = standard error of the estimate

Supporting Formulae

p-value:

p = P(|T| � |tobs| | H?)

Decision rule:

Reject H? if p < �

or

Reject H? if |T| > Tcritical

where:

  • H? = null hypothesis
  • � = significance level
  • Tcritical = critical value from the reference distribution

Related Mathematical Methods

  • Z-Test
  • Student's t-Test
  • Chi-Square Test
  • F-Test
  • Likelihood Ratio Test
  • Wald Test
  • Score Test
  • Confidence Interval Estimation

Example

A health economist compares mean annual healthcare costs between two treatment groups. The estimated difference is �420 with a standard error of �160.

T = 420 � 160 = 2.625

The corresponding two-sided p-value is approximately 0.009. Since p < 0.05, the null hypothesis of no cost difference is rejected, providing evidence that the treatments differ in average annual healthcare costs.


Excel Implementation

FunctionExample FormulaHealth Economics Application
T.TEST=T.TEST(B2:B101,C2:C101,2,2)Compare two treatment groups
Z.TEST=Z.TEST(B2:B101,100)Perform one-sample z-test
CHISQ.TEST=CHISQ.TEST(B2:C4,E2:F4)Perform chi-square hypothesis test
F.TEST=F.TEST(B2:B101,C2:C101)Compare variances between groups
T.DIST.2T=T.DIST.2T(ABS(B2),98)Calculate two-sided p-value

VBA (Optional)

Automate hypothesis testing by calculating test statistics, p-values, confidence intervals and formatted statistical summaries for health economic analyses.


Sources

  • Casella G, Berger RL. Statistical Inference. 2nd ed.
  • Rice JA. Mathematical Statistics and Data Analysis. 3rd ed.
  • Lehmann EL, Romano JP. Testing Statistical Hypotheses. 3rd ed.
  • Altman DG. Practical Statistics for Medical Research.
  • Drummond MF, Sculpher MJ, Claxton K, Stoddart GL, Torrance GW. Methods for the Economic Evaluation of Health Care Programmes. 4th ed.

Frequently Asked Questions (6)

  • What is hypothesis testing?

    A formal framework for evaluating whether observed data provide enough evidence to reject a null hypothesis in favour of an alternative.

    Source: Neyman & Pearson 1933

  • What question does hypothesis testing set out to answer?

    Hypothesis testing sets out to answer whether the data provide enough evidence to reject a null hypothesis of no effect in favour of an alternative that there is one. It works by asking how likely the observed result, or one more extreme, would be if the null were true, and rejecting the null when that likelihood falls below a chosen threshold. This gives a formal, if blunt, rule for deciding whether an apparent effect is more than chance. Judging evidence against a no-effect assumption is its purpose. Kirkwood and Sterne (2003) describe this framework.

    Source: Kirkwood & Sterne 2003

  • How does hypothesis testing work?

    Hypothesis testing works by specifying a null and an alternative hypothesis, choosing a significance level, computing a test statistic from the data, and determining how extreme it is under the null, either by comparing it with a critical value or by calculating a p-value. If the result is sufficiently extreme, the null is rejected. So hypothesis testing works by quantifying how compatible the data are with the null hypothesis and rejecting the null when they are sufficiently incompatible, using the significance level to control the risk of a false rejection, which yields a decision about whether the evidence supports the alternative.

    Source: Neyman & Pearson 1933

  • What are type I and type II errors in hypothesis testing?

    In hypothesis testing, a type I error is rejecting the null hypothesis when it is actually true, a false positive, whose probability is the significance level, alpha; a type II error is failing to reject the null when it is false, a false negative, whose probability is beta, with power being one minus beta. So the two errors represent the ways a test can be wrong, with the significance level controlling the false positive rate and the power controlling the ability to detect a true effect, and both are considered in designing a test, since there is a trade-off between them for a fixed sample size.

    Source: Neyman & Pearson 1933

  • What is the role of the p-value in hypothesis testing?

    The p-value in hypothesis testing is the probability of obtaining a result as extreme as, or more extreme than, the observed one if the null hypothesis were true; a small p-value indicates the data are unlikely under the null, providing evidence against it. If the p-value is below the significance level, the null is rejected. So the p-value quantifies the compatibility of the data with the null hypothesis, serving as the basis for the test decision, though it is often misinterpreted, as it is not the probability that the null is true, and it is best understood as a measure of evidence against the null under the assumptions of the test.

    Source: Neyman & Pearson 1933

  • What are the criticisms of hypothesis testing?

    The criticisms of hypothesis testing include that p-values are frequently misinterpreted, for example as the probability the null is true; that the dichotomy of significant versus non-significant encourages crude thinking and neglect of effect size; that a chosen significance level is arbitrary; and that significance depends on sample size. So hypothesis testing is used with awareness of these criticisms, since focusing on a yes-or-no verdict can obscure the magnitude and precision of effects, which is why confidence intervals and effect sizes are recommended alongside or instead of bare significance tests, to give a fuller and less misleading account of what the data show.

    Source: Neyman & Pearson 1933

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 16 Dec 2025

Content version: 1.0.0

Canonical Identity

Term code
HE-ES-SA-080

Stable URI · Machine-readable · Resolvable · CC BY 4.0