Skip to main content

error_lag1

Function error_lag1 

Source
pub fn error_lag1(
    model: Model,
    view: &View<'_>,
    day: &BusinessDay,
    minutes: u16,
) -> Option<f64>
Expand description

The lag-1 autocorrelation of model’s errors over its calibration window before day, as known in view, converted to a step of minutes (for an AR(1) process ρ per step scales as ρ^(step ÷ observed step), so hourly history serves quarter-hour days). Clipped to [0, 0.99]; None without enough history.