Skip to main content

Package to conduct factor analysis on data

Project description

Factor Analysis

Your data is factorized into latent variables and noise parameters all within the same sample.

m denotes sample length, n denotes number of features for the data sample k denotes number of latent features to be represented for the data sample

λ denotes the factor z denotes the latent variable of size m x k ϵ denotes the noise parameters of size m x ``nψ` denotes the covariance of `ϵ`

Factor Analysis equation

            x = μ + λz + ϵ

We determine λ and ψ using posterior distribution ( z | x ) by expectation maximisation. The method is useful to predict the factor variables from a posterior distribution known to the user provided the data you are processing can be fit into the equation.

import tensorflow as tf

f = factor_analysis.factors.Factor(data, factor_analysis.posterior.Posterior(covariance_prior, means))

noise = factor_analysis.noise.Noise(f, f.posterior)

with tf.Session() as sess:
    print(f.create_factor().eval())
    print(noise.create_noise(f.create_factor()).eval())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for factor-analysis, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size factor_analysis-0.0.2-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size factor-analysis-0.0.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page