Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed transformation: Loading matrix for factor analysis #72

Open
ElOceanografo opened this issue Mar 24, 2020 · 2 comments
Open

Proposed transformation: Loading matrix for factor analysis #72

ElOceanografo opened this issue Mar 24, 2020 · 2 comments

Comments

@ElOceanografo
Copy link

Would there be any interest in a "special array" transformation to create loading matrices for factor analysis? i.e., when n observed variables are represented by m <= n latent factors, the loading matrix L has size (n, m) and links the latent variables x to observed variables y as y ~ MvNormal(L * x, sigma). When fitting it by MLE/MCMC, all entries above the diagonal are set to zero to ensure the columns are linearly independent. The transform is thus from a vector with (n - m + 2) * m elements to an n * m matrix.

I've got a working example hacked together that I could turn into a pull request if this would be useful for others...

@tpapp
Copy link
Owner

tpapp commented May 5, 2021

Sorry for the late reply. I am not familiar with these methods, so an example would help clarify.

@ElOceanografo
Copy link
Author

I actually went and turned my working example into its own small package: https://github.com/ElOceanografo/FactorLoadingMatrices.jl. There's an example in the readme that illustrates the intended usage. Basically the transformation constructs the first m columns of a Cholesky lower triangle, so you can do dimensionality reduction inside a probabilistic model.

Still happy to contribute the transformation here as well if you want!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants