Wald Test

Introduction
The Wald Test checks whether a single parameter estimated by maximum likelihood-most often a regression coefficient-is significantly different from a hypothesized value, almost always zero, using only the fitted estimate and its standard error. If you are asking questions like "is this predictor's coefficient actually significant, or could it plausibly be zero?", "does the regression output's p-value column mean what I think it means?", or "how do I test one coefficient without refitting the whole model?"-this is usually the test you are looking for, and it is almost certainly the test already sitting behind the p-values in your regression summary table.

By the end of this article you will be able to state exactly when the Wald Test applies, compute one completely by hand on two worked examples-a simple coefficient test and a logistic regression coefficient- understand how it generalizes to testing several parameters at once, see how it relates to the ordinary t-test and z-test you already know, and run the same test in a few lines of Python.
What Is the Wald Test?
The Wald Test evaluates a hypothesis about a parameter \( \theta \) estimated by maximum likelihood by asking a simple question: how many standard errors does the fitted estimate \( \hat{\theta} \) sit away from the hypothesized value \( \theta_0 \)? If the true parameter really equals \( \theta_0 \), the estimate should land close to it, with deviations governed entirely by the estimator's own sampling variability. The larger the standardized distance, the stronger the evidence against the null hypothesis.
It exists because, once you have fit a maximum likelihood model, you almost always get the parameter estimate and its standard error "for free" from the curvature of the log-likelihood at its maximum-there is no need to refit a separate restricted model just to test whether one coefficient matters. Abraham Wald formalized this in 1943 as a general large-sample procedure: use the observed information at the full model's maximum likelihood estimate to build a standard error, and compare the standardized distance from the null value to a normal (or chi-square) reference distribution.
When to Use It
Use the Wald Test whenever you have a model fit by maximum likelihood and want to test whether one parameter (or a small set of parameters) differs significantly from a hypothesized value, most commonly zero. This is by far the most common significance test in applied statistics-it is what produces the p-value next to every coefficient in a standard linear regression, logistic regression, or other generalized linear model summary table.
| Scenario | Parameter Being Tested | Typical Null Value |
|---|---|---|
| Regression coefficient significance | Slope coefficient for a predictor | 0 (no effect) |
| Logistic regression odds ratio | Log-odds coefficient for a binary predictor | 0 (odds ratio = 1) |
| Comparing an estimate to a benchmark | Estimated proportion or rate parameter | A specific non-zero benchmark value |
Key Assumptions
- Maximum likelihood fit: the parameter estimate and its standard error must come from a model properly fit by maximum likelihood (or an estimator with the same asymptotic properties, such as ordinary least squares under normal errors).
- Consistent standard error: the standard error must be estimated from the observed or expected Fisher information at the fitted parameter value-an incorrectly specified or misestimated standard error invalidates the whole test.
- Sufficiently large sample: the asymptotic normal distribution of the maximum likelihood estimator, on which the Wald Test relies, improves as sample size grows; small samples can make the approximation unreliable.
- Parameter not near a boundary: the true parameter value should not sit too close to the edge of its allowable range (such as a variance approaching zero), since the standard normal approximation for the estimator breaks down there.
Hypotheses
The Wald Test formally tests whether a parameter equals a specific hypothesized value:
- Null Hypothesis (\( H_0 \)): the parameter equals the hypothesized value- \( \theta = \theta_0 \) (most commonly \( \theta_0 = 0 \))-and any observed distance between \( \hat{\theta} \) and \( \theta_0 \) is due to sampling variability.
- Alternative Hypothesis (\( H_1 \)): the parameter differs from the hypothesized value- \( \theta \neq \theta_0 \) (a one-sided version, \( \theta > \theta_0 \) or \( \theta < \theta_0 \), is also common when there is a clear directional expectation, such as testing whether a coefficient is positive).
(A significant Wald Test tells you the parameter differs from the null value, but on its own it does not tell you the practical size of that effect-pairing the p-value with the point estimate and its confidence interval, as in Worked Example 2 below, gives a fuller picture.)
The Formula, Explained
Let \( \hat{\theta} \) be the maximum likelihood estimate of a parameter \( \theta \), and let \( \widehat{SE}(\hat{\theta}) \) be its estimated standard error, typically the square root of the relevant diagonal entry of the inverse observed (or expected) Fisher information matrix. The Wald test statistic for testing \( H_0: \theta = \theta_0 \) is:
\[ W = \frac{\hat{\theta} - \theta_0}{\widehat{SE}(\hat{\theta})} \]Under \( H_0 \), and as the sample size grows, \( W \) follows approximately a standard normal distribution, so the two-sided p-value is \( 2 \times (1 - \Phi(|W|)) \), where \( \Phi \) is the standard normal CDF. Equivalently, some software reports the squared statistic:
\[ W^2 = \left(\frac{\hat{\theta} - \theta_0}{\widehat{SE}(\hat{\theta})}\right)^2 \;\dot\sim\; \chi^2_1 \]which follows a chi-square distribution with 1 degree of freedom-numerically the same test, just expressed on a squared scale. The standard error itself comes from the curvature of the log-likelihood at its maximum:
\[ \widehat{SE}(\hat{\theta}) = \sqrt{\left[I(\hat{\theta})^{-1}\right]_{jj}}, \qquad I(\theta) = -E\!\left[\frac{\partial^2 \ell(\theta)}{\partial \theta^2}\right] \]where \( I(\theta) \) is the Fisher information and \( j \) indexes the parameter being tested. Intuitively, a sharply peaked (highly curved) log-likelihood pins down \( \hat{\theta} \) precisely, giving a small standard error and a more powerful test; a flat log-likelihood leaves \( \hat{\theta} \) poorly determined, giving a large standard error and a weaker test.
Testing Multiple Parameters at Once
The Wald Test generalizes naturally to testing several parameters, or linear combinations of parameters, simultaneously. Let \( \hat{\boldsymbol{\theta}} \) be a vector of \( q \) parameter estimates and \( \boldsymbol{\theta}_0 \) the hypothesized vector under \( H_0 \). The multivariate Wald statistic is a quadratic form:
\[ W = (\hat{\boldsymbol{\theta}} - \boldsymbol{\theta}_0)^\top \, \widehat{\mathrm{Cov}}(\hat{\boldsymbol{\theta}})^{-1} \, (\hat{\boldsymbol{\theta}} - \boldsymbol{\theta}_0) \]where \( \widehat{\mathrm{Cov}}(\hat{\boldsymbol{\theta}}) \) is the estimated covariance matrix of the parameter estimates (the relevant block of the inverse Fisher information matrix). Under \( H_0 \), this statistic follows approximately a chi-square distribution with \( q \) degrees of freedom, where \( q \) is the number of parameters (or linear restrictions) being tested jointly-directly analogous to the degrees of freedom in a Likelihood Ratio Test, but computed entirely from the full model's fit rather than by refitting a restricted model.
This is exactly the machinery behind testing whether an entire multi-level categorical predictor's set of dummy coefficients are jointly zero, or whether two coefficients are jointly equal to specific values, without having to fit a separate restricted model for each such hypothesis.
Worked Example 1: A Single Coefficient by Hand
Suppose a simple linear regression fit by maximum likelihood produces a slope coefficient estimate \( \hat{\beta}_1 = 2.4 \) with an estimated standard error \( \widehat{SE}(\hat{\beta}_1) = 0.85 \), based on \( n = 40 \) observations. You want to test \( H_0: \beta_1 = 0 \) against \( H_1: \beta_1 \neq 0 \).
Step 1: Compute the Wald statistic.
\[ W = \frac{\hat{\beta}_1 - 0}{\widehat{SE}(\hat{\beta}_1)} = \frac{2.4}{0.85} \approx 2.824 \]Step 2: Compare to the standard normal distribution. A statistic of \( W \approx 2.824 \) gives a two-sided p-value of approximately \( p \approx 0.0047 \), well below \( \alpha = 0.05 \): the slope coefficient is significantly different from zero-this predictor has a statistically meaningful relationship with the outcome. Equivalently, \( W^2 \approx 7.97 \) compared to a \( \chi^2_1 \) distribution gives the same p-value.
Step 3: Build the corresponding 95% confidence interval. The same standard error that drives the test statistic also gives a confidence interval for the coefficient itself:
\[ \hat{\beta}_1 \pm 1.96 \times \widehat{SE}(\hat{\beta}_1) = 2.4 \pm 1.96(0.85) \approx [0.734,\ 4.066] \]The interval excludes zero, consistent with the significant p-value above-this is not a coincidence, since the Wald Test and the corresponding confidence interval are two views of exactly the same standard-error calculation.
Worked Example 2: A Logistic Regression Coefficient
Now suppose a hospital readmission model is fit by maximum likelihood logistic regression on \( n = 800 \) patients, and the coefficient for "number of prior admissions" comes out as \( \hat{\beta} = 0.42 \) (on the log-odds scale) with an estimated standard error \( \widehat{SE}(\hat{\beta}) = 0.11 \), obtained from the inverse observed Fisher information at convergence (shown numerically in the Python section below).
\[ W = \frac{0.42 - 0}{0.11} \approx 3.818 \]This gives a two-sided p-value of approximately \( p \approx 0.00013 \), far below \( \alpha = 0.05 \): prior admissions is a highly significant predictor of readmission risk. Converting the coefficient to an odds ratio, \( e^{0.42} \approx 1.522 \), with a 95% confidence interval of \( e^{0.42 \pm 1.96(0.11)} \approx [1.226,\ 1.889] \)-each additional prior admission is associated with roughly 22% to 89% higher odds of readmission, holding other predictors fixed. Reporting the odds ratio and its interval alongside the Wald p-value turns a bare significance statement into an interpretable clinical effect size.
Python Example
statsmodels computes and reports Wald z-statistics (and their p-values) automatically for every coefficient in a fitted GLM summary, and also exposes a general wald_test method for custom linear hypotheses:
import numpy as np
import pandas as pd
import statsmodels.api as sm
# Worked Example 2: 800 patients, readmitted ~ prior_admissions + age + los
rng = np.random.default_rng(42)
n = 800
prior_admissions = rng.poisson(1.5, n)
age = rng.uniform(20, 90, n)
los = rng.uniform(1, 14, n) # length of stay in days
logit_p = (-2.0 + 0.42 * prior_admissions + 0.01 * age + 0.03 * los)
prob = 1 / (1 + np.exp(-logit_p))
readmitted = rng.binomial(1, prob, n)
df = pd.DataFrame({
"prior_admissions": prior_admissions,
"age": age,
"los": los,
"readmitted": readmitted,
})
X = sm.add_constant(df[["prior_admissions", "age", "los"]])
model = sm.GLM(df["readmitted"], X, family=sm.families.Binomial()).fit()
print(model.summary())
# Wald z-statistic and p-value for a single coefficient
coef = model.params["prior_admissions"]
se = model.bse["prior_admissions"]
wald_z = coef / se
p_value = model.pvalues["prior_admissions"]
print(f"\nCoefficient: {coef:.3f}")
print(f"Standard error: {se:.3f}")
print(f"Wald z-statistic: {wald_z:.3f}")
print(f"p-value: {p_value:.6f}")
print(f"Odds ratio: {np.exp(coef):.3f}")
Output (illustrative, seeded for reproducibility):
Coefficient: 0.417
Standard error: 0.109
Wald z-statistic: 3.826
p-value: 0.000130
Odds ratio: 1.517
These figures closely track Worked Example 2's hand-calculated values. For testing several coefficients jointly-such as whether both age and los are simultaneously zero-statsmodels' built-in Wald test takes a restriction matrix directly:
joint_test = model.wald_test("age = 0, los = 0", scalar=True)
print(f"Joint Wald statistic: {joint_test.statistic:.3f}")
print(f"p-value: {joint_test.pvalue:.4f}")
print(f"degrees of freedom: {joint_test.df_denom}")
Joint Wald statistic: 4.812
p-value: 0.0902
degrees of freedom: 2 confirming that the same standard-error machinery scales cleanly from a single-coefficient z-test to a multi-parameter joint test, without ever needing to refit a restricted model.
How to Interpret Results
A significant Wald Test tells you that a parameter differs from its hypothesized value by more than sampling variability would plausibly produce-most commonly, that a regression coefficient is significantly different from zero. It does not, by itself, tell you the practical size of the effect; report the point estimate and its confidence interval (as in Worked Example 2 above) alongside the p-value so readers can judge both statistical and practical significance.
It is also worth remembering what the Wald Test does not check: it says nothing about whether the overall model is well specified, whether other predictors are correctly included, or whether the relationship is truly linear on the modeled scale-only whether this one parameter, in this one model, differs from the hypothesized value.
Checking Assumptions in Practice
Before trusting a Wald Test result, confirm that the model actually converged to a genuine maximum likelihood solution-optimizer warnings about non-convergence or a near-singular information matrix are a sign that the reported standard error, and therefore the whole test, may not be trustworthy.
Next, check whether the coefficient estimate is unusually large or the model shows signs of (near-)complete separation, especially in logistic regression with a strongly predictive categorical or binary feature; in that regime the standard error can become inflated and the Wald Test can understate significance even for a real effect (see the limitations section below). Finally, for small samples, consider cross-checking a borderline Wald result against a Likelihood Ratio Test, which tends to be more reliable when the two disagree.
Advantages
- Computationally cheap-requires fitting only the full (unrestricted) model once, unlike the Likelihood Ratio Test, which requires fitting both a restricted and a full model.
- Directly produces a confidence interval for the parameter using the same standard error, giving both a significance test and an effect-size interval from one calculation.
- Generalizes cleanly to testing several parameters, or arbitrary linear combinations of parameters, jointly via the quadratic-form statistic.
- Is exactly what almost every regression software package already reports by default next to each coefficient, making it the most familiar and widely used of the three classical likelihood-based tests.
Limitations
- Can behave poorly when the parameter estimate is far from the null value or the log-likelihood surface is strongly non-quadratic, since the test relies on the standard error estimated at the fitted value rather than along the whole likelihood curve.
- Susceptible to the Hauck-Donner effect: with (near-)complete separation or very large coefficient estimates, the standard error can inflate dramatically, causing the Wald Test to fail to detect an effect that a Likelihood Ratio Test would correctly flag as significant.
- Not invariant to reparameterization-testing a coefficient on one scale (e.g., log-odds) versus a transformed scale (e.g., odds ratio directly) can, in finite samples, give slightly different p-values even though the underlying hypothesis is mathematically equivalent.
- Like other significance tests, a significant result establishes that a parameter differs from the null value statistically but not its practical or clinical importance, making an accompanying confidence interval essential.
When NOT to Use It
- Likelihood Ratio Test: a more reliable alternative when the coefficient estimate is large, the model shows signs of separation, or the sample is small-see the comparisons section below for when the two tests can disagree.
- Score Test: use instead when fitting the full model is expensive or numerically unstable, since the score test only requires fitting the restricted (null) model.
- Exact test (e.g., Fisher's Exact Test): use instead with very small samples or sparse categorical data, where the asymptotic normal approximation underlying the Wald Test is unreliable.
- Bootstrap confidence interval: a reasonable alternative when you are unsure the asymptotic standard error is trustworthy and want an empirical alternative that makes fewer distributional assumptions.
Wald Test vs Likelihood Ratio Test vs Score Test vs t-Test
16.1 Wald Test vs Likelihood Ratio Test
| Aspect | Wald Test | Likelihood Ratio Test |
|---|---|---|
| Models fit | Full model only | Both restricted and full models |
| Basis | Standardized distance of estimate from null value | Difference in maximized log-likelihoods |
| Reliability with large estimates or separation | Can understate significance (Hauck-Donner effect) | Generally more reliable in these cases |
16.2 Wald Test vs Score Test
| Aspect | Wald Test | Score Test |
|---|---|---|
| Model fit required | Full (unrestricted) model | Restricted (null) model only |
| Basis | Curvature of the log-likelihood at the full model's maximum | Slope (gradient) of the log-likelihood at the restricted estimate |
| Typical use case | Default in most regression software output | Useful when the full model is hard or slow to fit |
16.3 Wald Test vs the Classical t-Test / z-Test
| Aspect | Wald Test | Classical t-Test / z-Test |
|---|---|---|
| Relationship | General framework for any maximum likelihood parameter | A special case of the Wald Test for a mean or OLS coefficient |
| Reference distribution | Standard normal (large-sample) or chi-square (multi-parameter) | Student's t (finite-sample, under normal errors) or z |
| Scope | Any likelihood-based model: GLMs, survival models, and more | Traditionally means and OLS regression coefficients |
Common Misconceptions
- "The p-value in my regression summary table isn't a real hypothesis test." It is-the p-value reported next to almost every coefficient in standard regression output is a Wald Test of that coefficient against a null value of zero.
- "The Wald Test and the Likelihood Ratio Test will always agree." Not necessarily-they are only asymptotically equivalent; in finite samples, especially with large coefficient estimates or near-separation, they can give meaningfully different p-values, as discussed in the comparisons section above.
- "A non-significant Wald Test always means the true effect is zero." Not necessarily- with (near-)complete separation the Wald standard error can inflate dramatically, causing the test to miss a real effect that a Likelihood Ratio Test would catch; see the limitations section above.
- "The Wald Test requires refitting a restricted model, just like the Likelihood Ratio Test." No-this is precisely what distinguishes it: the Wald Test uses only the full model's fit and its standard error, with no separate restricted-model fit required.
- "A significant Wald Test proves the coefficient's practical importance." No-the test only establishes statistical significance; always report the point estimate and confidence interval alongside the p-value to judge practical importance, as both worked examples above do.
Interview Questions
- Walk through how the Wald Test statistic is constructed from a maximum likelihood estimate and its standard error, and explain where the standard error itself comes from.
- Explain the Hauck-Donner effect and why it can cause the Wald Test to fail to detect a real effect.
- Why does the Wald Test only require fitting the full model, while the Likelihood Ratio Test requires fitting both the restricted and full models?
- How does the Wald Test generalize from testing one parameter to testing several parameters jointly?
- Compare and contrast the Wald Test, the Likelihood Ratio Test, and the Score Test-when might their conclusions disagree, and which would you trust more in that case?
- Explain the relationship between a regression coefficient's t-statistic (or z-statistic) in standard software output and the Wald Test.
- Why is the Wald Test not generally invariant to reparameterization, and what practical implication does that have?
- What role does the Fisher information matrix play in computing the Wald Test's standard error?
- Why can a significant Wald Test not, by itself, be used to justify a variable's practical or business importance?
- How would you decide whether to trust a borderline Wald Test result or cross-check it with a Likelihood Ratio Test?
Frequently Asked Questions
- The Wald Test is used to determine whether a single parameter-most often a regression coefficient-in a maximum likelihood model is significantly different from a hypothesized value, typically zero, by measuring how many standard errors the fitted estimate sits away from that value.
- For one parameter, W = (theta_hat - theta_0) / SE(theta_hat), where theta_hat is the maximum likelihood estimate, theta_0 is the hypothesized value, and SE(theta_hat) is the estimate's standard error from the Fisher information matrix. Under the null hypothesis, W follows approximately a standard normal distribution, or equivalently W^2 follows a chi-square distribution with 1 degree of freedom.
- Looking at the standard error alone tells you the precision of the estimate but not whether the estimate itself is significantly different from a specific hypothesized value. The Wald Test combines both pieces of information into a single standardized statistic and a formal p-value, which is exactly what most regression output tables (the 'z' or 't' column) already report for you.
- The model must be fit by maximum likelihood, the sample size should be large enough for the asymptotic normal distribution of the estimator to hold, the standard error must be estimated consistently from the observed or expected Fisher information, and the true parameter value should not be too close to a boundary of the parameter space, where the normal approximation becomes unreliable.
- If the p-value is below your chosen significance level (commonly alpha = 0.05), you reject the null hypothesis and conclude the parameter differs significantly from its hypothesized value-most commonly, that a coefficient is significantly different from zero. If the p-value is at or above alpha, there is not enough evidence that the parameter differs from the null value.
- Essentially yes-the t-statistic or z-statistic reported next to each coefficient in standard regression output is a Wald Test of that coefficient against a null value of zero. In ordinary least squares with normal errors this uses a t-distribution to account for estimated variance; in maximum-likelihood models such as logistic regression, the same construction uses the standard normal distribution asymptotically.
Key Takeaways
- The Wald Test checks whether a single maximum-likelihood parameter-most often a regression coefficient-differs significantly from a hypothesized value, by standardizing the distance between the estimate and that value by its standard error.
- It is the test already behind the p-value column in most regression output, and it generalizes cleanly to testing several parameters jointly via a quadratic-form chi-square statistic.
- Core assumptions: a proper maximum likelihood fit, a consistently estimated standard error, a sufficiently large sample for the asymptotic normal approximation, and a parameter not sitting near a boundary of its parameter space.
- Its biggest advantage-needing only the full model's fit-is also its biggest weak spot: large estimates or near-separation can inflate the standard error and understate significance (the Hauck-Donner effect).
- If \( p < 0.05 \), the parameter differs significantly from the null value; if \( p \geq 0.05 \), there isn't enough evidence of a real difference-but coefficient magnitude and model convergence, not just the p-value, determine how much to trust the result.
- Always report the point estimate and its confidence interval alongside the p-value, and cross-check borderline or unusually large estimates against a Likelihood Ratio Test, as demonstrated in the worked examples above.
The Wald Test earns its place as the default significance test in applied statistics precisely because it is so economical: fit one model, read off a coefficient and its standard error, and you already have a formal hypothesis test and a confidence interval in the same calculation. Its logic is refreshingly direct- standardize how far the estimate sits from the hypothesized value by how precisely that estimate was pinned down, and let the normal distribution translate that standardized distance into a p-value.
The two worked examples above, a simple regression slope and a logistic regression coefficient converted to an interpretable odds ratio, show the test's everyday utility, and the comparisons and limitations sections make clear where its convenience comes with a cost: unlike the Likelihood Ratio Test, the Wald Test can understate significance for large coefficients or near-separated data, exactly the regime where the Hauck-Donner effect bites hardest. Reporting the point estimate and confidence interval alongside the p-value, and cross-checking unusually large or borderline estimates against a Likelihood Ratio Test as suggested above, gives a complete and honest picture that the p-value column alone cannot.