Define one binary event
Use the model when each trial has exactly two outcomes and the event has a probability p between zero and one. Examples include whether a defined component fails during a test window or whether a sampled item meets a specified condition. State precisely what counts as the event and the time or sampling conditions behind its probability.
The calculator’s input is the probability as a fraction: 0.2 means a 20% chance. A percentage such as 20 must be converted to 0.20 before entry if the field expects a fraction. The probability must be within the closed interval from zero to one, including the certain-event boundaries.
Calculate the expected value and variance
For a Bernoulli variable X, P(X=1)=p and P(X=0)=1−p. Its mean is E[X]=p. Since X² equals X for both possible outcomes, E[X²]=p; therefore Var(X)=E[X²]−E[X]²=p−p²=p(1−p). The variance is largest at p=0.5 and equals 0.25.
Variance is expressed in squared units of the variable. For a zero-one indicator the outcome is dimensionless, so the numeric variance is dimensionless too. Standard deviation is the square root, √(p(1−p)); it is a different quantity. Do not label the variance itself as a probability or as a percentage chance.
If you reverse the event coding so that the original non-event becomes 1, the new probability is 1 − p. Its variance is (1 − p)p, the same value, while its mean changes to the complementary probability. This invariance is useful when either binary outcome could be chosen as the event, but the event label must still be explicit because the mean and any decision threshold depend on that choice.
Separate one outcome from a group total
This formula describes one Bernoulli trial. For n independent trials with the same probability p, the variance of the sum is n p(1−p), while the variance of the average proportion is p(1−p)/n. Those are derived quantities for other variables; this calculator’s single-trial result does not multiply by a sample count.
If trials are dependent or their probabilities differ, the variance of a total needs covariance terms or a model for the separate probabilities. A lone event probability cannot capture clustering, repeated exposure, changing conditions, or uncertainty in the probability estimate.
Treat p as an assumption, not an observation count
The value p may come from a model, a prior estimate, or a stable frequency estimate. The calculator does not estimate p from successes and failures, attach a confidence interval, or assess whether a historical sample is representative. If you use an observed proportion as p, the output is a plug-in calculation conditional on that estimate.
At p=0 or p=1 the variance is zero because the outcome is modeled as certain. At intermediate probabilities both outcomes remain possible and the variance is positive. This shape can help compare uncertainty for binary indicators, but it cannot rank overall risk without considering the consequence and exposure associated with the event.
Report the outcome definition and probability scale
Write the event, unit of observation, probability source, and time window with the result. A failure probability per component per year differs from a probability per operating hour, even if the number p is the same. A comparison is meaningful only when the event and exposure basis match.
Penn State’s probability notes define a Bernoulli outcome using success probability p and its complement. The calculator implements the single-outcome variance relation; it does not decide whether a Bernoulli model fits your real process. Use a domain-specific model when the event structure or dependence is more complex.
Worked examples
A 20% event probability
Inputs: Event probability p = 0.20.
Calculation: Mean = p = 0.20. Variance = p(1 − p) = 0.20 × 0.80 = 0.16.
The single binary outcome has variance 0.16 and standard deviation √0.16 = 0.4; the calculator’s variance output is not itself a 20% probability.
A 65% event probability
Inputs: Event probability p = 0.65.
Calculation: Mean = p = 0.65. Variance = p(1 − p) = 0.65 × 0.35 = 0.2275.
The variance is 0.2275; the matching standard deviation would be √0.2275 ≈ 0.47697.