---
title: Problem set 9
heading: "Problem set 9: bit errors and detection"
eyebrow: A11 · Problem set 9
type: problems
---

::: hook
These problems use lessons 41 and 42: bit error rates in Gaussian noise, and choosing thresholds to trade misses against false alarms. Almost everything comes down to how many standard deviations separate a symbol from the threshold.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 1 | 0.5; s = 0.2 | 0.25

## Symbols are $\pm\given{A}$ V with noise of {s} V RMS.

::: part
answer: A/s
tolerance: 0.5%

### How many standard deviations separate a symbol from the threshold?

::: misses
- [2*A/s] The threshold is at 0, a distance $A$ from each symbol.
- [any] $A/\sigma$.
:::
:::

::: part
answer: Q(A/s)
tolerance: 0.5%

### What is the BER?

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

::: check
kind: parts
given: k = 3 | 4 | 5; R = 1 | 25

## A {R} Gb/s link has $A/\sigma$ = {k}.

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

### How many errors per second does it make?

::: misses
- [any] BER times bit rate.
:::
:::
:::

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

## On–off bits of 0 and {A} V, equally likely, with noise {s} V.

::: part
answer: Q(A/(2*s))
tolerance: 0.5%

### What is the minimum error rate?

::: misses
- [Q(A/s)] Each level is $A/2$ from the threshold.
- [any] $Q\left(\frac{A}{2\sigma}\right)$.
:::
:::
:::

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

## On–off bits of 0 and {A} V with noise {s} V; a 1 is sent with probability {p}.

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

### Where is the minimum-error threshold?

::: misses
- [A/2] With unequal priors, move the threshold toward the rarer symbol's level.
- [any] $\frac A2 + \frac{\sigma^2}{A}\ln\frac{1 - p}{p}$.
:::
:::
:::

::: check
kind: parts
given: k = 3 | 3.5 | 4 | 4.5 | 5 | 5.5

## A detector sets its threshold {k}σ above zero-mean Gaussian noise.

::: part
answer: Q(k)
tolerance: 0.5%

### What is its false-alarm probability per sample?

::: misses
- [2*Q(k)] Only noise above the threshold alarms.
- [any] $Q(k)$.
:::
:::

::: part
answer: Q(k - 6)
tolerance: 0.5%

### A signal of 6σ arrives. What is the chance that signal plus noise exceeds the threshold?

::: misses
- [any] $P(6\sigma + n > k\sigma) = Q(k - 6)$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5

## A link has $A/\sigma$ = {a}.

::: part
answer: Q(a)/Q(a*10^(1/20))
tolerance: 1%

### By what factor does 1 dB more SNR cut its BER?

::: misses
- [10^(1/10)] The BER isn't proportional to SNR: the Gaussian tail falls much faster.
- [any] Compare $Q(a)$ with $Q(a \cdot 10^{1/20})$.
:::
:::
:::

::: check
kind: parts
given: b = 0.000001 | 0.0001; n = 1000 | 10000

## A link has BER {b}, and packets of {n} bits.

::: part
answer: 1 - (1 - b)^n
tolerance: 0.5%

### What fraction of packets have at least one error?

::: misses
- [b] That's per bit.
- [any] $1 - (1 - b)^n$.
:::
:::
:::

::: check
kind: parts
given: r = 0.001 | 0.0001 | 0.00001 | 0.000001 | 0.0000001

## A test must confirm a BER below {r}.

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

### How many error-free bits does a 95% confidence claim need?

::: misses
- [1/r] One error-free BER-reciprocal isn't enough; zero errors in $3/\text{BER}$ bits gives 95%.
- [any] The rule of three: $3/\text{BER}$ bits.
:::
:::
:::

::: check
kind: parts
given: p = 0.001 | 0.005 | 0.01 | 0.02 | 0.05 | 0.1

## Each bit is sent three times and decided by majority; each copy flips with probability {p}.

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

### What is the decided bit's error rate?

::: misses
- [p^3] Two flips out of three are enough to lose.
- [any] At least two of the three must flip.
:::
:::
:::

::: check
kind: parts
given: P = 0.000001 | 0.00001 | 0.0001 | 0.001 | 0.01 | 0.1

## A radar sets its false-alarm probability per look to {P}.

::: part
answer: -ln(P)
tolerance: 0.5%

### For Rayleigh-distributed noise envelopes, $P_\text{FA} = e^{-T^2/2\sigma^2}$. What is $\frac{T^2}{2\sigma^2}$?

::: misses
- [-log(P)] Use the natural logarithm.
- [any] Take $\ln$ of both sides.
:::
:::

::: part
answer: sqrt(-2*ln(P))
tolerance: 0.5%

### How many σ is the threshold?

::: misses
- [any] $\sqrt{-2\ln P_\text{FA}}$.
:::
:::
:::

::: check
kind: parts
given: s = 0.1 | 0.2; A = 1 | 1.5

## A four-level signal uses levels $\pm\given{A}$ and $\pm\given{A}/3$ V, with noise {s} V.

::: part
answer: A/3/s
tolerance: 0.5%

### How many standard deviations separate a level from the nearest threshold?

::: misses
- [A/s] Adjacent levels are $\frac{2A}{3}$ apart; thresholds sit halfway.
- [any] Half the level spacing: $\frac{A}{3\sigma}$.
:::
:::
:::

::: check
kind: parts
given: k = 2 | 3; n = 100 | 1000

## Noise samples are checked against a {k}σ threshold, one per microsecond, for {n} µs.

::: part
answer: n*Q(k)
tolerance: 0.5%

### How many false alarms are expected?

::: misses
- [any] $nQ(k)$.
:::
:::
:::

::: check
kind: parts
given: E = 4 | 8 | 10

## BPSK with $E_b/N_0$ = {E} dB.

::: part
answer: Q(sqrt(2*10^(E/10)))
tolerance: 1%

### What is its BER?

::: misses
- [Q(sqrt(10^(E/10)))] BPSK's argument is $\sqrt{2E_b/N_0}$.
- [any] $Q\left(\sqrt{2E_b/N_0}\right)$ with $E_b/N_0$ as a ratio.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 2.5 | 3.5

## Two detectors have $A/\sigma$ = {a} and {b}.

::: part
answer: Q(a)/Q(b)
tolerance: 1%

### How many times more errors does the first make?

::: misses
- [b/a] Error rates differ by far more than the ratio of $A/\sigma$.
- [any] Compare $Q(a)$ with $Q(b)$.
:::
:::
:::

::: check
kind: parts
given: s = 0.05 | 0.08 | 0.1 | 0.15 | 0.2 | 0.25

## Symbols are 0 and 1 V, equally likely, with noise {s} V, but the threshold is set at 0.4 V by mistake.

::: part
answer: (Q(0.4/s) + Q(0.6/s))/2
tolerance: 1%

### What is the error rate?

::: misses
- [Q(0.5/s)] That's with the threshold in the right place.
- [any] Average the two symbols' error chances: $\frac12[Q(0.4/\sigma) + Q(0.6/\sigma)]$.
:::
:::
:::
:::
