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

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, λe−λt.
  • The readouts compare the measured fraction surviving past t0 with e−λt0.
  • Set t0 to 1/λ, 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?

Name it

Densities

A continuous random variable X has a probability density p(x): the chance of landing between a and b is the area

P(a<X<b)=∫abp(x)dx

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 x.

The CDF is F(x)=P(X≤x)=∫−∞xp(u)du, rising from 0 to 1, and p=F′. Means and variances are integrals: E[X]=∫xp(x)dx and Var(X)=∫(x−μ)2p(x)dx (lesson 9).

Uniform

Equally likely anywhere between a and b: p=1b−a there. Mean a+b2, variance (b−a)212. An ADC's rounding error is uniform over one step Δ, so its RMS is Δ12.

Exponential

With rate λ (events or failures per unit time), for t≥0:

p(t)=λe−λtF(t)=1−e−λtP(T>t)=e−λt

Mean 1λ, variance 1λ2, median ln⁡2λ.

  • Reliability. For a part with constant failure rate λ, R(t)=e−λt is the chance of surviving to t, and 1λ is the mean time to failure (MTTF). Rates are often quoted in FIT, failures per 109 device-hours.
  • Gaps between Poisson events. If events come at rate r, the wait to the next one is exponential with λ=r: no event in time t means a Poisson count of zero, with chance e−rt.
  • No memory. P(T>s+t∣T>s)=e−λt: 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
  1. Survival to 5 years. R(5)=e−0.1×5=0.607
  2. Mean lifetime. 10.1=10years
  3. Median lifetime. ln⁡20.1=6.93years

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
  1. Mean gap. The gap is exponential with λ=100 s⁻¹: mean=1100s=10ms
  2. Gaps longer than 30 ms. P(gap>0.03 s)=e−100×0.03=e−3=0.050
  3. 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
  1. Step size. Δ=4.096V4096=1mV
  2. Error distribution. The error is uniform on [−Δ2,Δ2], with variance Δ212.
  3. RMS error. Δ12=0.289mV
  4. What it means. That's quantization noise, the floor that sets a converter's ideal SNR of about 6.02N+1.76 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 109 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 p(x)=cx2 for 0≤x≤2 and zero elsewhere. What must c 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 N = 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 l per year.

Step 1

What is the chance it survives t 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°.

Explain why

Why is the probability of any single exact value zero for a continuous variable?

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.