Skip to content

Commit 6e0eef0

Browse files
committed
better wording
1 parent 7d83cf3 commit 6e0eef0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sklearn/decomposition/factor_analysis.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
"""Factor Analysis.
2-
A latent linear variable model, similar to probabilistic PCA
3-
implemented by PCA.score
2+
3+
A latent linear variable model.
4+
5+
FactorAnalysis is similar to probabilistic PCA implemented by PCA.score
6+
While PCA assumes Gaussion noise with the same variance for each
7+
feature, the FactorAnalysis model assumes different variances for
8+
each of them.
49
510
This implementation is based on David Barber's Book,
611
Bayesian Reasoning and Machine Learning,
@@ -108,8 +113,9 @@ class FactorAnalysis(BaseEstimator, TransformerMixin):
108113
109114
See also
110115
--------
111-
PCA: Principal component analysis that also implements a probabilistic
112-
model via a score method. PCA is faster as it can be computed
116+
PCA: Principal component analysis is also a latent linear variable model
117+
which however assumes equal noise variance for each feature.
118+
This extra assumption makes PCA faster as it can be computed
113119
in closed form.
114120
FastICA: Independent component analysis, a latent variable model with
115121
non-Gaussian latent variables.

0 commit comments

Comments
 (0)