算法手册/ 生态学分析/ 物种累积曲线

物种累积曲线

计算公式

符号

符号含义
xij第 i 个样本中物种 j 的丰度
Sm加入 m 个样本后的累计物种数
Rm(b)第 b 次随机顺序下的前 m 个样本集合
B随机样本顺序次数
n样本总数
nj物种 j 出现的样本数
p物种数
N全部样本的个体总数

核心公式

公式 (1.1):单次随机顺序的累计物种数
\[ S_m^{(b)}=\sum_{j=1}^{p}I\left(\sum_{i\in R_m^{(b)}}x_{ij}>0\right) \]
公式 (1.2):均值与标准差
\[ \bar S_m=\frac{1}{B}\sum_{b=1}^{B}S_m^{(b)},\qquad \mathrm{SD}_m=\sqrt{\frac{1}{B-1}\sum_{b=1}^{B}\left(S_m^{(b)}-\bar S_m\right)^2} \]
公式 (1.3):按样本数的解析期望
\[ E[S_m]=\sum_{j=1}^{p}\left[1-\frac{\binom{n-n_j}{m}}{\binom{n}{m}}\right] \]

参考文献

  1. Colwell, R. K., & Coddington, J. A. (1994). Estimating terrestrial biodiversity through extrapolation. Philosophical Transactions of the Royal Society B, 345(1311), 101–118.
  2. Gotelli, N. J., & Colwell, R. K. (2001). Quantifying biodiversity: Procedures and pitfalls in the measurement and comparison of species richness. Ecology Letters, 4(4), 379–391.

算法参数

参数取值默认影响
随机顺序次数 99–9999 999 每个深度取均值的随机顺序数;越大 Monte Carlo 波动越小。

验证报告

数据与 R 包

样本与变量 N = 60;30 个物种列 S1–S30,无分组变量
R 包 vegan 2.7.6

提示词

用 60 个样本、30 个物种的出现数据绘制物种累积曲线,999 次随机样本顺序,给出 10/25/50/75/100% 样本数处的累计物种数均值与标准差。

R 代码

library(vegan)
d <- read.csv("species_accumulation.csv")
X <- as.matrix(d)
ex <- specaccum(X, method = "exact", conditioned = TRUE)
m <- c(6, 15, 30, 45, 60)
cat("samples", nrow(X), "species", ncol(X), "\n")
print(data.frame(m = m, richness = ex$richness[m], sd = ex$sd[m]),
      digits = 15)
rand <- specaccum(X, method = "random", permutations = 999)
print(data.frame(m = m, mean = rand$richness[m], sd = rand$sd[m]),
      digits = 15)

对比结果

指标SPSSAUR差值
10% 深度累计物种数21.653653653721.59242781120.0612
25% 深度累计物种数25.758758758825.76766209120.0089
50% 深度累计物种数28.172172172228.19484681060.0227
75% 深度累计物种数29.328328328329.35184487430.0235
100% 深度累计物种数30.000000000030.00000000000
10% 深度标准差1.71173134941.70442683020.0073
50% 深度标准差1.05765005251.04740199680.0102

结论:各深度的累计物种数均值与 R 的解析期望相差 0.01–0.06,方向不一;这是 999 次随机样本顺序的 Monte Carlo 波动(均值的标准误约 0.03–0.05),不是口径差异。R 的 exact 方法给出按样本数的解析期望,SPSSAU 给出随机顺序的均值;提高随机顺序次数可缩小差异。100% 深度两边都等于 30 个物种。

操作手册 问题反馈

引用SPSSAU. 物种累积曲线:计算公式与参数[EB/OL]. SPSSAU算法手册, 2026-11-20. https://www.spssau.com/algorithm/ecology/species_accumulation.html.