0
$\begingroup$

When I run the following code, I get the expected value as NaN:

from pyculiarity import detect_vec, detect_ts
import numpy as np
#from statsmodels.tsa.holtwinters import ExponentialSmoothing
from statsmodels.tsa.api import ExponentialSmoothing, SimpleExpSmoothing, Holt
import itertools
from statsmodels.stats.stattools import medcouple

detect_ts(df[['Date column','Count']], max_anoms=0.01,  e_value=True, alpha=0.001 ,direction='both')

Output:

{'anoms':             timestamp  anoms  expected_value
 timestamp                                   
 2020-03-23 2020-03-23  30828             NaN
 2020-01-03 2020-01-03  17458             NaN
 2020-01-01 2020-01-01  26396             NaN
 2020-01-02 2020-01-02  18939             NaN, 'plot': None}

Please help me understand what I am missing

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.