Maritime Science Life

Calculations with context

Beta-binomial Bayesian reliability calculator

Update an explicit Beta prior with success and failure observations; inspect the posterior credible interval and beta-binomial predictions.

RELIABILITY · EVIDENCE & UNCERTAINTY

Bayesian reliability updating

Update a probability of success with an explicit Beta prior and Bernoulli observations. Inspect the posterior, uncertainty and predictions for future trials.

Educational model only. No safety, class, regulatory, certification or equipment-acceptance approval. Reliability here means success on one consistently defined mission or demand, not availability or a time-to-failure rate.

Model: the same success definition and conditions, a shared fixed p, and trials independent given p. Do not discard failures or restart the counter to obtain a failure-free streak.

Inputs

Enter a probability, not a percent; e.g. 0.95 means 95%. Decimal point or comma is accepted.

0.1 ≤ α ≤ 1,000
0.1 ≤ β ≤ 1,000
0 ≤ s ≤ 10,000 · integer
0 ≤ f ≤ 10,000 · integer
0.5 ≤ γ ≤ 0.999
0 ≤ r ≤ 1
0 ≤ m ≤ 1,000 · integer

Software bounds: 0.1≤α,β≤1000; s and f are integers from 0 to 10,000 each; 0.5≤γ≤0.999; 0≤r≤1; m is an integer from 0 to 1,000. Endpoint-concentrated intervals that cannot meet the numerical precision check are rejected.

Current results

Enter inputs, then calculate.

Calculations run in your browser without upload or persistent storage. CSV download occurs only on request. Changing language or reloading resets inputs. Display: 8 significant digits; CSV retains numeric precision. · reliability-1.0.1

Method and interpretation

Let p be the probability of success on the same mission. In the Beta(α,β) prior, α is the success-side shape and β is the failure-side shape; both must be positive. The s successes and f failures are conditionally independent Bernoulli observations sharing p. Conjugacy keeps the posterior in the Beta family.

p∼Beta(α,β);L(p)∝ps(1−p)fp|data∼Beta(α+s,β+f)=Beta(a,b)E[p|data]=aa+b[I−1(1−γ2;a,b),I−1(1+γ2;a,b)]P(p≥r|data)=1−Ir(a,b)K|data∼Beta-Binomial(m,a,b)P(K=k|data)=(mk)B(a+k,b+m−k)B(a,b)P(K=m|data)=∏j=0m−1a+ja+b+j

I is the regularized incomplete beta function; B is the beta function. The interval is equal-tailed, not highest-density. It contains posterior probability mass γ conditional on the chosen prior and likelihood. This credible interval has a different interpretation from frequentist confidence. Future trials are independent given p, but their joint predictions are dependent after integrating uncertainty in p. Thus all-success probability generally differs from the posterior mean raised to m.

Worked example · invented test evidence

Observe 9 successes and 1 failure in an invented mission test. Choose a uniform Beta(1,1) prior for illustration; this is not universally “uninformative” or correct.

  1. Beta(1,1)+(s=9,f=1)→Beta(10,2)
  2. E[p|data]=1012=0.83333333
  3. 95% equal-tail credible interval = [0.58722008,0.97716880].
  4. P(p≥0.8|data)=1−(11×0.810−10×0.811)=0.67787745
  5. P(K=5|data)=10121113121413151416=0.45833333
  6. (1012)5=0.40187757;E[K|data]=5×1012=4.1666667

The observed success fraction is 910=0.9, whereas the posterior mean is 0.8333 because the prior contributes. With no observations, the posterior equals the prior. Repeat with alternative defensible priors to inspect sensitivity; do not count the same evidence in both the prior and likelihood.

Prior and posterior cumulative distributionsHorizontal axis: success probability p from 0 to 1. Vertical axis: cumulative probability P(reliability ≤ p). Solid teal: posterior; dashed amber: prior. The band marks the equal-tail posterior credible interval.1001p
Horizontal axis: success probability p from 0 to 1. Vertical axis: cumulative probability P(reliability ≤ p). Solid teal: posterior; dashed amber: prior. The band marks the equal-tail posterior credible interval.
PosteriorPriorCredible interval

Assumptions and limits

  • Specify the success criterion, mission duration, load, environment, sampling and stopping rule before testing. Optional stopping after inspecting results can invalidate the stated confidence interpretation.
  • Trials must share a stable success probability. Common causes, ageing, repairs, design changes and unit heterogeneity can violate this simple model. Partial missions and censored lifetime data cannot simply be treated as these counts.
  • This is a mission-reliability model. It does not calculate an exponential lifetime model, failure rate, MTBF, availability, SIL/PFD or maintenance policy. Examples are entirely invented.
  • Input limits are software limits, not engineering acceptance criteria. Extreme probabilities can round to 0 or 1 at floating-point precision. For narrow posteriors the sampled curve is illustrative; use the numeric interval for precise endpoints.

Primary sources

Related context

The method explanation and worked example are on this page. The articles below provide additional context.

All calculators