BAYES_DICE
Bayesian Dice Estimation


BAYES_DICE is a FORTRAN90 program which performs a simple demonstration of Bayesian Statistics.

Suppose we're watching a "system" and trying to analyze its behavior. Each time we observe the system, it rolls a die a certain number of times, and reports the results. We want to estimate THETA(1) through THETA(6), the probabilities of each result.

We treat the values of THETA as random variables themselves, controlled by a Dirichlet probability density function with parameters ALPHA(1) through ALPHA(6). We make an arbitrary guess for initial ALPHA values. We observe the system and adjust the ALPHA's using Bayes's Law.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

BAYES_DICE is available in a FORTRAN90 version.

Related Data and Programs:

BAYES_BETA, a FORTRAN90 program which uses Bayesian analysis to estimate the parameters in a beta distribution based on a series of sample data.

BAYES_WEIGHT, a FORTRAN90 program which uses Bayesian analysis to estimate the probabilities that one or another of two weighted dice is chosen.

DCDFLIB, a FORTRAN90 library which evaluates and inverts a number of statistical distributions.

GSL, a C++ library which includes many routines for evaluating probability distributions.

NORMAL, a FORTRAN90 library which samples the normal distribution.

PROB, a FORTRAN90 library which evaluates the PDF, CDF, mean and variance for a number of probability density functions.

UNIFORM, a FORTRAN90 library which samples the uniform distribution.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 30 December 2007.