Modelling portfolio risk with CCC-GARCH and Value at Risk in R

02 Nov, 2026

By Denis Solís Salinas

Single-asset volatility is well studied, but investors do not usually hold one stock, they hold a portfolio, and then the risk you care about depends on how assets move together. As part of my Advanced Time Series Analysis and Forecasting course (W5453, winter 2025/2026) I worked on a project where measured portfolio risk with a multivariate GARCH model called Constant Conditional Correlation (CCC) GARCH, applied to a small portfolio of well-known stocks and evaluated through Value at Risk. This article is the walkthrough of that application.

What the project was about

Univariate GARCH models describe the volatility of a single return series. They cannot, on their own, tell you the risk of a portfolio, because portfolio risk depends on the correlations between assets. The CCC-GARCH model introduced by Bollerslev is a middle ground: it lets each asset's own variance evolve with a univariate GARCH model, while assuming the correlations between assets stay constant over time.

$$H_t = D_t R D_t$$

Here $H_t$ is the conditional covariance matrix, $D_t = \mathrm{diag}(\sqrt{h_{1t}}, \dots, \sqrt{h_{Nt}})$ is a diagonal matrix of the conditional standard deviations, and $R$ is the constant correlation matrix. The conditional covariance between two assets is then $\rho_{ij}\sqrt{h_{it}h_{jt}}$.

The portfolio and the data

I built a portfolio from four daily closing-price series: NVIDIA (NVDA), Microsoft (MSFT), Shell (SHEL) and Walmart (WMT), from January 2006 to March 2026, roughly 5000 trading days. That horizon intentionally spans the 2008 financial crisis, the COVID-19 pandemic and more stable periods, which is a good test for volatility and risk models. I converted prices to daily log returns with diff(log(close)) to get stationarity.

The portfolio weights were deliberately tech-heavy: $w = (0.35, 0.40, 0.10, 0.15)$ for NVDA, MSFT, SHEL, WMT. Putting 75 percent of the weight on volatile technology stocks makes the portfolio variance susceptible to sudden, asymmetric market moves, which is exactly the setting where an asymmetric volatility model should matter.

Before any modelling I checked how the assets moved together. The unconditional correlations showed MSFT and NVDA most related at $0.53$, which makes sense given their shared exposure to the AI boom, while SHEL and WMT act as diversifiers with the lowest correlations. That coherence between the tech names is what justifies a multivariate approach: modelling each asset alone would miss how their risks amplify each other.

The four univariate models

Inside the CCC framework the only thing that changes between specifications is which univariate GARCH model each asset's variance equation uses. I compared four.

The workhorse is the symmetric GARCH(1,1):

$$h_t = \alpha_0 + \alpha_1 \varepsilon_{t-1}^2 + \beta_1 h_{t-1}$$

It treats positive and negative shocks of the same size identically. The three others allow asymmetry. EGARCH models the log of conditional variance, so the variance stays positive and negative coefficients are allowed, capturing the leverage effect. APARCH introduces a power parameter and an asymmetry term that nests several other models. Log-GARCH also works on the log scale, which lets it be represented through an ARMA structure.

library(fEGarch)
# symmetric GARCH
M <- garch(lret$NVDA, cond_dist = "norm", n_test = 250)
# APARCH
M <- aparch(lret$NVDA, cond_dist = "norm", n_test = 250)
# EGARCH and Log-GARCH are fitted through fEGarch() with a spec
spec <- egarch_spec(cond_dist = "norm")     # or loggarch_spec()
M <- fEGarch(spec, lret$NVDA, n_test = 250)

I estimated all four models for each asset with the fEGarch package, using n_test = 250 to hold out a one-year test window, then reconstructed the multivariate covariance matrix under the CCC assumption. For every model I used order (1,1), which is widely regarded as sufficient to capture volatility without overfitting.

Rolling forecasts and portfolio volatility

To evaluate the models fairly out of sample, I ran a rolling one-year-ahead exercise. I produced 250 daily out-of-sample volatility forecasts with predict_roll(), refitting the parameters every 25 days (about once a month) to balance adaptivity against the cost of repeatedly re-estimating. In each step I:

  • placed the forecasted per-asset standard deviations on the diagonal of $D_t$,
  • kept the constant correlation matrix $R$ estimated from the in-sample standardized residuals,
  • computed the portfolio conditional standard deviation from the weights,

$$\sigma_{p,t} = \sqrt{w^\top D_t R D_t w}$$

This mirrors assembling the covariance matrix and then taking the square root of the portfolio variance $w^\top H_t w$.

Out-of-sample test returns against the forecasted volatility for each specification.

The four panels of Figure 1 in the report plot the out-of-sample test returns against the forecasted volatility for each specification. The difference stands out during stress: when markets drop sharply, the asymmetric EGARCH and APARCH forecasts spike faster and higher than the smooth, symmetric GARCH forecast, which effectively averages out the shock.

cccgarch-fig2-all-models

Overlaying the four forecasts on one chart makes the comparison stark, with the asymmetric models reacting with immediate structural breaks in conditional volatility during events like the April 2025 tariff-driven sell-off.

Value at Risk and backtesting

From the forecasted portfolio volatility I computed the one-day Value at Risk (VaR) at a chosen confidence level using the standard normal quantile:

$$\mathrm{VaR}{p,t} = z\alpha \sigma_{p,t}$$

and the Expected Shortfall (ES) with the package's measure_risk() pipeline. To check whether each model was adequate I backtested over the 250-day window using the Traffic Light test, counting how many days the realized portfolio return fell below the forecast VaR. For a 250-day window the expected number of violations is $2.5$ at the 99 percent level and $6.25$ at the 97.5 percent level, and the Traffic Light classifier turns the count into a Green, Yellow or Red zone.

cccgarch-fig3-var-backtest
             VaR99 violations   VaR97.5 violations   ES97.5 cum prob
GARCH         4 (Green)         7 (Green)            0.754 (Green)
APARCH        4 (Green)         7 (Green)            0.687 (Green)
EGARCH        4 (Green)         5 (Green)            0.648 (Green)
Log-GARCH     3 (Green)         6 (Green)            0.744 (Green)

At the 99 percent level every model passed. The Log-GARCH had the fewest 99 percent violations (3 versus 4), and at the 97.5 percent level the EGARCH and Log-GARCH were the most precise, recording exactly 5 and 6 violations, while the symmetric GARCH and APARCH each had 7 and therefore slightly underestimated risk. Looking at the severity of tail losses, the CCC-EGARCH was the most strictly conservative: the lowest Expected Shortfall cumulative probability, $0.648$. In-sample, the asymmetric models also fit better, with the lowest AIC and BIC across the individual assets.

The conclusion from the application is clear: for a tech-heavy portfolio whose returns react asymmetrically to bad news, an asymmetric volatility model inside the CCC framework captures tail risk far better than the symmetric GARCH.

The takeaway

The project walked the full risk-management loop: build a portfolio, estimate conditional covariances with a multivariate GARCH structure, forecast one-day volatility out of sample, turn it into VaR and ES, and backtest the result. The main limitation, which I flagged in the report, is CCC-GARCH's core assumption that correlations are constant. Asset correlations typically spike during crises, so the model can understate portfolio risk in severe crashes. A Dynamic Conditional Correlation (DCC) model, which lets correlations evolve, would be the natural upgrade, together with heavier-tailed innovation distributions than the normal.

Tools: R, fEGarch. Data: Yahoo Finance daily closing prices for NVDA, MSFT, SHEL, WMT (January 2006 to March 2026). Code: ATSaF repository.