Linear correlation understates the effect because cold and heat push demand in opposite directions.
Smart-energy operations
Forecast usage. Anticipate demand alerts.
Translate daily weather and calendar conditions into two operational outputs: expected household electricity consumption and the probability of a critical high-demand day.
Data signal
Temperature carries the nonlinear story
Demand is lowest on mild days and rises at both temperature extremes. Humidity adds a smaller upward signal; weekend changes average usage but barely changes alert frequency.
Consumption and alert frequency generally rise in more humid conditions.
Alert rate is 32% on weekdays and 33% on weekends.
Model design
One spline basis, two operational models
A hand-built cubic B-spline lets temperature bend smoothly while humidity and weekend remain transparent additive effects.
OLS on a cubic B-spline basis
usage = sum betajBj(temperature) + betaHhumidity + betaWweekend
Logistic probability on the same basis
P(alert) = sigmoid(sum betajBj(temperature) + betaHhumidity + betaWweekend)
Boundary knots stay fixed at the physical sensor range: 0 and 40 C.
Cox-de Boor recursion produces the cubic basis without a spline library.
No separate intercept: the spline basis already sums to one.
Continuous kWh usage and calibrated-looking alert probabilities.
Daily usage forecast
Reserve around a U-shaped load curve
At average humidity on a weekday, expected consumption bottoms out near mild temperatures and climbs sharply toward both cold and hot extremes.
High-demand probability
Alerts concentrate at temperature extremes
The probability curve gives operators a graded warning signal. A 0.5 threshold turns it into a reviewable alert while retaining probability for prioritization.
Model analytics
Fit, tuning and stability support the policy
Data relationships stay on the Data slide. This page focuses only on model evidence and the boundary between simple correlations and nonlinear prediction.
The tasks share a cubic basis but keep separate complexity choices.
Bootstrap fits retain low mild-weather demand and high exposure at both extremes.
Temperature correlation is weak for alert status because opposite extremes cancel.
Operational recommendation
Plan reserves with usage; escalate with probability
The two outputs belong in one daily planning workflow, but they answer different questions and should not be collapsed into a single score.
Consumption spline
Use the continuous forecast as the expected load and add a business-defined reserve buffer.
Logistic spline
Use probability to rank urgency; use the threshold only when a binary alert is operationally required.
Temperature, humidity, and weekend indicator.
Generate expected kWh and high-demand probability.
Set base capacity from the continuous usage estimate.
Prioritize high-risk days and extreme conditions.
Boundary: rows are independent days, not a time series. The model does not capture lagged demand, holidays, pricing, or behavioral changes.