You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some edge cases, I get a point forecast (complete/non-missing fcast_means) but intermittent NaN values for forecast_intervals. It appears the cause is that there are negative values in the variance of the predicted mean values fcast.var_pred_mean which result in np.nan when we take the square root in fcast.se_mean.
Example output:
date
mean
mean_se
mean_ci_lower
mean_ci_upper
2020-01-01
1513.416667
288.675135
947.623800
2079.209534
2020-02-01
1291.583333
288.675135
725.790466
1857.376200
2020-03-01
1906.000000
0.000002
1905.999995
1906.000005
2020-04-01
1037.703432
NaN
NaN
NaN
2020-05-01
2474.406863
0.000002
2474.406859
2474.406868
2020-06-01
1816.406863
0.000002
1816.406859
1816.406868
The text was updated successfully, but these errors were encountered:
Yes; 2020-04-01 is the first OOS date; I get another NaN set caused by the same issue at the last OOS date 2021-03-01. I don't believe I can share the data; I may be able to obfuscate it if I can find the time.
I have a fit SARIMAX model with 3 binary exogenous variables - in pseudocode:
In some edge cases, I get a point forecast (complete/non-missing
fcast_means
) but intermittent NaN values forforecast_intervals
. It appears the cause is that there are negative values in the variance of the predicted mean valuesfcast.var_pred_mean
which result in np.nan when we take the square root infcast.se_mean
.Example output:
The text was updated successfully, but these errors were encountered: