Title: | Hybrid ARIMA-GARCH and Two Specially Designed ML-Based Models |
---|---|
Description: | Describes a series first. After that does time series analysis using one hybrid model and two specially structured Machine Learning (ML) (Artificial Neural Network or ANN and Support Vector Regression or SVR) models. More information can be obtained from Paul and Garai (2022) <doi:10.1007/s41096-022-00128-3>. |
Authors: | Mr. Sandip Garai [aut, cre] |
Maintainer: | Mr. Sandip Garai <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2025-02-02 03:55:39 UTC |
Source: | https://github.com/cran/AriGaMyANNSVR |
First fits the time series data by using ARIMA model. If the residuals are having "arch" effect, then GARCH is fitted. Based on the previously mentioned condition final prediction is obtained.
ariga(Y, ratio = 0.9, n_lag = 4)
ariga(Y, ratio = 0.9, n_lag = 4)
Y |
Univariate time series |
ratio |
Ratio of number of observations in training and testing sets |
n_lag |
Lag of the provided time series data |
Output_ariga: List of three data frames containing three data frames namely predict_compare, forecast_compare, and metrics
Paul, R. K., & Garai, S. (2021). Performance comparison of wavelets-based machine learning technique for forecasting agricultural commodity prices. Soft Computing, 25(20), 12857-12873.
Paul, R. K., & Garai, S. (2022). Wavelets based artificial neural network technique for forecasting agricultural prices. Journal of the Indian Society for Probability and Statistics, 23(1), 47-61.
Garai, S., Paul, R. K., Rakshit, D., Yeasin, M., Paul, A. K., Roy, H. S., Barman, S. & Manjunatha, B. (2023). An MRA Based MLR Model for Forecasting Indian Annual Rainfall Using Large Scale Climate Indices. International Journal of Environment and Climate Change, 13(5), 137-150.
Y <- rnorm(100, 100, 10) result <- ariga(Y, ratio = 0.8, n_lag = 4)
Y <- rnorm(100, 100, 10) result <- ariga(Y, ratio = 0.8, n_lag = 4)
Fits a specially designed ANN model to the uni-variate time series data. The contribution is related to the PhD work of the maintainer.
my_ann(Y, ratio = 0.9, n_lag = 4)
my_ann(Y, ratio = 0.9, n_lag = 4)
Y |
Univariate time series |
ratio |
Ratio of number of observations in training and testing sets |
n_lag |
Lag of the provided time series data |
Output_ann: List of three data frames containing three data frames namely predict_compare, forecast_compare, and metrics
Paul, R. K., & Garai, S. (2021). Performance comparison of wavelets-based machine learning technique for forecasting agricultural commodity prices. Soft Computing, 25(20), 12857-12873.
Paul, R. K., & Garai, S. (2022). Wavelets based artificial neural network technique for forecasting agricultural prices. Journal of the Indian Society for Probability and Statistics, 23(1), 47-61.
Garai, S., Paul, R. K., Rakshit, D., Yeasin, M., Paul, A. K., Roy, H. S., Barman, S. & Manjunatha, B. (2023). An MRA Based MLR Model for Forecasting Indian Annual Rainfall Using Large Scale Climate Indices. International Journal of Environment and Climate Change, 13(5), 137-150.
Y <- rnorm(100, 100, 10) result <- my_ann(Y, ratio = 0.8, n_lag = 4)
Y <- rnorm(100, 100, 10) result <- my_ann(Y, ratio = 0.8, n_lag = 4)
Fits a specially designed SVR model to the uni-variate time series data. The contribution is related to the PhD work of the maintainer.
my_svr(Y, ratio = 0.9, n_lag = 4)
my_svr(Y, ratio = 0.9, n_lag = 4)
Y |
Univariate time series |
ratio |
Ratio of number of observations in training and testing sets |
n_lag |
Lag of the provided time series data |
Output_svr: List of three data frames containing three data frames namely predict_compare, forecast_compare, and metrics
Paul, R. K., & Garai, S. (2021). Performance comparison of wavelets-based machine learning technique for forecasting agricultural commodity prices. Soft Computing, 25(20), 12857-12873.
Paul, R. K., & Garai, S. (2022). Wavelets based artificial neural network technique for forecasting agricultural prices. Journal of the Indian Society for Probability and Statistics, 23(1), 47-61.
Garai, S., Paul, R. K., Rakshit, D., Yeasin, M., Paul, A. K., Roy, H. S., Barman, S. & Manjunatha, B. (2023). An MRA Based MLR Model for Forecasting Indian svrual Rainfall Using Large Scale Climate Indices. International Journal of Environment and Climate Change, 13(5), 137-150.
Y <- rnorm(100, 100, 10) result <- my_svr(Y, ratio = 0.8, n_lag = 4)
Y <- rnorm(100, 100, 10) result <- my_svr(Y, ratio = 0.8, n_lag = 4)
Provides descriptive statistics of a particular series. First column in the output result mentions 10 different statistics and second column contains the Statistics values of the particular series.
series_descstat(Y)
series_descstat(Y)
Y |
Univariate time series |
desc_table: A table contains 10 descriptive statistics row-wise
Garai, S., & Paul, R. K. (2023). Development of MCS based-ensemble models using CEEMDAN decomposition and machine intelligence. Intelligent Systems with Applications, 18, 200202.
Garai, S., Paul, R. K., Rakshit, D., Yeasin, M., Paul, A. K., Roy, H. S., Barman, S. & Manjunatha, B. (2023). An MRA Based MLR Model for Forecasting Indian svrual Rainfall Using Large Scale Climate Indices. International Journal of Environment and Climate Change, 13(5), 137-150.
Y <- rnorm(100, 100, 10) result <- series_descstat(Y)
Y <- rnorm(100, 100, 10) result <- series_descstat(Y)
Performs non linearity test result for a series. Provides output as a single element (data frame) list. First column mentions different statistics (eps). Other columns are the Statistics values of the particular dimension.
series_nonlinearity(Y)
series_nonlinearity(Y)
Y |
Univariate time series |
nonlinearity_list: A list with a single element (data frame) . Element is named as the name of the series provided. The element is such that first column mentions different statistics and other columns are the Statistics values of the particular dimension.
Garai, S., & Paul, R. K. (2023). Development of MCS based-ensemble models using CEEMDAN decomposition and machine intelligence. Intelligent Systems with Applications, 18, 200202.
Garai, S., Paul, R. K., Rakshit, D., Yeasin, M., Paul, A. K., Roy, H. S., Barman, S. & Manjunatha, B. (2023). An MRA Based MLR Model for Forecasting Indian svrual Rainfall Using Large Scale Climate Indices. International Journal of Environment and Climate Change, 13(5), 137-150.
my_series <- rnorm(100, 100, 10) nonlinearity <- series_nonlinearity(my_series) nonlinearity$my_series
my_series <- rnorm(100, 100, 10) nonlinearity <- series_nonlinearity(my_series) nonlinearity$my_series
Provides a list of three data frames: 'ADF', 'PP', 'KPSS'. Also indicates whether the data is stationary or not according to the null hypothesis of the corresponding tests.
series_stationarity(Y)
series_stationarity(Y)
Y |
Univariate time series |
stationarity_table - List of three data frames: 'ADF', 'PP', 'KPSS'
Garai, S., & Paul, R. K. (2023). Development of MCS based-ensemble models using CEEMDAN decomposition and machine intelligence. Intelligent Systems with Applications, 18, 200202.
Garai, S., Paul, R. K., Rakshit, D., Yeasin, M., Paul, A. K., Roy, H. S., Barman, S. & Manjunatha, B. (2023). An MRA Based MLR Model for Forecasting Indian svrual Rainfall Using Large Scale Climate Indices. International Journal of Environment and Climate Change, 13(5), 137-150.
Y <- rnorm(100, 100, 10) result <- series_stationarity(Y)
Y <- rnorm(100, 100, 10) result <- series_stationarity(Y)