Apply the methodLesson 35 of 76 · 8 min
How reliable is a whole product?
Translate a component relationship into a system success event.
Reliability over a stated mission asks whether the system performs its required function throughout that mission. A component reliability is a probability tied to a boundary and duration, not a timeless property.
For a series system every component must work. For a parallel system with sufficient redundancy at least one component must work. The code uses independent component states and compares both events on the same draws. Independent analytical formulas provide exact model references. In NumPy, all(axis=1) asks whether every component in each row works; any(axis=1) asks whether at least one does.
A diagram or Boolean rule should precede the calculation. Components that share a power source, environment or manufacturing defect may fail together. Parallel reliability can be overestimated if the model ignores a shared cause or assumes that either component can carry the complete load.
means multiply all component success probabilities. For independent chances .9 and .8, series success is .9×.8=.72 and parallel success is 1−.1×.2=.98.
- Component states
- Series: all must work
- Parallel: at least one works
Which Boolean operation matches a series system: all or any?
Write a prediction (optional)
Seeded teaching simulation
Select Run Python below with the code unchanged.
A saved draft is open. To run the published example, open Tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
Your result
Published example output
This result comes from the original Python. Your runs appear above. Build environment ↗
Series simulated / exact: 0.9319 0.93139 Parallel simulated / exact: 0.99998 0.99999 Simulated trials: 50000
Read the first result
Very rare parallel-system failure may be poorly estimated by a modest trial budget, even when series reliability is estimated reasonably.
Try an edit
Add print("Parallel with shared failures:", round((parallel & (rng.random(len(working)) >= .01)).mean(), 5)) immediately after print("Simulated trials:", len(working)). Select Run Python again. Compare Parallel with shared failures with the simulated value in Parallel simulated / exact. The new line adds a 1% chance of a failure that disables the whole system, regardless of component states.
Scope. The independent Bernoulli mission model omits ageing, repair, load sharing and common-cause failures.
Try a fresh case
Two backup components share a power supply. What should the model consider?
Need a hint?
Hint 1
Draw what both components depend on.
Hint 2
Identify a single event that can disable both.