Skip to content

Simple demo of Zero-Inflated Poisson (ZIP) model using Infer.NET framework

License

Notifications You must be signed in to change notification settings

usptact/ZeroInflatedPoisson-Infer.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZeroInflatedPoisson-Infer.NET

Simple demo of Zero-Inflated Poisson (ZIP) model using Infer.NET framework.

Zero inflated models can account for extra zeros. The generative story for each data point:

  1. Flip a weighted coin
  2. If heads, return zero
  3. If tails, sample from Poisson distribution

The coin flip decides whether to return a zero. If tails, a sample from Poisson distribution can be also a zero. It is like deciding whether to go to a store to buy an item, one can still not buy (e.g. item is out of stock).

The model will infer the Beta posterior for coin biasedness and the mean of the Poisson distribution. In this demo, mean values of the distribution are printed to the screen.

Updated to use open source Infer.NET.

About

Simple demo of Zero-Inflated Poisson (ZIP) model using Infer.NET framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages