---
title: Problem set 8
heading: "Problem set 8: estimates, tests and fits"
eyebrow: A11 · Problem set 8
type: problems
---

::: hook
These problems use lessons 35 to 39: estimating parameters, reporting measurements with confidence intervals, hypothesis tests, and least-squares fits. Each one ends with a number you could put in a lab report, with its uncertainty.
:::

::: pool
pick: 12

::: check
kind: parts
given: n = 5 | 10; ss = 0.08 | 0.36

## {n} readings of a reference have squared deviations from their mean adding to {ss} mV².

::: part
answer: sqrt(ss/(n - 1))
unit: mV
tolerance: 0.5%

### What is the sample standard deviation?

::: misses
- [any] $\sqrt{\sum(x_i - \bar x)^2/(n - 1)}$.
:::
:::

::: part
answer: sqrt(ss/(n - 1))/sqrt(n)
unit: mV
tolerance: 0.5%

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

::: misses
- [any] $s/\sqrt n$.
:::
:::
:::

::: check
kind: parts
given: k = 4 | 9; T = 50 | 200

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

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

### What is the estimated MTTF, in thousands of hours?

::: misses
- [any] Total time over failures.
:::
:::

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

### What is the rough relative uncertainty of that estimate?

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

::: check
kind: parts
given: xb = 4.98 | 5.03; s = 0.05 | 0.1; n = 16 | 25

## {n} readings of a nominal 5 V reference average {xb} V, with sample standard deviation {s} V.

::: part
answer: 1.96*s/sqrt(n)
unit: V
tolerance: 0.5%

### What is the half-width of the 95% confidence interval for the true value?

::: misses
- [1.96*s] The interval is for the mean, so use the standard error.
- [any] $1.96\,s/\sqrt n$.
:::
:::

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

### What is the two-sided p-value for "the true value is 5 V" (treating $s$ as σ)?

::: misses
- [any] $2Q(|z|)$ with $z = (\bar x - 5)/(s/\sqrt n)$.
:::
:::
:::

::: check
kind: parts
given: p0 = 0.03 | 0.05; n = 1000 | 2500; f = 0.7 | 0.8

## A defect rate was {p0}. A trial of a new process gives a rate {f} times as large over {n} units.

::: part
answer: (p0 - f*p0)/sqrt(p0*(1 - p0)/n)
tolerance: 0.5%

### What is the $z$-statistic for an improvement (old minus new, over the standard error under the old rate)?

::: misses
- [any] $\frac{p_0 - \hat p}{\sqrt{p_0(1 - p_0)/n}}$.
:::
:::

::: part
answer: Q((p0 - f*p0)/sqrt(p0*(1 - p0)/n))
tolerance: 1%

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

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

::: check
kind: parts
given: s = 1 | 2; d = 0.5 | 1

## A test for a positive offset averages $n$ readings with noise {s} mV each, at a 5% one-sided level ($z = 1.645$). The offset to catch is {d} mV, with 90% power ($z = 1.282$).

::: part
answer: ((1.645 + 1.282)*s/d)^2
tolerance: 0.5%

### How many readings are needed?

::: misses
- [any] $n = \left(\frac{(z_\alpha + z_\beta)\sigma}{d}\right)^2$.
:::
:::

::: part
answer: 1.645*s/sqrt(((1.645 + 1.282)*s/d)^2)
unit: mV
tolerance: 0.5%

### What is the decision threshold for the average at that $n$?

::: misses
- [any] $1.645\,\sigma/\sqrt n$.
:::
:::
:::

::: check
kind: parts
given: sxy = 30 | 45; sxx = 60 | 90; xb = 4 | 5; yb = 2 | 3

## A calibration fit has $S_{xy}$ = {sxy}, $S_{xx}$ = {sxx}, $\bar x$ = {xb} and $\bar y$ = {yb}.

::: part
answer: sxy/sxx
tolerance: 0.5%

### What is the slope?

::: misses
- [any] $S_{xy}/S_{xx}$.
:::
:::

::: part
answer: yb - sxy/sxx*xb
tolerance: 0.5%

### What is the intercept?

::: misses
- [any] $\bar y - b\bar x$.
:::
:::
:::

::: check
kind: parts
given: n = 10 | 20; sse = 0.32 | 0.72; sxx = 82.5 | 665

## A line is fitted to {n} I–V points (mA against V); SSE = {sse} mA² and $S_{xx}$ = {sxx} V².

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

### What is the estimated noise per point?

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

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

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

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

::: check
kind: parts
given: b = 0.4 | 0.5; sb = 0.01 | 0.02

## An I–V fit gives slope {b} mA/V with standard error {sb} mA/V.

::: part
answer: 1/b
unit: kΩ
tolerance: 0.5%

### What is the resistance?

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

::: part
answer: sb/b^2
unit: kΩ
tolerance: 0.5%

### What is its standard error?

::: misses
- [sb] Propagate through $R = 1/b$: $\sigma_R = \sigma_b/b^2$.
- [any] $|dR/db|\,\sigma_b$.
:::
:::
:::

::: check
kind: parts
given: m = -0.25 | -0.4; sm = 0.01 | 0.02

## A fit of $\ln v$ against $t$ (ms) for an RC decay gives slope {m} per ms with standard error {sm}.

::: part
answer: -1/m
unit: ms
tolerance: 0.5%

### What is τ?

::: misses
- [any] $-1/\text{slope}$.
:::
:::

::: part
answer: sm/m^2
unit: ms
tolerance: 0.5%

### What is its standard error?

::: misses
- [any] $\sigma_m/m^2$.
:::
:::
:::

::: check
kind: parts
given: v1 = 1 | 2; v2 = 0.5 | 1.5; d = 2 | 4

## A result is $f = xy$, with $x$ known to {v1}% and $y$ to {v2}%, independently, plus a {d}% calibration uncertainty in the meter that measured both.

::: part
answer: sqrt(v1^2 + v2^2)
tolerance: 0.5%

### What is the relative uncertainty of $f$ from the random parts?

::: misses
- [any] Relative errors of a product add in quadrature.
:::
:::

::: part
answer: sqrt(v1^2 + v2^2 + (2*d)^2)
tolerance: 0.5%

### Including the calibration error, which affects $x$ and $y$ the same way, what is it?

::: misses
- [sqrt(v1^2 + v2^2 + d^2)] The same scale error in both factors appears twice in a product: $2d$.
- [any] A shared $d$% error in each factor shifts the product by $2d$%.
:::
:::
:::

::: check
kind: parts
given: c1 = 5 | 8; c2 = 7 | 4; c3 = 6 | 9; c4 = 2 | 3

## A counter records {c1}, {c2}, {c3} and {c4} events in four equal intervals.

::: part
answer: (c1 + c2 + c3 + c4)/4
tolerance: 0.5%

### What is the estimated Poisson mean per interval?

::: misses
- [any] The sample mean.
:::
:::

::: part
answer: sqrt((c1 + c2 + c3 + c4)/4)/2
tolerance: 0.5%

### What is the standard error of that estimate?

::: misses
- [any] $\sqrt{\hat\lambda}/\sqrt 4$.
:::
:::
:::

::: check
kind: parts
given: sse = 1.2 | 3; sst = 30 | 60

## A fit leaves SSE = {sse} out of a total sum of squares {sst}.

::: part
answer: 1 - sse/sst
tolerance: 0.5%

### What is $R^2$?

::: misses
- [any] $1 - \text{SSE}/\text{SST}$.
:::
:::

::: part
answer: 100*sse/sst
tolerance: 0.5%

### What percent of the variation does the line leave unexplained?

::: misses
- [any] SSE over SST.
:::
:::
:::

::: check
kind: parts
given: s = 4 | 8; n = 16 | 64

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

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

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

::: misses
- [any] $s/\sqrt n$.
:::
:::
:::

::: check
kind: parts
given: h = 55 | 56 | 58 | 60 | 62 | 64 | 65; N = 100

## A coin gives {h} heads in {N} flips.

::: part
answer: 2*Q((h - 50)/5)
tolerance: 0.5%

### What is the two-sided p-value for a fair coin?

::: misses
- [Q((h - 50)/5)] Both tails.
- [any] $z = \frac{h - 50}{5}$, then $2Q(z)$.
:::
:::
:::

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

## $I = V/R$ with $V$ uncertain by {a}% and $R$ by {b}%.

::: part
answer: sqrt(a^2 + b^2)
unit: %
tolerance: 0.5%

### What is the uncertainty in $I$?

::: misses
- [a + b] That's worst case.
- [any] Add in squares.
:::
:::
:::
:::
