Javascript must be enabled to continue!
Modelling Petrol Prices in Kenya from 2014 to 2023 Using Sarimax Model: A Case Study of Nairobi County
View through CrossRef
The requirement for petrol price information is crucial for majority of enterprises. This is because fluctuations in petrol prices impact inflation hence affecting daily lives of citizens. In analyzing the prices of petrol, researchers have employed several models but encountered various limitations. These limitations include; the Error Correction Model can examine only one co-integrating association. The Vector Autoregression (VAR) model does not account for the structural changes in the data. Additionally, the AutoRegressive Integrated Moving Average (ARIMA) model does not take into consideration the seasonal component in the data. The Generalized Autoregressive Conditional Heteroskedasticity (GARCH) model assumes that over time the volatility is constant. Moreover, the Seasonal Autoregressive Integrated Moving Average (SARIMA) model does not integrate the external factors. Hence in this study Seasonal Autoregressive Integrated Moving Average with Exogenous Variables (SARIMAX) model was employed since it captures seasonality in data and incorporates the exogenous variables. The research’s aim was to model prices of petrol in Kenya for the period between 2014 to 2023 with exchange rates as an external factor. Secondary data was obtained from Energy and Petroleum Regulatory Authority (EPRA), Kenya National Bureau of Statistics (KNBS) and Central Bank of Kenya (CBK) websites. R software was used to analyze the data. By the use of historical data of petrol prices and exchange rates, the study sought to fit the best Seasonal Autoregressive Integrated Moving Average with Exogenous Variables (SARIMAX) model, validate the model and predict the petrol prices. The petrol price data was found to be non-stationary using Augmented Dickey Fuller test (ADF). Regular differencing was conducted to make the data stationary. Seasonal differencing due to seasonality component available in the data was also performed. Best SARIMAX model was chosen from various SARIMAX models according to Box-Jenkins methodology which uses least Akaike Information Criterion (AIC) value. SARIMAX (0,1,1)(2,1,2)<sub>12</sub> model was selected since it had least Akaike Information Criterion (AIC) value of 656.3733 and the model validated using the hold out technique. The forecasts errors from the training set were; Mean Squared Error (MSE)=10.4970, Root Mean Square Error (RMSE)=3.239911, Mean Absolute Percentage Error (MAPE)=2.309268% while those from the testing set were; Mean Squared Error (MSE)=3271.1012, Root Mean Square Error (RMSE)=57.193542, Mean Absolute Percentage Error (MAPE)=26.695390%. There was less error in the training set than in the testing set as it was expected hence the model suited the data well and could be used for future predictions. The model was then used for five year forecast into the future. This study’s findings will offer sound suggestions to policymakers, businesses and consumers. This study recommends a model to be fitted using other factors affecting petrol prices and fitting Fourier terms, Behavioral Assessment Tools (BATS) and Trigonometric Box-Cox ARMA Trend Seasonal (TBATS) models.
Science Publishing Group
Title: Modelling Petrol Prices in Kenya from 2014 to 2023 Using Sarimax Model: A Case Study of Nairobi County
Description:
The requirement for petrol price information is crucial for majority of enterprises.
This is because fluctuations in petrol prices impact inflation hence affecting daily lives of citizens.
In analyzing the prices of petrol, researchers have employed several models but encountered various limitations.
These limitations include; the Error Correction Model can examine only one co-integrating association.
The Vector Autoregression (VAR) model does not account for the structural changes in the data.
Additionally, the AutoRegressive Integrated Moving Average (ARIMA) model does not take into consideration the seasonal component in the data.
The Generalized Autoregressive Conditional Heteroskedasticity (GARCH) model assumes that over time the volatility is constant.
Moreover, the Seasonal Autoregressive Integrated Moving Average (SARIMA) model does not integrate the external factors.
Hence in this study Seasonal Autoregressive Integrated Moving Average with Exogenous Variables (SARIMAX) model was employed since it captures seasonality in data and incorporates the exogenous variables.
The research’s aim was to model prices of petrol in Kenya for the period between 2014 to 2023 with exchange rates as an external factor.
Secondary data was obtained from Energy and Petroleum Regulatory Authority (EPRA), Kenya National Bureau of Statistics (KNBS) and Central Bank of Kenya (CBK) websites.
R software was used to analyze the data.
By the use of historical data of petrol prices and exchange rates, the study sought to fit the best Seasonal Autoregressive Integrated Moving Average with Exogenous Variables (SARIMAX) model, validate the model and predict the petrol prices.
The petrol price data was found to be non-stationary using Augmented Dickey Fuller test (ADF).
Regular differencing was conducted to make the data stationary.
Seasonal differencing due to seasonality component available in the data was also performed.
Best SARIMAX model was chosen from various SARIMAX models according to Box-Jenkins methodology which uses least Akaike Information Criterion (AIC) value.
SARIMAX (0,1,1)(2,1,2)<sub>12</sub> model was selected since it had least Akaike Information Criterion (AIC) value of 656.
3733 and the model validated using the hold out technique.
The forecasts errors from the training set were; Mean Squared Error (MSE)=10.
4970, Root Mean Square Error (RMSE)=3.
239911, Mean Absolute Percentage Error (MAPE)=2.
309268% while those from the testing set were; Mean Squared Error (MSE)=3271.
1012, Root Mean Square Error (RMSE)=57.
193542, Mean Absolute Percentage Error (MAPE)=26.
695390%.
There was less error in the training set than in the testing set as it was expected hence the model suited the data well and could be used for future predictions.
The model was then used for five year forecast into the future.
This study’s findings will offer sound suggestions to policymakers, businesses and consumers.
This study recommends a model to be fitted using other factors affecting petrol prices and fitting Fourier terms, Behavioral Assessment Tools (BATS) and Trigonometric Box-Cox ARMA Trend Seasonal (TBATS) models.
Related Results
Breast Carcinoma within Fibroadenoma: A Systematic Review
Breast Carcinoma within Fibroadenoma: A Systematic Review
Abstract
Introduction
Fibroadenoma is the most common benign breast lesion; however, it carries a potential risk of malignant transformation. This systematic review provides an ove...
Hydatid Disease of The Brain Parenchyma: A Systematic Review
Hydatid Disease of The Brain Parenchyma: A Systematic Review
Abstarct
Introduction
Isolated brain hydatid disease (BHD) is an extremely rare form of echinococcosis. A prompt and timely diagnosis is a crucial step in disease management. This ...
A Novel WD-SARIMAX Model for Temperature Forecasting Using Daily Delhi Climate Dataset
A Novel WD-SARIMAX Model for Temperature Forecasting Using Daily Delhi Climate Dataset
Forecasting is defined as the process of estimating the change in uncertain situations. One of the most vital aspects of many applications is temperature forecasting. Using the Dai...
Rainfall Prediction using the SARIMAX and LSTM Methods in Semarang City
Rainfall Prediction using the SARIMAX and LSTM Methods in Semarang City
The purpose of this study is to predict the decade rainfall in Semarang City using two main methods, namely Seasonal Autoregressive Integrated Moving Average with Exogenous Variabl...
Total Quality Management Practices and Firm Performance in Non-Governmental Organizations in Nairobi City County, Kenya
Total Quality Management Practices and Firm Performance in Non-Governmental Organizations in Nairobi City County, Kenya
Most businesses in Kenya are grappling with reduced funding and performance challenges, leading them to implement rigorous restructuring measures. This includes downsizing their wo...
The Service Quality and Marketing Mix Influence to Customer Satisfaction of Pertamina Petrol Station
The Service Quality and Marketing Mix Influence to Customer Satisfaction of Pertamina Petrol Station
Petrol station company usually is classified as a trading company to sell fuel to customers. The service quality variable is as important as the goods (fuel) trading. The company s...
Chest Wall Hydatid Cysts: A Systematic Review
Chest Wall Hydatid Cysts: A Systematic Review
Abstract
Introduction
Given the rarity of chest wall hydatid disease, information on this condition is primarily drawn from case reports. Hence, this study systematically reviews t...
JAPONYA’NIN SİNOP PETROLÜNE İLGİSİ
JAPONYA’NIN SİNOP PETROLÜNE İLGİSİ
Japonya enerji kaynakları bakımından dışa bağımlı bir ülkedir. Bu açıdan enerji arzını dışardan sağlayan diğer ülkeler gibi Japonya için de enerji güvenliği, sanayileşme ve savunma...

