mvtsa.representation.PPCAModel#

class mvtsa.representation.PPCAModel(n_components=1)[source]#

Bases: object

Probabilistic PCA (Tipping and Bishop, 1999).

The data are modelled as \(x = W y + \mu + \varepsilon\) with \(y\sim N(0,I_q)\) and \(\varepsilon\sim N(0,\sigma^2 I)\), so \(x\sim N(\mu, C)\) with \(C = WW^{\mathsf T}+\sigma^2 I\). The maximum likelihood solution uses the leading eigenvectors of the (weighted) sample covariance and the mean of the discarded eigenvalues.

logpdf(X)[source]#

Log-density of every row of X under the fitted model.