Library · Statistics

The Fay-Herriot model

A survey gives a direct estimate for every area, precise for large areas and noisy for small ones. The Fay-Herriot model pulls each estimate toward a regression prediction, more strongly where the survey is less reliable.

By , published

Definition

For area i, the direct estimate yi equals the true value θi plus a sampling error of known variance Di. The true values follow a regression on area-level covariates xi, with a model error of variance A. Fay and Herriot used the model in 1979 to estimate income for small places in the United States.

estimatei = γi yi + (1 − γi) xiβ,   γi = A ÷ ( A + Di )

The weight γ is close to 1 where the survey is precise, and the direct estimate is kept. It is close to 0 where the survey is noisy, and the regression takes over. A and β are estimated from all areas together.

Worked example

Three hundred areas are simulated with a known truth. The model variance is estimated by maximum likelihood, and three estimators are compared: the direct estimate, the regression alone, and Fay-Herriot. The coverage of 95 % intervals is then checked, first when the model is right, then when the areas with the noisiest surveys also vary more than the model assumes.

import numpy as np
from scipy import optimize

rng = np.random.default_rng(30)
m = 300
x = rng.normal(size=m)
D = rng.uniform(0.2, 4.0, m)                     # known sampling variances
X = np.column_stack([np.ones(m), x])

def fit(y):
    def beta(A):
        w = 1 / (A + D)
        return np.linalg.solve((X.T * w) @ X, (X.T * w) @ y)
    def nll(A):
        r = y - X @ beta(A)
        return 0.5 * np.sum(np.log(A + D) + r ** 2 / (A + D))
    A = optimize.minimize_scalar(nll, bounds=(1e-6, 20), method="bounded").x
    g = A / (A + D)
    return A, g * y + (1 - g) * (X @ beta(A)), X @ beta(A), g

rmse = lambda est, truth: np.sqrt(np.mean((est - truth) ** 2))
noisy = D > np.quantile(D, 0.8)
for label, sd_model in [("model is right", np.ones(m)), ("noisy areas vary more", np.where(noisy, 2.5, 1.0))]:
    theta = 2 + 1.5 * x + rng.normal(size=m) * sd_model
    y = theta + rng.normal(size=m) * np.sqrt(D)
    A, fh, synth, g = fit(y)
    inside = np.abs(fh - theta) <= 1.96 * np.sqrt(g * D)
    print(f"{label:22s} A = {A:.2f}  RMSE direct {rmse(y, theta):.2f}, regression {rmse(synth, theta):.2f}, Fay-Herriot {rmse(fh, theta):.2f}"
          f"  coverage: all {inside.mean():.0%}, noisiest fifth {inside[noisy].mean():.0%}")

Output, produced by running the code above when this page was built:

model is right         A = 1.00  RMSE direct 1.49, regression 0.98, Fay-Herriot 0.80  coverage: all 95%, noisiest fifth 95%
noisy areas vary more  A = 1.36  RMSE direct 1.49, regression 1.50, Fay-Herriot 1.17  coverage: all 89%, noisiest fifth 63%

Fay-Herriot has the lowest error of the three estimators in both cases. When the model is right, its intervals cover at about the nominal rate. When the noisiest areas vary more than assumed, their coverage falls far below 95 % while the overall figure loses only a few points.

Where it misleads

  • The sampling variances are treated as known. In practice they are estimated, often from few respondents, and smoothed. Errors in them go straight into the weights.
  • One model variance for all areas is an assumption. When small areas are more diverse than large ones, the intervals of small areas are too narrow, exactly where the model does most of the work.
  • The interval in the example ignores the uncertainty in the estimated model variance. Prasad and Rao gave the correction, which matters when the number of areas is small.
  • Shrinkage reduces the average error and pulls unusual areas toward the regression line. An area that really is different is partly hidden. Estimates for a ranking or for detecting outliers need another loss function.

Coverage should be checked by group of areas, as in prediction interval coverage, whenever a truth is available, for example a census year.

In our work

In our study on 3,781 French communes, checked against the 2023 census, Fay-Herriot cut the error of the typical commune by 85 % against the direct estimate. The standard 95 % intervals covered the census value 54 % of the time; letting small communes vary more than large ones brought that to 96 %.

References

  1. Fay, R. E., Herriot, R. A. (1979). Estimates of income for small places: an application of James-Stein procedures to census data. Journal of the American Statistical Association, 74(366a), 269-277. doi:10.1080/01621459.1979.10482505
  2. Prasad, N. G. N., Rao, J. N. K. (1990). The estimation of the mean squared error of small-area estimators. Journal of the American Statistical Association, 85(409), 163-171. doi:10.1080/01621459.1990.10475320
  3. Ghosh, M., Rao, J. N. K. (1994). Small area estimation: an appraisal. Statistical Science, 9(1), 55-76. doi:10.1214/ss/1177010647

Have a question like this one on your own data? Tell us what you need in a few lines.

Send us the brief

Related pages

  • Prediction interval coverage and the Winkler scoreCoverage is the share of outcomes that fall inside the prediction intervals. It is the first check on any interval, and it needs enough periods to mean something. The Winkler score adds a penalty for the interval width.
  • The positive control: a planted effectBefore concluding that nothing is there, check that the test could have seen something. A positive control adds an effect of known size to the data and measures how often the analysis detects it.
  • Split conformal predictionConformal prediction wraps any model. It measures the errors on data set aside, and uses their quantile as the half-width of the prediction interval. The average coverage is guaranteed without assuming a distribution, under one condition.
All library pages