Git Product home page Git Product logo

bpca's Introduction

bPCA - Bayesian Principal Components Analysis

Jan Smyčka, Petr Keil

Description

This is an R package that enables to perform Bayesian Principal Components Analysis, which we call bPCA.

Installation

For easy installation directly from this repository just type this in R:

library(devtools)

install_github("bPCA", username="petrkeil")

library(bPCA)

The idea

The idea is to fit a MultiVariate Normal (MVN) distribution to set of continuous variables. The fitting is done using MCMC sampler in JAGS. The means and covariances (parameters of the MVN) are monitored during the MCMC sampling and stored as MCMC chains, and subsequently subjected to various summary procedures.

The potential advantages over classical PCA are:

  • Prior information about associations between variables can be provided.
  • Stability of the PCA can be assessed, especially when only small sample sizes are available.
  • The posterior distributions for the PCA scores and loadings can be extracted for further use, e. g. anywhere where propagation of uncertainty is of interest.

History

The project was initiated by Jan Smyčka who approached Petr Keil with the idea of performing principal components analysis (PCA) in Bayesian setting. After some discussions Jan put together the first JAGS code and essentially the core function of the project. Petr then build the rest of the package, and together they wrote the documentation.

bpca's People

Contributors

petrkeil avatar smyckaj avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.