Humidity prediction: fit a model to predict missing humidity readings; any non-linear regression or pandas interpolate passes the MSE-based tests
Asked in the HackerRank stage. Q3. Using the PostgreSQL tables provided, calculate linear interpolations for missing readings that have valid observed readings before and after them.
sensor_id, sensor_name, reading_time, and predicted_humidity.sensor_id, then reading_time.| Column | Type | Description |
|---|---|---|
| reading_idPK | INT | Unique humidity reading identifier |
| sensor_id | INT | Sensor that recorded the reading |
| reading_time | TIMESTAMP | Timestamp of the reading |
| humidity | NUMERIC(5,2) | Observed relative humidity percentage |
| Column | Type | Description |
|---|---|---|
| sensor_idPK | INT | Unique sensor identifier |
| sensor_name | VARCHAR(100) | Human-readable sensor name |
| location | VARCHAR(100) | Sensor deployment location |