Next Article in Journal
Application of New Modified Genetic Algorithm in Inverse Calculation of Strong Source Location
Next Article in Special Issue
Early Warning Signals of Dry-Wet Transition Based on the Critical Slowing Down Theory: An Application in the Two-Lake Region of China
Previous Article in Journal
Study of the Possibility of Stimulating Cloud Convection by Solar Radiation Energy Absorbed in an Artificial Aerosol Layer
Previous Article in Special Issue
Contributions of Multiple Water Vapor Sources to the Precipitation in Middle and Lower Reaches of Yangtze River Based on Precipitation Recycle Ratio
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis of Temperature Variability, Trends and Prediction in the Karachi Region of Pakistan Using ARIMA Models

1
Mathematical Sciences Research Centre, Federal Urdu University of Arts, Sciences and Technology (FUUAST), Karachi 75300, Pakistan
2
Department of Humanities and Social Sciences, Bahria University, Karachi Campus, 13 National Stadium Road, Karachi 75260, Pakistan
3
Department of Sciences and Humanities, National University of Computer and Emerging Science, Karachi 44000, Pakistan
4
Institute of Space & Planetary Astrophysics (ISPA), University of Karachi, Karachi 75270, Pakistan
*
Author to whom correspondence should be addressed.
Atmosphere 2023, 14(1), 88; https://doi.org/10.3390/atmos14010088
Submission received: 17 November 2022 / Revised: 16 December 2022 / Accepted: 21 December 2022 / Published: 31 December 2022

Abstract

:
In this paper, the average monthly temperature of the Karachi region, Pakistan, has been modelled. The time period of the procured dataset is from January 1989 to December 2018. The Autoregressive Integrated Moving Average (ARIMA) modelling technique in conjunction with the Box–Jenkins approach has been applied to forecast the average monthly temperature of the study area. A total of 83.33% of the trained dataset is used for construction of the model, and the remaining 16.67% of the dataset is used for the validation of the model. The best-fitted model is identified as ARIMA (2, 1, 4), generated on the basis of minimum values of the Akaike Information Criterion (AIC) and Bayesian Information Criterion (BIC) procedures. The accuracy parameters considered are Root Mean Square Error (RMSE) and Mean Absolute Error (MAE). Both parameters show that the model is 98.152% and 98.413% accurate, respectively. In addition, the Autoregressive Conditional Heteroscedasticity-Lagrange Multiplier (ARCH-LM) test has been conducted to check the presence of heteroscedasticity in the residuals of the identified model. This test shows no heteroscedasticity present in the residual series. By means of Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots, the most appropriate orders of the ARIMA model are determined and evaluated. The model has been employed to investigate the time series variables’ precise impact on the scale of the regional warming scenario. Accordingly, the created model can help in determining future strategies related to weather conditions in the Karachi region. From the forecast result, it is found that the average temperature seems to show an increasing trend. Such an increasing trend can potentially upset the weather conditions and economic activities of the coastal area of Pakistan.

1. Introduction

Pakistan-like poor countries cannot afford the disasters due to abrupt change in climatic conditions. The temperature and rainfalls, which are important climate parameters, have already played and likely in future will play a devastating role through extreme weather events for third world countries like Pakistan. Pakistan is facing a serious challenge due to increasing temperatures and warming. Karachi, a large city in terms of urbanized structures, faced a powerful heat wave across in the month of July 2015 (The Daily Dawn, 10–15 July 2015). This emphasizes that heat waves can be brought on by the urbanization process in the form of the urban heat land mass effect [1]. Due to the high intensity heat wave, at least 1300 people died of heatstroke in Karachi, a port city of Pakistan. On that occasion the recorded temperature was above 40 °C (104 °F). The death tolls due to heatstroke were higher in Karachi than any other city.
One may wonder whether pollution and climate change were the major causes of higher deaths in Karachi, owing to heat-wave-borne suffocation [2]. Even though the cumulative effect of all these factors might have led to hundreds of deaths, pollution and climate change seem to be the major cause of disturbances in the human respiratory system, which are more severe for weaker and elderly people who are already unwell. Heatstroke can occur at any temperature over 40 °C, and requires professional medical help on an emergency basis. Furthermore, effective planning and timely responses are major problems for third world countries. The proper understanding of warming and forecasting of temperatures play a key role in effective future planning and combating such types of unpleasant weather events. Climate change is a major factor in understanding the intensity of other factors [3].
Similarly to 2015, this year’s torrential rains during the months of July and August have badly affected the major parts of Sindh, Punjab, Baluchistan and KPK. Karachi is the main city and capital of Sindh, and was submerged under water after heavy showers of rain. People were confined to their homes and no daily routine activities were possible for many weeks under such conditions. Such standing water can cause epidemic outbreaks in the form of viral or bacterial infections. Such incidents would be linked by many to the situtation of the suffering groups, as the majority of them are forced to live under highly unhygienic conditions (The Daily Dawn, July & August, 2022).
It is clear from the above and other extreme weather event occurrences that the abrupt changing of climate conditions is one of the greatest challenges and threats for humankind. It has already showed devastating effects on the environment and socio-economic conditions of the poor countries of the world. It has some drastic impacts on resources related to water, food security and agricultural products, human health and hygiene, and forest growth and diversity. Temperature plays a key role in understanding the influence of global warming scenarios on regional climate [4]. Temperature increases can potentially shift the time of crop seasons, which affects food security. Rapid temperature variations can also cause the spread of diseases, risking the health of humans due to epidemics or even a pandemic at global scale. The issues of melting glaciers, randomness in the hydrological cycle and the rise in sea levels are other severe challenges faced by coastal communities. Moreover, it is not difficult to assess that the underdeveloped countries of the world are suffering more than developed countries [5].
Pakistan, as one of the underdeveloped countries facing the severe challenge of climate change, can easily be hampered by heavy rains and floods, i.e., due to poor structures and infrastructures. Its agriculture and horticulture potential sectors are severely disturbed by natural calamity due to climate change. The coastal and major city of Karachi is also enormously entangled with climate change scenarios, as a result of poor urban planning. The factors changing the average monthly temperature in the Karachi region are the seasonal movement of the sun and carbon emissions from factories and traffic; some changes are caused by coastal sea breeze and rain. The average annual temperature in the Karachi region shows homogeneity [6].
The study of models constructed out of generated data and forecasted temperatures is one important scientific challenge. Such models based forecasting are essential for risk assessment in future planning and also to formulate various strategies related to agricultural and developmental activities. Different studies related to temperature variability problems at regional and global scales show that specific ARIMA models are more suitable for producing better results than other modeling techniques on account of using Root Mean Squared Error and Mean Absolute Error techniques in the building of the models [7]. Moreover, ARIMA modeling techniques are frequently used to study the evolution of economic time series. It can also be demonstrated that ARIMA models are quite valuable in the study of the evolution of climate change, which has already posed many concerns. It is possible to confirm regional warming and global warming by ARIMA models through their predicting abilities [8].
It should be mentioned that ARIMA models are not only techniques to study and forecast the climate change problem and for the evaluation of climate indices; rather, ARIMA models in a broad sense deliver more precise projections—specifically, forecasts of the interval—and seem more consistent than other commonly used statistical methods. Some researchers [9] found that the procedures of ARIMA-based forecasting models are superior to common statistical techniques in interpreting data and consistent near-term, locality-specific temperatures and precipitation forecasts.
Likewise, for understanding the issues of climate change, analysis related to trending can be used to study the variability of climate and desirable period trends. Although climate change is a potential threat at global scale, it poses a more devastating threat for poor regions, like Pakistan and similar poor countries. The problem for poor countries is that they are not fully equipped to combat climate change challenges. Pakistan, as a poor country, is in danger due to rapid global and regional climate change and, in particular, random variability in temperature and precipitation. The two most important variables in climate change scenarios are temperature and precipitation. These two variables can potentially change the hydrological cycle and ecological processes [10].
The basic character of obtained models should be that they capture the dynamics of the time series data and yield sensible forecasts. In their power to reproduce forecasts, ARIMA models are now efficient tools in many meteorological applications to estimate air temperature and precipitation [11].
A number of previous studies used statistical techniques that include seasonal and non-seasonal unit root testing and ARIMA and GARCH modeling [12]. The forecasting results of these studies confirm the findings of many other earlier studies, i.e., global mean temperatures significantly increased during the course of the 20th century.
Temperature forecasting can provide a concrete and outcomes-oriented understanding related to the evolutionary growth of regional temperatures as well as a guideline for promoting sustainable development on a regional scale. The Intergovernmental Panel on Climate Change (IPCC) Fifth Assessment Report has indicated that the average temperature change of oceanic surface and land was computed to be a 0.85 °C increase for the period from 1880 to 2012. The facts about terrestrial temperature increase do not stop there: the IPCC Report [13] indicated a further increase in temperature, reaching 1.5 °C in the coming two decades. According to this report, the world will suffer from an environmental disaster unless drastic cuts in carbon emissions coming from anthropogenic activities are ensured. Similarly, the variability in temperature can be categorized by observable local structures, and have substantial influences on humanity and overall environmental degradation. Regional temperature forecasting provides important theoretical values for understanding the macroscopic evolution of temperature, which will provide guidance for framing relevant policies related to regional sustainable development [14].
Besides anthropogenic contributions as already discussed, inconstant solar radiation flux also plays a central role in changing the climatic conditions of the Earth. Different investigations showed that the changeability in ultraviolet solar irradiance due to sunspot activity can be linked to fluctuations in surface pressure. The results obtained in previous studies regarding 11 year solar cyclic timescales and timescales on the centennial level indicated the potential for larger regional temperature variability effects. It has been shown that the forcing due to solar activity is a significant basis of uncertainty in the projections of the regional climate [15,16]. This research shows that even in the regional climate change scenario, solar forcing plays a significant role in addition to anthropogenic factors.
In this study, a suitable time series ARIMA model has been developed for making temperature forecasts for the Karachi station for the period from 1989 to 2018. ARIMA models are used to study and forecast the average temperatures of the Karachi region. Similar results are found as those obtained by Islam and Zakaria [17] in the context of Bangladesh. The results communicated through the studies [7,8,9] were also similar to ours. From their forecast results, they found that average temperature trends are increasing on the regional scale. The results of increasing trends of temperatures are obtained for this study in the context of the coastal area of the Karachi region, and are alarming for the coastal population. It is an established fact that the climate of the Earth is changing. This simply indicates that the regional climate is also varying. A proper consideration regarding the nature and scale of possible climate changes oriented toward temperature variability of Karachi region seems crucial to adopt better mitigation and adaptation measures.

2. Materials and Methods

2.1. Study Area and Data Source

The location of Karachi is along the shoreline of the Arabian Sea in the Sindh province of the southern part of Pakistan. This coastal plain has dispersed rocky projections, hills and marshlands. The total area of Karachi is 3780 km2 and it had a population of over 16,839,950 in 2022. Karachi serves as a transport hub due to its two seaports, Karachi Port and Port Bin Qasim, as well as its airport, which is the busiest in Pakistan. The weather of Karachi in winter is mild and warm whereas the summers are humid and hot. The level of humidity generally remains high in the months from March to November; however, it remains low during winters owing to the changing of the wind direction towards the north-east. In the winter seasons the temperature of Karachi sometimes falls below 10 °C, but the temperature in the day time remains about 26 °C.
We have obtained monthly average temperature data from Karachi station for the period from 1989 to 2018 from the Pakistan Meteorological Department (PMD). From that period onwards, the social and natural environment in Karachi tremendously transformed, making it the biggest city in Pakistan, and also the worst city with respect to various forms of pollution and random urbanization. Amidst a fast growing population and random urbanization in Karachi, it is more important now than ever to address with urgency mitigation and adaptation measures in a robust way. The average monthly time series data of temperature in Karachi from 1989 to 2013 was used as training data, and the data from 2014 to 2018 was used to verify the ARIMA model. The data analysis was carried out by computer software Microsoft Excel and E-Views.

2.2. The Approach of Box and Jenkins

Box and Jenkins [18] suggested a methodology that entails four steps, namely:
Identifying the most suitable model. As the first step for identifying an appropriate model, the differencing procedure needs to be applied to get a stationary time series. In this way, one can check the presence of random nature in a dataset. The correct orders of the AR and MA components can be decided in this way. For an MA process the autocorrelation plot becomes zero after a point, whereas geometrically an AR system tends to degenerate. In an ARMA process the autocorrelation plot displays diverse peaks and patterns; they nevertheless stop after a certain point. By using such a procedure one can arrive at a rough sketch of an ARMA model. This procedure does not provide any clear-cut guidelines, but rather leads to a judgmental procedure.
Estimating parameters of the model. In the next step, one can try to estimate an ARMA model tentatively identified as above. It is quite straightforward to estimate the AR model. One needs to ensure the estimation by the Ordinary Least Squares technique, and is then required to reduce the error sum of squares z t 2 . To perform the estimation of MA models, a grid-search technique was proposed by Box–Jenkins to compute z ^ t by means of consecutive replacement for all values of the MA factors and to select the parameter values that reduce the error sum of squares z ^ t 2 . As indicated in the procedure related to constructing the ARMA models, the AR and MA portions are required to be estimated.
Diagnostic testing about relevance. An important step is to trial the selected model through a diagnostic test. As soon as the AR, MA and ARMA are fitted to a specify time series, it becomes critical to check whether the selected model can provide sufficient account of the required details or not. The requirement is to closely look into the fit as well as the total estimated parameters by using the Akaike Information Criterion (AIC) and Bayesian Information Criterion (BIC).
If s is the total number of parameters estimated
A I C ( s ) = n l o g σ ^ 2 + 2 s  
and
B I C ( s ) = n   l o g     σ ^ 2 + s   l o g   n
In the above expressions n represents the size of the sample. Suppose that RSS = z t 2 the residual sum squares, then
σ ^ 2 = R S S n p
When there is more than one ARMA model, we need to select the model with the lowest AIC or BIC.
Forecasting based on the final model. Assuming that a model has been estimated having n observations, then to forecast we have yn+k to obtain the k-periods’ forward forecasts. First, we write the expression for yn+k and replace all future values yn+k (0 < j < k) in the form of factors, and zn+j (j > 0) by zero (as the predictable value is zero). Finally, we substitute all zn−j (j ≥ 0) by the forecast residuals.

2.3. The ARIMA Model

A stationary time series can be modeled by the Autoregressive Moving Average (ARMA) technique. The ARMA model is a combination of autoregressive (AR) and moving average (MA) terms. The order p and q is made by joining the terms of AR of order p and MA of order q models. The major drawback of the ARMA model is that it assumes the time series data as stationary process; however, the real world data are not stationary in nature. The non-stationary time series data are transformed as stationary by the differencing process. Generally, the first order differencing process of time series turns out to be stationary. However, if an ARMA time series is transformed as stationary by the differencing of order d, it is identified as an Autoregressive Integrated Moving Average process and represented by ARIMA (p, d, q).
Historically, Box and Jenkins developed such ARIMA modeling techniques to build a class of models that entails a time-domain method, usually conditioned to fitting and predicting time series showing temporal relationships. Since that time, various ARIMA models have been developed to study and forecast the time series related to climate variables, e.g., monthly temperature and rainfall [9]. The time-based association scale presented in a time series will figure out the values of the AR and MA parts, whereas the differencing term plays the role of transformation; by this factor a non-stationary time series can be transformed into stationary one.
The combined expression is [17]
y ´ t = c + ϕ 1 y ´ t 1 + + ϕ p y ´ t p + θ 1 ϵ t 1 + + θ q ϵ t q + ϵ t  
where c denotes a constant term in a time series, that is also identified in the form of a drift term when (d = 1), c + ϕ 1 y ´ t 1 + + ϕ p y ´ t p represents the AR term in which ϕ 1 to ϕ p are coefficients of p order, θ 1 ϵ t 1 + + θ q ϵ t q stands for the MA in which θ 1 to θ q are coefficients of q order, ϵ t error term at time t, and y ´ t is the differenced series.
Differencing at first order,
y ´ t = y t y t 1
where the observation taken at time t is yt.
After determining the order and estimating the coefficients, a time series through fitting the model is required to achieve both point forecasts and interval forecasts [9].

3. Results and Discussions

3.1. Application of Descriptive Statistics

The average monthly temperature series of the Karachi station are computed and presented in Table 1. To accomplish the task, the descriptive statistics are used to compute mean, standard deviation, maximum and minimum temperatures. The value of the mean is 26.98722 and standard deviation is 4.303588, while the minimum and maximum values of the temperature are 17.25000 and 33.75000, respectively. The purpose of computing these statistical parameters is to check the overall behavior of temperature data for the entire period.
The monthly average temperature data of the Karachi station is used to study the behavior of time series. Figure 1 shows the plot of monthly average temperature. The varied peaks of the plot for the temperature series show the fluctuation of average monthly temperature.

3.2. Box-Jenkins Approach and ARIMA Models

The recorded daily mean temperature data were taken for the period from 1 January 1989 to 31 December 2018. Then the daily mean temperature data were converted into average monthly data (360 observations). Moreover, the average monthly data were separated into two sets, i.e., the training set (83.33%) that is consisted of 300 observations, and the validation set (16.67%) that consisted of 60 observations. After such divisions of the dataset, the modelling was performed using the Box–Jenkins approach by training data. For the purpose of checking whether data were stationary or not, the ADF test was conducted. In this way, it is easier to estimate and develop an appropriate model.
Corresponding values from the obtained results are displayed in Table 2. This shows that the training dataset has been used from here onwards and computed the values.
From Table 2, one may infer that the null hypothesis about the series stationarity should not be rejected, as the ADF test shows critical values at less than 5% significance. From the consideration of the ADF test, the temperature series stationarity has been achieved.
Once the time series stationarity is attained at the first difference, it is essential to examine the model’s ARIMA (p, 1, q) type, in which p and q are possible orders of AR and MA terms. Keeping in mind the dictum, the computations were performed for identification of suitable values of p and q, by ACF and PACF of the series, which is depicted through the Figure 2 below.
Given that when the tested PACF (of Figure 2) entails single significant autocorrelation at lag 1, it is hypothesized that the ARMA model to be fitted AR order should be 1. In this way, the subsequent models will be reflected as promising models to signify the original series. These models are: (i) ARIMA (1, 0, 0), (ii) ARIMA (1, 0, 1), (iii) ARIMA (1, 0, 2), (iv) ARIMA (2, 0, 0) (v) ARIMA (2, 0, 1) and (vi) ARIMA (2, 0, 2). A total of 24 ARIMA models have been run, and their respective AIC and BIC values are given in Table 3 below.
All models as displayed in Figure 3 are stationary at first difference, (2, 4)(0, 0) = (2, 1, 4). The results in Table 3 show that the model that has the maximum log likelihood estimates and the lowest AIC and BIC values was the ARIMA (2, 1, 4) model. Thus, it can be concluded that the best model for this study is ARIMA (2, 1, 4). Moreover, as is indicated in Table 4, the constant term and AR(1) term are significant in our selected models.

3.3. Diagnostic Test of Fitted Model

Randomness: The simplest form of a time series is a random process. In a random time series, the mean and variance of the observations fluctuate constantly and independently. In a sense, there is no pattern in a random time series. Moreover, the variance does not increase over periods of different observations. From Figure 4, it is clear that the residuals of the designated model are comparatively insignificant. Thus, the residuals of the fitted model should be considered as randomly distributed.
Normality: For the residuals of the selected model, normal probability plot technique was carried out for checking residuals, whether they are normal or not. In the following, the standard chart of residuals is plotted, which is also called Normal Probability Plot (NPP).
In Figure 5, it is shown that the respective Jarque–Bera statistic and p value are (JB = 1.364924, p = 0.505371). Accordingly, these respective values of JB and p confirm that the residual series is normally distributed.
The NPP reveals that the residuals are normal and there exist no outliers. This has also been confirmed by the Jarque–Bera test of normality. The JB statistic is 1.364924 with p value = 0.505371. The null hypothesis of the JB test is that the residuals are normally distributed. The p value for this test is higher than 5% level of significance, confirming that residuals are normal.
Testing the Heteroscedasticity: Through ARCH-LM test, the heteroscedasticity of the established model was observed. The obtained results in relation to heteroscedasticity of residuals are shown in Table 5. The values show that the heteroscedasticity does not exist at 5% significance level (p = 0.368). The reason is that the associated p value relating to the F-statistic is much greater than 5% significance level.
In connection with the detailed analysis of residuals, it now becomes easier to confirm that the ARIMA (2, 1, 4) model as developed can fulfill all the diagnostic tests. Therefore, ARIMA (2, 1, 4) should be the best fitted model, which can be used to forecast the average monthly temperature of the Karachi region for the period 1989 to 2018.

3.4. Forecasting Temperature Using ARIMA (2, 1, 4)

It is better to confirm the model as developed with observed data (training set), as well as an independent dataset (validation set), instead of making forecasts. The forecasts’ errors of validation set of observed data are given below.
From Table 6, the values of RMSE (1.848532) and MAE (1.586789), respectively, show that ARIMA (2, 1, 4) is the best fitted model; the deviation shows within acceptable range. In Figure 6, the projected and observed values are depicted.
In the Figure 7, the temperature forecasts were generated based on the best-fitted ARIMA (2, 1, 4) model. It is clear from the generated values that the actual and forecasted values from 2014 to 2018 are close. There is no awkward type of fluctuation in the values of time series. This shows that the model seems to work accurately. The model’s accuracy is also confirmed by MAE and MAPE tests. Moreover, the out-of-sample forecasted values are also computed from January 2019 to December 2030, depicted in Figure 7.

4. Conclusions

Time series analysis is one of the important techniques in model building and forecasting of regional temperatures. In this study, the ARIMA technique was employed for building the model and forecasting the monthly average temperature of Karachi station from Jan 1989 to December 2018. The best fitting model for temperature was identified as ARIMA (2, 1, 4). The developed model was verified using diagnostic tests. It is confirmed that the residual series is normally distributed. RMSE and MAE for the validation set from the ARIMA (2, 1, 4) model show no deviation from the observed data, which should be considered as being within the acceptable range. Consequently, this developed model can help in determining possible future strategies related to the weather conditions of Karachi station. The ARCH-LM test was conducted to observe the heteroscedasticity of the developed model. The results regarding the heteroscedasticity of residuals do not show the existence of heteroscedasticity at 5% significance level. This work can further be augmented with more robust modeling techniques in future endeavors related to regional warming and temperature variability on the regional scale.

Author Contributions

Validation, K.F.; Data curation, A.K. and O.A.; Writing—original draft, M.A.; Writing—review & editing, S.A.; Supervision, K.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research has availed no funding directly or indirectly.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data was obtained from PMD and are available from the corresponding authors with the permission of PMD.

Acknowledgments

The authors specially acknowledge the PMD for ensuring the data availability for this work. Especial thanks are also due to the anonymous reviewers for their valuable comments, which greatly improved the manuscript. The contents of this research paper from part of the first author’s doctoral thesis.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Xu, Y.; Gao, W.; Fan, J.; Zhao, Z.; Zhang, H.; Ma, H.; Wang, Z.; Li, Y.; Yu, L. Comparison of Urban Canopy Schemes and Surface Layer Schemes in the Simulation of a Heatwave in the Xiongan New Area. Atmosphere 2022, 13, 1472. [Google Scholar] [CrossRef]
  2. Schaffer, A.L.; Dobbins, T.A.; Pearson, S.A. Interrupted time series analysis using autoregressive integrated moving average (ARIMA) models: A guide for evaluating large-scale health interventions. BMC Med. Res. Methodol. 2021, 21, 58. [Google Scholar] [CrossRef] [PubMed]
  3. Patz, J.A.; Campbell-Lendrum, D.; Holloway, T.; Foley, J.A. Impact of regional climate change on human health. Nature 2005, 438, 310–317. [Google Scholar] [CrossRef] [PubMed]
  4. James, R.; Washington, R.; Schleussner, C.-F.; Rogelj, J.; Conway, D. Characterizing half-a-degree difference: A review of methods for identifying regional climate responses to global warming targets. WIREs Clim. Change 2017, 8, e457. [Google Scholar] [CrossRef] [Green Version]
  5. Betts, R.; Alfieri, L.; Bradshaw, C.; Caesar, J.; Feyen, L.; Friedlingstein, P.; Gohar, L.; Koutroulis, A.; Lewis, K.; Morfopoulos, C.; et al. Changes in climate extremes, fresh water availability and vulnerability to food insecurity projected at 1.5 °C and 2 °C global warming with a higher-resolution global climate model. Philos. Trans. R. Soc. A 2018, 376, 20160452. [Google Scholar] [CrossRef] [PubMed]
  6. Burney, S.M.A.; Barakzai, M.A.; James, S.E. Forecasting monthly maximum temperature of Karachi city using time series analysis. Pak. J. Eng. Technol. Sci. 2017, 7, 125–135. [Google Scholar]
  7. Arnell, N.W.; Lowe, J.A.; Challinor, A.J.; Osborn, T.J. Global and regional impacts of climate change at different levels of global temperature increase. Clim. Change 2019, 155, 377–391. [Google Scholar] [CrossRef] [Green Version]
  8. Hecke, T.V. Time series analysis to forecast temperature change. Math. Sci. 2010, 35, 63–69. [Google Scholar]
  9. Lai, Y.; Dzombak, D.A. Use of the autoregressive integrated moving average (ARIMA) model to forecast near-term regional temperature and precipitation. Am. Meteorol. Soc. 2020, 35, 959–976. [Google Scholar] [CrossRef] [Green Version]
  10. Mahmood, R.; Jia, S.; Zhu, W. Analysis of climate variability, trends, and prediction in the most active parts of the Lake Chad basin, Africa. Sci. Rep. 2019, 9, 6317. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  11. Murat, M.; Malinowska, I.; Gos, M.; Krzyszczak, J. Forecasting daily meteorological time series using ARIMA and regression models. Int. Agrophys. 2018, 32, 253–264. [Google Scholar] [CrossRef]
  12. Romilly, P. Time series modelling of global mean temperature for managerial decision-making. J. Environ. Manag. 2005, 76, 61–70. [Google Scholar] [CrossRef] [PubMed]
  13. IPCC. Climate Change: Impacts, Adaptation, and Vulnerability. Contribution of Working Group II to the Sixth Assessment Report of the Intergovernmental Panel on Climate Change; Pörtner, H.-O., Roberts, D., Tignor, M., Poloczanska, E., Mintenbeck, K., Alegría, A., Craig, M., Langsdorf, S., Löschke, S., Möller, V., et al., Eds.; Cambridge University Press: Cambridge, UK, 2022; in press. [Google Scholar]
  14. Wang, H.; Huang, J.; Zhou, H.; Zhao, L.; Yuan, Y. An integrated variational mode decomposition and ARIMA model to forecast air temperature. Sustainability 2019, 11, 4018. [Google Scholar] [CrossRef] [Green Version]
  15. Ineson, S.; Maycock, A.C.; Gray, L.J.; Scaife, A.A.; Dunstone, N.J.; Harder, J.W.; Knight, J.R.; Lockwood, M.; Manners, J.C.; Wood, R.A. Regional climate impacts of a possible future grand solar minimum. Nat. Commun. 2015, 6, 7535. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  16. Ali, K.; Murshad, R.; Sajjad, A. Applicability of sunspot activity on the climatic conditions of Gilgit-Baltistan region using fractal dimension rescaling method. Energy Sources Part A Recovery Util. Environ. Eff. 2021. [CrossRef]
  17. Islam, M.; Zakaria, M.T. Forecasting of maximum and minimum temperature in the Cox’s Bazar Region of Bangladesh based on time series analysis. IOSR J. Math. IOSR-JM 2019, 15, 56–67. Available online: www.iosrjournals.org (accessed on 17 November 2022).
  18. Box, G.E.P.; Jenkins, G.M. Time Series Analysis; Holden-Day: San Francisco, CA, USA, 1970. [Google Scholar]
Figure 1. The plot of average monthly temperature data series of Karachi station.
Figure 1. The plot of average monthly temperature data series of Karachi station.
Atmosphere 14 00088 g001
Figure 2. Depiction of ACF and PACF values of the temperature series.
Figure 2. Depiction of ACF and PACF values of the temperature series.
Atmosphere 14 00088 g002
Figure 3. Graphical representation of the ARIMA criteria.
Figure 3. Graphical representation of the ARIMA criteria.
Atmosphere 14 00088 g003
Figure 4. Residuals of designated model through plotting ACF and PACF.
Figure 4. Residuals of designated model through plotting ACF and PACF.
Atmosphere 14 00088 g004
Figure 5. Depicting through the normal probability plot of residuals.
Figure 5. Depicting through the normal probability plot of residuals.
Atmosphere 14 00088 g005
Figure 6. Graph depicting observed and forecasted values of time series.
Figure 6. Graph depicting observed and forecasted values of time series.
Atmosphere 14 00088 g006
Figure 7. Depiction of extended forecast values through time series.
Figure 7. Depiction of extended forecast values through time series.
Atmosphere 14 00088 g007
Table 1. The temperature data period is from 1 January 1989 to 31 December 2018.
Table 1. The temperature data period is from 1 January 1989 to 31 December 2018.
Variable MeanStd. Dev.MinimumMaximum
Temperature26.987224.30358817.2500033.75000
Table 2. The values of unit test of training dataset.
Table 2. The values of unit test of training dataset.
Null Hypothesis: Temp Is Stationary at First Differenced
ADF test statistic −20.52576
Critical values
1% level−3.452911
5% level−2.871367
10% level−2.572078
Table 3. The computed values of fitted models.
Table 3. The computed values of fitted models.
ModelLogLAIC *BIC
(2, 4)(0, 0)−538.3341123.6544093.753417
(4, 4)(0, 0)−553.7825753.7711213.894882
(2, 3)(0, 0)−563.7086583.8174493.904082
(3, 4)(0, 0)−562.0147113.8194963.930881
(3, 3)(0, 0)−563.6954893.8240503.923059
(3, 2)(0, 0)−567.9238133.8456443.932277
(2, 2)(0, 0)−576.4571483.8960343.970291
(4, 1)(0, 0)−592.5938204.0106614.097293
(4, 3)(0, 0)−591.9314364.0196084.130993
(3,1)(0,0)−595.0525074.0204184.094674
(2, 1)(0, 0)−596.2554304.0217754.083656
(4, 2)(0, 0)−594.3675514.0292144.128223
(0, 4)(0, 0)−616.3772004.1630584.237315
(1, 3)(0, 0)−622.1293504.2015344.275791
(3, 0)(0, 0)−642.0478514.3280794.389960
(4, 0)(0, 0)−641.8139304.3332044.407460
(1, 4)(0, 0)−642.8022444.3465034.433136
(1, 2)(0, 0)−649.4726714.3777444.439624
(2, 0)(0, 0)−650.9573314.3809854.430490
(0, 3)(0, 0)−652.9657774.4011094.462989
(1, 0)(0, 0)−670.0716624.5021524.539280
(0, 1)(0, 0)−670.4032864.5043704.541498
(1, 1)(0, 0)−713.7909664.8012774.850782
(0, 0)(0, 0)−727.0521564.8766034.901355
(0, 2)(0, 0)−725.7358284.8811764.930680
Table 4. The estimated parameter of ARIMA (2, 1, 4) as the best fitted model.
Table 4. The estimated parameter of ARIMA (2, 1, 4) as the best fitted model.
Dependent Variable: D(AVGTEMP)
VariableCoefficientStd. Errort-StatisticProb.
C0.0042380.0017202.4634410.0143
AR(1)1.7300600.003806454.50690.0000
AR(2)−0.9972700.003574−279.01210.0000
MA(1)−2.1086840.522888−4.0327670.0001
MA(2)0.9503780.5248311.8108260.0712
MA(3)0.7526990.3587232.0982770.0367
MA(4)−0.5943870.459242−1.2942800.1966
SIGMASQ2.0552600.5722803.5913510.0004
R-squared0.728813Mean dependent var0.008528
Adjusted R-squared0.722289S.D. dependent var2.757568
S.E. of regression1.453190Akaike info criterion3.654408
Sum squared resid614.5227Schwarz criterion3.753417
Log likelihood−538.3341Hannan–Quinn criter.3.694036
F-statistic111.7228Durbin–Watson stat1.740968
Prob(F-statistic)0.000000
Inverted AR Roots0.87 − 0.50i0.87 + 0.50i
Inverted MA Roots1.000.87 − 0.43i0.87 + 0.43i−0.63
Table 5. Obtained results for checking heteroscedasticity of residuals.
Table 5. Obtained results for checking heteroscedasticity of residuals.
ARCH-LM Test
F-statistic0.805623Prob0.3701
Obs* R-squared 0.808876Prob0.3685
Table 6. Forecast performance of ARIMA (2, 1, 4) model.
Table 6. Forecast performance of ARIMA (2, 1, 4) model.
Type of DataPeriodRMSEMAE
Validation set2014–20181.8485321.586789
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Amjad, M.; Khan, A.; Fatima, K.; Ajaz, O.; Ali, S.; Main, K. Analysis of Temperature Variability, Trends and Prediction in the Karachi Region of Pakistan Using ARIMA Models. Atmosphere 2023, 14, 88. https://doi.org/10.3390/atmos14010088

AMA Style

Amjad M, Khan A, Fatima K, Ajaz O, Ali S, Main K. Analysis of Temperature Variability, Trends and Prediction in the Karachi Region of Pakistan Using ARIMA Models. Atmosphere. 2023; 14(1):88. https://doi.org/10.3390/atmos14010088

Chicago/Turabian Style

Amjad, Muhammad, Ali Khan, Kaniz Fatima, Osama Ajaz, Sajjad Ali, and Khusro Main. 2023. "Analysis of Temperature Variability, Trends and Prediction in the Karachi Region of Pakistan Using ARIMA Models" Atmosphere 14, no. 1: 88. https://doi.org/10.3390/atmos14010088

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop