DEA
计算公式
符号
| 符号 | 含义 |
|---|---|
| n | 决策单元数 |
| xij | 第 i 个 DMU 的第 j 个投入 |
| yir | 第 i 个 DMU 的第 r 个产出 |
| λh | DMU h 的组合权重 |
| θ | 效率值 |
| S− | 投入松弛 |
| S+ | 产出松弛 |
| OE | 综合效益(CCR) |
| TE | 技术效益(BCC) |
| SE | 规模效益 |
| RTS | 规模报酬类型:不变(CRS)、递增(IRS)、递减(DRS) |
核心公式
公式 (1.1):CCR 模型(规模报酬不变)
\[
\min\ \theta\quad \text{s.t.}\ \sum_{h=1}^{n}\lambda_h x_{hj}+S_j^{-}=\theta x_{ij},\ \sum_{h=1}^{n}\lambda_h y_{hr}-S_r^{+}=y_{ir},\ \lambda_h,S^{\pm}\geq 0
\]
公式 (1.2):BCC 模型(规模报酬可变)
\[
\min\ \theta\quad \text{s.t.}\ \sum_{h=1}^{n}\lambda_h x_{hj}+S_j^{-}=\theta x_{ij},\ \sum_{h=1}^{n}\lambda_h y_{hr}-S_r^{+}=y_{ir},\ \sum_{h=1}^{n}\lambda_h=1
\]
公式 (1.3):综合效益、技术效益与规模效益
\[
OE=\theta_{\mathrm{CCR}},\qquad TE=\theta_{\mathrm{BCC}},\qquad SE=\frac{OE}{TE}
\]
公式 (1.4):规模报酬类型
\[
\mathrm{RTS}=\begin{cases}\text{CRS}, & \sum_{h=1}^{n}\lambda_h=1\\[4pt] \text{IRS}, & \sum_{h=1}^{n}\lambda_h\lt1\\[4pt] \text{DRS}, & \sum_{h=1}^{n}\lambda_h\gt1\end{cases}
\]
参考文献
- Charnes, A., Cooper, W. W., & Rhodes, E. (1978). Measuring the efficiency of decision making units. European Journal of Operational Research, 2(6), 429–444.
- Banker, R. D., Charnes, A., & Cooper, W. W. (1984). Some models for estimating technical and scale inefficiencies in data envelopment analysis. Management Science, 30(9), 1078–1092.
- Cooper, W. W., Seiford, L. M., & Tone, K. (2007). Data Envelopment Analysis: A Comprehensive Text with Models, Applications, References and DEA-Solver Software (2nd ed.). Springer.
算法参数
| 参数 | 取值 | 默认 | 影响 |
|---|---|---|---|
| 非负平移 | 开 / 关 | 开 | 任一投入或产出最小值 ≤0 时整列加 |最小值|+0.01,效率与松弛都基于平移后数据。 |
验证报告
数据与 R 包
提示词
对 30 个决策单元的投入 X1、X2 与产出 Y1、Y2 做数据包络分析,用 BCC 模型并给出综合效益、技术效益、规模效益和规模报酬。
R 代码
library(Benchmarking)
d <- read.csv("dea.csv")
X <- as.matrix(d[, 2:3]); Y <- as.matrix(d[, 4:5])
te <- dea(X, Y, RTS = "vrs", ORIENTATION = "in")
oe <- dea(X, Y, RTS = "crs", ORIENTATION = "in", SLACK = TRUE)
se <- oe$eff / te$eff
out <- data.frame(ID = d$ID, TE = te$eff, SE = se, OE = oe$eff,
Sminus = rowSums(oe$sx), Splus = rowSums(oe$sy))
print(out, digits = 15, row.names = FALSE)
print(c(meanTE = mean(te$eff), meanOE = mean(oe$eff),
meanSE = mean(se)), digits = 15)
对比结果
| 指标 | SPSSAU | R | 差值 |
|---|---|---|---|
| D01 技术效益 TE | 0.8721686813 | 0.8721686813 | 1.82e−11 |
| D01 规模效益 SE | 0.7908140635 | 0.7908140635 | 3.04e−12 |
| D01 综合效益 OE | 0.6897232589 | 0.6897232589 | 7.39e−13 |
| D02 综合效益 OE | 0.8691514893 | 0.8691514893 | 3.59e−11 |
| D06 综合效益 OE | 1.0000000000 | 1.0000000000 | 0 |
| D15 投入松弛 S− | 20.7221961642 | 20.7221961642 | 1.22e−11 |
| D03 产出松弛 S+ | 18.3305127369 | 18.3305127369 | 1.28e−11 |
| D30 综合效益 OE | 0.9085426730 | 0.9085426730 | 4.19e−12 |
结论:技术效益、规模效益、综合效益与松弛均与 R 一致,最大差 3.6e−11。默认 BCC 报表同时给出 CCR 的综合效益 OE、S−/S+ 与有效性判词;SE = OE/TE,SE=1 表示规模有效,Σλ<1 为规模报酬递增、>1 为递减。DEA 是相对效率,不能把本批 DMU 的效率值直接与其他研究比较;模型不含超效率,有效 DMU 的效率值封顶为 1。
引用SPSSAU. DEA:计算公式与参数[EB/OL]. SPSSAU算法手册, 2026-11-20. https://www.spssau.com/algorithm/evaluation/dea.html.