Compression-based methods of statistical analysis and prediction of time series