# 随机前沿分析

随机前沿分析（Stochastic frontier analysis, SFA）是一种计量经济学方法，用于估计生产、成本或距离前沿，并将每个企业偏离该前沿的差值分解为无效率和随机噪声。它返回前沿参数以及样本中每个单元的技术效率或成本效率得分。格林（Greene）的综述章节将艾格纳、洛弗尔和施密特（Aigner, Lovell, and Schmidt, 1977）的模型描述为效率分析“如今的标准计量经济学平台”，<sup>[1](https://pages.stern.nyu.edu/~wgreene/StochasticFrontierModels.pdf)</sup> 该方法在孔巴卡尔和洛弗尔（Kumbhakar and Lovell）的剑桥专著《随机前沿分析》（*Stochastic Frontier Analysis*, 2000）中得到了系统化阐述，该书发展了横截面数据与[面板数据](https://www.edgepedia.org/zh/panel-data)的生产、成本和利润前沿估计。<sup>[2](https://www.cambridge.org/core/books/stochastic-frontier-analysis/510E56C2F890A0E6B38B4C4B241645B6)</sup> 该模型于1977年由艾格纳、洛弗尔和施密特<sup>[3](https://doi.org/10.1016/0304-4076%2877%2990052-5)</sup> 以及缪森和范登布鲁克（Meeusen and van den Broeck）<sup>[4](https://doi.org/10.2307/2525757)</sup> 几乎同时提出。

| 关键事实 | 详情 |
|---|---|
| 估计内容 | 前沿参数（α, β）和单元级效率 \( TE = \exp(-u) \in (0, 1] \)；\( TE = 0.85 \) 表示该单元产出为最大可行产出的85%<sup>[5](https://panelbox.readthedocs.io/en/latest/theory/sfa-theory/)</sup> |
| 复合误差 | 生产前沿为 \( \varepsilon = v - u \)，成本前沿为 \( \varepsilon = v + u \)；v 为对称噪声，u 为单边无效率<sup>[6](https://panelbox.readthedocs.io/en/latest/user-guide/frontier/production-cost/)</sup> |
| 方差参数 | \( \lambda = \sigma_u/\sigma_v \)（信噪比）和 \( \gamma = \sigma_u^2/(\sigma_v^2 + \sigma_u^2) \)，即无效率占总方差的比例<sup>[5](https://panelbox.readthedocs.io/en/latest/theory/sfa-theory/)</sup><sup> • </sup><sup>[6](https://panelbox.readthedocs.io/en/latest/user-guide/frontier/production-cost/)</sup> |
| 估计方法 | 最大似然法；效率得分来自给定 ε 条件下 u 的条件分布（JLMS 和巴蒂斯–科埃利预测器）<sup>[7](https://www.stata.com/manuals/rfrontier.pdf)</sup><sup> • </sup><sup>[8](https://doi.org/10.1016/0304-4076%2882%2990004-5)</sup> |
| 常见无效率分布 | 半正态、指数、截断正态、伽马；sfaR 实现了十种分布<sup>[9](https://journals.sagepub.com/doi/10.1177/1536867X1301300404)</sup><sup> • </sup><sup>[10](https://hdakpo.r-universe.dev/sfaR/doc/manual.html)</sup> |
| 主要软件 | Stata（frontier、sfcross、sfpanel）、R（sfaR、sfa）、Julia（SFrontiers.jl）、Python（stochastic-frontier-analysis）<sup>[7](https://www.stata.com/manuals/rfrontier.pdf)</sup><sup> • </sup><sup>[11](https://hungjenwang1991.github.io/SFrontiers.jl/)</sup> |
| 最接近的替代方法 | 数据包络分析（DEA），非参数且确定性，将所有噪声计为无效率<sup>[12](https://wrap.warwick.ac.uk/id/eprint/36370/1/WRAP_THESIS_Read_1998.pdf)</sup> |

## 工作原理

随机前沿的核心思想是：偏离前沿可能并非完全处于企业控制之下，因此确定性前沿会将随机噪声错误地归因于无效率。<sup>[1](https://pages.stern.nyu.edu/~wgreene/StochasticFrontierModels.pdf)</sup> 一般生产模型为

\[ \ln y_i = \alpha + \beta' x_i + v_i - u_i = \alpha + \beta' x_i + \varepsilon_i, \]

其中 \( v_i \) 独立同分布于 \( N(0, \sigma_v^2) \)，\( u_i \geq 0 \) 代表技术无效率。<sup>[1](https://pages.stern.nyu.edu/~wgreene/StochasticFrontierModels.pdf)</sup> 这种非对称双成分误差是该方法的显著特征：一个常规的特质性扰动（测量误差、设定偏误、运气）加上一个单边非负成分。<sup>[13](https://iseapa.org/documents/sfa_with_stata_v19.pdf)</sup> 对于成本前沿，符号翻转，得到 \( \varepsilon = v + u \)，呈正偏而非负偏。<sup>[6](https://panelbox.readthedocs.io/en/latest/user-guide/frontier/production-cost/)</sup>

在半正态设定下，用于最大似然的复合误差密度为 \( f(\varepsilon) = \frac{2}{\sigma} f^*(\varepsilon/\sigma)\left[1 - F^*(\varepsilon\lambda/\sigma)\right] \)，其中 \( \sigma^2 = \sigma_u^2 + \sigma_v^2 \)，\( \lambda = \sigma_u/\sigma_v \)，\( f^* \) 和 \( F^* \) 分别为标准正态密度函数和分布函数。<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/S0304407623000465)</sup> 比率 λ 决定识别：当 λ → 0 时噪声主导，模型退化为 OLS；当 λ → ∞ 时无效率主导，前沿变为确定性。<sup>[5](https://panelbox.readthedocs.io/en/latest/theory/sfa-theory/)</sup> 相关参数 \( \gamma = \sigma_u^2/(\sigma_v^2 + \sigma_u^2) \) 从0（无无效率；OLS 即可）到1（全部变异均为无效率）。<sup>[6](https://panelbox.readthedocs.io/en/latest/user-guide/frontier/production-cost/)</sup>

## 操作步骤

典型研究分四步进行。第一，设定前沿（生产或成本）和函数形式。第二，筛查数据：科埃利（Coelli, 1995）指出无效率项使 OLS 残差呈负偏，因此在估计前沿之前检查偏度符号，而无无效率的检验（\( H_0: \sigma_u^2 = 0 \)）位于参数空间的边界上，需要单边广义似然比检验。<sup>[7](https://www.stata.com/manuals/rfrontier.pdf)</sup> 第三，通过最大似然估计，获得 \( \sigma_v \)、\( \sigma_u \)、\( \lambda \) 和前沿系数。第四，计算效率：琼德罗、洛弗尔、马特罗夫和施密特（Jondrow, Lovell, Materov, and Schmidt, 1982）的 JLMS 估计量使用条件分布 \( (u \mid \varepsilon) \sim N^+(-\varepsilon\sigma_u^2/\sigma^2,\ \sigma_v^2\sigma_u^2/\sigma^2) \)，而巴蒂斯–科埃利（Battese–Coelli, 1988）估计量 \( TE = E[\exp(-u) \mid \varepsilon] \) 通常被推荐，因为它直接估计效率，避免了 exp(−E[u|ε]) 中的詹森不等式偏误。<sup>[8](https://doi.org/10.1016/0304-4076%2882%2990004-5)</sup><sup> • </sup><sup>[5](https://panelbox.readthedocs.io/en/latest/theory/sfa-theory/)</sup> 实际验证包括确认预期的偏度符号和均值效率处于合理范围（约0.6至0.9）。<sup>[5](https://panelbox.readthedocs.io/en/latest/theory/sfa-theory/)</sup>

软件：Stata 官方 frontier 命令拟合半正态（默认）、指数和截断正态模型；<sup>[7](https://www.stata.com/manuals/rfrontier.pdf)</sup> 用户编写的 sfcross 和 sfpanel 命令增加了模拟似然正态-伽马、协变量依赖尺度（王，2002）以及大量面板模型。<sup>[9](https://journals.sagepub.com/doi/10.1177/1536867X1301300404)</sup> 在 R 中，sfaR 使用十种单边分布加上潜在类别和样本选择模型执行最大似然和最大模拟似然估计，<sup>[10](https://hdakpo.r-universe.dev/sfaR/doc/manual.html)</sup> sfa 包增加了 v 和 u 之间基于 copula 的依赖关系。<sup>[15](https://cran.r-project.org/web/packages/sfa/sfa.pdf)</sup> Julia 中的 SFrontiers.jl 使用自动微分和 GPU 加速的模拟最大似然。<sup>[11](https://hungjenwang1991.github.io/SFrontiers.jl/)</sup>

## 起源

前沿概念早于随机模型：法雷尔（Farrell）1957年的论文《生产效率的测度》（*The Measurement of Productive Efficiency*）是估计前沿生产函数的开创性工作。<sup>[16](https://doi.org/10.2307/2343100)</sup> 早期的参数方法是确定性的：艾格纳、雨宫和普瓦里耶（Aigner, Amemiya, and Poirier, 1976）研究了具有不连续密度的生产前沿的最大似然估计，<sup>[17](https://doi.org/10.2307/2525708)</sup> 建立在将全部残差视为无效率的基于优化的前沿之上。<sup>[1](https://pages.stern.nyu.edu/~wgreene/StochasticFrontierModels.pdf)</sup> 突破发生在1977年，艾格纳、洛弗尔和施密特在《计量经济学杂志》（*Journal of Econometrics*）<sup>[3](https://doi.org/10.1016/0304-4076%2877%2990052-5)</sup> 以及缪森和范登布鲁克在《国际经济评论》（*International Economic Review*）<sup>[4](https://doi.org/10.2307/2525757)</sup> 独立提出了复合误差模型，前者假设半正态无效率分布，后者假设指数分布。<sup>[9](https://journals.sagepub.com/doi/10.1177/1536867X1301300404)</sup> 一个遗留问题——逐观测地将 u 从 ε 中分离——由琼德罗、洛弗尔、马特罗夫和施密特（1982）通过给定 (v − u) 条件下 u 的条件期望解决。<sup>[8](https://doi.org/10.1016/0304-4076%2882%2990004-5)</sup>

## 变体

**分布选择。** 史蒂文森（Stevenson, 1980）将半正态推广为均值非零的截断正态，<sup>[18](https://doi.org/10.1016/0304-4076%2880%2990042-1)</sup> 格林（Greene）的伽马分布前沿随后出现。<sup>[19](https://doi.org/10.1016/0304-4076%2890%2990052-u)</sup> 伽马选择代价高昂：里特和西马尔（Ritter and Simar）表明正态-伽马模型难以与正态-指数模型区分，可能需要数千个观测的样本。<sup>[9](https://journals.sagepub.com/doi/10.1177/1536867X1301300404)</sup>

**面板模型。** 皮特和李（Pitt and Lee, 1981）将模型扩展到具有时不变无效率的面板数据，<sup>[20](https://doi.org/10.1016/0304-3878%2881%2990004-3)</sup> 施密特和西克尔斯（Schmidt and Sickles, 1984）在没有分布假设的情况下将相对无效率估计为固定效应。<sup>[21](https://doi.org/10.1080/07350015.1984.10509410)</sup> 孔巴卡尔（Kumbhakar, 1990）引入了灵活的时间变化无效率路径，<sup>[22](https://doi.org/10.1016/0304-4076%2890%2990055-x)</sup> 巴蒂斯和科埃利提供了1992年的时间衰减模型<sup>[23](https://doi.org/10.1007/bf00158774)</sup> 和1995年的技术无效率效应模型，后者在单一阶段中对无效率决定因素建模。<sup>[24](https://doi.org/10.1007/bf01205442)</sup> 格林（2005）提出了真实固定效应和真实随机效应模型，将时不变异质性与无效率分离，<sup>[25](https://doi.org/10.1007/s11123-004-8545-1)</sup> 其动机是常规面板估计量可能将异质性强行归入无效率项的风险。<sup>[26](https://ideas.repec.org/a/kap/jproda/v23y2005i1p7-32.html)</sup> 四成分模型由齐奥纳斯和孔巴卡尔（Tsionas and Kumbhakar, 2014）等人为面板情形提出，将误差分解为持续性无效率、时变无效率、持续性异质性和噪声。<sup>[27](https://onlinelibrary.wiley.com/doi/10.1002/jae.2300)</sup><sup> • </sup><sup>[28](https://link.springer.com/article/10.1007/s11123-025-00769-z)</sup>

**进一步变体。** 零无效率模型适用于混合了完全有效率企业和无效率企业的样本，对此标准前沿在统计上不充分。<sup>[29](https://doi.org/10.1016/j.jeconom.2012.08.021)</sup> 其他扩展包括样本选择校正、<sup>[30](https://doi.org/10.1007/s11123-009-0159-1)</sup> 潜在类别估计（sfaR 中最多五类，由 AIC/BIC/HQIC 选择）、<sup>[31](https://doi.org/10.1111/1477-9552.12422)</sup> 具有径向、双曲和方向性无效率测度的随机距离函数，<sup>[32](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/1399220173F97CC6D90AB078887805EC/S1365100525000148a.pdf/distance-functions-and-the-analysis-of-inefficiency.pdf)</sup> 以及允许噪声与无效率之间存在依赖关系的 copula 模型。<sup>[15](https://cran.r-project.org/web/packages/sfa/sfa.pdf)</sup>

## 应用

已发表的应用涵盖美国奶牛场（孔巴卡尔、戈什和麦古金（Kumbhakar, Ghosh, and McGuckin）1991年的早期单阶段无效率效应研究）、<sup>[33](https://doi.org/10.1080/07350015.1991.10509853)</sup> 印度尼西亚织造业（皮特和李，1981）、<sup>[20](https://doi.org/10.1016/0304-3878%2881%2990004-3)</sup> 印度稻农（巴蒂斯和科埃利，1992）、<sup>[23](https://doi.org/10.1007/bf00158774)</sup> 美国商业银行（齐奥纳斯和孔巴卡尔，2014）、<sup>[27](https://onlinelibrary.wiley.com/doi/10.1002/jae.2300)</sup> 美国银行业和跨国医疗保健服务（格林，2005）、<sup>[26](https://ideas.repec.org/a/kap/jproda/v23y2005i1p7-32.html)</sup> 以及法国放牧牲畜农场（潜在类别估计）。<sup>[31](https://doi.org/10.1111/1477-9552.12422)</sup> 成本前沿得分有直接解读：成本效率为0.80意味着企业可以在不改变产出的情况下将成本降低20%。<sup>[6](https://panelbox.readthedocs.io/en/latest/user-guide/frontier/production-cost/)</sup>

## 局限与替代方法

施密特和西克尔斯（1984）指出了横截面 SFA 的三个缺点：没有个体效率的一致估计量、需要对两个误差成分都做分布假设、以及无效率与回归变量独立这一通常不合理的假设。<sup>[13](https://iseapa.org/documents/sfa_with_stata_v19.pdf)</sup> 面板数据放松了所有三个限制：当 T 足够大时，分布假设可以放弃，无效率可以一致估计。<sup>[32](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/1399220173F97CC6D90AB078887805EC/S1365100525000148a.pdf/distance-functions-and-the-analysis-of-inefficiency.pdf)</sup> 文献还记录了两个进一步的敏感性。第一，限制复合误差的依赖结构，例如假设无效率与噪声独立，可能产生严重偏误，而允许依赖会显著改变估计和检验。<sup>[34](https://www.degruyterbrill.com/document/doi/10.1515/demo-2022-0107/html)</sup> 第二，忽略持续性无效率——如真实随机效应模型所做的那样——可能使总体无效率的估计产生偏误，而错误的分布假设使无效率估计不一致。<sup>[28](https://link.springer.com/article/10.1007/s11123-025-00769-z)</sup> 距离函数文献的一个实际警告：没有理论和计量经济学正则性，无效率结果可能极具误导性。<sup>[32](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/1399220173F97CC6D90AB078887805EC/S1365100525000148a.pdf/distance-functions-and-the-analysis-of-inefficiency.pdf)</sup>

最接近的替代方法是数据包络分析（DEA），由查恩斯、库珀和罗兹（Charnes, Cooper, and Rhodes, 1978）提出，作为一种非参数确定性线性规划方法。<sup>[35](https://doi.org/10.1016/0377-2217%2878%2990138-8)</sup> 权衡在于统计推断与噪声处理之间。DEA 假设无随机噪声，因此任何统计噪声、测量误差、运气、遗漏变量和设定偏误都被计为无效率，使其对异常值敏感；SFA 纳入噪声并允许置信区间和假设检验，代价是分布和函数形式假设。<sup>[12](https://wrap.warwick.ac.uk/id/eprint/36370/1/WRAP_THESIS_Read_1998.pdf)</sup><sup> • </sup><sup>[36](https://ese-journals.unisalento.it/index.php/ejasa/article/download/15638/14242)</sup> 随机非参数混合方法也存在，包括自助法 DEA 和[随机](https://www.edgepedia.org/zh/stochastic) DEA。<sup>[36](https://ese-journals.unisalento.it/index.php/ejasa/article/download/15638/14242)</sup>

## References

1. [Greene, The Measurement of Productive Efficiency and Productivity Growth, Ch. 2: The Econometric Approach to Efficiency Analysis](https://pages.stern.nyu.edu/~wgreene/StochasticFrontierModels.pdf)
2. [Kumbhakar & Lovell, Stochastic Frontier Analysis (Cambridge University Press, 2000)](https://www.cambridge.org/core/books/stochastic-frontier-analysis/510E56C2F890A0E6B38B4C4B241645B6)
3. [Formulation and estimation of stochastic frontier production function models (Journal of Econometrics, 1977)](https://doi.org/10.1016/0304-4076%2877%2990052-5)
4. [Wim Meeusen, Julien van Den Broeck (1977). Efficiency Estimation from Cobb-Douglas Production Functions with Composed Error. International Economic Review.](https://doi.org/10.2307/2525757)
5. [Stochastic Frontier Theory, Efficiency Measurement (PanelBox documentation)](https://panelbox.readthedocs.io/en/latest/theory/sfa-theory/)
6. [Production and Cost Frontiers (PanelBox user guide)](https://panelbox.readthedocs.io/en/latest/user-guide/frontier/production-cost/)
7. [Stata manual: frontier, Stochastic frontier analysis](https://www.stata.com/manuals/rfrontier.pdf)
8. [On the estimation of technical inefficiency in the stochastic frontier production function model (Journal of Econometrics, 1982)](https://doi.org/10.1016/0304-4076%2882%2990004-5)
9. [Belotti, Daidone, Ilardi & Atella (2013), Stochastic Frontier Analysis using Stata, Stata Journal 13(4):718–758](https://journals.sagepub.com/doi/10.1177/1536867X1301300404)
10. [Package 'sfaR' reference manual (R)](https://hdakpo.r-universe.dev/sfaR/doc/manual.html)
11. [SFrontiers.jl User Manual (Julia package)](https://hungjenwang1991.github.io/SFrontiers.jl/)
12. [A comparison of DEA and stochastic frontiers (PhD thesis, University of Warwick, 1998)](https://wrap.warwick.ac.uk/id/eprint/36370/1/WRAP_THESIS_Read_1998.pdf)
13. [Efficiency Analysis with Stochastic Frontier (chapter with Stata implementation)](https://iseapa.org/documents/sfa_with_stata_v19.pdf)
14. [Aigner, Lovell & Schmidt (1977), Formulation and estimation of stochastic frontier production function models (Journal of Econometrics; 2023 anniversary reprint)](https://www.sciencedirect.com/science/article/abs/pii/S0304407623000465)
15. [sfa: Stochastic Frontier Analysis (R package, CRAN)](https://cran.r-project.org/web/packages/sfa/sfa.pdf)
16. [M. J. Farrell (1957). The Measurement of Productive Efficiency. Journal of the Royal Statistical Society Series A (General).](https://doi.org/10.2307/2343100)
17. [D. J. Aigner, T. Amemiya, D. J. Poirier (1976). On the Estimation of Production Frontiers: Maximum Likelihood Estimation of the Parameters of a Discontinuous Density Function. International Economic Review.](https://doi.org/10.2307/2525708)
18. [Likelihood functions for generalized stochastic frontier estimation (Journal of Econometrics, 1980)](https://doi.org/10.1016/0304-4076%2880%2990042-1)
19. [A Gamma-distributed stochastic frontier model (Journal of Econometrics, 1990)](https://doi.org/10.1016/0304-4076%2890%2990052-u)
20. [The measurement and sources of technical inefficiency in the Indonesian weaving industry (Journal of Development Economics, 1981)](https://doi.org/10.1016/0304-3878%2881%2990004-3)
21. [Peter Schmidt, Robin C. Sickles (1984). Production Frontiers and Panel Data. Journal of Business and Economic Statistics.](https://doi.org/10.1080/07350015.1984.10509410)
22. [Production frontiers, panel data, and time-varying technical inefficiency (Journal of Econometrics, 1990)](https://doi.org/10.1016/0304-4076%2890%2990055-x)
23. [G. E. Battese, T. J. Coelli (1992). Frontier production functions, technical efficiency and panel data: With application to paddy farmers in India. Journal of Productivity Analysis.](https://doi.org/10.1007/bf00158774)
24. [G. E. Battese, T. J. Coelli (1995). A model for technical inefficiency effects in a stochastic frontier production function for panel data. Empirical Economics.](https://doi.org/10.1007/bf01205442)
25. [Willam Greene (2005). Fixed and Random Effects in Stochastic Frontier Models. Journal of Productivity Analysis.](https://doi.org/10.1007/s11123-004-8545-1)
26. [Greene (2005), Fixed and Random Effects in Stochastic Frontier Models, Journal of Productivity Analysis 23(1):7–32 (RePEc record)](https://ideas.repec.org/a/kap/jproda/v23y2005i1p7-32.html)
27. [Tsionas & Kumbhakar (2014), Firm heterogeneity, persistent and transient technical inefficiency: a generalized true random-effects model, Journal of Applied Econometrics](https://onlinelibrary.wiley.com/doi/10.1002/jae.2300)
28. [The generalized panel data stochastic frontier model: A review and nonparametric estimation (Journal of Productivity Analysis, 2025)](https://link.springer.com/article/10.1007/s11123-025-00769-z)
29. [Subal C. Kumbhakar, Christopher F. Parmeter, Efthymios G. Tsionas (2012). A zero inefficiency stochastic frontier model. Journal of Econometrics.](https://doi.org/10.1016/j.jeconom.2012.08.021)
30. [William Greene (2009). A stochastic frontier model with correction for sample selection. Journal of Productivity Analysis.](https://doi.org/10.1007/s11123-009-0159-1)
31. [K Hervé Dakpo and colleagues (2021). Latent Class Modelling for a Robust Assessment of Productivity: Application to French Grazing Livestock Farms. Journal of Agricultural Economics.](https://doi.org/10.1111/1477-9552.12422)
32. [Distance functions and the analysis of inefficiency (Macroeconomic Dynamics, Cambridge University Press, 2025)](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/1399220173F97CC6D90AB078887805EC/S1365100525000148a.pdf/distance-functions-and-the-analysis-of-inefficiency.pdf)
33. [Subal C. Kumbhakar, Soumendra Ghosh, J. Thomas McGuckin (1991). A Generalized Production Frontier Approach for Estimating Determinants of Inefficiency in U.S. Dairy Farms. Journal of Business and Economic Statistics.](https://doi.org/10.1080/07350015.1991.10509853)
34. [Dependence modeling in stochastic frontier analysis (Dependence Modeling)](https://www.degruyterbrill.com/document/doi/10.1515/demo-2022-0107/html)
35. [Measuring the efficiency of decision making units (European Journal of Operational Research, 1978)](https://doi.org/10.1016/0377-2217%2878%2990138-8)
36. [Scippacercola & Sepe, Critical comparison of the main methods for the technical efficiency (Electronic Journal of Applied Statistical Analysis)](https://ese-journals.unisalento.it/index.php/ejasa/article/download/15638/14242)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 社会与历史 › 经济与商业 › 经济学 › 经济理论与方法 › 计量经济学与定量方法

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/stochastic-frontier-analysis

English original: https://www.edgepedia.org/stochastic-frontier-analysis
