---
title: Problem set 12
heading: "Problem set 12: the whole course"
eyebrow: A11 · Problem set 12
type: problems
---

::: hook
These problems mix the whole course: yield, reliability, noise budgets, detection, error rates, measurements and fits. Most need two or three ideas at once, the way a design review does. Each one has your own numbers.
:::

::: pool
pick: 12

::: check
kind: parts
given: s = 4 | 5 | 10; tol = 1 | 2; N = 1000 | 10000

## A machine makes 1 kΩ resistors with a Gaussian spread of σ = {s} Ω around 1000 Ω. They're sold as ±{tol}%, and the rest are scrapped.

::: part
answer: tol*10/s
tolerance: 0.5%

### How many standard deviations is the tolerance limit from 1000 Ω?

::: misses
- [tol/s] ±{tol}% of 1000 Ω is ±{tol}0 Ω.
- [any] $z = (\text{limit} - \mu)/\sigma$.
:::
:::

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

### What fraction is scrapped?

::: misses
- [Q(tol*10/s)] Both tails get scrapped: too high and too low.
- [any] $2Q(z)$.
:::
:::

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

### About how many of a batch of {N} are scrapped?

::: misses
- [any] Batch size × the scrapped fraction.
:::
:::

::: right
Right. Tightening the process (smaller σ) cuts the scrap rate far faster than in proportion, because of the Gaussian's tails.
:::
:::

::: check
kind: parts
given: en = 2 | 5 | 10; R = 1k | 10k; B = 10k | 100k; Vs = 1 | 10

## A sensor with {R} of source resistance feeds an amplifier with {en} nV/√Hz of voltage noise. The bandwidth is {B} Hz (an ideal filter), at 290 K. The signal is {Vs} mV RMS.

::: part
answer: sqrt(4*1.38e-23*290*R)*1e9
unit: nV/√Hz
tolerance: 1%

### What is the resistor's thermal noise density, in nV/√Hz?

::: misses
- [4*1.38e-23*290*R*1e18] That's in nV²/Hz. Take the square root.
- [any] $\sqrt{4kTR}$.
:::
:::

::: part
answer: sqrt(4*1.38e-23*290*R + (en*1e-9)^2)*sqrt(B)*1e6
unit: µV
tolerance: 1%

### What is the total RMS noise, in µV?

::: misses
- [(sqrt(4*1.38e-23*290*R) + en*1e-9)*sqrt(B)*1e6] Independent noise densities add in power: root-sum-square, not straight addition.
- [en*1e-9*sqrt(B)*1e6] Include the resistor's thermal noise.
- [any] $\sqrt{e_R^2 + e_n^2}\,\sqrt B$.
:::
:::

::: part
answer: 20*log10(Vs*1e-3/(sqrt(4*1.38e-23*290*R + (en*1e-9)^2)*sqrt(B)))
unit: dB
tolerance: 0.5%

### What is the SNR?

::: misses
- [10*log10(Vs*1e-3/(sqrt(4*1.38e-23*290*R + (en*1e-9)^2)*sqrt(B)))] These are RMS voltages: use $20\log_{10}$.
- [any] $20\log_{10}(V_s/V_n)$.
:::
:::

::: right
Right. A noise budget: add the densities in power, multiply by $\sqrt B$, compare with the signal.
:::
:::

::: check
kind: parts
given: A = 1 | 2; r = 4 | 5 | 6; R = 1 | 10; let s = A/r

## A link sends ±{A} V at {R} Gb/s, with Gaussian noise of {s} V RMS at the receiver.

::: part
answer: Q(r)
tolerance: 1%

### What is the bit error rate?

::: misses
- [2*Q(r)] Each bit errs in only one direction.
- [any] $Q(A/\sigma)$.
:::
:::

::: part
answer: Q(r)*R*1e9
tolerance: 1%

### How many errors per second?

::: misses
- [Q(r)*R] {R} Gb/s is {R} × 10⁹ bits per second.
- [any] Bit rate × BER.
:::
:::

::: part
answer: 10/(Q(r)*R*1e9)
unit: s
tolerance: 1%

### How long a test sees about 10 errors?

::: misses
- [1/(Q(r)*R*1e9)] That's long enough for about one error.
- [any] 10 ÷ errors per second.
:::
:::

::: right
Right. Each step of A/σ changes the test time by orders of magnitude.
:::
:::

::: check
kind: parts
given: s = 10 | 20 | 50; n = 16 | 25 | 100

## {n} readings of a voltage have a sample standard deviation of {s} mV.

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

### What is the standard error of their mean?

::: misses
- [s] That's the scatter of single readings.
- [s/n] Divide by $\sqrt n$.
- [any] $s/\sqrt n$.
:::
:::

::: part
answer: 1.96*s/sqrt(n)
unit: mV
tolerance: 1%

### What is the half-width of the 95% interval?

::: misses
- [s/sqrt(n)] That's ±1 standard error, about 68%.
- [any] $1.96\,s/\sqrt n$.
:::
:::

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

### How many readings would halve that interval?

::: misses
- [2*n] The interval shrinks as $1/\sqrt n$: halving it takes four times as many.
- [any] Halving needs $\sqrt{n}$ to double.
:::
:::

::: right
Right. Each extra digit of precision costs a hundred times the readings.
:::
:::

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

## A wafer holds {N} dies of {A} cm², and the process has {D} defects per cm².

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

### How many good dies do you expect?

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

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

### What is the standard deviation of the good-die count from wafer to wafer?

::: misses
- [any] Binomial with $p = e^{-DA}$.
:::
:::
:::

::: check
kind: parts
given: fs = 1000 | 10000; t = 4 | 5

## A detector samples Gaussian noise {fs} times a second and alarms when a sample exceeds {t}σ.

::: part
answer: fs*Q(t)
tolerance: 1%

### How many false alarms per second?

::: misses
- [any] Samples per second times $Q(t)$.
:::
:::

::: part
answer: 1/(fs*Q(t))/3600
unit: h
tolerance: 1%

### What is the mean time between false alarms, in hours?

::: misses
- [any] One over the rate.
:::
:::
:::

::: check
kind: parts
given: lam = 0.1 | 0.2; t = 2 | 5

## Two supplies in parallel each fail at random at {lam} per year; the system runs while either does.

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

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

::: misses
- [any] It fails only if both have.
:::
:::

::: part
answer: 1.5/lam
unit: years
tolerance: 0.5%

### What is the system's mean time to failure?

::: misses
- [1/lam] The pair outlives one supply.
- [2/lam] The second supply only has to outlast the first failure: $\frac{1}{\lambda} + \frac{1}{2\lambda}$.
- [any] $E[\max] = \frac{1}{2\lambda} + \frac{1}{\lambda}$.
:::
:::
:::

::: check
kind: parts
given: N = 10 | 12; V = 2 | 5; vn = 50 | 200

## An {N}-bit ADC spans {V} V, and its input has {vn} µV RMS of thermal noise.

::: part
answer: V/2^N/sqrt(12)*1e6
unit: µV
tolerance: 0.5%

### What is the RMS quantization noise?

::: misses
- [any] $\Delta/\sqrt{12}$ with $\Delta = V/2^N$.
:::
:::

::: part
answer: sqrt((V/2^N/sqrt(12)*1e6)^2 + vn^2)
unit: µV
tolerance: 0.5%

### What is the total RMS noise?

::: misses
- [any] Independent noises add in power.
:::
:::
:::

::: check
kind: parts
given: a = 0.02 | 0.05; b = 0.25 | 0.5; lb = 0.5 | 0.8

## A two-state channel moves good→bad with probability {a} and bad→good with {b} per packet. Packets are lost with probability {lb} in the bad state and never in the good state.

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

### What is the long-run loss rate?

::: misses
- [any] $\pi_B\ell_B$.
:::
:::

::: part
answer: (1 - b)*lb
tolerance: 0.5%

### Given that a packet was just lost, what is the chance the next one is lost?

::: misses
- [a/(a + b)*lb] A loss tells you the channel is in the bad state.
- [any] It stays bad with probability $1 - b$, then loses with $\ell_B$.
:::
:::
:::

::: check
kind: parts
given: m = 20 | 50; c = 2.5 | 3.2; let k = round(m + c*sqrt(m))

## A link normally logs {m} errors an hour, a Poisson count. One hour it logs {k}.

::: part
answer: (k - m)/sqrt(m)
tolerance: 0.5%

### How many standard deviations above normal is that?

::: misses
- [any] $(k - m)/\sqrt m$.
:::
:::

::: part
answer: Q((k - m)/sqrt(m))
tolerance: 1%

### Using the Gaussian approximation, what is the one-sided p-value for "nothing has changed"?

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

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

## A line is fitted to {n} points at $x = 1, 2, \ldots, \given{n}$, each with noise {s}.

::: part
answer: n*(n^2 - 1)/12
tolerance: 0.5%

### What is $S_{xx}$?

::: misses
- [any] For equally spaced points, $\frac{n(n^2 - 1)}{12}$.
:::
:::

::: part
answer: s/sqrt(n*(n^2 - 1)/12)
tolerance: 0.5%

### What is the standard error of the slope?

::: misses
- [any] $\sigma/\sqrt{S_{xx}}$.
:::
:::
:::

::: check
kind: parts
given: P = -100 | -103; B = 1e6 | 2e6; nf = 3 | 6

## A receiver with noise bandwidth {B} Hz and a {nf} dB noise figure gets {P} dBm. Its BPSK bit rate equals its bandwidth, so $E_b/N_0$ equals the SNR.

::: part
answer: P + 174 - 10*log(B) - nf
tolerance: 0.5%

### What is the SNR in dB?

::: misses
- [any] Signal minus the noise floor.
:::
:::

::: part
answer: Q(sqrt(2*10^((P + 174 - 10*log(B) - nf)/10)))
tolerance: 1%

### What is the bit error rate?

::: misses
- [any] $Q\left(\sqrt{2E_b/N_0}\right)$.
:::
:::
:::

::: check
kind: parts
given: l = 200 | 400 | 500 | 600 | 750 | 800 | 900 | 950; m = 1000

## A queue has arrivals at {l} per second and service at {m} per second.

::: part
answer: 1000/(m - l)
unit: ms
tolerance: 0.5%

### What is the mean time in the system?

::: misses
- [any] $\frac{1}{\mu - \lambda}$.
:::
:::
:::

::: check
kind: parts
given: p = 0.01 | 0.05 | 0.1 | 0.15 | 0.2 | 0.3

## A binary channel flips {p} of its bits.

::: part
answer: 1 + p*log(p)/log(2) + (1 - p)*log(1 - p)/log(2)
unit: bits
tolerance: 0.5%

### What is its capacity per use?

::: misses
- [1 - p] Unknown errors cost more than their own fraction.
- [any] $1 - H(p)$.
:::
:::
:::

::: check
kind: parts
given: m = 5 | 20; n = 3 | 10

## {n} parts each have exponential lives with mean {m} years.

::: part
answer: m/n
unit: years
tolerance: 0.5%

### When does the first fail, on average?

::: misses
- [m] The rates add.
- [any] $\frac mn$.
:::
:::
:::
:::
