A11 · Lesson 14 · Continuous random variables
Densities, lifetimes and the exponential distribution
A power supply is rated for a failure rate of one in ten years. What's the chance it lasts five? The time to failure isn't a count; it can be any positive number, and the chance of failing at exactly 3.000000 years is zero. Continuous quantities like lifetimes, noise voltages and arrival times need a different description: a density, whose area over a range gives the chance of landing there. The simplest useful one, the exponential, describes the lifetime of anything that fails at random with no wear-out, and the gaps between Poisson events.
- Each draw is a lifetime from a part with constant failure rate per year. The histogram fills in the exponential density, .
- The readouts compare the measured fraction surviving past with .
- Set to , the mean lifetime. Do half the parts survive that long? Fewer?
Predict
A part fails at random with a mean lifetime of 10 years. What fraction of parts survive past 10 years?
37%: . Most failures happen early, because at every moment the surviving parts fail at the same rate, and early on there are the most survivors. Half the parts are gone by years, the median, well before the mean.
Name it
Densities
A continuous random variable has a probability density : the chance of landing between and is the area
The density is never negative and has total area 1. Any single exact value has probability zero; only ranges have chance. The density itself can exceed 1, since it's chance per unit of .
The CDF is , rising from 0 to 1, and . Means and variances are integrals: and (lesson 9).
Uniform
Equally likely anywhere between and : there. Mean , variance . An ADC's rounding error is uniform over one step , so its RMS is .
Exponential
With rate (events or failures per unit time), for :
Mean , variance , median .
- Reliability. For a part with constant failure rate , is the chance of surviving to , and is the mean time to failure (MTTF). Rates are often quoted in FIT, failures per device-hours.
- Gaps between Poisson events. If events come at rate , the wait to the next one is exponential with : no event in time means a Poisson count of zero, with chance .
- No memory. : a part that has survived so far is as good as new. That's right for random failures and wrong for parts that wear out, like electrolytic capacitors and fans.
Worked example
A converter has a constant failure rate of 0.1 per year. What is the chance it survives 5 years? Its mean and median lifetimes?
Show the solution
- Survival to 5 years.
- Mean lifetime.
- Median lifetime.
Answer it survives 5 years with chance 0.607; its mean lifetime is 10 years and its median 6.93 years.
Worked example
Packets arrive at random at 100 per second. What is the mean gap between them, and how often is a gap longer than 30 ms?
Show the solution
- Mean gap. The gap is exponential with s⁻¹:
- Gaps longer than 30 ms.
- What it means. About one gap in twenty is three times the average or longer.
Answer the mean gap is 10 ms, and 5% of gaps are longer than 30 ms.
Worked example
A 12-bit converter spans 0 to 4.096 V. Treating its rounding error as uniform over one step, what is its RMS value?
Show the solution
- Step size.
- Error distribution. The error is uniform on , with variance .
- RMS error.
- What it means. That's quantization noise, the floor that sets a converter's ideal SNR of about dB.
Answer the RMS rounding error is 0.289 mV.
Check
A part fails at random at a rate of 0.05 per year. What is the chance it is still working after 2 years?
Check
A part has a failure rate of 500 FIT (failures per hours). What is its mean time to failure, in hours?
Check
Lifetimes are exponential with mean 10 years. By when has half the population failed?
Check
A part with failure rate 0.1 per year has already run 3 years without failing. What is the chance it survives 4 more?
Check
A density is for and zero elsewhere. What must be?
Check
An ADC rounds to steps of 2 mV, so its error is uniform over one step. What is the RMS error?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
An = 12-bit converter spans 0 to 3.3 V.
(a)
What is the RMS quantization noise?
Write units the way you normally would: 1.5 µV, 1500 nV and 0.0015 mV are the same answer.
Check
A part has a constant failure rate per year.
Step 1
What is the chance it survives years?
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°.
Step 2
What is its mean life?
Explain why
Why is the probability of any single exact value zero for a continuous variable?
Probability comes from the area under the density over a range. A single point is a range of width zero, so its area is zero however tall the density is there. Only intervals have chance, and narrow ones have chance about . That's also why the density can be bigger than 1: it's chance per unit of , not a chance itself.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.