Git Product home page Git Product logo

truncated-censored-em's Introduction

EM Algorithm for Truncated and Censored Data

This repo contains a python implementation of the paper

EM algorithms for multivariate Gaussian mixture models with truncated and censored data. Lee, G., & Scott, C. (2012). Computational Statistics & Data Analysis, 56(9), 2816-2829.

Requirements

  • python3.6
  • numpy
  • scikit-learn
  • scipy
  • matplotlib
  • seaborn

Experiment

In order to conduct experiments regarding EM alogrithm for truncated and censored data, please define your Gaussian Mixture Model and truncation and censoring bounds in the file main.py. Consequencely, execute the following command to start the experiments.

python main.py

For example, the default codes in the main file was designed with three-component bivariate Gaussian mixtures. An observation (x1, x2) was limited to a rectangular window [0, 25] x [0, 25] and truncated at 0 on the first dimension. Two centroids are located outside the window

The original data points are depicted in the following figures. In each figure, level contoursare displayed to compare the estimated distributions to the true distribution.

The mixture models fitted by the standard EM and the truncated and censored data EM are shown in the below figures. The estimates from the truncated and censored data EM algorithm significantly outperform the estimates from the standard EM algorithm. The two component centers from the truncated and censored data EM algorithm were located outside the observation window. On contrary, the standard EM failed to find censored centroids correctly.

truncated-censored-em's People

Contributors

tranbahien 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.