← 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:
- Normal change rate: 0.5°C per hour (HVAC cycles)
- Maximum change rate: 3°C per hour (HVAC failure, door open)
- Sensor sampling: Every 60 seconds
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 Duration | Expected Change | Forward-Fill Error | Acceptable? |
|---|---|---|---|
| 1 minute | 0.008°C (normal) | ~0.01°C | ✓ Excellent |
| 5 minutes | 0.042°C | ~0.05°C | ✓ Very good |
| 30 minutes | 0.25°C | ~0.3°C | ✓ Good (trend analysis OK) |
| 2 hours | 1.0°C | ~1.5°C | ✗ Poor (alert thresholds invalid) |
Formula for maximum safe gap:
Where is the maximum tolerable error and is the maximum expected change rate.
Example: For ±1°C acceptable error and 3°C/hour max rate:
Recommendation: In this example, forward-fill temperature for max 20 minutes. Beyond that, flag as “sensor offline” rather than impute.