GithubHelp home page GithubHelp logo

carsonmckee / bayesglm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.74 MB

A Python API for Bayesian Generalised Linear Models.

License: MIT License

Python 0.76% CMake 0.01% C++ 97.88% C 1.34%
glms mcmc-sampling metropolis-hastings mcmc

bayesglm's Introduction

BayesGLM

A python API for fitting Generalised Linear Models via Metropolis-Hastings Sampling.

Overview

BayesGLM offers flexible GLM spceification within a Bayesian Framework, supporting a wide range of Prior distributions while allowing for hierarchical Prior specification. Models are fitted by implementing the Metropolis Hastings Algorithm in order to induce stationary Markov Chains of which posterior samples can be obtained. The underlying mathematics is written in C++ for speed and interfaces with Python using Cython. The model fitting is done via a central 'glm' object, similar in functionality to that found in the R language.

The package utilises pandas, matplotlib and seaborn for plotting and data manipulation.

Features

BayesGLM currently supports the following features:

  1. Linear and interaction terms of predictors.
  2. Link function specification.
  3. Wide range of Exponential Family Distributions.
  4. Wide range of Prior disributions.
  5. Running multiple Markov Chains for each variable.
  6. Specification of burn-in, chain length and chain starting positions.
  7. Specification of proposal distribution.
  8. Accomodates both single and multi-update MH Algorithm.
  9. Range of posterior estimates including mean, standard error and credible intervals.
  10. An estimate of the Deviance Information Criterion.
  11. Chain mixing/convergence diagnostics, including acceptance rates and ACF plots.
  12. Posterior chain summary plots.

Documentation

bayesglm's People

Contributors

carsonmckee avatar

Watchers

 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.