Skip to content

Update Factor analysis notebook #587

Closed
@erik-werner

Description

@erik-werner

Factor analysis:
https://www.pymc.io/projects/examples/en/latest/case_studies/factor_analysis.html:

Issue description

I think there's a small error in one of the equations at the end of the notebook. There's a missing $\Psi^{-1/2}$ in the last equation, the RHS should read $\Psi^{-1/2}N(F, (W^TW)^{-1})$. I think this error carries over to the sampling code.
But there are quite a few unexplained steps in the derivation, so it's not obvious to me what is done, nor how it relates to the code.

Further, since the notebook uses synthetic data, it would be nice to end the notebook with a comparison between the true latent factors and the estimates from the factor analysis.

Todo:

  • Spell out the steps in the mathematical derivation
  • Fix any errors
  • Make the connection between the equations and the code clearer
  • Add a section at the end to compare the latent factors that we've identified with the true ones from the synthetic data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions