International Journal of Statistics and Applications
p-ISSN: 2168-5193 e-ISSN: 2168-5215
2025; 15(1): 1-13
doi:10.5923/j.statistics.20251501.01
Received: Mar. 30, 2025; Accepted: Apr. 23, 2025; Published: Apr. 29, 2025

Daramola Azeez Mustapha 1, 2, Samuel Olorunfemi Adams 1, Mary Unekwu Adehi 1
1Department of Statistics, University of Abuja, Abuja, Nigeria
2Department of Information and Communication Technology, National Bureau of Statistics, Abuja, Nigeria
Correspondence to: Samuel Olorunfemi Adams , Department of Statistics, University of Abuja, Abuja, Nigeria.
| Email: | ![]() |
Copyright © 2025 Scientific & Academic Publishing. All Rights Reserved.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/

The need to establish an appropriate model for the ever-changing pattern in climatic time series data is very important because it will lead to more accurate forecasts needed to make plans and decisions about climate change. In essence, this study will model and forecast climatic variable that usually exhibits seasonality, periodicity and as well non-linear. The study examines the forecasting accuracy of the artificial neural network (ANN), Seasonal Autoregressive Integrated Moving Average (SARIMA) and Fourier Autoregressive (FAR) model. The data utilized in this study is the monthly rainfall series extracted from the Nigeria Meteorological Agency (NIMET) for the period, January 1998 to December 2024. The study reveals that in the context of non-linearity, ANN was appropriate, for stationarity and seasonality, SARIMA was suitable while the FAR model was appropriate when seasonality and periodicity are of main concern. The study concluded that SARIMA, FAR and ANN models are useful models when modelling and forecasting Nigeria's monthly rainfall data when seasonality, periodicity and nonlinearity variations are simultaneously present in the series.
Keywords: ANN, FAR, SARIMA, Periodicity, Seasonality, Periodicity, Non-linearity
Cite this paper: Daramola Azeez Mustapha , Samuel Olorunfemi Adams , Mary Unekwu Adehi , Dynamic Time Series Models for Forecasting Climatic Variable, International Journal of Statistics and Applications, Vol. 15 No. 1, 2025, pp. 1-13. doi: 10.5923/j.statistics.20251501.01.
![]() | (1) |
are
independent variables and
is a dependent variable? In this sense, the neural network is functionally equivalent to a nonlinear regression model. On the other hand, for an extrapolative or time series forecasting problem, the inputs are typically the past observations of the data series and the output is the future value. The ANN performs the mapping function as![]() | (2) |
is the observation at time t. Thus the ANN is equivalent to the nonlinear autoregressive model for time series forecasting problems. It is also easy to incorporate both prediction variables and time-lagged observation into one ANN model, which amount to the general transfer function model. Before an ANN can be used to perform any desired task, it must be trained to do so.Training is the process of determining the arc weights which are the key elements of an ANN. The training input data is in the form of vectors of input variables or training patterns.The total available data is usually divided into a training set (in-sample data) and a test set (out-of-sample or hold-out sample) and a training pattern consisting of a fixed number of lagged observations of the series. Suppose we have N observations
in the training set and there is a need for one-step-ahead forecasting, then using an ANN with
input nodes, this gives
training patterns. The first training pattern will compose of
as inputs and
as the target output. The second training pattern will contain
as inputs and
as the desired output. Finally, the last training pattern will be
for inputs and
for the target output. If a multilayer perceptron has a linear activation function in all neurons, that is, a linear function that maps the weighted inputs to the output of each neuron, then it is easily proved with linear algebra that any number of layers can be reduced to the standard two-layer input-output. What makes a multilayer perceptron different is that some neurons use a nonlinear activation function which was developed to model the frequency of action potentials, or firing, of biological neurons in the brain.The two main activation functions that are used here are both sigmoid and are described by![]() | (3) |
![]() | (4) |
is the output and
is the level of training of the
node (Neuron).The former function is a hyperbolic tangent which ranges from -1 to 1, and the latter, the logistic function, is similar in shape but ranges from 0 to 1. Here
is the output of the ith node (neuron) and
is the weighted sum of the input synapses. The multilayer perceptron consists of three or more layers (an input and an output layer with one or more hidden layers) of nonlinearly-activating nodes and is thus considered a deep neural network. Each node in one layer connects with a certain weight
to every node in the following layer. Some people do not include the input layer when counting the number of layers and there is disagreement about whether
should be interpreted as the weight from
or the other way around.Learning occurs in the perceptron by changing connection weights after each piece of data is processed, based on the amount of error in the output compared to the expected result. This is an example of supervised learning and is carried out through back-propagation, a generalization of the least mean squares algorithm in the linear perceptron.The error in output node
in the
data point (training example) is represented by![]() | (5) |
is the target value and y is the value produced by the perceptron. Then the corrections to the weights of the nodes based on those corrections minimize the error in the entire output, given by![]() | (6) |
neuron in the
layer to the
neuron in the
layer
then
neuron in the
layer is given by![]() | (7) |
are respectively its output, activation function and bias.
and a moving average polynomial. The usual forms of
and
are written as![]() | (8) |
![]() | (9) |
and
are the autoregressive and moving average parameters respectively.
is the observed value at time
and
is the value of the random shock at time
. It is assumed to be independently and identically distributed with a mean of zero and a constant variance
ARMA
model comprised of AR and MA models, in which the current value of the time series is defined linearly in terms of its previous values as well as current and previous error series. The ARMA
model is given in Equation (10) as![]() | (10) |
to obtain ![]() | (11) |
where
with
and
consecutive differencing.
utilizes a lag operator
to process
.A seasonal ARIMA model may be written as:![]() | (12) |
is a lag operator defined as 
![]() | (13) |
![]() | (14) |
and
are polynomials of order
and
respectively;
and
are polynomials in
of degrees
and
, respectively;
is the order of non-seasonal autoregression;
is the number of regular differences;
is the order of non-seasonal moving average;
is the order of seasonal autoregression;
is the number of seasonal differences;
is the order of seasonal moving average; and
is the length of the season, [29] – [30].
were the white noise term
are assumed to be independent, the periodic autocovariance function (PeACF) is defined as ![]() | (15) |
at backward lag
. Then the PeACF for period
at back ward lag
is defined as:![]() | (16) |
![]() | (17) |
is the variance for the
season and
denote the periodically standardized time series, [15].
be a series of size
(say, N years and
periods) coming from a periodic stationary process
Then the sample estimate of
is called the sample periodic autocorrelation function given by;![]() | (18) |
is the sample periodic autocorrelation function calculated from![]() | (19) |
![]() | (20) |
.
be the source of the periodic time series data and the discrete Fourier transform of the periodic stationary process is![]() | (21) |
and
then the periodic autoregressive coefficients of order
for the
seasons will be obtained as fellows![]() | (22) |
![]() | (23) |
![]() | (24) |
![]() | (25) |
is the periodic estimator of
and
is the number of periodic autoregressive coefficients in the season, [15].
are white noise. Hence a careful analysis of the estimated residuals will be carried out by checking whether the residuals are white noise and this is done by computing the sample ACF and PACF of the residuals to see whether they do not form any pattern and whether all are statistically significant, that is, within two standard deviation with
. Other diagnostic checking in FAR includes plotting the residuals against time, fitted values, or other relevant variables to check for patterns or anomalies. Checking for autocorrelation in the residuals using plots or statistical tests, such as the Ljung-Box test and checking if residuals are normally distributed using plots or statistical tests, such as the Shapiro-Wilk test.![]() | (26) |
![]() | (27) |
and
is a constant.Equation (26) can be written as ![]() | (28) |
![]() | (29) |
![]() | (30) |
![]() | (31) |
![]() | (32) |
![]() | (33) |
The actual and predicted values for corresponding
values are denoted by
and
respectively. The smaller the value of PRMSE, PMAPE and PMAE, the better the forecasting performance of the model, [15].
|
|
The four suggested models were estimated using the ordinary least estimation method. The optimal model for rainfall will be chosen based on the smallest values of estimated Akaike information criteria (AIC), Schwarz information criteria and highest values of coefficient of determination
and Adjusted coefficient of determination given in Table 3. The optimal model for Nigerian monthly rainfall is
based on Table 3.
|
![]() | Figure 1. Time plot of Nigerian monthly rainfall from January 1998 to December 2024 |
![]() | (34) |
![]() | (35) |
for the monthly rainfall series, Equation (35) will be increased by one unit throughout, and this will give![]() | (36) |
|
|
|
![]() | (37) |

|
|
from the mean and dividing by the standard deviation that is![]() | (38) |
and it takes real-valued arguments and transforms them to the range (0, 1).The training stage was used to determine how the network processes the records. The batch training method is adopted since it can update the synaptic weights only after passing all training data records; that is, batch training uses information from all records in the training dataset and it is preferred because it directly minimizes the total error and the optimization algorithm.
|
|
|
for non-seasonal components and
for seasonal components, and the seasonal period (12), significantly impact estimation performance. The study carefully selected the model and parameter which is crucial for accurate forecasting. Fourier Autoregressive (FAR) model characteristics, especially the order of the autoregressive (AR) component and the number of Fourier terms, such as FAR (1), FAR (2) and FAR (3) used in this study, significantly impacted the estimation and forecast performance, with higher orders potentially capturing more complex patterns. The estimation and forecasting performance of Artificial Neural Network (ANN) models was significantly influenced by the architecture used, including the number of layers, neurons, and the type of activation functions used, as well as the training algorithms and rainfall dataset that was utilized in the study.From the results of the study, the time plot showed that Nigerian monthly rainfall is non-stationary and exhibits seasonal, cyclical variations and as well it is non-linear. Augmented Dickey fuller test was employed to test for stationarity, the series was stationary at the first difference that is, d =1. The autocorrelation and partial autocorrelation were used to determine the presence of seasonality and
was identified as the best model based on AIC and BIC values. The model was estimated and diagnosed using the least square method and Breusch and Pagan (B-P) test for the homoscedasticity of the residuals respectively. The SARIMA model was used to obtain a forecast for Nigeria's monthly rainfall based on forecast evaluation metrics like, MAE, RMSE and PMAE.Fourier autoregressive model which involved model identification, estimation and diagnostic checking and forecasting was employed to model the Nigerian monthly rainfall in the context of seasonality and periodicity variation present in the series. From the results, Fourier autoregressive, FAR (1) was identified for January to December periodic rainfall series using sample periodic autocorrelation and partial autocorrelation functions. The January to December fitted models in the equation were all validated using the values of PAIC and PBIC. To check the stability of the fitted model, a residual autocorrelation plot was used to show that the error terms were white noise. The validated periodic models were used to obtain an out-sample forecast while the out-sample forecast exhibited fluctuations from January 2025 to December 2026. The forecast was validated using the following forecast evaluations, MAE, RMSE and PMAE.ANN based on multilayer perception was used to model and predict Nigeria's monthly rainfall in the context of non-linearity. The result showed that 233 observations are trained, and 103 observations are tested and this implies that 233 observations are valid. This shows that 69.3% of the observations input are trained and 30.7% are tested. Prediction from the ANN model with respect to multilayer perception shows a slightly perfect match to the original data. The forecast performance evaluations for ANN based on a multilayer perception model were utilized to validate the forecast. To check the efficiency of the models that were used to forecast Nigeria's monthly rainfall based on the forecast performance evaluations (MAE, RMSE and PMAE) of the SARIMA, FAR and ANN models, there is an indication that the FAR model outperforms the SARIMA model when considering time series that exhibit both seasonal and cyclical variation simultaneously based on the forecasted values and their forecast performance evaluations while Artificial Neural Network based on multilayer perceptron will be considering when the non-linear characteristics of Nigeria monthly rainfall series are put in forward based on the model forecast performance evaluations.