← Back to the chapter · Previous detail · Next detail →

Technical detail · Imputation and Noise Filtering

Bound the forward-fill error

How long can you safely forward-fill temperature data?

For a typical indoor temperature sensor:

Gap duration analysis: These are illustrative normal-change estimates, not worst-case bounds at 3°C/hour. The final error-budget calculation controls the release decision.

Gap DurationExpected ChangeForward-Fill ErrorAcceptable?
1 minute0.008°C (normal)~0.01°C✓ Excellent
5 minutes0.042°C~0.05°C✓ Very good
30 minutes0.25°C~0.3°C✓ Good (trend analysis OK)
2 hours1.0°C~1.5°C✗ Poor (alert thresholds invalid)

Formula for maximum safe gap:

tmax=ϵacceptablermaxt_{max} = \frac{\epsilon_{acceptable}}{r_{max}}

Where ϵacceptable\epsilon_{acceptable} is the maximum tolerable error and rmaxr_{max} is the maximum expected change rate.

Example: For ±1°C acceptable error and 3°C/hour max rate:

tmax=1°C3°C/hour=0.33 hours=20 minutest_{max} = \frac{1°C}{3°C/\text{hour}} = 0.33 \text{ hours} = 20 \text{ minutes}

Recommendation: In this example, forward-fill temperature for max 20 minutes. Beyond that, flag as “sensor offline” rather than impute.

← Back to the chapter · Previous detail · Next detail →