Giter VIP home page Giter VIP logo

markov-chain-mixture-with-hmm's Introduction

Markov chain mixture with HMM (Chib 96)

Authors: Marin Bouthemy, Kossi Neroma, Tangi Salaün and Nicolas Toussaint

Introduction

This repository contains the implementation of the HMM algorithm describes in the paper of Siddhartha Chib named "Calculating posterior distributions and modal estimates in Markov mixture models". You can find it here.

This repository is designed like a library to simulate and run HMM on different markov chain. You can define easily your prior and posterior. Then just run the HMM to get your results. Next, you can plot the ACF to see, how many steps from the beginning you need to remove.

Examples

You can see two examples of the library working in the examples folder.

A poisson mixture example

There are two notebooks :

  1. Poisson mixture : pHMM.ipynb
  2. Gaussian mixture : gHMM.ipynb

Library structure

All the files running the library are in the models folder.

  1. posteriors.py : contains the implementation of different posteriors for the HMM. Posteriors are used to defined your model for the HMM
  2. HMM.py : contains the implementation of the HMM
  3. simulation.py : some function to simulate the markov chain from a posterior
  4. utils.py : some utilities to plot the ACF.

markov-chain-mixture-with-hmm's People

Contributors

neroksi avatar nicotous1 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.