Author-reviewedEvidence: highv1.0.1

Stochastic Frontier Analysis

Stochastic frontier analysis (SFA) is a regression method that scores hospital or health system efficiency, separating inefficiency from random noise.

Last reviewed byDr Darrin Baines

Concept Architecture

Stochastic Frontier Analysis in Hospital and Health System Efficiency

Stochastic frontier analysis (SFA) fits a best-practice production or cost frontier by regression and then asks how much of each hospital's distance from that frontier reflects inefficiency rather than chance. In health economics SFA is the main parametric alternative to data envelopment analysis, used to benchmark hospitals and to study the correlates of hospital cost inefficiency. The regression error is split into a symmetric noise term and a one-sided inefficiency term, and only assumptions about their distributions separate the two. Those assumptions and the case-mix controls decide how much excess cost is labelled inefficiency, so the scores are signals for investigation, not measured waste.

Why a hospital frontier needs a noise term

Production theory defines the frontier as the most output obtainable from given inputs, and technical efficiency as a unit's shortfall from that frontier. Aigner, Lovell and Schmidt noted that earlier parametric frontiers, fitted by mathematical programming, were extremely sensitive to outliers and gave estimates with no known statistical properties. Their alternative made the frontier itself stochastic, so a producer hit by drought would count as unlucky on their measure, not as inefficient.

Hospital data have obvious sources of noise. Jacobs, studying NHS trusts for the Centre for Health Economics, cites unexpected spending on repairs and temporarily high unobservable disease severity. A deterministic frontier reads every such shock, and every coding error, as inefficiency.

The composed error model

The model adds two error terms to a regression of logged output on logged inputs. For a production frontier and hospital ii the model is written as follows.

ln⁡yi=xiβ+vi−ui,vi∼N(0,σv2),ui≥0\ln y_i = \mathbf{x}_i \boldsymbol{\beta} + v_i - u_i, \qquad v_i \sim N(0, \sigma_v^2), \qquad u_i \ge 0

where yiy_i is output, xi\mathbf{x}_i is a row vector of logged inputs and other regressors, β\boldsymbol{\beta} is the vector of frontier parameters, viv_i is symmetric noise with variance σv2\sigma_v^2, and uiu_i is non-negative inefficiency, independent of viv_i. Aigner, Lovell and Schmidt concentrated on a half-normal inefficiency term and also considered an exponential one, and the Stata manual for its frontier command adds a truncated normal option.

The model collapses to a deterministic frontier when the noise variance is zero and to an ordinary stochastic production function when the inefficiency variance is zero. Aigner, Lovell and Schmidt argued that efficiency should be measured against the noisy frontier xiβ+vi\mathbf{x}_i \boldsymbol{\beta} + v_i, not against xiβ\mathbf{x}_i \boldsymbol{\beta} alone, which in the log model gives a simple ratio.

TEi=yiexp⁡(xiβ+vi)=exp⁡(−ui)TE_i = \frac{y_i}{\exp(\mathbf{x}_i \boldsymbol{\beta} + v_i)} = \exp(-u_i)

where TEiTE_i is the technical efficiency of hospital ii, between 0 and 1. A cost frontier reverses the sign because inefficiency raises spending, and the Stata manual writes both cases as vi−suiv_i - s u_i, with s=1s = 1 for production and s=−1s = -1 for a cost function.

Estimating the frontier by maximum likelihood

The parameters are fitted by maximum likelihood estimation from the density of a normal plus a half-normal variable. The Stata manual gives the log-likelihood for this model.

ln⁡L=∑i=1N{12ln⁡(2π)−ln⁡σS+ln⁡Φ(−sϵiλσS)−ϵi22σS2}\ln L = \sum_{i=1}^{N} \left\{ \frac{1}{2} \ln\left(\frac{2}{\pi}\right) - \ln \sigma_S + \ln \Phi\left(-\frac{s \epsilon_i \lambda}{\sigma_S}\right) - \frac{\epsilon_i^2}{2 \sigma_S^2} \right\}

where NN is the number of hospitals, ϵi=ln⁡yi−xiβ\epsilon_i = \ln y_i - \mathbf{x}_i \boldsymbol{\beta} is the composed residual, σS=(σu2+σv2)1/2\sigma_S = (\sigma_u^2 + \sigma_v^2)^{1/2}, λ=σu/σv\lambda = \sigma_u / \sigma_v, Φ\Phi is the standard normal distribution function and ss is the sign defined above. Software also reports γ=σu2/σS2\gamma = \sigma_u^2 / \sigma_S^2.

Aigner, Lovell and Schmidt read λ\lambda as an indicator of the relative variability of the two error sources, with values near zero meaning that noise dominates. They warned that σu2\sigma_u^2 is not the variance of uu, which is (π−2)σu2/π(\pi - 2)\sigma_u^2 / \pi, so γ\gamma is not literally the inefficiency share of residual variance. The mean of the half-normal term is σu2/π\sigma_u \sqrt{2/\pi}.

Inefficiency skews ordinary least squares residuals negatively in a production function and positively in a cost function, and the Stata manual describes Coelli's third-moment test built on that skewness. A test of no inefficiency lies on the boundary of the parameter space, so the standard likelihood ratio test is not valid and a one-sided version is used.

Recovering inefficiency for each hospital

Each hospital's residual still mixes viv_i and uiu_i. Hospital studies by Mutter and colleagues and by Rosko and colleagues follow Jondrow and colleagues and predict inefficiency from its distribution conditional on the residual, given in the Stata manual as follows.

u^i=E(ui∣ϵi)=μ∗i+σ∗ϕ(μ∗i/σ∗)Φ(μ∗i/σ∗),μ∗i=−sϵiσu2σS2,σ∗=σuσvσS\hat{u}_i = E(u_i \mid \epsilon_i) = \mu_{*i} + \sigma_* \frac{\phi(\mu_{*i} / \sigma_*)}{\Phi(\mu_{*i} / \sigma_*)}, \qquad \mu_{*i} = \frac{-s \epsilon_i \sigma_u^2}{\sigma_S^2}, \qquad \sigma_* = \frac{\sigma_u \sigma_v}{\sigma_S}

where u^i\hat{u}_i is predicted inefficiency, ϕ\phi is the standard normal density, and μ∗i\mu_{*i} and σ∗\sigma_* are the parameters of the normal distribution that, truncated at zero, gives the conditional distribution. The manual also gives the estimator E{exp⁡(−sui)∣ϵi}E\{\exp(-s u_i) \mid \epsilon_i\}, which for a cost frontier is a ratio of observed to frontier cost of 1 or more.

The prediction shrinks each residual towards the average inefficiency and inherits every distributional assumption of the model.

Worked example with two hospitals on a cost frontier

The figures are illustrative. A half-normal cost frontier for acute hospitals gives σu=0.20\sigma_u = 0.20 and σv=0.10\sigma_v = 0.10. Hospital A spends GBP 67.5 million against a frontier cost exp⁡(xAβ)\exp(\mathbf{x}_A \boldsymbol{\beta}) of GBP 50 million, so ϵA=ln⁡(67.5/50)=0.30\epsilon_A = \ln(67.5/50) = 0.30, and hospital B spends GBP 52.6 million against the same frontier cost, so ϵB=ln⁡(52.6/50)=0.05\epsilon_B = \ln(52.6/50) = 0.05.

σS2=0.202+0.102=0.05,σS=0.2236,λ=0.200.10=2,γ=0.040.05=0.8,σ∗=0.20×0.100.2236=0.0894\sigma_S^2 = 0.20^2 + 0.10^2 = 0.05, \qquad \sigma_S = 0.2236, \qquad \lambda = \frac{0.20}{0.10} = 2, \qquad \gamma = \frac{0.04}{0.05} = 0.8, \qquad \sigma_* = \frac{0.20 \times 0.10}{0.2236} = 0.0894

where the symbols are as defined above. With s=−1s = -1, μ∗i=0.8ϵi\mu_{*i} = 0.8 \epsilon_i. For A, μ∗A=0.24\mu_{*A} = 0.24 and μ∗A/σ∗=2.683\mu_{*A} / \sigma_* = 2.683, where ϕ=0.0109\phi = 0.0109 and Φ=0.9964\Phi = 0.9964, a ratio of 0.0109.

u^A=0.24+0.0894×0.0109=0.2410\hat{u}_A = 0.24 + 0.0894 \times 0.0109 = 0.2410

where u^A\hat{u}_A is A's predicted inefficiency. For B, μ∗B=0.04\mu_{*B} = 0.04 and μ∗B/σ∗=0.447\mu_{*B} / \sigma_* = 0.447, where ϕ=0.3610\phi = 0.3610 and Φ=0.6726\Phi = 0.6726, a ratio of 0.5367.

u^B=0.04+0.0894×0.5367=0.0880\hat{u}_B = 0.04 + 0.0894 \times 0.5367 = 0.0880

where u^B\hat{u}_B is B's predicted inefficiency. As frontier cost over observed cost, A scores exp⁡(−0.2410)=0.786\exp(-0.2410) = 0.786 and B scores exp⁡(−0.0880)=0.916\exp(-0.0880) = 0.916.

HospitalResidualScore if all residual were inefficiencyPredicted inefficiencySFA score
A0.300.7410.2410.786
B0.050.9510.0880.916

A deterministic reading puts the two hospitals 0.210 apart. The stochastic model pulls both towards the mean inefficiency of σu2/π=0.20×0.798=0.160\sigma_u \sqrt{2/\pi} = 0.20 \times 0.798 = 0.160 and narrows the gap to 0.130. About a fifth of A's residual is attributed to noise, while B is credited with some inefficiency because noise may have flattered its costs. The ranking holds, but the amount of shrinkage rests entirely on the half-normal assumption and the estimated λ\lambda.

Cost frontiers and what the inefficiency term contains

Hollingsworth points out that a production frontier needs all outputs aggregated into one measure, which he calls questionable in health care, so researchers often estimate cost frontiers, since costs sum in money. A typical hospital model regresses logged total cost on outputs such as admissions and outpatient visits, input prices and product descriptors such as a case-mix index, dividing through by the wage to impose linear homogeneity in input prices. Mutter and colleagues used a translog form. Including case mix and producer characteristics also lets hypotheses about the correlates of inefficiency be tested statistically.

A cost frontier changes what uiu_i means. Jacobs explains that the term reflects technical inefficiency only if allocative efficiency is assumed, and otherwise combines technical and allocative failures that the method cannot separate, although the two call for different policy responses. Rosko and colleagues chose SFA precisely because cost efficiency is the broader measure.

Evidence from hospital applications

Rosko and colleagues date the first health care application to Wagstaff's 1989 study of 49 Spanish hospitals. Rosko and Mutter counted at least 27 SFA studies of United States hospitals by 2011, and an earlier review of 20 found SFA results relatively insensitive to several model variations.

Mutter, Rosko and Wong studied 1,290 urban acute hospitals in 20 states in 2001. Adding comorbidity measures lowered mean estimated inefficiency from 0.174 in their first model to 0.143 in the first model that included them, and they concluded that patient burden of illness had been masquerading as inefficiency.

In Jacobs's NHS study, stochastic cost frontiers with a half-normal inefficiency term replicated five DEA specifications. Mean efficiency lay between 0.831 and 0.876, scores were spread much more narrowly than with DEA, and they correlated at around 0.7 with the Department of Health's regression cost indices. Jacobs concluded that the data held a large amount of random noise and that savings from bringing up poorer performing trusts would be very modest.

Choosing between SFA and data envelopment analysis

Jacobs describes a trade-off. SFA allows for noise but imposes a functional form and strong assumptions about the inefficiency term, DEA needs no functional form but counts all deviation as inefficiency, and each rests on assumptions that cannot be tested. Rosko and colleagues report that the hospital literature has established no preference for either and that the choice should follow the aim of the analysis and the data. Hollingsworth concludes that a mix of DEA and SFA specifications often makes most sense, in the hope of consistent results.

Panel data allow fixed effects for each hospital, whose standard errors Jacobs suggests could show how far a trust differs from best practice. The WHO's 2001 comparison of 191 health systems used country fixed effects and, as Cylus and Pearson describe, ranked Oman first. Gravelle and colleagues judged the approach inappropriate, partly because 50 countries had one year of data, and in a between-country model Oman fell to 169th.

Reading the scores and common misreadings

An SFA score is relative to the frontier estimated from the sample, and Cylus and Pearson note that frontier methods assume all units share the same production possibilities. Jacobs concluded that scores should not be read as accurate point estimates, that several specifications should give ranges that act as signals, and that funding decisions should not rest entirely on them. Hollingsworth adds that inefficiency may be under or overestimated if the normality assumption fails, and that functional form is another source of error.

Three misreadings recur. The inefficiency term is treated as proven waste, when it also holds unmeasured case mix or quality. A cost frontier score is called technical efficiency, when it may include allocative inefficiency. Scores from different samples or models are compared directly, although each frontier belongs to its own data. SFA compares producers such as hospitals or health systems and is unrelated to the cost-effectiveness frontier used for treatments in health technology assessment. Change over time is tracked with a Malmquist index, and single-number summaries are covered under efficiency index.

Sources

Library

Publications

1
  • Journal article

    Productivity Growth in the English National Health Service from 1998/1999 to 2013/2014 — Chris Bojke, Adriana Castelli, Katja Grašič and Andrew Street, Vol. 26, No. 5 ed., 2017 (Health Economics)

    The York Centre for Health Economics measurement of NHS productivity growth as a chained index of outputs over inputs across 15 years, the standard methodological reference for English NHS productivity analysis.

Frequently Asked Questions (6)

  • What is stochastic frontier analysis?

    Stochastic frontier analysis (SFA) is a regression method that scores hospital or health system efficiency, separating inefficiency from random noise.

    Source: Hollingsworth 2016

  • What relative efficiency does stochastic frontier analysis estimate?

    Stochastic frontier analysis scores each producer against a best-practice frontier fitted to the sample, so the efficiency it reports is relative to the other hospitals or health systems in the data. On a production frontier the score is technical efficiency, the ratio of observed output to the noisy frontier output, which lies between 0 and 1. Hospital studies often fit a cost frontier instead. Jacobs explains that the one-sided cost term reflects technical inefficiency only if allocative efficiency is assumed, and otherwise combines technical and allocative failures that the method cannot separate, so the score is better read as cost efficiency.

    Source: Jacobs 2000

  • What does stochastic frontier analysis estimate?

    Stochastic frontier analysis estimates the parameters of a production or cost frontier by maximum likelihood, together with the spread of a symmetric noise term and a one-sided inefficiency term. Software also reports lambda, the ratio of the two standard deviations, and gamma, which divides sigma u squared by the sum of sigma u squared and sigma v squared. Each residual still mixes noise and inefficiency, so inefficiency for a single hospital is predicted from its distribution conditional on the residual. The Stata manual gives this conditional mean and a related efficiency estimator, and both predictions depend on the distribution assumed for inefficiency.

    Source: StataCorp 2025

  • What does stochastic frontier analysis account for?

    Stochastic frontier analysis allows for random noise in each producer's observed performance, which a deterministic frontier would count wholly as inefficiency. Aigner, Lovell and Schmidt introduced the composed error because frontiers fitted by mathematical programming were extremely sensitive to outliers and gave estimates with no known statistical properties. In their model a producer hit by bad luck, such as a drought, falls short of the deterministic frontier without being judged inefficient. The model reduces to a deterministic frontier when the noise variance is zero, and to an ordinary stochastic production function when the inefficiency variance is zero.

    Source: Aigner, Lovell & Schmidt 1977

  • What kind of method is stochastic frontier analysis?

    Stochastic frontier analysis fits a frontier by regression with an assumed functional form, which makes it a parametric econometric method, and splits the regression error into inefficiency and statistical noise. Hollingsworth notes that a production frontier needs all outputs aggregated into one measure, which is questionable in health care, so researchers often estimate cost frontiers because costs sum in money. Including case mix and producer characteristics lets hypotheses about the correlates of efficiency be tested statistically. He also warns that inefficiency may be under or overestimated if the normality assumption fails, and that the functional form is a further source of error.

    Source: Hollingsworth 2016

  • How does stochastic frontier analysis relate to data envelopment analysis?

    Stochastic frontier analysis and data envelopment analysis both score producers against a best-practice frontier, but they treat deviations from it differently. Jacobs sets out the trade-off, since SFA allows for random noise while imposing a functional form and strong assumptions about the inefficiency term, and DEA needs no functional form but counts all deviation from the frontier as inefficiency. In her study of NHS trusts, stochastic cost frontiers gave scores spread much more narrowly than DEA, and she argued that the two methods measure slightly different aspects of efficiency. She recommended using several specifications of both and treating the results as signals for investigation.

    Source: Jacobs 2000

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 29 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HS-NHS-PM-020
Wikidata
Q7617818

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