Beta-binomial predictive probability calculator
Find a future-count probability by integrating a binomial success chance over a Beta prior distribution.
How to use this calculator
Find a future-count probability by integrating a binomial success chance over a Beta prior distribution.
- Enter Prior α, Prior β, Future trials m, Future successes k. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How the Beta-binomial predictive probability calculator works
Find a future-count probability by integrating a binomial success chance over a Beta prior distribution.
Inputs and units
- Prior α: Positive Beta prior shape α.
- Prior β: Positive Beta prior shape β.
- Future trials m: Whole future trial count m, from 0 to 10,000.
- Future successes k: Whole target success count k from 0 through m.
Formula and method
P(K=k) = C(m,k) B(α+k, β+m−k)/B(α,β)
Worked example
With α=β=1, m=5, and k=2, the predictive probability is 1/(5+1)=0.1666666667. The uniform Beta prior makes each possible count equally likely in this case.
Interpreting the result
This is a predictive probability for exactly k successes, incorporating uncertainty about the shared success chance.
Assumptions and limits
α and β must be positive; future counts are whole numbers with 0≤k≤m. Assumes conditional independence given one common latent success probability.
Sources and method
- Defines the beta-binomial probability mass function. SciPy: beta-binomial distribution
Frequently asked questions
Is this ordinary binomial probability at α/(α+β)?
No. Integrating over uncertainty in the chance generally produces a different predictive distribution.
How do prior observations fit?
For a Beta-binomial update, add observed successes to α and observed failures to β before predicting future trials.
How do I use the Beta-binomial predictive probability calculator?
Enter Prior α, Prior β, Future trials m, Future successes k. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Beta-binomial predictive probability?
With α=β=1, m=5, and k=2, the predictive probability is 1/(5+1)=0.1666666667. The uniform Beta prior makes each possible count equally likely in this case.
What does the Beta-binomial predictive probability calculator calculate?
Find a future-count probability by integrating a binomial success chance over a Beta prior distribution.
See the calculation methodology.