PM2.5 (fine air pollution particles less than 2.5 microns in diameter) is a hazardous air pollutant which can penetrate deeply into the lungs and even enter the bloodstream, irritating the alveolar wall and impairing lung function (Xing et al., 2016). PM2.5 also produces haze, making it a nuisance in urban environments where it reduces visibility. A variety of sectors contribute to emissions of PM2.5, including the burning of fossil fuels from coal combustion and internal combustion engines, emissions of volatile organic compounds from petrochemical industries, ammonia emissions from the agriculture sector, and dust from construction sites (Lu et al., 2020). PM2.5 emissions can become especially hazardous during winter months when ideal atmospheric and meteorological conditions effectively trap air pollutants over a region, causing local spikes in PM2.5 concentrations (Xu et al., 2016).
Air pollution in China is said to be responsible for around 1 million premature deaths per year and annual premature mortality costs from air pollution cost close to 10% of the nation’s GDP(World Bank Group, 2016). In 2013, the Chinese government adopted the WHO Target-1 level annual mean limit for PM2.5 concentration of 35 ug/m3 to reign in PM2.5 pollution and decouple air pollution from economic growth. Beijing set a five year goal to achieve annual average concentrations of PM2.5 below 60 ug/m3 by the end of 2017, a reduction of greater than 30% (Lu et al., 2020).
For our project we analyzed time series data of daily PM2.5 concentrations recorded from monitoring stations in Beijing between 2013 - 2020. We analyzed two different monitoring data sets - the reference monitoring stations and the urban monitoring stations. The reference monitoring stations measure pollution concentrations across the Beijing region, including urban, suburban, and industrial areas. The urban monitoring stations only measure pollution concentrations in the most urbanized parts of the city and could be more impacted by local spikes in PM2.5 emissions from sources like city traffic.
We analyzed both data sets to determine if the reference (MS24-MS30) and urban (MS1-MS12) monitoring stations followed the same trends. We also sought to determine if PM2.5 in Beijing had a decreasing trend in line with the city’s goal to reduce air pollution, and if PM2.5 concentrations followed any seasonal trend. We also looked to use our time series model to determine if the model could accurately forecast PM2.5 concentrations in 2020, given that the lockdown measures taken to control the outbreak of the COVID-19 pandemic early in 2020 may have influenced PM2.5 concentrations in the city (potentially from less traffic, decreased output at industrial facilities, etc.).
We obtained the air quality monitoring data from https://quotsoft.net/air/. The data set included hourly air quality monitoring for 35 monitoring stations. Specifically, we used 7 reference monitoring stations and 12 urban monitoring stations for our study. We limited our analysis between years 2013 - 2020. We aggregated the data into weekly average in order to have a relatively low frequency time series data. We then further averaged the weekly monitoring data for the reference and urban stations respectively. For weeks with missing data points we interpolated the data by averaging the prior and future week’s PM2.5 concentrations. The final dataset includes observations for 373 weeks.
The averaged weekly PM2.5 monitoring data for the reference and urban monitoring stations between 2013 - 2020 is shown in the time series plot and histogram below. The averaged reference station data is shown in blue while the averaged urban station data is shown in red.
Based on above figures, it seems that the distribution of weekly PM2.5 concentration is highly skewed without mean stationary and covariance stationary characteristics. In order to get stationarity, we conducted log transformation to the raw dataset.
After the log transformation, the distribution of the data becomes more gaussian (confirmed by the Shapiro Wilk test with p value =0.8424>0.05 for reference data and p value =0.9295>0.05 for urban data) and the stationaruty assumption can be achieved. All the following analyses are conducted based on the log weekly data.
Based on the basic statistical summary and the time plot, the log PM2.5 concentration for both urban and reference stations have a quasi-normal distribution. There seems to be a time trend but not obvious. It is reasonable for us to try a stationary model at first. Thus, the stationary Gasussian \(ARMA(p,q)\) model is used to construct the model under the null hypothesis that there is no trend with the form of:
\[\begin{align*} \phi(B)(Y_n -\mu) = \psi(B)\varepsilon_n \end{align*}\]
where
\[\begin{align*} &\mu = \mathbb{E}[Y]\\ &\phi(x) =1 - \phi_1 x - \phi_2 x^2 - \dots - \phi_p x^p\\ &\psi(x) = 1 + \psi_1 x + \psi_2 x^2 + \dots + \psi_p x^p\\ &\varepsilon_{n} \in iid N(0, \sigma^2) \end{align*}\]
In order to choose a proper value for p and q, we first tabulate AIC values for a range of different choices of p and q from 0 to 5.
MA0 | MA1 | MA2 | MA3 | MA4 | MA5 | |
---|---|---|---|---|---|---|
AR0 | 521.4980 | 493.7780 | 479.6276 | 469.9047 | 465.0541 | 463.2637 |
AR1 | 478.2041 | 441.2045 | 443.1336 | 445.1317 | 447.0868 | 448.3924 |
AR2 | 459.1807 | 443.1331 | 445.1358 | 447.1316 | 449.1316 | 450.6594 |
AR3 | 451.5855 | 445.1323 | 446.7501 | 445.6839 | 447.3211 | 442.6817 |
AR4 | 448.0798 | 445.7637 | 449.4728 | 447.3204 | 449.3202 | 444.5848 |
AR5 | 449.0751 | 449.8872 | 447.6376 | 451.3712 | 444.8279 | 446.3304 |
The candidate models are first selected based on the Akaike information criteria (AIC) values for different combination of the p (from 0 to 5) and q (from 0 to 5). Models with low AIC are somehow more trustworthy and have more reasonable predictive power. According to the AIC table, we noticed that the lowest AIC value 441.2045 appears when AR = 1 and MA = 1. Similarly, we found that the \(ARMA(1,1)\) model also has the lowest AIC value of 381.3902 for the reference group. So we choose our ARMA model to be \(ARMA(1,1)\) to map the PM2.5 variation for both urban and reference stations.
##
## Call:
## arima(x = urban_training_log, order = c(1, 0, 1))
##
## Coefficients:
## ar1 ma1 intercept
## 0.9339 -0.7333 4.0763
## s.e. 0.0333 0.0641 0.1056
##
## sigma^2 estimated as 0.2312: log likelihood = -216.6, aic = 441.2
##
## Call:
## arima(x = reference_training_log, order = c(1, 0, 1))
##
## Coefficients:
## ar1 ma1 intercept
## 0.9330 -0.6922 4.0985
## s.e. 0.0281 0.0530 0.1093
##
## sigma^2 estimated as 0.1912: log likelihood = -186.7, aic = 381.39
The auto correlation plot of residuals of both models do not show any significant auto correlation for any lag greater than 1, i.e. residuals are approximately independently identically distributed, satisfying model assumptions. The AR roots are 1.07 and 1.07 and the MA roots are 1.36 and 1.44 for urban and reference respectively. Both are outside unit circle, suggesting both models are causal and invertible.
As we can witness a slight decreasing trend on the original time series plot. We can further fit a trend model for comparison. Based on our previous results, we construct a trend model using \(Year\) as covariate with \(ARMA(1,1)\) noise. The form of the trend model is:
\[\begin{align*} (1-\phi B)(Y_n -\mu - \beta t_n) =(1-\psi B) \varepsilon_n \end{align*}\]
##
## Call:
## arima(x = urban_training_log, order = c(1, 0, 1), xreg = Time)
##
## Coefficients:
## ar1 ma1 intercept Time
## 0.7805 -0.6122 295.5859 -0.1445
## s.e. 0.0875 0.1074 52.4968 0.0260
##
## sigma^2 estimated as 0.221: log likelihood = -209.28, aic = 428.55
##
## Call:
## arima(x = reference_training_log, order = c(1, 0, 1), xreg = Time)
##
## Coefficients:
## ar1 ma1 intercept Time
## 0.8652 -0.6475 266.9514 -0.1303
## s.e. 0.0479 0.0683 69.6483 0.0345
##
## sigma^2 estimated as 0.1863: log likelihood = -182.47, aic = 374.95
In order to verify the necessity of using a xreg parameter, we first conducted a Z test on \(\beta\). The test statistic: \(|\frac{\hat{\beta}}{SE(\hat{\beta})}|=\frac{0.1445}{0.0260}=5.56>1.96\). We then conducted a likelihood ratio test: The test statistic: \(\Delta=-209.28-(-216.6)=7.32>1.92\). So we can eject \(H^{<0>}\) at 5% level. We witnessed the same findings on the reference group, with the Z test statistic: \(|\frac{\hat{\beta}}{SE(\hat{\beta})}|=\frac{0.1303}{0.0345}=3.78>1.96\) and a likelihood ratio test statistic:\(\Delta=-182.47-(-186.7)=4.23>1.92\). Thus, the coefficients for both two models are significantly different with 0. Showing there is a decreasing trend on PM2.5 concentration in Beijing.
In order to explore more about our data. We then plot the spectrum in order to find something from the frequency domain.
Based on the smoothed peridogram, there is a clear peak around 0.1875. This indicates that there may be a period about 53 weeks~ 1 yr exits in the data. This finding is also consistent with the acf plot where exits a high acf around 53 lag(weeks). Thus, we need to further fit a SARMA model to detect the potential seasonal patterns.
From the original time series plot, we can find a flucuation in each year. This phenomenon indicates that there may be a seasonal pattern. Thus, we further fit a SARMA model to detect this pattern. The form of the seasonal model is \(SARMA(1,1)\times(p,0,q)_{52}\). In order to choose a proper value for p and q, we also tabulate AIC values for a range of different choices of p and q from 0 to 5.
Q = 0 | Q = 1 | Q = 2 | |
---|---|---|---|
P = 0 | 428.5518 | 429.3285 | 430.9544 |
P = 1 | 429.4170 | 430.9174 | 432.8919 |
P = 2 | 430.9973 | 432.8877 | 434.7013 |
According to the AIC table, we noticed that the lowest AIC value appears when p = 0 and q = 0. This is the original model we have. Thus, instead, we selected the \(SARMA(1,1)\times(1,0,0)_{52}\) model for comparison.
##
## Call:
## arima(x = urban_training_log, order = c(1, 0, 1), seasonal = list(order = c(1,
## 0, 0), period = 52), xreg = Time)
##
## Coefficients:
## ar1 ma1 sar1 intercept Time
## 0.7837 -0.6247 0.0649 295.9317 -0.1447
## s.e. 0.0875 0.1071 0.0608 53.2606 0.0264
##
## sigma^2 estimated as 0.2201: log likelihood = -208.71, aic = 429.42
We first conducted a Z test on \(\beta\). The test statistic: \(|\frac{\hat{\beta}}{SE(\hat{\beta})}|=\frac{0.0649}{0.0608}=1.07<1.96\). So we can not reject \(H^{<0>}\) at 5% level. We then conducted a likelihood ratio test. The test static:\(\Delta=(-208.71)-(-209.28)=0.57<1.92\). So we not reject \(H^{<0>}\) at 5% level. We witnessed the same findings on the reference group, with the Z test static: \(|\frac{\hat{\beta}}{SE(\hat{\beta})}|=\frac{0.0880}{0.0639}=1.38<1.96\) and a likelihood ratio test static:\(\Delta=-181.53-(-182.47)=0.94<1.92\). Thus, the coefficients for both two models are not significantly different with 0. It means that there is no seasonality which is also consistent with the AIC results (the lowest AIC is found when seasonal coefficients to be (0,0,0)).
Based on the above analysis, we choose the linear trend model with \(ARMA(1,1)\) errors as our final model. In order to guarantee the correctness of our model, we conducted a series of diagnostics on the selected model. In our previous results, we noticed the AR roots are slightly larger than 1. Thus, we want to make sure there is no non-causality issues.
The profile likelihood method gives a 95% confidence interval [0.526, 0.906], similar to that of Fisher’s information. Therefore we conclude that there’s no non-causal problem with our models. Then we assess model fit by analyzing residuals.
Plots of residuals look like white noise. QQplots shows residuals for both models are approximately normal, with only a few points on both tails straying away. Therefore, model diagnostics conclude that both models are causal and invertible and satisfies underlying model assumptions.
Based on our constructed model, we further predict the weekly PM2.5 concentration for 2020.
Based on our results, there is still a decreasing trend on 2020 and the giant confidence interval indicate there may be huge uncertainty for this prediction rsults.
Here we want to examine the effects of quarantine on Beijing PM2.5 level. Since we already see a decreasing trend in PM2.5 over the years, here We conduct the hypothesis test with null hypothesis that from 2013 to the end of 2020, the decreasing trend is constant (the coefficient for xreg is constant), and alternative hypothesis that PM2.5 is decreasing at constant rate from 2013 to 2019 and at a different rate in 2020. The test is achieved by constructing the \(xreg\) parameter for null hypothesis to be weekly dates from 2013 to 2020, while \(xreg\) for alternative hypothesis to be a bivariate matrix with one column being the same as \(xreg\) for null hypotehsis and the other column contains only weekly dates of 2020 and 0’s for previous time periods. Denoting the coefficient of second variable for \(xreg\) to be \(xreg_2\), then the hypothesis becomes
\[H_0:xreg_2=0, H_A:xreg_2\neq0\]
x1 = date[1:366]
x2 = c(rep(0, 315), date[316:366])
m1 = arima(log(urban[1:366]), order=c(1,0,1), xreg=x1)
m2 = arima(log(urban[1:366]), order=c(1,0,1), xreg=cbind(x1,x2))
m2$loglik - m1$loglik < qchisq(0.95, df=1)*0.5
## [1] TRUE
A likelihood ratio test on \(xreg_2\) fails to reject the null hypothesis, so we conclude that the year 2020 did not see a decreasing trend that’s different from previous years.
PM2.5 in Beijing is slightly decreasing over the years, which means the air quality is improving.
Urban and reference stations, which are our two focuses, show pretty similar patterns in overall trends & model fitting.
The air quality approximately follows an annual cycle but is not significantly related to previous years. It is well approximated by a linear trend model with ARMA(1,1) noise term.
The hypothesis test on 2020 show that there isn’t a significant change of PM2.5 pattern during the 2020. This means that the COVID-19 anti-epidemic measures (e.g. city lockdown & isolation) might not have a significant influence on the original trend of air pollution.
1.Lu, X. et al. Progress of Air Pollution Control in China and Its Challenges and Opportunities in the Ecological Civilization Era. Engineering vol. 6 1423-1431 (2020).
2.World Bank Group. The cost of air pollution. Washington, DC: World BankGroup; 2016
3.Xing, Y. F., Xu, Y. H., Shi, M. H. & Lian, Y. X. The impact of PM2.5 on the human respiratory system. Journal of Thoracic Disease vol. 8 E69-E74 (2016).
4.Xu, J. et al. Impact of meteorological conditions on a nine-day particulate matter pollution event observed in December 2013, Shanghai, China. Particuology 20, 69-79(2015).