Formulate the \(\text{ARCH}(q)\) model, state its positivity and weak-stationarity constraints, and compute its unconditional variance.
Test for conditional heteroskedasticity using Ljung-Box tests on \(\hat{\varepsilon}_t^2\) and Engle’s ARCH LM test (FinTS::ArchTest()), and fit \(\text{ARCH}(q)\) models in rugarch.
1. Stylized Facts of Financial Returns
Financial asset prices \(P_t\) are typically non-stationary random walks with multiplicative fluctuations. Rather than modeling raw prices, we work with daily percentage log returns:
Scaling by 100 expresses daily returns in percent (making variance estimates numerically well-scaled for maximum-likelihood optimization). Equally important, equity markets trade only on business days: never call fill_gaps() or interpolate weekend prices before differencing, because inserting flat Saturday/Sunday prices creates artificial zero returns that distort both autocorrelation and volatility estimates. Instead, compute log returns directly across consecutive trading days and index the tsibble by trading day day = row_number(), retaining Date for calendar-axis plots.
Summary statistics for Alphabet (GOOG) daily percentage log returns (2019 to 2023).
n_days
mean_pct
sd_pct
skewness
kurtosis
1257
0.079
2.006
-0.222
7.15
Across 1,257 trading days, Alphabet’s daily returns exhibit four classic stylized facts of financial markets:
Near-zero mean:\(\bar{r} = 0.079\%\) per day compared to a daily standard deviation of \(2.006\%\).
Heavy tails (leptokurtosis): Sample kurtosis is 7.15, far above the Gaussian benchmark of 3, reflecting extreme crash and rally days.
Weak linear predictability: Linear autocorrelations \(\operatorname{Corr}(r_t, r_{t-k})\) are small and noisy.
Volatility clustering: Large returns (of either sign) cluster together in turbulent regimes (such as March 2020 and 2022), creating strong, persistent autocorrelation in \(r_t^2\) and \(|r_t|\).
p_ret <-ggplot(goog, aes(Date, ret)) +geom_line(color = ts_pal["navy"], linewidth =0.4) +geom_hline(yintercept =0, color = ts_pal["slate"], linetype ="dashed") +labs(x =NULL, y ="Daily log return (%)")goog_ts <- goog |>as_tsibble(index = day)p_acf1 <- goog_ts |>ACF(ret, lag_max =24) |>autoplot() +labs(title =TeX(r"(ACF of Raw Returns $r_t$)", bold =TRUE), x ="Trading-day lag", y ="ACF")p_acf2 <- goog_ts |>ACF(ret^2, lag_max =24) |>autoplot() +labs(title =TeX(r"(ACF of Squared Returns $r_t^2$)", bold =TRUE), x ="Trading-day lag", y ="ACF")(p_ret / (p_acf1 | p_acf2)) +plot_layout(heights =c(1.15, 1), guides ="collect") +plot_annotation(title ="Alphabet (GOOG) Daily Percentage Log Returns (2019-2023)",subtitle ="Calm periods alternate with bursts of large swings (volatility clustering)",theme =theme_ts() ) &theme(legend.position ="bottom")
Figure 1: Alphabet (GOOG) daily percentage log returns (top) and ACF comparison of raw returns vs. squared returns (bottom), highlighting strong volatility clustering.
2. The ARCH(q) Model
Constant-variance ARIMA models treat \(\operatorname{Var}(\varepsilon_t \mid \mathcal{F}_{t-1}) = \sigma^2\) as fixed, which understates risk during market turmoil and overstates risk during calm spells. Robert Engle’s Autoregressive Conditional Heteroskedasticity model of order \(q\), \(\text{ARCH}(q)\), models the conditional variance \(\sigma_t^2 = \operatorname{Var}(\varepsilon_t \mid \mathcal{F}_{t-1})\) as a linear function of the \(q\) most recent squared shocks:
Even when the standardized innovations \(z_t\) are Gaussian, \(\varepsilon_t = \sigma_t z_t\) has unconditional excess kurtosis (for \(\text{ARCH}(1)\) with \(3\alpha_1^2 < 1\), \(\operatorname{Kurt}(\varepsilon_t) = 3(1 - \alpha_1^2)/(1 - 3\alpha_1^2) > 3\)), reproducing the heavy tails seen in market returns!
3. Testing for ARCH Effects
Before fitting a volatility model, test the null hypothesis \(H_0: \alpha_1 = \dots = \alpha_m = 0\) (no conditional heteroskedasticity) on the mean-model residuals \(\hat{\varepsilon}_t\) (or de-meaned returns \(r_t - \bar{r}\)):
Ljung-Box test on \(\hat{\varepsilon}_t^2\): Tests joint autocorrelation across lags \(1, \dots, m\) of the squared residuals.
Engle’s ARCH LM test (FinTS::ArchTest()): Regresses \(\hat{\varepsilon}_t^2\) on a constant and \(\hat{\varepsilon}_{t-1}^2, \dots, \hat{\varepsilon}_{t-m}^2\), forming the test statistic \(T R^2 \stackrel{H_0}{\sim} \chi^2_m\).
Critical implementation rule:FinTS::ArchTest() squares its input internally! Always pass raw innovation residuals .innov or de-meaned returns \(r_t - \bar{r}\) to ArchTest(), never squared residuals \(\hat{\varepsilon}_t^2\) (passing \(\hat{\varepsilon}_t^2\) would inadvertently test \(\hat{\varepsilon}_t^4\)).
eps <- goog$ret -mean(goog$ret)lb_sq <-Box.test(eps^2, lag =12, type ="Ljung-Box")arch_lm <- FinTS::ArchTest(eps, lags =12)tibble(Test =c("Ljung-Box on eps^2 (lag 12)", "Engle ARCH LM on eps (lag 12)"),Statistic =c(unname(lb_sq$statistic), unname(arch_lm$statistic)),df =c(12, 12),p_value =c(lb_sq$p.value, arch_lm$p.value)) |>fmt_tbl(digits =4, caption ="Formal tests for ARCH effects in Alphabet daily log returns.")
Formal tests for ARCH effects in Alphabet daily log returns.
Test
Statistic
df
p_value
Ljung-Box on eps^2 (lag 12)
242.8
12
0
Engle ARCH LM on eps (lag 12)
109.8
12
0
Both tests overwhelmingly reject constant variance (\(Q^* = 242.8\) and \(\text{LM} = 109.8\), both \(p < 10^{-16}\)), confirming strong conditional heteroskedasticity.
4. Fitting ARCH(1) and ARCH(5) Models in rugarch
In rugarch, a pure \(\text{ARCH}(q)\) model is specified as sGARCH with garchOrder = c(q, 0). We fit both \(\text{ARCH}(1)\) and \(\text{ARCH}(5)\) directly to Alphabet’s percentage log returns using solver = "nlminb" for reliable global convergence, and compare their fit and conditional volatility paths.
spec_a1 <-ugarchspec(variance.model =list(model ="sGARCH", garchOrder =c(1, 0)),mean.model =list(armaOrder =c(0, 0), include.mean =TRUE))spec_a5 <-ugarchspec(variance.model =list(model ="sGARCH", garchOrder =c(5, 0)),mean.model =list(armaOrder =c(0, 0), include.mean =TRUE))fit_a1 <-ugarchfit(spec_a1, data = goog$ret, solver ="nlminb")fit_a5 <-ugarchfit(spec_a5, data = goog$ret, solver ="nlminb")as_tibble(fit_a5@fit$matcoef, rownames ="term") |>rename_with(trimws) |>fmt_tbl(digits =4, caption ="Estimated parameters for the ARCH(5) model on Alphabet percentage returns.")
Estimated parameters for the ARCH(5) model on Alphabet percentage returns.
term
Estimate
Std. Error
t value
Pr(>|t|)
mu
0.1383
0.0495
2.7906
0.0053
omega
2.0491
0.1814
11.2961
0.0000
alpha1
0.1002
0.0458
2.1865
0.0288
alpha2
0.0536
0.0347
1.5434
0.1227
alpha3
0.1448
0.0434
3.3395
0.0008
alpha4
0.0336
0.0340
0.9883
0.3230
alpha5
0.1786
0.0576
3.1013
0.0019
For \(\text{ARCH}(1)\), \(\hat{\omega} = 2.979\) and \(\hat{\alpha}_1 = 0.278\), implying an unconditional daily volatility of \(\sqrt{2.979 / (1 - 0.278)} = 2.03\%\) (matching the sample SD of \(2.01\%\)). Expanding to \(\text{ARCH}(5)\) raises \(\sum_{i=1}^5 \hat{\alpha}_i = 0.511\) and lowers AIC from 4.170 to 4.124, capturing slower decay across multiple trading days.
vol_df <- goog |>transmute( Date,`ARCH(1)`=as.numeric(sigma(fit_a1)),`ARCH(5)`=as.numeric(sigma(fit_a5)) ) |>pivot_longer(-Date, names_to ="Model", values_to ="sigma_pct")ggplot(vol_df, aes(Date, sigma_pct, color = Model)) +geom_line(linewidth =0.55, alpha =0.85) +labs(title ="Alphabet (GOOG) Conditional Daily Volatility: ARCH(1) vs. ARCH(5)",subtitle ="ARCH(1) decays after one day; ARCH(5) retains memory over a trading week",x =NULL, y =TeX(r"(Conditional Daily Volatility $\hat{\sigma}_t$ (%))"), color ="Model" )
Figure 2: Estimated conditional daily volatility sigma_t (%) from ARCH(1) and ARCH(5) models on Alphabet daily returns (2019 to 2023).
Notice the key limitation visible in Figure 2: \(\text{ARCH}(1)\) jumps up and immediately collapses the next trading day, while even \(\text{ARCH}(5)\) requires 5 lag weights (with noisy alternating estimates \(\hat{\alpha}_1\) through \(\hat{\alpha}_5\)) just to track a week of volatility persistence. In Note 18, GARCH solves this overparameterization cleanly.
Practice Exercises
Exercise 1. Test the daily NYSE composite return series astsa::nyse (2,000 trading days) for ARCH effects using both the Ljung-Box test on squared de-meaned returns and FinTS::ArchTest() at lag 12. Interpret the results and verify the excess kurtosis of the series.
Both diagnostics reject homoskedasticity overwhelmingly (\(Q^* = 233.7\), \(\text{LM} = 192.3\), \(p < 10^{-33}\)), and the sample kurtosis (66.5, driven in part by the October 1987 market crash) confirms extreme heavy tails alongside strong volatility clustering.
Exercise 2. Suppose a daily percentage return series follows an \(\text{ARCH}(2)\) process with \(\omega = 0.45\), \(\alpha_1 = 0.25\), and \(\alpha_2 = 0.15\). Verify that the process is weakly stationary, compute its unconditional daily variance and standard deviation, and find the conditional variance \(\sigma_t^2\) if \(\varepsilon_{t-1} = -4\%\) and \(\varepsilon_{t-2} = 2\%\).
Solution
Positivity & stationarity:\(\omega = 0.45 > 0\), \(\alpha_1, \alpha_2 \ge 0\), and \(\alpha_1 + \alpha_2 = 0.40 < 1\), so the process is weakly stationary.
Always pass raw innovation residuals (or de-meaned returns) to FinTS::ArchTest(), never squared residuals, because ArchTest() squares its input internally.