A1118 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A11 · Lesson 18 · Extremes

The largest and smallest of many, and how big noise peaks get

Engineers often care less about a typical value than about the worst one: the first of many parts to fail, the highest noise peak in a second of samples, the slowest of a thousand logic paths. These are extremes, the maximum or minimum of many random values, and they follow simple rules. The largest of n values is below x only if every one of them is, so its CDF is the single value's CDF raised to the power n. That one idea explains why big systems fail early and why a noise signal's peaks sit five or six standard deviations out.

  • The curve is the density of the largest of n independent values, each uniform on [0,1]: nxn−1.
  • With n=1 it's flat. Raise n: the density piles up near 1, because with many draws, one of them is almost certainly large.
  • The readout gives the mean of the maximum, nn+1.

Predict

A system has 3 parts, each with an exponential lifetime of mean 10 years. When, on average, does the first one fail?

Name it

The maximum and the minimum

For n independent values with the same CDF F(x):

P(max⁡≤x)=F(x)n,P(min⁡>x)=(1−F(x))n

The maximum's density is nF(x)n−1f(x).

Exponential lifetimes

If each part fails at rate λ, the first failure among n parts comes at rate nλ, with mean 1nλ. With different rates, the rates add: the series-system failure rate is the sum of its parts' rates.

Noise peaks and crest factor

A noise waveform's crest factor is its peak divided by its RMS. For Gaussian noise there's no hard peak, but over n independent samples the chance that all stay within ±kσ is (1−2Q(k))n. For a million samples, k=5 gives about even odds; so a scope capturing a million noise samples typically shows peaks near ±5σ, and peak-to-peak readings of about 10σ for a long record. Converters and amplifiers are given headroom for those peaks.

Worst-case paths

A chip's clock period is set by its slowest path. If thousands of paths each have a little random delay variation, the maximum sits several standard deviations above the typical path, so statistical timing analysis looks at the tail, not the mean.

Worked example

Three parts each have exponential lifetimes with a mean of 10 years. What is the mean time to the first failure?

Show the solution
  1. Combined rate. Each fails at rate 0.1 per year, so the first of the three fails at rate 0.3 per year.
  2. Mean time to the first failure. That's an exponential with mean 10.3=3.33years
  3. All three last 5 years. e−0.3×5=0.22 against e−0.5=0.61 for one part.

Answer the first failure comes after 3.33 years on average.

Worked example

Gaussian noise is sampled a million times. What is the chance that every sample stays within ±5σ?

Show the solution
  1. One sample. Each sample exceeds ±5σ with probability 2Q(5)=5.7×10−7
  2. A million samples. All million stay inside with probability P=(1−5.73×10−7)106≈e−0.573=0.56
  3. What it means. In a million samples, peaks beyond 5σ are roughly a coin toss; in ten million, they're almost certain.

Answer every sample stays within ±5σ with chance 0.56.

Worked example

Nine values are uniform on [0,1]. What is the mean of the largest, and the chance it's below 0.9?

Show the solution
  1. Mean of the largest. The mean of the maximum of n uniforms is nn+1=0.9
  2. All nine below 0.9. 0.99=0.387
  3. What it means. The maximum is above 0.9 more often than not, even though each value is below 0.9 nine times in ten.

Answer the largest has mean 0.9, and it is below 0.9 with chance 0.387.

Check

5 parts each have an exponential lifetime with a mean of 5 years. When, on average, does the first fail?

Check

10 independent values are uniform on [0,1]. What is the chance the largest is below 0.8?

Check

Gaussian noise is sampled 1000 times. What is the chance that at least one sample exceeds ±4σ?

Check

What is the mean of the largest of 9 values uniform on [0,1]?

Check

A board fails if either of two parts fails; their failure rates are 0.1 and 0.05 per year.

(a)

What is the chance the board survives 5 years?

(b)

What is its mean life?

Check

Find the density of the largest of n uniform values on [0,1].

Step 1

What is its CDF, P(max⁡≤x)?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Simulate 10⁵ systems of 3 parts, each with an exponential life of mean 10 years (np.random.default_rng(1)), and set first to the mean time to the first failure.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does adding more components to a system without redundancy make it fail sooner, even if each component is excellent?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.