calqulio.
◎ English · Global

Success count — Beta-Binomial Posterior Mean Calculator

Beta-Binomial Posterior Mean: Calculate success count from Posterior mean proportion, Trial count, Prior alpha parameter, Prior beta parameter. Check the formula, input units and worked result on this page.

Enter your values

%
Formula symbol: mean. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.
Formula symbol: trials. Enter a numeric value. Use a whole number. Use a non-negative value.
Formula symbol: alpha. Enter a numeric value. Must be greater than zero.
Formula symbol: beta. Enter a numeric value. Must be greater than zero.

Use a decimal point, without thousands separators.

Independent Bernoulli observations and a chosen beta prior are assumed. Target successes round up; this is neither a probability guarantee nor an interval. Prior parameters must be positive.
Example result
Success count
4

The initial result uses the example values. Enter your own values and calculate again.

Edit inputs

How it works

Beta prior parameters and binomial successes give posterior mean (successes+alpha)/(trials+alpha+beta). This form solves for success count; enter the known quantities in Posterior mean proportion, Trial count, Prior alpha parameter, Prior beta parameter.

Inputs and units
Success count — Beta-Binomial Posterior Mean Calculator · Inputs and units
InputExample valueWhat to enter
Posterior mean proportion50 %Formula symbol: mean. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.
Trial count8Formula symbol: trials. Enter a numeric value. Use a whole number. Use a non-negative value.
Prior alpha parameter1Formula symbol: alpha. Enter a numeric value. Must be greater than zero.
Prior beta parameter1Formula symbol: beta. Enter a numeric value. Must be greater than zero.
successes = max(0, ceil((((mean / 100) * (trials + alpha + beta)) - alpha)))

Worked example

Show example inputs and results

This example is generated by the same calculation engine using the starting values in the form. Your own inputs produce your own result.

Posterior mean proportion
50 %
Trial count
8
Prior alpha parameter
1
Prior beta parameter
1

Complete example results

Success count
4

Reading the result

The result solves for success count from the entered quantities. Check the result unit and the formula conditions before using it.

Questions and answers

Can I use the example values for my own calculation?

The example values illustrate the calculation. Replace every input with your own information, especially dates, rates and the selected operation.

When can I use the success count result?

Independent Bernoulli observations and a chosen beta prior are assumed. Target successes round up; this is neither a probability guarantee nor an interval. Prior parameters must be positive.

Why are some results rounded?

Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.

Are my inputs sent to a server?

The calculator processes inputs in your browser. Its code does not send your values to a server.

Method sources: ocw.mit.edu

Methods & accuracy

What would you like to calculate?

Browse all calculators

Graphing calculator ↗