Home / Guides / Monte Carlo for FTA — lognormal vs uniform
Uncertainty · Comparative

Monte Carlo for FTA — lognormal vs uniform leaf distributions

A point-estimate fault tree gives one number for P(TOP). The data behind it is rarely that certain: a published value with an error factor, a manufacturer's range, an extrapolation from a small fleet. Monte Carlo propagates the uncertainty in the leaf values through the tree and gives a percentile band on the top event. The distribution you choose for each leaf shapes that band. This guide covers the choice, the sampling mechanics, and a worked SPAD tree whose every figure was computed with FTA Studio's engine.

≈ 14 min read Worked tree: rail / SPAD (Article 1) Distributions in FTA Studio: lognormal, uniform, loguniform

Why a point estimate isn't enough

Suppose a basic event's failure rate came from a handbook. The handbook gives one number; the rate in your application, on your production batch, in your climate, is uncertain. If you can say how uncertain — for example "the true value is within a factor of 3 of this median, 90% of the time" — you can propagate that through the tree and report a band rather than a single figure.

Two reasons this matters in practice:

  1. The mean is not the median. For a lognormal leaf the mean exceeds the median by exp(σ²/2): 1.25× at an error factor of 3, 1.61× at 5 and 2.66× at 10. If the point values in your tree are medians, the mean of P(TOP) is higher than the point estimate, and which of the two your target is compared against is a decision to make explicitly.
  2. The 95th percentile says how bad pessimistic data would be. A 5th–95th band spanning two orders of magnitude is a different kind of result from one spanning 30%, even with the same point estimate. The first argues for design margin; the second does not.
What "Monte Carlo on a fault tree" computes here For each of N samples: draw a value for every uncertain leaf from its distribution, quantify the tree with those values, record P(TOP). The empirical distribution of the recorded values is the propagated uncertainty, from which the mean and the 5th, 50th and 95th percentiles are read. FTA Studio quantifies each sample exactly on the same binary decision diagram, and reports which parameters drive the result by rank correlation. This is parameter (state-of-knowledge) uncertainty, distinct from simulating which components fail.

Step 1Which leaf distribution

The choice per leaf depends on what the data source actually gives you.

DistributionWhen to useParametersShape
Lognormal When you have a central value and a multiplicative spread, usually stated as an error factor EF = 95th / 50th percentile (equal to √(95th / 5th) for a lognormal). Median (or mean) and EF. μ = ln(median), σ = ln(EF)/1.645. Right-skewed; mean = median × exp(σ²/2).
Uniform When all you have is a range of the same order of magnitude, with no reason to prefer any value inside it. low, high. Flat, bounded; mean = (low + high)/2.
Loguniform When all you have is a range spanning orders of magnitude ("between 10⁻⁷ and 10⁻⁵"). Each decade gets equal weight, where a uniform would put 99% of its weight in the top decade. low, high (both > 0). Flat in log space, bounded.

Other tools also offer triangular and beta distributions; FTA Studio does not. A beta distribution suits a per-demand probability estimated from observed successes and failures; if you have one, you can enter its median and an equivalent error factor as a lognormal, and say so.

Where the spread comes from

Check what your data source actually publishes before choosing. OREDA, for example, gives a mean, a standard deviation and a 90% interval rather than a median and error factor. MIL-HDBK-217F and FIDES give point values with no error factor at all, so an error factor applied to them is the analyst's judgement and should be recorded as such, with the reason.

Why lognormal is the usual choice for rates

Every leaf without a distribution is a fixed point. FTA Studio lists the fixed points in the result rather than giving them a spread nobody chose.

Step 2Sample size, convergence, and correlated leaves

Sample size

The standard error of a Monte Carlo estimate falls as 1/√N: halving it costs four times the samples. Tail percentiles converge more slowly than the mean, because fewer samples land there. Rather than trust a rule of thumb, measure it: run twice with different seeds or sample counts and compare. On the SPAD tree below, with seed 12345, 10,000 samples gave a 95th percentile of 1.82×10⁻⁵ per approach and 100,000 gave 1.84×10⁻⁵, 1.3% apart; the standard error of the mean at 10,000 samples was 0.48% of the mean.

FTA Studio runs up to 10,000 samples in the browser, and more on the server on Professional and Enterprise plans. Sampling is seeded, so a run can be repeated exactly.

Latin Hypercube Sampling

Latin Hypercube Sampling (LHS) stratifies each leaf's distribution so the samples cover it evenly, which usually reduces the variance of the estimate for a given N. Some PRA codes offer it — SAPHIRE offers simple Monte Carlo or Latin Hypercube sampling. FTA Studio uses simple seeded sampling, so convergence is checked by sample count and seed as above.

Correlated leaves

Drawing every leaf independently assumes the uncertainties are unrelated. Where two events use the same data — the same component type, the same handbook entry — their uncertainties are the same uncertainty: if the handbook is optimistic, it is optimistic for both. Sampling them independently understates the spread of P(TOP), most of all for AND gates over identical components.

Step 3Worked SPAD tree with Monte Carlo bands

The SPAD tree from Article 1 (the SPAD template): 8 basic events, 9 minimal cut sets, exact point-estimate P(TOP) = 7.73×10⁻⁶ per approach to a signal at danger. Three of the cut sets are single wrong-side signal failures and carry 99.1% of that; the other six pair a driver error with a train-protection failure. Now give every basic event a lognormal with its point value as the median and an error factor of 3. For the two driver events the distribution is on the probability per approach; for the six hardware events, whose probability is λτ/2, it is on the failure rate λ, which scales their probability by the same factor. The EF of 3 on every event is an illustrative assumption, not a value taken from a data source:

EF = 95th / 50th = 3
σlog = ln(EF) / 1.645 = ln(3) / 1.645 = 0.668
μ = ln(median)

Percentile band on P(TOP)

FTA Studio's uncertainty analysis, 10,000 samples, seed 12345:

StatisticP(TOP) per approach÷ point estimate
5th percentile4.38×10⁻⁶0.57
50th percentile (median)8.65×10⁻⁶1.12
Mean9.64×10⁻⁶1.25
95th percentile1.82×10⁻⁵2.35

What the table shows that the point estimate hid:

F-V importance under uncertainty

Importance measures from Article 2 become bands too: compute F-V for every sample and read the percentiles. These were computed with the same engine, on the same 10,000 draws as the run above (same seed, same generator), each sample quantified exactly. FTA Studio's own uncertainty run reports rank correlations rather than F-V bands; on this run its Spearman correlations with Q(top) are 0.80 for BE-001, 0.44 for BE-002, 0.22 for BE-003 and 0.01 or less for the other five.

Basic eventF-V 5thF-V medianF-V 95thRank
BE-001 (interlocking wrong-side)23.2%53.9%81.8%First in 73.9% of samples
BE-002 (signal head wrong-side)8.2%27.1%60.0%Above BE-001 in 23.3% of samples
BE-003 (cable wrong-side)3.7%13.1%36.7%Above BE-002 in 23.3% of samples
BE-004 (driver does not see)0.15%0.71%3.3%
BE-005 (driver brakes late)0.029%0.14%0.65%
BE-006 (trackside data)0.13%0.63%3.0%
BE-007 (on-board unit)0.037%0.17%0.86%
BE-008 (emergency brake)0.0035%0.017%0.086%
BE-001 to BE-003 together96.2%99.1%99.8%

At the point values BE-001 carries twice BE-002's share, but with an error factor of 3 on each that order reverses in nearly a quarter of samples, and so does the order of BE-002 and BE-003. So "address the interlocking first" does not survive the uncertainty: the data cannot tell the three wrong-side failures apart with any confidence. What does survive is the branch: the three together carry at least 96.2% of P(TOP) in 95% of samples, so the conclusion to carry forward is about the wrong-side signal failures as a group — for example their shared test interval, the change Article 1 tries — not about any one of them. That is the kind of statement a point estimate cannot support and a Monte Carlo can.

Pitfalls a reviewer will catch

Where to go next

Sources