# 冗余分析

冗余分析（RDA）是一种约束排序方法，它通过多元多重回归，随后进行主成分分析（PCA），将响应变量矩阵（如物种多度）与一组解释变量联系起来。它回答一个具体问题：响应矩阵中的变异有多少可由预测变量解释，以及这些被解释的变异沿预测变量所定义的梯度呈现何种结构。RDA是PCA的约束形式，正如典范对应分析（CCA）是对应分析的约束形式。<sup>[1](http://www.numericalecology.com/Reprints/Legendre_Ordination_chapter_in_Palaeolimnology_book_2012.pdf)</sup>

| 关键事实 | 数值或表述 |
|---|---|
| 方法结构 | 多元多重回归，随后对拟合值矩阵进行PCA<sup>[2](http://www.numericalecology.com/Reprints/db-RDA.pdf)</sup> |
| 特例 | 当只有一个响应变量时，RDA退化为多重回归；当两个数据集完全相同时，它退化为PCA<sup>[3](http://www.statpower.net/Content/312/Handout/VanDenWollenberg1977%20Redundancy%20Analysis.pdf)</sup> |
| 解释方差 | 典范特征值之和等于Y中被矩阵X解释的变异<sup>[2](http://www.numericalecology.com/Reprints/db-RDA.pdf)</sup> |
| 约束轴数量 | 等于解释变量的自由度（每个连续变量为1，含\( m \)个水平的因子为\( m-1 \)）<sup>[4](https://uw.pressbooks.pub/appliedmultivariatestatistics/chapter/rda-and-dbrda/)</sup> |
| 全局检验统计量 | 伪\( F = (\mathrm{trace}/q)/(\mathrm{RSS}/(N-q-1)) \)，通过置换检验评估<sup>[2](http://www.numericalecology.com/Reprints/db-RDA.pdf)</sup> |
| 调整\( R^{2} \) | 用Ezekiel公式计算；始终低于\( R^{2} \)，且可为负值<sup>[5](https://anadat-r.davidzeleny.net/doku.php/en:expl_var)</sup> |
| 梯度长度 | RDA适合短的线性梯度；CCA适合长梯度及稀疏列联表<sup>[6](https://github.com/scikit-bio/scikit-bio/blob/main/skbio/stats/ordination/_redundancy_analysis.py)</sup> |

## 工作原理

RDA是一种非对称（约束）方法：响应矩阵Y被建模为解释矩阵X的函数，而非相反。拟合值为

\[ \hat{Y} = X \left[ X' X \right]^{-1} X' Y \]

通过普通最小二乘获得，然后对\( \hat{Y} \)和残差分别进行PCA。<sup>[6](https://github.com/scikit-bio/scikit-bio/blob/main/skbio/stats/ordination/_redundancy_analysis.py)</sup> 对拟合值的PCA产生典范特征值、特征向量和约束轴；对残差的PCA产生非约束轴。<sup>[7](https://besjournals.onlinelibrary.wiley.com/doi/10.1111/j.2041-210X.2010.00078.x)</sup>

典范特征值之和是Y中被X解释的变异。这个量即Miller和Farr的双多元冗余统计量\( R^{2}_{Y|X} \)，在Canoco程序中称为RDA“迹”统计量，它等于\( \mathrm{SS}(\text{fitted})/\mathrm{SS}(Y) \)。<sup>[2](http://www.numericalecology.com/Reprints/db-RDA.pdf)</sup><sup> • </sup><sup>[8](https://esapubs.org/archive/mono/m075/017/appendix-A.htm)</sup>

约束模型及单个轴或项的显著性通过置换检验评估。全局检验使用多元伪F统计量

\[ F = \frac{\mathrm{trace}/q}{\mathrm{RSS}/(N - q - 1)} \]

其中trace为典范特征值之和，q为约束自由度数量，RSS为残差平方和。<sup>[2](http://www.numericalecology.com/Reprints/db-RDA.pdf)</sup>

未调整的R²随预测变量数量增加而增大：\( p \)个随机预测变量平均解释\( n \)个样本中\( p/(n-1) \)的变异。<sup>[5](https://anadat-r.davidzeleny.net/doku.php/en:expl_var)</sup> 调整\( R^{2} \)使用Ezekiel公式对此进行校正，

\[ R^{2}_{\mathrm{adj}} = 1 - \frac{n-1}{n-m-1}(1 - R^{2}) \]

且可为零或负值。<sup>[5](https://anadat-r.davidzeleny.net/doku.php/en:expl_var)</sup><sup> • </sup><sup>[9](https://pmassicotte.github.io/stats-denmark-2019/07_rda.html)</sup>

## 操作流程

实践者的工作流程如下。首先，准备响应数据：对于物种多度数据，推荐在RDA之前进行Hellinger变换，即将每个值除以其行和并取平方根。<sup>[9](https://pmassicotte.github.io/stats-denmark-2019/07_rda.html)</sup> 其次，检查预测变量的多重共线性；高度相关的解释变量应被剔除或降维，例如通过初步PCA<sup>[4](https://uw.pressbooks.pub/appliedmultivariatestatistics/chapter/rda-and-dbrda/)</sup>，方差膨胀因子高于2（平方根尺度）表明高度多重共线性。<sup>[9](https://pmassicotte.github.io/stats-denmark-2019/07_rda.html)</sup> 第三，拟合模型：将每个中心化的响应变量对X回归，组装拟合值矩阵，并计算其PCA。<sup>[9](https://pmassicotte.github.io/stats-denmark-2019/07_rda.html)</sup> 第四，选择标度，检验显著性，若有大量候选预测变量，则使用`ordistep`或`ordiR2step`等函数进行前向选择。<sup>[10](https://vegandevs.github.io/vegan/reference/cca.html)</sup>

当存在协变量时，对简化模型或全模型的残差进行置换优于对原始数据进行置换。<sup>[7](https://besjournals.onlinelibrary.wiley.com/doi/10.1111/j.2041-210X.2010.00078.x)</sup> 在vegan中，`anova.cca`检验整体模型、单项或轴；使用`by = "margin"`时，每个预测变量在考虑所有其他变量后检验，类似于II型方差分析，而`by = "terms"`是顺序性的且依赖于顺序。<sup>[10](https://vegandevs.github.io/vegan/reference/cca.html)</sup><sup> • </sup><sup>[11](https://aterui.github.io/biostats/constrained-ordination.html)</sup>

## 起源

RDA由C. Radhakrishna Rao于1964年在《主成分分析在应用研究中的使用与解释》（《Sankhyā A》, 26, 329–358）中提出。<sup>[12](https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13800)</sup> 该方法最大化冗余指数，其定义为一个变量集的平均方差中被另一变量集的典范变量所解释的部分。<sup>[3](http://www.statpower.net/Content/312/Handout/VanDenWollenberg1977%20Redundancy%20Analysis.pdf)</sup> RDA是最大化该指数的成分方法。<sup>[3](http://www.statpower.net/Content/312/Handout/VanDenWollenberg1977%20Redundancy%20Analysis.pdf)</sup><sup> • </sup><sup>[2](http://www.numericalecology.com/Reprints/db-RDA.pdf)</sup> 同一技术被称为降秩回归，这是P. T. Davies和M. K-S. Tso在1982年《应用统计学》论文中使用的名称。<sup>[13](https://doi.org/10.2307/2347998)</sup> 双多元冗余统计量\( R^{2}_{Y|X} \)，即RDA迹，由John K. Miller和S. David Farr于1971年描述。<sup>[14](https://doi.org/10.1207/s15327906mbr0603_4)</sup> 其在生态学中的采用紧随Cajo J. F. ter Braak于1986年在《生态学》上引入典范对应分析的论文<sup>[15](https://doi.org/10.2307/1938672)</sup>，此后约束排序在群落生态学和古生态学中传播开来。<sup>[10](https://vegandevs.github.io/vegan/reference/cca.html)</sup>

## 变体

**偏RDA**在拟合前移除协变量的效应：先计算X对协变量矩阵W的多元多重回归的残差，并将这些残差用作解释变量<sup>[16](https://link.springer.com/chapter/10.1007/978-3-319-71404-2_6)</sup>；在vegan中，`Condition()`项产生这种偏化，可能产生不应信任的负“方差成分”。<sup>[10](https://vegandevs.github.io/vegan/reference/cca.html)</sup> **tb-RDA**（基于变换的RDA）对Hellinger变换或弦变换的群落数据应用RDA，使基于欧氏距离的RDA保留生态上有意义的距离。<sup>[17](https://doi.org/10.1007/s004420100716)</sup><sup> • </sup><sup>[1](http://www.numericalecology.com/Reprints/Legendre_Ordination_chapter_in_Palaeolimnology_book_2012.pdf)</sup> **db-RDA**由Pierre Legendre和Marti J. Anderson于1999年提出，通过初步主坐标分析（PCoA）将RDA推广到任意距离矩阵；应用于欧氏距离矩阵时与RDA完全相同，无约束时退化为PCoA，正如RDA退化为PCA。<sup>[18](https://doi.org/10.1890/0012-9615%281999%29069[0001:dbratm]2.0.co;2)</sup><sup> • </sup><sup>[4](https://uw.pressbooks.pub/appliedmultivariatestatistics/chapter/rda-and-dbrda/)</sup> **共识RDA**由F. Guillaume Blanchet、Pierre Legendre、J. A. Colin Bergeron和Fangliang He（2014）提出，运行多个仅距离度量不同的db-RDA，并将显著轴的站点得分组合成新的响应矩阵进行新的RDA。<sup>[19](https://doi.org/10.5061/dryad.8gs3n)</sup><sup> • </sup><sup>[20](https://pmc.ncbi.nlm.nih.gov/articles/PMC7069295/)</sup> **稀疏RDA（sRDA）**由Attila Csala、Frans P J M Voorbraak、Aeilko H Zwinderman和Michel H Hof（2017）提出，针对高维遗传和基因组数据<sup>[21](https://doi.org/10.1093/bioinformatics/btx374)</sup>，**岭RDA（rrda）**由Hayato Yoshioka、Julie Aubert、Hiroyoshi Iwata和Tristan Mary-Huard（2025）提出，对预测变量多于样本的组学数据正则化RDA。<sup>[22](https://doi.org/10.1101/2025.04.16.649138)</sup>

## 应用

RDA的主要用途在群落生态学和古生态学中，将物种组成与环境梯度联系起来。<sup>[1](http://www.numericalecology.com/Reprints/Legendre_Ordination_chapter_in_Palaeolimnology_book_2012.pdf)</sup> 微生物组研究是一个重要的较新领域：db-RDA被优先用于微生物组数据或与PERMANOVA保持一致，包括使用Bray-Curtis或UniFrac距离。<sup>[23](https://www.gdc-docs.ethz.ch/UniBS/MultivariateStatistics/site/constrained_ordination/)</sup> fastrda是一个使用Armadillo和OpenMP的C++实现，用于大规模生态和基因组数据集，支持标准和偏RDA，具有基于QR的条件化、置换检验和四种标度选项。<sup>[24](https://zcebeci.r-universe.dev/fastrda/doc/fastrda.html)</sup>

## 局限与替代方法

RDA假设响应变量与预测变量之间为线性关系，因此通常不适合跨越长梯度的群落数据，但被描述为短梯度的理想方法。<sup>[25](http://www.pelagicos.net/MARS6300/lectures/MARS6300_Lecture16_sp2018.pdf)</sup> 对非线性数据，它可能产生马蹄形伪影：在一个实例中，沿RDA1的明显马蹄形并不反映真实的生物格局，而使用Bray-Curtis距离以db-RDA重新进行分析后，土壤氮变得不显著。<sup>[11](https://aterui.github.io/biostats/constrained-ordination.html)</sup>

CCA是单峰响应的主要替代方法：它将排序轴约束为环境变量的线性组合，同时假设钟形物种响应曲线，并分析以行和加权的卡方变换表，这降低了常见物种的权重而强调了稀有物种。<sup>[15](https://doi.org/10.2307/1938672)</sup><sup> • </sup><sup>[8](https://esapubs.org/archive/mono/m075/017/appendix-A.htm)</sup><sup> • </sup><sup>[25](http://www.pelagicos.net/MARS6300/lectures/MARS6300_Lecture16_sp2018.pdf)</sup>

## References

1. [Ordination chapter (Legendre, in Palaeolimnology book, 2012)](http://www.numericalecology.com/Reprints/Legendre_Ordination_chapter_in_Palaeolimnology_book_2012.pdf)
2. [Distance-based redundancy analysis: testing multispecies responses in multifactorial ecological experiments (Legendre & Anderson 1999)](http://www.numericalecology.com/Reprints/db-RDA.pdf)
3. [Redundancy Analysis an Alternative for Canonical Correlation Analysis (Van den Wollenberg 1977)](http://www.statpower.net/Content/312/Handout/VanDenWollenberg1977%20Redundancy%20Analysis.pdf)
4. [RDA and dbRDA – Applied Multivariate Statistics in R](https://uw.pressbooks.pub/appliedmultivariatestatistics/chapter/rda-and-dbrda/)
5. [Explained variation in constrained ordination (Zelený, Analysis of community ecology data in R)](https://anadat-r.davidzeleny.net/doku.php/en:expl_var)
6. [skbio.stats.ordination._redundancy_analysis.py (scikit-bio source)](https://github.com/scikit-bio/scikit-bio/blob/main/skbio/stats/ordination/_redundancy_analysis.py)
7. [Testing the significance of canonical axes in redundancy analysis (Legendre, Oksanen & ter Braak)](https://besjournals.onlinelibrary.wiley.com/doi/10.1111/j.2041-210X.2010.00078.x)
8. [Ecological Archives M075-017-A1: Canonical variation partitioning: statistical details (Legendre, Borcard & Peres-Neto 2005)](https://esapubs.org/archive/mono/m075/017/appendix-A.htm)
9. [Redundancy analysis (RDA), Applied statistics workshop notes](https://pmassicotte.github.io/stats-denmark-2019/07_rda.html)
10. [[Partial] [Constrained] Correspondence Analysis and Redundancy Analysis, cca • vegan](https://vegandevs.github.io/vegan/reference/cca.html)
11. [Chapter 20 Constrained Ordination | BIOSTATS](https://aterui.github.io/biostats/constrained-ordination.html)
12. [Generalizing hierarchical and variation partitioning in multiple regression and canonical analyses using the rdacca.hp R package (Lai 2022)](https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13800)
13. [P. T. Davies, M. K-S. Tso (1982). Procedures for Reduced-Rank Regression. Journal of the Royal Statistical Society Series C (Applied Statistics).](https://doi.org/10.2307/2347998)
14. [John K. Miller, S. David Farr (1971). Bimultivariate Redundancy: A Comprehensive Measure of Interbattery Relationship. Multivariate Behavioral Research.](https://doi.org/10.1207/s15327906mbr0603_4)
15. [Cajo J. F. ter Braak (1986). Canonical Correspondence Analysis: A New Eigenvector Technique for Multivariate Direct Gradient Analysis. Ecology.](https://doi.org/10.2307/1938672)
16. [Canonical Ordination (Borcard et al., Numerical Ecology with R, Springer chapter)](https://link.springer.com/chapter/10.1007/978-3-319-71404-2_6)
17. [Pierre Legendre, Eugene D. Gallagher (2001). Ecologically meaningful transformations for ordination of species data. Oecologia.](https://doi.org/10.1007/s004420100716)
18. [DISTANCE-BASED REDUNDANCY ANALYSIS: TESTING MULTISPECIES RESPONSES IN MULTIFACTORIAL ECOLOGICAL EXPERIMENTS (Ecological Monographs, 1999)](https://doi.org/10.1890/0012-9615%281999%29069[0001:dbratm]2.0.co;2)
19. [Blanchet, F. Guillaume and colleagues (2014). Data from: Consensus RDA across dissimilarity coefficients for canonical ordination of community composition data. Data Archiving and Networked Services (DANS).](https://doi.org/10.5061/dryad.8gs3n)
20. [Should ecologists prefer model- over distance-based multivariate methods? (Ecology, 2020)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7069295/)
21. [Attila Csala and colleagues (2017). Sparse redundancy analysis of high-dimensional genetic and genomic data. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btx374)
22. [Hayato Yoshioka and colleagues (2025). Ridge Redundancy Analysis for High-Dimensional Omics Data. bioRxiv (Cold Spring Harbor Laboratory).](https://doi.org/10.1101/2025.04.16.649138)
23. [Constrained Ordination – From Two to Many: Multivariate Statistics](https://www.gdc-docs.ethz.ch/UniBS/MultivariateStatistics/site/constrained_ordination/)
24. [fastrda: Fast Redundancy Analysis (RDA) with High-Performance 'C++' Backend](https://zcebeci.r-universe.dev/fastrda/doc/fastrda.html)
25. [Correspondence Analyses (lecture slides, MARS6300)](http://www.pelagicos.net/MARS6300/lectures/MARS6300_Lecture16_sp2018.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Multivariate association and dimension reduction › Titles Mo to W

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/redundancy-analysis

English original: https://www.edgepedia.org/redundancy-analysis
