Bayesian Statistics

Bayesian Update Table

Discrete Probability

A Bayesian Update Table can be constructed for events with discrete probability as follows:

HypothesisPriorLikelihoodBayes numeratorPosterior
HiP(Hi)P(D|Hi)P(D|Hi)P(Hi)P(Hi|D)=P(D|Hi)P(Hi)P(D)
...............
Total  P(D)=iP(D|Hi)P(Hi) 

where Hi are the hypotheses and D is the data.

Continuous Probability

A Bayesian Update Table can be constructed for events with continuous probability as follows:

HypothesisPriorLikelihoodBayes numeratorPosterior
θf(θ)dθf(x|θ)f(x|θ)f(θ)dθf(θ|x)=f(x|θ)f(θ)dθf(x)
Total  f(x)=f(x|θ)f(θ)dθ 

where θ is the probability of the hypothesis.

Beta Distribution Priors

A Bayesian Update Table can be constructed for events with Beta distribution priors as follows:

Distribution Types (Prior/Likelihood)HypothesisPriorLikelihoodBayes numeratorPosterior
Beta/Bernoulli (on success)θ[0,1]Beta(a,b)dθθθ×Beta(a,b)dθBeta(a+1,b)
Beta/Bernoulli (on failure)θ[0,1]Beta(a,b)dθ(1θ)(1θ)×Beta(a,b)dθBeta(a,b+1)
Beta/Binomialθ[0,1]Beta(a,b)dθ(nx)θn(1θ)nx(nx)θn(1θ)nx×Beta(a,b)dθBeta(a+x,b+nx)
Beta/Geometricθ[0,1]Beta(a,b)dθθx(1θ)θx(1θ)×Beta(a,b)dθBeta(a+x,b+1)

where the Beta distribution is given as follows:

Beta(a,b)=(a+b1)!(a1)!(b1)!θa1(1θ)b1

Properties

Normal Distribution Priors & Likelihoods

A Bayesian Update Table can be constructed for events with normal distribution priors and likelihoods as follows:

Distribution Types (Prior/Likelihood)HypothesisPriorLikelihoodBayes numeratorPosterior
Normal/Normalθ(,)N(μprior,σprior2)dθN(θ,σ2)N(a,b)×N(θ,σ2)dθN(μpost,σpost2)

where x¯ is the mean of the data points, n is the number of data points, and:

a=1σprior2,b=nσ2μpost=aμprior+bx¯a+b,σpost2=1a+b