# Chapter 16 notebook: Measurement and Uncertainty: Building Trustworthy Results

**Goal:** Build a measurement uncertainty budget and report a result without hiding covariance or bias.

**Start with:** Rules 16.2.2, 16.3.1, 16.3.3. Use a calculator or the optional Python lab. Programming is optional for the workbook; the Jupyter version requires a Python 3 kernel. All lab numbers are constructed practice inputs, not observed data.

**Source:** [Finished Chapter 16](../skills/math-thumb-measurement/references/chapter.md) from *Mathematical Rules of Thumb*. Numbered rules, classifications, and the decision path come from the book. The lab, exercises, answer key, and worksheet prompts are companion additions.

## 1. Frame your decision

Write a question in which an answer would change something you do. Gather: Measurand and measurement equation; corrections; input standard uncertainties; sensitivities and covariance; coverage convention; units.

- My question and intended decision:
- Known inputs and units:
- Required accuracy or threshold:
- What I expect before calculating:
- What I still need to find out:

Use the lab as a worked starting point if you do not yet have your own problem. For notation or prerequisites, ask the chapter skill to explain only the concept blocking the next step.

## 2. Choose a route

1. Define the measurand and write \(y=f(x_1,\ldots,x_m)\), including corrections.
2. List every uncertainty source and possible shared cause. Label its evaluation Type A or Type B without treating the label as a rank.
3. Convert each source to a standard uncertainty, retaining its units, distribution, divisor, and evidence.
4. Calculate sensitivity coefficients and covariance terms. Use relative shortcuts only when their assumptions match the model.
5. Inspect variance contributions and improve the components with genuine leverage.
6. Challenge the linear approximation with scale, curvature, bounds, and limiting cases. Switch to Monte Carlo if it bends.
7. Choose a coverage convention, round the uncertainty first, align the result, and report enough method detail to reproduce the claim.

**Chapter-specific stop check:** The ± symbol must be defined: standard uncertainty, expanded uncertainty, interval, or tolerance. Keep covariance and correction uncertainty in the measurement model.

## 3. Work the lab

A rectangle has independent measured sides 10.00±0.10 cm and 5.00±0.05 cm, where ± values denote standard uncertainties. Area is 50 cm^2. First-order relative standard uncertainty is sqrt((0.10/10)^2+(0.05/5)^2)≈0.014142. Thus u(A)≈0.7071 cm^2; a coverage factor k=2 gives U≈1.4142 cm^2. With two significant uncertainty digits, report (50.0±1.4) cm^2, k=2. Approximate 95% coverage needs a suitable output distribution and degrees of freedom; k=2 alone does not guarantee it.

Predict the sign and scale before running the code. Then change one input and explain why the result moves. The code checks the constructed example; it does not prove the rule for every possible input. Code assertions may describe the example's chosen regime, so inspect them before changing that regime.

```python
import math
length, width = 10.0, 5.0
u_length, u_width, correlation = 0.10, 0.05, 0.0
assert length > 0 and width > 0 and u_length >= 0 and u_width >= 0 and -1 <= correlation <= 1
area = length*width
variance = (width*u_length)**2+(length*u_width)**2+2*width*length*correlation*u_length*u_width
standard = math.sqrt(max(0, variance))
print(f"Area {area:.4f} cm^2; first-order standard uncertainty {standard:.6f} cm^2")
print(f"Expanded uncertainty with k=2: {2*standard:.6f} cm^2")
```

**My prediction, observed result, and explanation:**

_Record your work here._

## 4. Practise without the answers

### Exercise 1

Change correlation between the lab inputs to +1. What is the first-order standard area uncertainty?

**My approach, assumptions, calculation, and check:**

_Write your attempt here._

### Exercise 2

An instrument's rounding error is modeled uniformly within ±0.6 units. Convert to a standard uncertainty.

**My approach, assumptions, calculation, and check:**

_Write your attempt here._

### Exercise 3

A sensor has a fixed +2-unit calibration bias. Can repeated readings remove it?

**My approach, assumptions, calculation, and check:**

_Write your attempt here._

**Coaching prompt:** “Use the Chapter 16 skill to help me with Exercise 2. Ask for my attempt, give one useful hint if I need it, and help me check the assumptions before showing the answer.”

## 5. Answer key and reasoning

Read this after attempting the exercises, or use it immediately if you prefer a complete walkthrough. An answer is complete only when its assumptions and stopping point are clear.

### Answer 1

The two sensitivity-scaled contributions add: 5 × 0.10+10 × 0.05=1.0 cm^2. Dropping covariance would understate uncertainty.

### Answer 2

u=0.6/sqrt(3)≈0.346410 units, using the uniform-distribution model.

### Answer 3

Averaging reduces independent random scatter, not that fixed bias. Apply a justified correction and include uncertainty in the correction.

## 6. Build the complete chapter toolkit

The new lab samples the chapter; the following checklist covers all 14 rules. Study one thematic group at a time. A large group can take several sessions.

- **Scatter, Bias, and Reporting Discipline:** work with rules 16.1.1, 16.1.2, 16.1.3, 16.1.4, 16.1.5.
- **Propagation Rules and Their Assumptions:** work with rules 16.2.1, 16.2.2, 16.2.3, 16.2.4.
- **Dependence, Coverage, and Escalation:** work with rules 16.3.1, 16.3.2, 16.3.3, 16.3.4, 16.3.5.

For each selected rule, read its equation, explanation, and worked use in the source. Reproduce that example; change one input; then change one assumption so the rule is no longer justified. Record the result and what check catches the failure. Historical examples remain labeled and qualified as in the source.

Read each complete numbered profile in the [chapter reference](../skills/math-thumb-measurement/references/chapter.md) before applying it. The cues below abbreviate the graph metadata; they are not complete conditions. Change the status only after doing the practice described below.

| Rule | Book role | First assumptions to inspect | Practice status |
|---|---|---|---|
| 16.1.1: Repetition reduces random scatter, not fixed bias | Independent | shared fixed bias across repeats | new |
| 16.1.2: Type A and Type B describe evaluation methods, not importance | Workflow | identifiable uncertainty sources | new |
| 16.1.3: Keep guard digits until the final reported result | Workflow | finite precision calculation | new |
| 16.1.4: Round the uncertainty first, then align the result | Workflow | uncertainty already estimated | new |
| 16.1.5: Mean-squared error is variance plus squared bias | Independent | fixed target;  finite second moment | new |
| 16.2.1: A power multiplies relative uncertainty by its exponent | Independent | small relative uncertainty;  differentiable power law | new |
| 16.2.2: Products and quotients combine relative uncertainties | Workflow | small relative uncertainties;  independent factors | new |
| 16.2.3: Scale every input uncertainty by its sensitivity coefficient | Workflow | differentiable measurement model;  small input uncertainties | new |
| 16.2.4: Build an uncertainty budget with sensitivity-scaled RSS terms | Workflow | uncorrelated inputs;  first order linearization | new |
| 16.3.1: Keep covariance terms for correlated uncertainties | Workflow | known covariance structure;  first order linearization | new |
| 16.3.2: Convert a uniform half-width to standard uncertainty with $\sqrt{3}$ | Workflow | uniform error distribution;  symmetric hard bounds | new |
| 16.3.3: Coverage factor two is an approximate 95% convention | Workflow | approximately normal output;  adequate degrees of freedom | new |
| 16.3.4: Improve the dominant uncertainty contributors first | Workflow | complete uncertainty budget;  comparable variance contributions | new |
| 16.3.5: Use Monte Carlo propagation when linear uncertainty rules bend | Workflow | specified input distributions;  computable measurement model | new |

For a completed row, record: **rule number / my new input / mathematical claim type / verified assumptions / calculation / check / valid use / rejected use / next step**. “Practised” means you worked an example. “Demonstrated” means you can explain a valid use, transfer it, and reject a misuse without the answer key.

## 7. Apply it to your own problem

Return to your opening question. Choose the smallest rule set that can settle it. Use the book's independent/workflow/specialized classification separately from the claim type (exact, approximate, bound, diagnostic, or heuristic).

- Selected rule number(s) and reason:
- Assumptions that hold, fail, or remain uncertain:
- Substitution with units:
- Result and error, uncertainty, or bound:
- Independent check or limiting case:
- Decision this supports:
- Stop here, do a named next calculation, or gather missing information:

## 8. Transfer and continue

Useful nearby chapters: Chapter 4: calculus; Chapter 12: probability; Chapter 13: statistics. Bring the question, units, assumptions, result type, and uncertainty to the next chapter. Choose a bridge only when it supplies an operation you actually need.

**Completion check:** Explain this chapter's lab in your own words; solve one changed-input exercise; reject one invalid use; and produce a decision record for your own problem. If one check fails, revisit that part of the chapter rather than marking every rule complete.
