Elecmetric

Probability, Combinations and Binomial Formulas

Probability formulas for reliability and test work: two events, repeated trials, permutations, combinations and the binomial distribution, with worked examples.

The formulas

To findFormula
Both of two independent eventsP(A and B) = P(A) × P(B)
Either of two eventsP(A or B) = P(A) + P(B) − P(A and B)
Neither eventP(neither) = 1 − P(A or B)
Conditional probabilityP(A given B) = P(A and B) / P(B)
At least once in n independent trials1 − (1 − p)ⁿ
Permutations of r from n (order matters)nPr = n! / (n − r)!
Combinations of r from n (order does not matter)nCr = n! / (r! (n − r)!)
Exactly k successes in n trialsP(X = k) = nCk pᵏ (1 − p)ⁿ⁻ᵏ
Mean and variance of the countn p and n p (1 − p)
At least k successesP(X ≥ k) = sum of P(X = j) for j = k to n

Every formula here assumes independence: the outcome of one trial does not change the chance of another. Two lamps on one circuit, or two units fed from one supply, can fail together, and the independent answer is then too optimistic. Multiplying the chances of a series of events gives the chance that all of them happen; for a redundant pair that both must fail, the product is what you want. A small probability over many trials still adds up, which is why the at-least-once formula matters more than the single-trial figure. Probabilities are numbers from 0 to 1; multiply by 100 for a percentage.

Worked example: two redundant units

Two independent units each have a 0.02 chance of failing in a year.

  1. Both fail: 0.02 × 0.02 = 0.0004
  2. At least one fails: 0.02 + 0.02 − 0.0004 = 0.0396
  3. A single unit failing at least once in 5 years: 1 − (1 − 0.02)^5 = 0.09608

Worked example: counting selections

How many ways can three of ten spare units be picked and put in order, and without order?

  1. In order: 10P3 = 10 × 9 × 8 = 720
  2. Without order: 10C3 = 720 / 3! = 120
  3. Each group of three can be arranged in 3! = 6 orders, which is why the first figure is six times the second

Worked example: lamp failures

A row of 20 lamps, each with a 0.05 chance of failing in a year, treated as independent.

  1. Exactly 2 fail: 20C2 × 0.05² × 0.95¹⁸ = 190 × 0.0025 × 0.3972 = 0.1887
  2. At most 2 fail: P(0) + P(1) + P(2) = 0.3585 + 0.3774 + 0.1887 = 0.9245
  3. At least 3 fail: 1 − 0.9245 = 0.07548
  4. Mean number failing = n p = 1 and variance = n p (1 − p) = 0.95

Frequently asked questions

What is the difference between a permutation and a combination?

A permutation counts different orders as different selections; a combination counts them as one. Choosing three units to place in three positions is a permutation; choosing three units to keep as spares is a combination.

When can I multiply probabilities?

When the events are independent. If one event makes the other more or less likely, as with two units on a shared supply, use the conditional probability P(A given B) in the product instead.

Why use the binomial distribution?

It gives the chance of exactly k successes in n independent trials with the same chance each time. For a k-out-of-n redundant system, count a working unit as a success and read the at-least-k figure.

Does a low failure probability mean failures will not happen?

No. With many units or many years the chance of at least one failure grows, as 1 − (1 − p)ⁿ shows. Twenty lamps at 5% each give a mean of one failure a year.

Related

Mean and Standard Deviation FormulasPercentage, Ratio and Rounding FormulasMeasurement Uncertainty FormulasEngineering Mathematics calculatorsThree-Phase Power FormulasPower Factor and the Power TriangleAC Circuit Formulas: Reactance and ImpedanceVoltage Drop Formulas for CablesTransformer Formulas: Current and Fault LevelInduction Motor FormulasLighting Formulas: Lux, Lumens and CandelaBattery Formulas: Capacity and RuntimeSolar PV Formulas: Array Size and StringsCapacitor Formulas: Energy and RC Time ConstantEarthing Formulas: Earth Rod and Fault LoopCable Size Formulas: Current and Short-CircuitEnergy and Cost Formulas: kWh and PaybackGenerator Formulas: kVA, Current and FuelUPS Formulas: kVA, DC Current and BatteryHarmonics Formulas: THD and True Power FactorShort-Circuit Formulas: Fault Level by MVAUnbalance Formulas: Voltage and Neutral CurrentResistor Formulas: Series, Parallel, DividerMotor Starting Formulas: DOL, Star-DeltaCircuit Breaker Formulas: Rating and TripCooling Formulas: Airflow and Heat LoadHeating Formulas: Energy and Heater PowerPer-Unit Formulas: Base Values and ImpedanceLED Formulas: Resistor Value and PowerConduit Fill Formulas: Percent Fill and SizeLightning Protection Formulas: Rolling SphereTransformer Efficiency and Regulation FormulasPump Formulas: Hydraulic, Shaft and Motor PowerFan Formulas: Air Power and Affinity LawsInductor Formulas: Energy and L/R Time ConstantRMS, Peak and Average Value FormulasResonance Formulas: Frequency, Q, BandwidthMotor Efficiency Formulas: Input and SavingsDemand, Load and Diversity Factor FormulasCable Tray Fill Formulas: Area and Cable CountConductor Resistance Formulas and TemperatureTransmission Line Formulas: Drop and LossesStar-Delta Conversion Formulas for Resistors4-20 mA Loop Formulas: Scaling and ResistorCable Loss Formulas: Power and Annual CostOp-Amp Formulas: Inverting and Non-Inverting555 Timer Formulas: Frequency and Duty CycleThévenin and Norton FormulasWheatstone Bridge Formulas: Balance and OutputConductor Force Formulas: Short-Circuit ForcesCT Burden Formulas: Lead Resistance and VAGear and Belt Drive Formulas: Speed and TorqueSkin Effect Formulas: Skin DepthRC Filter Formulas: Cutoff Frequency and GainRectifier Ripple Formulas: Capacitor FilterBuck and Boost Converter Formulas: Duty CycleHeat Sink Formulas: Junction TemperatureBattery Pack Formulas: Series and ParallelMotor Acceleration Time FormulasZener Regulator Formulas: Series ResistorBJT Bias Formulas: Voltage Divider BiasPt100 RTD Formulas: Resistance and TemperatureNTC Thermistor Formulas: Beta EquationFusing Current Formulas: Wire Fuse EstimateFlywheel Formulas: Stored EnergyLinear Regulator Formulas: Power and EfficiencyMOSFET Loss Formulas: Conduction and SwitchingRelay Coil Formulas: Current and ResistorTransformer Inrush Current FormulasBattery Charge Time FormulasWind Turbine Power Formulas: Betz LimitDetuning Reactor Formulas: Capacitor BanksTransformer Tap Changer FormulasCable Pulling Tension FormulasInsulation Resistance Formulas: PI and DARPower Transfer and Power Angle FormulasSolar Panel Temperature Derating FormulasVoltage Change and Flicker FormulasSoft Starter and VFD Sizing FormulasEarth Fault Loop and RCD FormulasBattery Internal Resistance FormulasBusbar Size and Short-Circuit FormulasADC Resolution and Sampling FormulasCapacitor Switching Inrush FormulasCable Charging Current FormulasSolar DC to AC Ratio FormulasParallel Transformer Load Sharing FormulasPeukert Law and Battery Runtime FormulasCapacitor Discharge Time FormulasHydraulic Power and Cylinder Force FormulasThermocouple Voltage FormulasTransformer Vector Group FormulasPower Supply Hold-Up Time FormulasHoist and Lift Power FormulasCompressor Power FormulasRectifier Bridge Sizing FormulasPCB Trace Width and Current FormulasHeat Pump COP FormulasSound Level and dB Addition FormulasDuty Cycle and RMS Load FormulasSupercapacitor Energy FormulasStep and Touch Voltage FormulasContactor Sizing FormulasInverter-Fed Motor Cable FormulasPneumatic Cylinder Force and Air UseBusbar Temperature Rise FormulasMotor Temperature Rise FormulasBattery Storage Round-Trip EfficiencyThermal Time Constant FormulasSolar Charge Controller Sizing FormulasPoint Illuminance FormulasGenerator Droop and Load Sharing FormulasTwo-Wattmeter Method FormulasVFD Braking Resistor FormulasLoad Bank Test FormulasTransformer Cooling Class Rating FormulasEnergy Meter Multiplier FormulasOvercurrent Relay Curve FormulasSingle-Tuned Harmonic Filter FormulasCable Sheath Circulating Current FormulasDifferential Protection Slope FormulasEarth Electrode Spacing FormulasSolar Array Row Spacing FormulasDC Lighting Voltage Drop FormulasTransformer Loss of Life FormulasMotor Start Voltage Dip in the Cable FormulasNeutral Earthing Resistor FormulasCable I²t Withstand Check FormulasMotor Locked-Rotor Code Letter FormulasSynchronous Speed and Pole FormulasBattery C-Rate and Cycle Life FormulasEV Charging Time FormulasConveyor Belt Power FormulasParallel Plate Capacitor FormulasSolenoid and Coil Inductance FormulasPower Factor Correction Payback FormulasTransformer Through-Fault Current FormulasTransformer EMF Equation FormulasDelta-Star Resistor Conversion FormulasCurrent Shunt Resistor FormulasSolar Energy Yield and Degradation FormulasElectrolysis and Faraday’s Law FormulasAGL Series Circuit Load and CCR Sizing FormulasAGL Maximum Fittings on a CCR FormulasAGL Isolating Transformer FormulasAGL CCR Input Power and Energy FormulasAGL Brightness Step FormulasAGL Lamp Life FormulasComplex Number Formulas: Polar and RectangularPhasor Addition Formulas: Sum and DifferencePercentage Error Formulas for MeasurementsTrigonometry Formulas for Electrical EngineersQuadratic, Logarithm and Power FormulasConversion Centre

Tell us how to improve this page

This opens your email app. Nothing is sent until you press send.