Repeated distance measurements: experiment bench
Repeated distance measurements
Take repeated, seeded readings from a noisy, possibly biased range sensor and summarise them with mean, standard deviation and a 95 % confidence interval.
- 1. Ask
- 2. Hypothesise
- 3. Set up
- 4. Run
- 5. Record
- 6. Change one variable
- 7. Compare
- 8. Interpret
- 9. Limitations & save
If I change …, then … will …, because …
3 · Set up the parameters
A systematic offset: averaging more readings does not remove it.
The seed fixes any random noise. Same parameters + same seed = exactly the same result, every time, on every computer.
6 · Change one variable
Your first run is the baseline. After it, change one thing at a time.
7 · Compare on a graph
5 · Run log
No runs yet.
Equations
Reading = truth + bias + noise. Mean x̄ = Σx/n; s = √(Σ(x − x̄)²/(n − 1)).
Assumptions (always true in this model)
- White Gaussian noise, independent between readings.
- Constant bias; readings clamped to [0, 200] cm.
- The target does not move during the readings.
Text description of what the chart shows
A sequence of repeated distance readings scattered around the true distance, with the running mean settling down as more readings arrive. Metrics give the mean, the standard deviation and a 95 % confidence interval, and how far the mean is from the truth.
Did the result support your hypothesis? Use the numbers from the comparison table and link them to an equation.
Which assumptions could change your answer in the real world?
Export and save
Exports use the ticked runs (or every run if none are ticked). Your draft saves automatically in this browser only. The Journal is private to you.
Valid parameter ranges
| Parameter | Range | Default |
|---|---|---|
| True distance | 1 to 80 cm | 25 |
| Noise σ | 0 to 5 cm | 0.5 |
| Bias | -3 to 3 cm | 0 |
| Readings | 2 to 500 | 30 |
Independent reference checks
noise-free, biased
With σ = 0 every reading equals truth + bias, so the spread and the interval collapse onto 25.8 cm.
large sample mean
Sampling theory: the mean of 500 N(25, 1) readings is within ±3σ/√500 ≈ 0.13 cm of 25; s is within about ±0.1 of σ.
Checked automatically on every change to the code. Educational model, not engineering-grade.