Principal Component Analysis and biplots. A Back-to-Basics Comparison of Implementations
Ettore Settanni
备注:
Preprint. 20 pages, 3 figure, 5 tables. A substantially revised version has been peer reviewed and is now published in Quality & Quantity - see Journal reference
本文比较 base-R 与贡献型 R 包中 PCA 和 biplots 的实现,提出评估网格揭示底层计算选择导致的隐蔽差异及应成立却常不成立的等价关系。
摘要:
主成分分析(PCA)和双标图(biplots)已非常成熟且易于实现,以至于人们很容易将其内部运作机制视为理所当然。在本札记中,我回归基础,基于对每种技术计算结构的、与具体实现无关的理解,比较 PCA 和双标图在 base-R 以及贡献型 R 包中的实现方式。我这样做旨在说明用户可能难以察觉的差异,因为这些差异源于底层看似无害的计算选择。所提出的评估网格凸显了通常被忽视的方面,包括若正确遵循支撑每种技术的计算原理则应当成立的各种关系。令人惊讶的是,仅凭特定实现的输出,这些等价关系所预期的结果很少能够毫无附加条件地成立。
英文摘要:
Principal Component Analysis and biplots are so well-established and readily implemented that it is just too tempting to give for granted their internal workings. In this note I get back to basics in comparing how PCA and biplots are implemented in base-R and contributed R packages, leveraging an implementation-agnostic understanding of the computational structure of each technique. I do so with a view to illustrating discrepancies that users might find elusive, as these arise from seemingly innocuous computational choices made under the hood. The proposed evaluation grid elevates aspects that are usually disregarded, including relationships that should hold if the computational rationale underpinning each technique is followed correctly. Strikingly, what is expected from these equivalences rarely follows without caveats from the output of specific implementations alone.
Tensor Robust Principal Component Analysis with A New Tensor Nuclear Norm
Carnegie Mellon University(卡内基梅隆大学);National University of Singapore(新加坡国立大学);Cornell University(康奈尔大学);Tencent AI Lab(腾讯人工智能实验室);Peking University(北京大学)