Skip to content

robmoss/example-pypfilt-discrete-obs

Repository files navigation

Example of discrete observation models for pypfilt

This repository contains example scenarios for estimating the probability of rolling a 1, 2, 3, 4, 5, or 6 for a biased 6-sided die.

The simulation model is defined in die.py and the observation model is defined in roll.py.

Usage

Please ensure that nox is installed, and use it (a) simulate die rolls; (b) construct prior samples; (c) fit the model to the simulated die rolls; and (d) plot the results to example.png:

nox

The example results.

The solid horizontal lines show the ground truth probability for each outcome, and the dashed horizontal lines show the proportion of simulated die rolls for each outcome.

License

The code is distributed under the terms of the BSD 3-Clause license (see LICENSE).

About

Example of discrete observation models for pypfilt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages