Code # load required packages library (tsmethods) library (tsaux) library (tsets) library (xts) library (tsdistributions) library (data.table) library (future.apply) library (magrittr) library (ggplot2) Motivation Finding stable patterns in data is a key requirement if we are to have any success in forecasting the future. These patterns are identified by analyzing the historical behavior of data,…
Motivation Real world data rarely has clean patterns from which we can quickly identify the data generating process (DGP). It is messy 1 and contains anomalies which often times cloud the true signal. Even worse, even if the data appears regular, there are never any guarantees that the future will follow the past. Choosing a best model is an almost impossible task. At best, a model we choose…
The tsdistributions package provides the function authorized_domain which calculates the region of Skewness-Kurtosis for which a density exists. This is related to the Hamburger moment problem, and the maximum attainable Skewness (S) given kurtosis (K) (see (Widder 2015) ). A key takeaway from Widder is that for as given level of kurtosis( ) only a finite range of skewness ( ) may be attained,…