Skip to main content

num_seas_diffs

Determine the optimal number of seasonal differences for stationarity. Uses a seasonal strength heuristic based on STL decomposition to determine if seasonal differencing is needed. The function applies seasonal differencing iteratively until the seasonal strength falls below the threshold or the maximum number of differences is reached. Parameters: Returns:

num_diffs

Determine the optimal number of non-seasonal differences for stationarity. Uses the KPSS (Kwiatkowski-Phillips-Schmidt-Shin) test to determine how many times the series needs to be differenced to achieve stationarity. The function applies differencing iteratively until the KPSS statistic falls below the threshold or the maximum number of differences is reached. Parameters: Returns:

diff

Subtract previous values of the series Parameters: Returns: