---
title: Final exam
heading: "Final exam: probability, statistics and noise"
eyebrow: A11 · Final exam
type: problems
---

::: hook
Twelve problems from across the whole course: probability and counting, Bayes' rule and reliability, distributions and their functions, sums and the central limit theorem, estimation and tests, detection, random processes, and receiver noise. Give yourself three hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: q = 0.01 | 0.003; s = 0.95 | 0.99; f = 0.02 | 0.05

## A fraction {q} of boards are faulty. An in-circuit test catches {s} of faulty boards and fails {f} of good ones. Flagged boards are retested on an independent tester with the same rates.

::: part
answer: s*q/(s*q + f*(1 - q))
tolerance: 0.5%

### After one flag, what is the chance a board is faulty?

::: misses
- [any] Bayes' rule.
:::
:::

::: part
answer: s^2*q/(s^2*q + f^2*(1 - q))
tolerance: 0.5%

### After two flags?

::: misses
- [any] Each flag multiplies the odds by $s/f$.
:::
:::
:::

::: check
kind: parts
given: n = 12 | 16; k = 2 | 3

## A code word of {n} bits is hit by exactly {k} errors, all positions equally likely.

::: part
answer: n!/(k!*(n - k)!)
tolerance: 0.01%

### How many error patterns are possible?

::: misses
- [any] $\binom{n}{k}$.
:::
:::

::: part
answer: (n - k)!*(n - 4)!/((n - k - 4)!*n!)
tolerance: 0.5%

### What is the chance that none of the errors falls in the first 4 bits (the header)?

::: misses
- [any] Choose all {k} positions from the other $n - 4$: $\binom{n - 4}{k}/\binom{n}{k}$.
:::
:::
:::

::: check
kind: parts
given: n = 2000 | 5000; p = 0.0002 | 0.0005

## A packet of {n} bits crosses a link with independent bit errors at rate {p}.

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

### What is the mean number of errors?

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

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

### Using the Poisson approximation, what fraction of packets have two or more errors?

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

::: check
kind: parts
given: l1 = 0.05 | 0.1; l2 = 0.1 | 0.2; l3 = 0.02 | 0.05; t = 2 | 3

## A server has a disk, a supply and a fan in series, failing at random at {l1}, {l2} and {l3} per year.

::: part
answer: 1/(l1 + l2 + l3)
unit: years
tolerance: 0.5%

### What is its mean time to failure?

::: misses
- [any] Rates add in series.
:::
:::

::: part
answer: exp(-(l1 + l2 + l3)*t)
tolerance: 0.5%

### What is the chance it runs {t} years without a failure?

::: misses
- [any] $e^{-\lambda t}$ with the summed rate.
:::
:::
:::

::: check
kind: parts
given: s = 0.4 | 0.8; tol = 1 | 2

## Resistors of nominal 100 Ω have a Gaussian spread σ = {s} Ω and are sold as ±{tol}%.

::: part
answer: 2*Q(tol/s)
tolerance: 1%

### What fraction falls outside the tolerance?

::: misses
- [Q(tol/s)] Both tails.
- [any] $2Q(\text{limit}/\sigma)$.
:::
:::

::: part
answer: 1 - 2*Q(tol/s)
tolerance: 0.5%

### What fraction is sellable?

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

::: check
kind: parts
given: m = 2 | 4; s = 0.5 | 1; R = 8 | 50

## A speaker voltage has a mean of {m} V and noise of {s} V RMS, into {R} Ω.

::: part
answer: (m^2 + s^2)/R
unit: W
tolerance: 0.5%

### What is the average power?

::: misses
- [any] $E[V^2]/R$.
:::
:::

::: part
answer: 100*s^2/(m^2 + s^2)
tolerance: 0.5%

### What percent of it is noise power?

::: misses
- [any] $\sigma^2/(\mu^2 + \sigma^2)$.
:::
:::
:::

::: check
kind: parts
given: s = 5 | 10; r = 0.6 | 0.9

## Two adjacent sensor channels each carry {s} mV RMS of noise, correlated with coefficient {r}.

::: part
answer: s*sqrt((2 + 2*r)/4)
unit: mV
tolerance: 0.5%

### What noise does their average have?

::: misses
- [any] $\frac{1}{2}\sqrt{2\sigma^2(1 + \rho)}$.
:::
:::

::: part
answer: s*sqrt(2 - 2*r)
unit: mV
tolerance: 0.5%

### What noise does their difference have?

::: misses
- [any] $\sigma\sqrt{2 - 2\rho}$.
:::
:::
:::

::: check
kind: parts
given: n = 25 | 100; w = 2 | 4; c = 10 | 20

## {n} independent errors, each uniform over ±{w} µV, are summed.

::: part
answer: sqrt(n)*2*w/sqrt(12)
unit: µV
tolerance: 0.5%

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

::: misses
- [any] Each has $\sigma = \frac{2w}{\sqrt{12}}$.
:::
:::

::: part
answer: 2*Q(c/(sqrt(n)*2*w/sqrt(12)))
tolerance: 1%

### By the central limit theorem, what is the chance the sum exceeds ±{c} µV?

::: misses
- [any] Both tails of a Gaussian.
:::
:::
:::

::: check
kind: parts
given: p = 0.01 | 0.05; r = 0.05 | 0.1

## A Monte Carlo yield study needs the failure probability, near {p}, to a relative error of {r} (one standard deviation).

::: part
answer: (1 - p)/(p*r^2)
tolerance: 0.5%

### How many trials does it need?

::: misses
- [1/(r^2*p)] Close, but the variance is $p(1 - p)$: $n = \frac{1 - p}{pr^2}$.
- [any] Solve $\sqrt{p(1 - p)/n} = rp$.
:::
:::

::: part
answer: p*(1 - p)/(p*r^2)
tolerance: 0.5%

### About how many failures will it see?

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

::: check
kind: parts
given: k = 5 | 10; S = 100 | 400

## A life test runs {S} thousand device-hours and sees {k} failures.

::: part
answer: k/S
tolerance: 0.5%

### What is the estimated failure rate, per thousand hours?

::: misses
- [any] $n/S$.
:::
:::

::: part
answer: 1/sqrt(k)
tolerance: 0.5%

### What is its rough relative uncertainty?

::: misses
- [any] $1/\sqrt k$.
:::
:::
:::

::: check
kind: parts
given: xb = 0.6 | 1; s = 2 | 3; n = 25 | 36

## {n} readings of an amplifier's offset, with {s} mV of noise each, average {xb} mV.

::: part
answer: xb/(s/sqrt(n))
tolerance: 0.5%

### What is the $z$-statistic for "zero offset"?

::: misses
- [any] $\bar x/(\sigma/\sqrt n)$.
:::
:::

::: part
answer: 2*Q(xb/(s/sqrt(n)))
tolerance: 1%

### What is the two-sided p-value?

::: misses
- [any] $2Q(z)$.
:::
:::
:::

::: check
kind: parts
given: sxy = 40 | 60; sxx = 80 | 100; n = 10 | 12; sse = 0.4 | 0.8

## An I–V calibration (mA against V) has $S_{xy}$ = {sxy}, $S_{xx}$ = {sxx}, and leaves SSE = {sse} over {n} points.

::: part
answer: sxx/sxy
unit: kΩ
tolerance: 0.5%

### What resistance does the slope give?

::: misses
- [any] $R = 1/b$ with $b = S_{xy}/S_{xx}$.
:::
:::

::: part
answer: sqrt(sse/(n - 2))/sqrt(sxx)
unit: mA/V
tolerance: 0.5%

### What is the slope's standard error, in mA/V?

::: misses
- [any] $\sqrt{\text{SSE}/(n - 2)}/\sqrt{S_{xx}}$.
:::
:::
:::

::: check
kind: parts
given: A = 1 | 2; s = 0.2 | 0.3; q = 0.1 | 0.2

## On-off signaling uses 0 and {A} V with noise σ = {s} V; a fraction {q} of bits are 1s.

::: part
answer: A/2 + s^2/A*ln((1 - q)/q)
unit: V
tolerance: 0.5%

### Where is the minimum-error threshold?

::: misses
- [any] $\frac{A}{2} + \frac{\sigma^2}{A}\ln\frac{P_0}{P_1}$.
:::
:::

::: part
answer: (1 - q)*Q((A/2 + s^2/A*ln((1 - q)/q))/s) + q*Q((A/2 - s^2/A*ln((1 - q)/q))/s)
tolerance: 1%

### What error rate does it give?

::: misses
- [any] $P_0Q(t/\sigma) + P_1Q((A - t)/\sigma)$.
:::
:::
:::

::: check
kind: parts
given: en = 5 | 20; fc = 10 | 50; C = 2 | 10

## An amplifier with {en} nV/√Hz of white noise feeds a first-order low-pass with its corner at {fc} kHz. Elsewhere, a {C} pF sampling capacitor holds the result.

::: part
answer: en*sqrt(pi/2*fc*1000)/1000
unit: µV
tolerance: 0.5%

### What RMS noise comes out of the filter?

::: misses
- [any] Noise bandwidth $\frac{\pi}{2}f_c$.
:::
:::

::: part
answer: sqrt(1.38e-23*290/(C*1e-12))*1e6
unit: µV
tolerance: 1%

### What kT/C noise does the sampling capacitor add at 290 K?

::: misses
- [any] $\sqrt{kT/C}$.
:::
:::
:::

::: check
kind: parts
given: n1 = 1 | 2; g1 = 15 | 20; n2 = 8 | 12; B = 1e5 | 1e6

## A receiver has an LNA (NF {n1} dB, gain {g1} dB) then a mixer (NF {n2} dB), with noise bandwidth {B} Hz.

::: part
answer: 10*log(10^(n1/10) + (10^(n2/10) - 1)/10^(g1/10))
tolerance: 1%

### What is its noise figure, in dB?

::: misses
- [any] Friis, in ratios.
:::
:::

::: part
answer: -174 + 10*log(B) + 10*log(10^(n1/10) + (10^(n2/10) - 1)/10^(g1/10))
unit: dBm
tolerance: 0.5%

### What is its noise floor?

::: misses
- [any] $-174 + 10\log_{10}B + \text{NF}$.
:::
:::
:::

::: check
kind: parts
given: a = 0.01 | 0.04; b = 0.2 | 0.5

## A two-state channel moves good→bad with probability {a} and bad→good with {b} per packet.

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

### What fraction of the time is it bad?

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

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

### How many packets does a bad spell last on average?

::: misses
- [any] Geometric.
:::
:::
:::
:::
