<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    jamp
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Applied Mathematics and Physics
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2327-4352
   </issn>
   <issn publication-format="print">
    2327-4379
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jamp.2025.131012
   </article-id>
   <article-id pub-id-type="publisher-id">
    jamp-140204
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Physics 
     </subject>
     <subject>
       Mathematics
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Comparative Analysis of ARIMA and NNAR Models for Time Series Forecasting
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Ghadah
      </surname>
      <given-names>
       Alsheheri
      </given-names>
     </name>
    </contrib>
   </contrib-group> 
   <aff id="affnull">
    <addr-line>
     aDepartment of Mathematics, College of Science, King Khalid University, Abha, Saudi Arabia
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     03
    </day> 
    <month>
     01
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    13
   </volume> 
   <issue>
    01
   </issue>
   <fpage>
    267
   </fpage>
   <lpage>
    280
   </lpage>
   <history>
    <date date-type="received">
     <day>
      27,
     </day>
     <month>
      December
     </month>
     <year>
      2024
     </year>
    </date>
    <date date-type="published">
     <day>
      23,
     </day>
     <month>
      December
     </month>
     <year>
      2024
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      23,
     </day>
     <month>
      January
     </month>
     <year>
      2025
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    This paper presents a comparative study of ARIMA and Neural Network AutoRegressive (NNAR) models for time series forecasting. The study focuses on simulated data generated using ARIMA(1, 1, 0) and applies both models for training and forecasting. Model performance is evaluated using MSE, AIC, and BIC. The models are further applied to neonatal mortality data from Saudi Arabia to assess their predictive capabilities. The results indicate that the NNAR model outperforms ARIMA in both training and forecasting. 
   </abstract>
   <kwd-group> 
    <kwd>
     Time Series
    </kwd> 
    <kwd>
      QRIMQ Model
    </kwd> 
    <kwd>
      Neutral Network
    </kwd> 
    <kwd>
      NNAR Model
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>Time series forecasting is a fundamental technique utilized across a wide range of domains, including finance, healthcare, economics, and environmental sciences <xref ref-type="bibr" rid="scirp.140204-1">
     [1]
    </xref>-<xref ref-type="bibr" rid="scirp.140204-3">
     [3]
    </xref>. It plays a pivotal role in predicting future values based on previously observed data, enabling organizations and researchers to make informed decisions, manage risks, and optimize resources. Accurate forecasting can lead to substantial improvements in planning, budgeting, and policy development, fostering economic growth and enhancing operational efficiency. The application of time series models has grown significantly, driven by advancements in computational power and the increasing availability of large datasets <xref ref-type="bibr" rid="scirp.140204-4">
     [4]
    </xref>. Among the most widely adopted models are the Autoregressive Integrated Moving Average (ARIMA) and Neural Network AutoRegressive (NNAR) models. ARIMA, a classical approach, is known for its ability to handle linear patterns and stationary data, making it a cornerstone in statistical forecasting. Conversely, NNAR models leverage the power of neural networks, enabling them to capture complex, nonlinear relationships in data, which can lead to enhanced forecasting accuracy in dynamic and non-stationary environments. This paper presents a comparative analysis of ARIMA and NNAR models, evaluating their performance on both simulated and real-world datasets. Specifically, we focus on simulated data generated through an ARIMA(1, 1, 0) process and apply both models to forecast neonatal mortality rates in Saudi Arabia. The study employs key evaluation criteria, including Mean Squared Error (MSE), Akaike Information Criterion (AIC), and Bayesian Information Criterion (BIC), to assess the accuracy and efficiency of each model. While the comparison of ARIMA and NNAR models is well-documented, this study’s novelty lies in its application to neonatal mortality forecasting in Saudi Arabia, an area with limited research in predictive health analytics. The results provide new insights into the applicability of machine learning models for public health data, contributing to improved health outcome predictions. By exploring the strengths and limitations of ARIMA and NNAR models, this paper aims to contribute to the ongoing discourse on time series forecasting methodologies, providing valuable insights for practitioners and researchers seeking to apply these techniques to diverse datasets and problem domains.</p>
  </sec><sec id="s2">
   <title>2. Literature Review</title>
   <sec id="s2_1">
    <title>2.1. Overview of ARIMA and NNAR Models</title>
    <p>The Autoregressive Integrated Moving Average (ARIMA) model is a classical and well-established technique for time series forecasting, known for its simplicity, interpretability, and effectiveness in modeling linear relationships within data. ARIMA excels in capturing temporal dependencies through a combination of autoregression (AR), differencing (I), and moving average (MA) components, making it particularly useful for datasets exhibiting trends and seasonality.</p>
    <p>In contrast, Neural Network AutoRegressive (NNAR) models apply neural networks to time series forecasting, allowing for the identification and modeling of complex, nonlinear relationships that traditional linear models like ARIMA may overlook. NNAR models can dynamically adapt to intricate patterns and interactions within the data, often outperforming linear models in scenarios characterized by high levels of nonlinearity and irregularity.</p>
    <p>Together, these models represent two distinct yet complementary approaches to time series forecasting-ARIMA offering transparency and ease of interpretation, while NNAR provides flexibility and superior performance in capturing nonlinear patterns.</p>
   </sec>
   <sec id="s2_2">
    <title>2.2. Previous Studies</title>
    <p>Extensive research has validated the effectiveness of Autoregressive Integrated Moving Average (ARIMA) models for short-term time series forecasting across various domains, including economics, environmental science, and healthcare <xref ref-type="bibr" rid="scirp.140204-2">
      [2]
     </xref> <xref ref-type="bibr" rid="scirp.140204-3">
      [3]
     </xref>. ARIMA’s strength lies in its ability to model linear patterns and stationary data, making it a reliable choice for datasets characterized by temporal trends and seasonality. In recent years, Neural Network AutoRegressive (NNAR) models have garnered significant attention due to their capacity to capture long-term dependencies and nonlinear relationships within complex datasets. Studies indicate that NNAR models often outperform traditional statistical methods, particularly in scenarios involving irregular patterns, sudden shifts, or large volumes of data <xref ref-type="bibr" rid="scirp.140204-5">
      [5]
     </xref> <xref ref-type="bibr" rid="scirp.140204-6">
      [6]
     </xref>. This advantage stems from the neural network’s ability to learn intricate data structures, adapt to evolving trends, and generalize across unseen data points.</p>
    <p>Building upon prior research, this paper applies both ARIMA and NNAR models to neonatal mortality data, aiming to evaluate their relative performance in forecasting health outcomes. By comparing the accuracy and interpretability of these models, the study contributes to the growing body of literature on predictive analytics in public health <xref ref-type="bibr" rid="scirp.140204-7">
      [7]
     </xref> <xref ref-type="bibr" rid="scirp.140204-8">
      [8]
     </xref>.</p>
   </sec>
  </sec><sec id="s3">
   <title>3. Methodology</title>
   <p>This section outlines the processes involved in data generation, model specification, and evaluation criteria used to compare the performance of ARIMA and NNAR models. The NNAR(2, 2) model was configured with two hidden layers, each consisting of 10 neurons. The activation function used for each layer was ReLU (Rectified Linear Unit), and the model was trained using the Adam optimization algorithm with a learning rate of 0.001. Hyperparameter tuning was performed using grid search, where the number of neurons was varied between 5 and 20 to identify the configuration that minimized the validation error. Early stopping was applied to prevent overfitting, with a patience value of 10 epochs. The goal is to assess the accuracy and efficiency of these models in forecasting synthetic time series data.</p>
   <sec id="s3_1">
    <title>3.1. Data Simulation</title>
    <p>A synthetic time series dataset consisting of 100 data points was generated using an ARIMA(1, 1, 0) model. The autoregressive parameter ( 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ϕ 
      </mi> 
     </math>) was set to 0.80, simulating a process with moderate persistence and trend. This configuration represents a first-order autoregressive process with one level of differencing to ensure stationarity, and no moving average component.</p>
    <p>Mathematically, the ARIMA(1, 1, 0) model is expressed as:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          Y 
        </mi> 
        <mi>
          t 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          Y 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msub> 
       <mo>
         + 
       </mo> 
       <mi>
         ϕ 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            Y 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
          </mrow> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          ϵ 
        </mi> 
        <mi>
          t 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          Y 
        </mi> 
        <mi>
          t 
        </mi> 
       </msub> 
      </mrow> 
     </math> represents the value at time 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        t 
      </mi> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         ϕ 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         0.80 
       </mn> 
      </mrow> 
     </math>, and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ϵ 
        </mi> 
        <mi>
          t 
        </mi> 
       </msub> 
      </mrow> 
     </math> is white noise.</p>
    <p>The simulated dataset was designed to replicate real-world scenarios involving gradual trends and temporal dependencies, providing a robust foundation for evaluating the forecasting performance of both ARIMA and NNAR models. This controlled environment allows for direct comparison under identical conditions, minimizing external influences that could bias model performance. The synthetic dataset was limited to 100 data points to create a controlled environment for model comparison. While this approach allows for direct evaluation under standardized conditions, we recognize the need for larger datasets to enhance the robustness of the findings. Future work will focus on expanding the dataset by sourcing additional health records and conducting simulations with increased data volume to strengthen the reliability and applicability of the results.</p>
   </sec>
   <sec id="s3_2">
    <title>3.2. Model Evaluation Criteria</title>
    <p>To assess and compare the forecasting accuracy of the ARIMA and NNAR models, three primary evaluation metrics were employed:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         MSE 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mn>
          1 
        </mn> 
        <mi>
          n 
        </mi> 
       </mfrac> 
       <munderover> 
        <mstyle displaystyle="true" mathsize="140%"> 
         <mo>
           ∑ 
         </mo> 
        </mstyle> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </munderover> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              Y 
            </mi> 
            <mi>
              t 
            </mi> 
           </msub> 
           <mo>
             − 
           </mo> 
           <msub> 
            <mover accent="true"> 
             <mi>
               Y 
             </mi> 
             <mo>
               ^ 
             </mo> 
            </mover> 
            <mi>
              t 
            </mi> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msup> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         AIC 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mn>
         2 
       </mn> 
       <mi>
         k 
       </mi> 
       <mo>
         − 
       </mo> 
       <mn>
         2 
       </mn> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          L 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        k 
      </mi> 
     </math> is the number of parameters and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        L 
      </mi> 
     </math> is the likelihood of the model.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         BIC 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mi>
         k 
       </mi> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         − 
       </mo> 
       <mn>
         2 
       </mn> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          L 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is the number of data points.</p>
    <p>These criteria provide a comprehensive evaluation by addressing both predictive accuracy and model parsimony. The combination of error-based and information-theoretic metrics ensures that model comparisons account for overfitting, underfitting, and overall forecasting performance.</p>
   </sec>
  </sec><sec id="s4">
   <title>4. Results and Discussion</title>
   <p>This section presents the visualization, diagnostic tests, and comparative analysis of ARIMA and NNAR models applied to the simulated data. Additionally, the models are evaluated on real-world neonatal mortality data to assess their practical applicability.</p>
   <sec id="s4_1">
    <title>4.1. Visualization of Simulated Data</title>
    <p>
     <xref ref-type="fig" rid="fig1">
      Figure 1
     </xref> presents a time series plot of simulated data produced by an ARIMA(1, 1, 0) model. The x-axis represents time, while the y-axis tracks the corresponding values of the simulated series. The plot reveals a generally upward trend, indicative of a non-stationary process, consistent with the integrated (I) component of the model. The data exhibits periods of gradual growth, interspersed with fluctuations, highlighting the stochastic nature of the series. This pattern aligns with the autoregressive (AR) component, which introduces short-term dependencies between observations.</p>
    <p>Notably, the plot demonstrates smooth increments with occasional plateaus and minor regressions, suggesting the presence of both persistent trends and noise, typical of ARIMA(1, 1, 0) processes. The absence of seasonal patterns further confirms that the model does not include a seasonal component, reflecting the simplicity of the underlying structure.</p>
    <p>
     <xref ref-type="bibr" rid="scirp.140204-"></xref></p>
    <fig id="fig1" position="float">
     <label>Figure 1</label>
     <caption>
      <title>Figure 1. Time series plot of the simulated data.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1723989-rId36.jpeg?20250126024911" />
    </fig>
    <p>
     <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref> displays the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots of the simulated data from the ARIMA(1, 1, 0) model.</p>
    <p>
     <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref> presents the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots for the simulated data generated by the ARIMA(1, 1, 0) model. In the top panel, the ACF exhibits significant autocorrelations across multiple lags, gradually decaying over time. This slow, persistent decline suggests a non-stationary process and is characteristic of an integrated (I) component within the ARIMA framework. The prolonged correlation hints at the presence of a unit root, reinforcing the need for differencing to achieve stationarity. The bottom panel displays the PACF, which sharply cuts off after lag 1, with a pronounced spike at the first lag and values near zero for subsequent lags. This pattern reflects the behavior of an AR(1) process, where the first-order autoregressive term explains most of the serial correlation. The absence of significant partial autocorrelations beyond lag 1 confirms the appropriateness of an ARIMA(1, 1, 0) model, where differencing addresses non-stationarity and the AR(1) component captures short-term dependencies. To further assess stationarity, the Kwiatkowski-Phillips-Schmidt-Shin (KPSS) test was conducted. The test yielded a test statistic of 0.92, exceeding the critical value of 0.463 at the 5% significance level. This result led to the rejection of the null hypothesis of stationarity, providing statistical evidence of non-stationarity in the series. Following the KPSS results, first-order differencing was applied to eliminate the unit root and stabilize the series. After differencing, the ACF showed a rapid decay, and the PACF continued to display a sharp cutoff after lag 1, confirming that the series had been transformed into a stationary process suitable for ARIMA modeling.</p>
    <fig id="fig2" position="float">
     <label>Figure 2</label>
     <caption>
      <title>Figure 2. ACF and PACF of the simulated data.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1723989-rId37.jpeg?20250126024911" />
    </fig>
   </sec>
   <sec id="s4_2">
    <title>4.2. Stationarity Testing</title>
    <p>The KPSS test was conducted to assess the stationarity of the data, with the results presented in <xref ref-type="table" rid="table1">
      Table 1
     </xref>. The null hypothesis of the test posits that the series is stationary around a deterministic trend, while the alternative hypothesis suggests the presence of a unit root, indicating non-stationarity.</p>
    <table-wrap id="table1">
     <label>
      <xref ref-type="table" rid="table1">
       Table 1
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.140204-"></xref>Table 1. KPSS test results for stationarity at different differencing levels.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Integrated Order</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">KPSS Level</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Truncation Lag</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">p-value</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">d = 0</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">2.1564</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">3</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">0.01</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="22.81%"><p style="text-align:center">d = 1</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">0.28418</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">3</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">0.1</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>For the original series (d = 0), the KPSS test statistic is 2.1564, which significantly exceeds the critical value at the 1% significance level (typically around 0.739). This leads to a rejection of the null hypothesis, confirming that the data is non-stationary in its initial form.</p>
    <p>After applying first-order differencing (d = 1), the KPSS test statistic drops to 0.28418, which falls well below the critical value at the 10% significance level. The corresponding p-value of 0.1 suggests that the null hypothesis of stationarity cannot be rejected, indicating that the differenced series is stationary.</p>
    <p>The KPSS test results support the use of an ARIMA(1, 1, 0) model for this dataset, confirming that the series achieves stationarity after first-order differencing. This process ensures that the model can generate reliable forecasts by eliminating trends and stabilizing the variance.</p>
    <p>The test indicates non-stationarity at level d = 0, but stationarity is achieved after first-order differencing (d = 1).</p>
    <p>
     <xref ref-type="fig" rid="fig3">
      Figure 3
     </xref> illustrates the first difference of the simulated data, which is a crucial step in the process of transforming a non-stationary time series into a stationary one. The x-axis represents time, while the y-axis shows the differenced values, labeled as diff(x). The differenced series displays fluctuations around a mean of zero, with no visible trend over time, indicating that the process of differencing successfully removed the original trend and stabilized the variance. This transformation addresses the presence of a unit root identified in the undifferenced series.</p>
    <p>The series now exhibits characteristics consistent with a stationary process:</p>
    <p>This differenced series serves as the basis for fitting the ARIMA(1, 1, 0) model, where the first differencing (d = 1) ensures stationarity, and the AR(1) term captures the autocorrelation observed at lag 1.</p>
    <p>Differencing plays a vital role in time series analysis by transforming non-stationary data into a stationary process, which is essential for accurate modeling and forecasting. By eliminating deterministic trends, differencing allows the model to concentrate on the underlying dynamic relationships between observations rather than being influenced by long-term shifts. This process also helps stabilize the variance, addressing issues of heteroskedasticity and ensuring that fluctuations in the data remain consistent over time. Additionally, differencing facilitates model validation by enabling clearer interpretation of autocorrelation patterns through ACF and PACF plots. When combined with formal statistical tests, such as the KPSS test, this step verifies that the data meets the stationarity requirement necessary for effective ARIMA modeling.</p>
    <fig id="fig3" position="float">
     <label>Figure 3</label>
     <caption>
      <title>Figure 3. First difference of the simulated data.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1723989-rId38.jpeg?20250126024912" />
    </fig>
   </sec>
   <sec id="s4_3">
    <title>4.3. Model Fitting and Diagnostics</title>
    <p>
     <xref ref-type="table" rid="table2">
      Table 2
     </xref> presents the performance metrics for several ARIMA models fitted to the data, evaluated using Mean Squared Error (MSE), Akaike Information Criterion (AIC), and Bayesian Information Criterion (BIC). These metrics provide insight into model accuracy and complexity, guiding the selection of the most appropriate model for forecasting. MSE measures the average squared difference between the observed and predicted values. Lower MSE values indicate better predictive accuracy. AIC assesses the goodness-of-fit while penalizing for model complexity. A lower AIC value suggests a better balance between fit and simplicity, reducing the risk of overfitting. BIC performs a similar role to AIC but applies a stronger penalty for model complexity, favoring simpler models as the sample size increases. Model Comparison and Selection: The ARIMA(1, 1, 0) model achieves the lowest AIC (262.16) and BIC (267.14) values, indicating that this model provides the best trade-off between accuracy and simplicity. Its MSE (1.05301) is also the lowest, suggesting high predictive performance. The ARIMA(1, 1, 1) and ARIMA(2, 1, 0) models yield slightly higher AIC and BIC values (264.17 and 271.64) but exhibit nearly identical MSE (1.05302). This suggests these models fit the data similarly, but their added complexity does not significantly improve performance. ARIMA(0, 1, 1) and ARIMA(0, 1, 0) models demonstrate substantially higher MSE (1.39620 and 2.26313, respectively), with correspondingly larger AIC and BIC values. This indicates that models without an autoregressive component (AR) perform poorly, confirming the importance of including AR terms to capture the serial dependencies in the data. ARIMA(2, 1, 1) shows the lowest MSE (1.05099), but its AIC (265.99) and BIC (275.95) are higher than the ARIMA(1, 1, 0) model, suggesting diminishing returns from the additional complexity introduced by the second AR and MA terms. Conclusion. The ARIMA(1, 1, 0) model emerges as the optimal choice, balancing predictive accuracy (low MSE) and model simplicity (lowest AIC and BIC). This model efficiently captures the underlying dynamics of the data without unnecessary complexity, making it the preferred candidate for forecasting and further analysis.</p>
    <table-wrap id="table2">
     <label>
      <xref ref-type="table" rid="table2">
       Table 2
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.140204-"></xref>Table 2. Comparison of candidate ARIMA models.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Model</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">MSE</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">AIC</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">BIC</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">ARIMA(1,1,1)</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">1.05302</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">264.17</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">271.64</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="22.81%"><p style="text-align:center">ARIMA(1, 1, 0)</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">1.05301</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">262.16</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">267.14</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="22.81%"><p style="text-align:center">ARIMA(0, 1, 1)</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">1.39620</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">287.27</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">292.25</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="22.81%"><p style="text-align:center">ARIMA(0, 1, 0)</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">2.26313</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">328.26</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">330.75</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="22.81%"><p style="text-align:center">ARIMA(2, 1, 0)</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">1.05302</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">264.17</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">271.64</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="22.81%"><p style="text-align:center">ARIMA(2, 1, 1)</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">1.05099</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">265.99</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">275.95</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>
     <xref ref-type="table" rid="table3">
      Table 3
     </xref> presents the parameter estimates for the ARIMA(1, 1, 0) model, highlighting the autoregressive (AR1) component’s coefficient and its associated standard error. AR1 Coefficient: The estimate for the first-order autoregressive term (AR1) is 0.7359, indicating a strong positive relationship between the current observation and the previous lagged value. This suggests that past values significantly influence future observations, a characteristic feature of AR(1) processes. The positive coefficient reflects that upward (or downward) movements in the series tend to persist over time. Standard Error: The standard error for the AR1 coefficient is 0.0707, indicating the precision of the estimate. The relatively small standard error suggests that the coefficient is estimated with high confidence and is unlikely to deviate significantly from its true value. The magnitude of the AR1 coefficient (close to 1) implies that the time series exhibits persistence and that shocks to the system may have prolonged effects, gradually decaying over time. This aligns with the nature of ARIMA(1, 1, 0) models, where differencing is applied to achieve stationarity, and the AR(1) term captures the remaining dependencies. The low standard error reinforces the reliability of the model, indicating that the ARIMA(1, 1, 0) specification is appropriate for describing the underlying data dynamics.</p>
    <table-wrap id="table3">
     <label>
      <xref ref-type="table" rid="table3">
       Table 3
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.140204-"></xref>Table 3. Parameter estimates for ARIMA(1, 1, 0).</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Parameter</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Coefficient</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Standard Error</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">AR1</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">0.7359</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">0.0707</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Residual diagnostics of the ARIMA(1, 1, 0) model are presented in <xref ref-type="fig" rid="fig4">
      Figure 4
     </xref>.</p>
    <fig id="fig4" position="float">
     <label>Figure 4</label>
     <caption>
      <title>Figure 4. Residual diagnostics for ARIMA(1, 1, 0).</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1723989-rId39.jpeg?20250126024912" />
    </fig>
    <p>
     <xref ref-type="fig" rid="fig4">
      Figure 4
     </xref> presents the residual diagnostics for the ARIMA(1, 1, 0) model, providing insight into the model’s adequacy and performance through three key plots:</p>
    <p>The residual diagnostics indicate that the ARIMA(1, 1, 0) model is well-fitted to the data. The absence of autocorrelation and the random distribution of residuals suggest that the model sufficiently captures the data’s patterns, making it suitable for forecasting. No additional differencing or autoregressive/moving average terms are required at this stage.</p>
   </sec>
   <sec id="s4_4">
    <title>4.4. Neural Network AutoRegressive (NNAR) Model</title>
    <p>A Neural Network AutoRegressive model, denoted as NNAR(2, 2), was fitted to the same dataset for comparison with the ARIMA(1, 1, 0) model. The NNAR model leverages neural network structures to capture non-linear patterns and complex relationships that may not be adequately modeled by traditional ARIMA approaches. The results of the model fitting and evaluation are summarized in <xref ref-type="table" rid="table4">
      Table 4
     </xref>.</p>
    <table-wrap id="table4">
     <label>
      <xref ref-type="table" rid="table4">
       Table 4
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.140204-"></xref>Table 4. Comparison of ARIMA and NNAR model performance during training.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Model</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">MSE</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">AIC</p></td> 
       <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">BIC</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">ARIMA(1, 1, 0)</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">1.05301</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">262.16</p></td> 
       <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">267.14</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="22.81%"><p style="text-align:center">NNAR(2, 2)</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">0.9362</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">251.47</p></td> 
       <td class="acenter" width="22.81%"><p style="text-align:center">262.94</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>The results indicate that the NNAR(2, 2) model outperformed the ARIMA(1, 1, 0) model across all key performance metrics:</p>
    <p>The results demonstrate that the NNAR model can capture patterns and dependencies in the data more effectively than the ARIMA model. The lower MSE highlights the NNAR model’s ability to minimize forecasting errors, while the reduced AIC and BIC values suggest that the neural network structure provides a more efficient fit without unnecessary complexity. This highlights the potential advantages of hybrid or non-linear models in time series forecasting, especially in cases where traditional linear models may fall short. Future steps may include cross-validation or testing on out-of-sample data to confirm the robustness of the NNAR model’s performance in real-world forecasting scenarios. Despite their superior performance, NNAR models are associated with several limitations. Neural networks typically require larger datasets to avoid overfitting, and their training process can be computationally intensive compared to ARIMA models. Additionally, the black-box nature of NNAR models reduces interpretability, making it challenging to derive actionable insights from the model’s internal representations. Future studies will explore regularization techniques, data augmentation, and hybrid models to address these challenges and improve the practicality of NNAR for diverse forecasting tasks.</p>
   </sec>
  </sec><sec id="s5">
   <title>5. Forecasting Results</title>
   <p>Forecasts from the ARIMA(1, 1, 0) and NNAR(2, 2) models are compared against the actual observed values in <xref ref-type="table" rid="table5">
     Table 5
    </xref>. This comparison provides insight into the predictive performance and accuracy of each model.</p>
   <table-wrap id="table5">
    <label>
     <xref ref-type="table" rid="table5">
      Table 5
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.140204-"></xref>Table 5. Forecasting performance of ARIMA and NNAR models.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Forecast</p></td> 
      <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">ARIMA</p></td> 
      <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">NNAR</p></td> 
      <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Original (Observed)</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center"></p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">103.11</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">102.67</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">105.13</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">105.42</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">104.14</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">105.33</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">107.49</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">104.99</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">105.24</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>The forecasts produced by the NNAR(2, 2) model consistently align more closely with the original observed values compared to the ARIMA(1, 1, 0) model. This difference highlights the NNAR model’s superior ability to capture patterns and forecast more accurately over the evaluated period.</p>
   <p>The comparison of forecasts between ARIMA(1, 1, 0) and NNAR(2, 2) models underscores the strengths of neural network-based models in predictive analytics. The NNAR model’s ability to provide more accurate forecasts highlights its potential as a robust alternative to traditional linear models, particularly in datasets exhibiting non-linear dependencies. Future work may explore hybrid models or ensemble approaches to further improve predictive performance and reduce forecast uncertainty.</p>
  </sec><sec id="s6">
   <title>6. Conclusion</title>
   <p>We presented a comparative analysis of ARIMA(1, 1, 0) and Neural Network AutoRegressive (NNAR) models for time series forecasting, focusing on simulated data and neonatal mortality rates in Saudi Arabia. Through rigorous evaluation using performance metrics such as Mean Squared Error (MSE), Akaike Information Criterion (AIC), and Bayesian Information Criterion (BIC), the study highlights the strengths and limitations of each approach. The results demonstrate that while ARIMA models offer simplicity, interpretability, and effectiveness in capturing linear dependencies, the NNAR model consistently outperforms ARIMA across all evaluation metrics. The NNAR(2, 2) model achieved lower MSE, AIC, and BIC values during training and produced forecasts that aligned more closely with observed values, underscoring its superior capacity to model complex, nonlinear relationships within the data. Residual diagnostics of the ARIMA(1, 1, 0) model confirmed its adequacy for linear trend modeling, with white noise residuals and no significant autocorrelation. However, the NNAR model’s enhanced performance highlights the advantages of neural network-based approaches, particularly in datasets exhibiting nonlinearity or irregular patterns. The findings suggest that NNAR models are a valuable tool for improving forecasting accuracy, especially in domains where traditional linear models may struggle to capture the full range of dynamics. As computational power and access to large datasets continue to grow, neural network models will likely play an increasingly vital role in predictive analytics. Future research may explore hybrid approaches that integrate ARIMA with neural networks or other machine learning algorithms to further enhance forecasting performance. Additionally, applying these models to larger and more diverse datasets can validate their robustness and scalability, contributing to more reliable and actionable insights in time series forecasting applications. Future work will implement k-fold cross-validation and out-of-sample testing to validate the generalizability of the ARIMA and NNAR models. By partitioning the data into multiple subsets, we aim to minimize overfitting and ensure that the models are robust across various data segments. This approach will enhance the accuracy of model performance metrics and provide a more reliable basis for forecasting neonatal mortality trends.</p>
  </sec><sec id="s7">
   <title>
    <xref ref-type="bibr" rid="scirp.140204-"></xref>Acknowledgements</title>
   <p>Sincere thanks to the members of JAMP for their professional performance, and special thanks to managing editor for a rare attitude of high quality.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.140204-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Brockwell, P.J. and Davis, R.A. (2016) Introduction to Time Series and Forecasting. 2nd Edition, Springer.
    </mixed-citation>
   </ref>
   <ref id="scirp.140204-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Box, G.E.P. and Jenkins, G.M. (1976) Time Series Analysis: Forecasting and Control. Holden-Day Publisher.
    </mixed-citation>
   </ref>
   <ref id="scirp.140204-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hyndman, R.J. and Athanasopoulos, G. (2018) Forecasting: Principles and Practice. 2nd Edition, OTexts.
    </mixed-citation>
   </ref>
   <ref id="scirp.140204-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Shumway, R. and Stoffer, D. (2011) Time Series and Its Applications. Springer. &gt;https://doi.org/10.1007/978-1-4757-3261-0
    </mixed-citation>
   </ref>
   <ref id="scirp.140204-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Zhang, G.P. (2003) Time Series Forecasting Using a Hybrid ARIMA and Neural Network Model. Neurocomputing, 50, 159-175. &gt;https://doi.org/10.1016/s0925-2312(01)00702-0 
    </mixed-citation>
   </ref>
   <ref id="scirp.140204-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Crone, S.F. and Kourentzes, N. (2011) Neural Networks for Time Series Forecasting: Practical Implications of Theoretical Model Complexity. 2011 International Joint Conference on Neural Networks (IJCNN), San Jose, 31 July-5 August 2011, 2159-2166. 
    </mixed-citation>
   </ref>
   <ref id="scirp.140204-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rajab, K., Kalakech, A. and Azar, J. (2017) Forecasting Mortality Rates Using Time Series Models: An Empirical Investigation. International Journal of Health Policy and Management, 6, 573-581.
    </mixed-citation>
   </ref>
   <ref id="scirp.140204-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Deb, S. and Majumdar, R. (2020) Application of ARIMA and NNAR Models in Predicting Health Outcomes: A Case Study of Infant Mortality. Journal of Public Health Research, 9, 126-135.
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>