---
title: Problem set 3
heading: "Problem set 3: random variables and distributions"
eyebrow: A11 · Problem set 3
type: problems
---

::: hook
These problems use lessons 9 to 14: means and variances, the binomial and geometric distributions, the Poisson distribution and the Poisson process, and continuous variables with the exponential and uniform. Name the distribution before you compute anything; most of the work is recognizing which one fits.
:::

::: pool
pick: 12

::: check
kind: parts
given: n = 200 | 500; p = 0.01 | 0.02

## A wafer lot has {n} dies, each failing test with probability {p}, independently.

::: part
answer: n*p
tolerance: 0.5%

### How many failures do you expect?

::: misses
- [any] $np$.
:::
:::

::: part
answer: sqrt(n*p*(1 - p))
tolerance: 0.5%

### What is the standard deviation of the count?

::: misses
- [any] $\sqrt{np(1 - p)}$.
:::
:::

::: part
answer: exp(-n*p)
tolerance: 0.5%

### Using the Poisson approximation, what is the chance of no failures?

::: misses
- [any] $e^{-np}$.
:::
:::
:::

::: check
kind: parts
given: p = 0.6 | 0.9; k = 2 | 3

## A packet is retransmitted until it arrives; each try succeeds with probability {p}.

::: part
answer: 1/p
tolerance: 0.5%

### What is the mean number of transmissions?

::: misses
- [any] $1/p$.
:::
:::

::: part
answer: (1 - p)^k
tolerance: 0.5%

### What is the chance it needs more than {k} transmissions?

::: misses
- [any] $(1 - p)^k$.
:::
:::

::: part
answer: sqrt(1 - p)/p
tolerance: 0.5%

### What is the standard deviation of the number of transmissions?

::: misses
- [any] $\frac{\sqrt{1 - p}}{p}$.
:::
:::
:::

::: check
kind: parts
given: D = 0.1 | 0.3; A = 1 | 3

## A process has {D} defects per cm², and a die is {A} cm².

::: part
answer: exp(-D*A)
tolerance: 0.5%

### What fraction of dies work?

::: misses
- [any] $e^{-DA}$.
:::
:::

::: part
answer: D*A*exp(-D*A)
tolerance: 0.5%

### What fraction have exactly one defect, and could be saved by a spare row?

::: misses
- [any] $\lambda e^{-\lambda}$ with $\lambda = DA$.
:::
:::
:::

::: check
kind: parts
given: N = 400 | 2500; k = 4 | 16

## A photodetector collects {N} photons on average per sample.

::: part
answer: sqrt(N)
tolerance: 0.5%

### What is the standard deviation of the count?

::: misses
- [any] $\sqrt N$.
:::
:::

::: part
answer: 20*log(sqrt(N))
tolerance: 0.5%

### What is the signal-to-noise ratio in dB, $20\log_{10}$ of mean over standard deviation?

::: misses
- [any] $20\log_{10}\sqrt N$.
:::
:::

::: part
answer: 10*log(k)
tolerance: 0.5%

### By how many dB does the ratio improve if the light is made {k} times brighter?

::: misses
- [20*log(k)] The ratio grows as $\sqrt k$, which is $10\log_{10}k$ dB.
- [any] $20\log_{10}\sqrt k$.
:::
:::
:::

::: check
kind: parts
given: lam = 0.02 | 0.05; t = 5 | 10

## A fan has a constant failure rate of {lam} per year.

::: part
answer: exp(-lam*t)
tolerance: 0.5%

### What is the chance it survives {t} years?

::: misses
- [any] $e^{-\lambda t}$.
:::
:::

::: part
answer: 1 - (1 - exp(-lam*t))^2
tolerance: 0.1%

### A unit has two such fans, and keeps cooling if either runs. What is the chance it still cools after {t} years?

::: misses
- [any] Parallel: $1 - (1 - R)^2$.
:::
:::
:::

::: check
kind: parts
given: r = 50 | 200; T = 10 | 20

## Requests arrive at random at {r} per second.

::: part
answer: r*T/1000
tolerance: 0.5%

### What is the mean count in {T} ms?

::: misses
- [any] $rT$.
:::
:::

::: part
answer: exp(-r*T/1000)*(1 + r*T/1000)
tolerance: 0.5%

### What is the chance of at most one request in that window?

::: misses
- [any] $P(0) + P(1)$.
:::
:::

::: part
answer: 1000/r
unit: ms
tolerance: 0.5%

### What is the mean gap between requests?

::: misses
- [any] $1/r$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 4 | 5

## A voltage is uniform between {a} V and {b} V.

::: part
answer: (a + b)/2
unit: V
tolerance: 0.5%

### What is its mean?

::: misses
- [any] The midpoint.
:::
:::

::: part
answer: (b - a)/sqrt(12)
unit: V
tolerance: 0.5%

### What is its standard deviation?

::: misses
- [any] $\frac{b - a}{\sqrt{12}}$.
:::
:::

::: part
answer: (b - 3)/(b - a)
tolerance: 0.5%

### What is the chance it exceeds 3 V?

::: misses
- [any] The fraction of the range above 3 V.
:::
:::
:::

::: check
kind: parts
given: m = 2 | 5; s = 0.5 | 1; a = 3 | 10; c = 1 | 4

## A sensor's reading $X$ has mean {m} and standard deviation {s}. It's converted as $Y = \given{a}X + \given{c}$.

::: part
answer: a*m + c
tolerance: 0.5%

### What is the mean of $Y$?

::: misses
- [any] $aE[X] + c$.
:::
:::

::: part
answer: a*s
tolerance: 0.5%

### What is the standard deviation of $Y$?

::: misses
- [a*s + c] Shifting doesn't change the spread.
- [any] $|a|\sigma_X$.
:::
:::
:::

::: check
kind: parts
given: n = 10 | 20; p = 0.05 | 0.1

## A code word of {n} bits has independent bit errors with probability {p}. The code corrects up to one error.

::: part
answer: (1 - p)^n + n*p*(1 - p)^(n - 1)
tolerance: 0.5%

### What is the chance the word is decoded correctly?

::: misses
- [any] $P(0) + P(1)$, binomial.
:::
:::

::: part
answer: exp(-n*p)*(1 + n*p)
tolerance: 0.5%

### What does the Poisson approximation give?

::: misses
- [any] $e^{-\lambda}(1 + \lambda)$ with $\lambda = np$.
:::
:::
:::

::: check
kind: parts
given: s1 = 3 | 4; s2 = 2 | 6; s3 = 1 | 2

## Three independent tolerances stack up in series, with standard deviations {s1}, {s2} and {s3} µm.

::: part
answer: sqrt(s1^2 + s2^2 + s3^2)
unit: µm
tolerance: 0.5%

### What is the standard deviation of the total?

::: misses
- [s1 + s2 + s3] Independent spreads add in quadrature.
- [any] Root-sum-square.
:::
:::

::: part
answer: s1 + s2 + s3
unit: µm
tolerance: 0.5%

### What would a worst-case designer, who adds them, assume?

::: misses
- [any] The plain sum.
:::
:::
:::

::: check
kind: parts
given: m = 4 | 8; t1 = 2 | 3

## Lifetimes are exponential with mean {m} years.

::: part
answer: m*ln(2)
tolerance: 0.5%

### What is the median lifetime?

::: misses
- [any] $m\ln 2$.
:::
:::

::: part
answer: exp(-t1/m)
tolerance: 0.5%

### A unit has survived 10 years. What is the chance it survives {t1} more?

::: misses
- [any] No memory: $e^{-t_1/m}$.
:::
:::
:::

::: check
kind: parts
given: a = 1..9 int

## A density is $p(x) = c(\given{a} - x)$ for $0 \le x \le \given{a}$.

::: part
answer: 2/a^2
tolerance: 0.5%

### What is $c$?

::: misses
- [any] The area $\frac{ca^2}{2}$ must be 1.
:::
:::

::: part
answer: a/3
tolerance: 0.5%

### What is the mean of $X$?

::: misses
- [any] $\int_0^a x\,c(a - x)\,dx$.
:::
:::
:::

::: check
kind: parts
given: n = 2000 | 4000; p = 0.001 | 0.002

## A packet of {n} bits has BER {p}.

::: part
answer: exp(-n*p)
tolerance: 1%

### Using the Poisson approximation, what fraction of packets are error-free?

::: misses
- [any] $e^{-np}$.
:::
:::
:::

::: check
kind: parts
given: l = 50 | 200; t = 5 | 20

## Packets arrive at random at {l} per second.

::: part
answer: exp(-l*t/1000)
tolerance: 0.5%

### What fraction of gaps are longer than {t} ms?

::: misses
- [any] Exponential gaps: $e^{-\lambda t}$.
:::
:::

::: part
answer: 1000/l
unit: ms
tolerance: 0.5%

### What is the mean gap?

::: misses
- [any] $1/\lambda$.
:::
:::
:::

::: check
kind: parts
given: D = 0.2 | 0.5; A = 1 | 2

## Defects occur at {D} per cm² on dies of {A} cm².

::: part
answer: exp(-D*A)
tolerance: 0.5%

### What is the yield?

::: misses
- [1 - D*A] Use the Poisson model: $e^{-DA}$.
- [any] $e^{-DA}$.
:::
:::
:::

::: check
kind: parts
given: lam = 3 | 6 | 12; t = 10 | 20; k = 0 | 2

## Calls reach a help line as a Poisson process at {lam} per hour.

::: part
answer: (lam*t/60)^k*exp(-lam*t/60)/k!
tolerance: 0.5%

### What's the chance of exactly {k} calls in a {t}-minute stretch?

::: misses
- [lam^k*exp(-lam)/k!] That uses a whole hour. The mean for {t} minutes is $\lambda t$ with $t$ in hours.
- [any] Not yet. The count is Poisson with mean $\lambda t$, with {t} minutes as a fraction of an hour.
:::
:::

::: part
answer: 60/lam
unit: min
tolerance: 0.5%

### A call just ended and the line is free. What's the expected wait for the next call, in minutes?

::: misses
- [30/lam] The memoryless gap doesn't care when the last call came: the mean wait is the full $1/\lambda$.
- [any] Not yet. The expected gap is $1/\lambda$ hours.
:::
:::

::: right
Right. Counts are Poisson and gaps are exponential: two views of one process, and the gaps' lack of memory means the wait is the same from any moment.
:::
:::
:::
