Skip to content
Tactiverge

Repeated distance measurements: experiment bench

Simulation OS · roboticsEducational model, not a digital twin

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.

Your level (shows more controls and deeper equations)
  1. 1. Ask
  2. 2. Hypothesise
  3. 3. Set up
  4. 4. Run
  5. 5. Record
  6. 6. Change one variable
  7. 7. Compare
  8. 8. Interpret
  9. 9. Limitations & save

If I change …, then … will …, because …

3 · Set up the parameters

1–80 cm
0–5 cm
-3–3 cm

A systematic offset: averaging more readings does not remove it.

2–500

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

Run the model to draw your first curve here.

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

ParameterRangeDefault
True distance1 to 80 cm25
Noise σ0 to 5 cm0.5
Bias-3 to 3 cm0
Readings2 to 50030

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.