Drawdown: fall from the highest level reached so far, \(D_t = P_t / \max_{s \le t} P_s - 1\).
Under a geometric Brownian motion, \(\ln P_t = \ln P_0 + \left(\mu - \tfrac{\sigma^2}{2}\right) t + \sigma W_t\): the log price is a random walk with drift, as the tests of section 3.1 find. A shock is permanent, nothing pulls the price back to a line, and the uncertainty grows with the horizon. The forecast made at the origin is \(\ln P_0 + \hat\mu h\), where \(\hat\mu\) and \(\hat\sigma\) are the mean and standard deviation of the \(N\) log returns before the origin (by default ten years before the end; nothing after the origin is used). The cone is \(\pm z\,\hat\sigma\sqrt{h\,(1 + h/N)}\): the term \(h\) is the accumulation of shocks, the term \(h^2/N\) the error on the estimated drift, which dominates at long horizons. The cone assumes normal, independent returns: volatility clusters and fat tails make the price leave it more often than 5 % of the time in crises. A line fitted through the whole history with bands of constant width would describe a price that returns to its trend; for a random walk such deviations only look mean-reverting (Nelson and Kang, 1981). The second chart checks the random walk directly with the variance ratio of Lo and MacKinlay (1988), \(\mathrm{VR}(h) = \widehat{\mathrm{Var}}(\ln P_{t} - \ln P_{t-h}) / \big(h\,\widehat{\mathrm{Var}}(\ln P_{t} - \ln P_{t-1})\big)\), from overlapping \(h\)-period changes: it equals 1 at every horizon for a random walk, falls below 1 when prices revert to a trend and rises above 1 with momentum. The grey band uses standard errors robust to heteroskedasticity. Long horizons rest on few independent periods, so their points are noisy.
Student-t (MLE): degrees of freedom \(\nu\), location \(m\) and scale \(c\) estimated jointly by maximum likelihood. Student-t (fixed mean and s.d.): mean and standard deviation set to their sample values \(\bar r\) and \(s\), only \(\nu\) estimated; since \(\operatorname{Var} = c^2\,\nu/(\nu-2)\), the scale is \(c = s\sqrt{(\nu-2)/\nu}\). KDE: Gaussian kernel, Scott's bandwidth \(h = s\,n^{-1/5}\). A higher log-likelihood \(\ell\) fits better.
The mean and the standard deviation of the normal law are estimated from the sample, so the Kolmogorov-Smirnov test is replaced by its Lilliefors version (the classical KS p-value would be too optimistic). Anderson-Darling gives more weight to the tails. With thousands of daily observations even small departures from normality are rejected: look at the QQ plot to see where they are. The tests assume independent returns: much of the excess kurtosis of raw returns comes from volatility that changes over time. Dividing each return by its EWMA volatility forecast \(\hat\sigma_t\), with \(\hat\sigma_t^2 = \lambda\hat\sigma_{t-1}^2 + (1-\lambda)\,r_{t-1}^2\) (RiskMetrics, \(\lambda = 0.94\) for daily data, 0.97 otherwise), shows how much remains.
Annualised with \(q =\) periods per year: arithmetic mean \(q\,\bar r\), volatility \(\sqrt{q}\,s\) (the square-root rule assumes uncorrelated returns), geometric return \((P_T/P_0)^{1/T} - 1\) with \(T\) in years. VaR and CVaR are historical, for one period, and reported as losses: \(\mathrm{VaR}_{5\%} = -q_{5\%}(r)\) and \(\mathrm{CVaR}_{5\%} = -\mathbb{E}[\,r \mid r \le q_{5\%}(r)\,]\), where \(q_{5\%}\) is the 5 % quantile.
A series is (weakly) stationary when its mean, variance and autocovariances do not change over time. The augmented Dickey-Fuller test estimates \(\Delta x_t = \alpha + \beta t + \gamma\, x_{t-1} + \sum_{j=1}^{p} \delta_j\, \Delta x_{t-j} + \varepsilon_t\) (without \(\beta t\) for the constant-only version) and tests \(H_0: \gamma = 0\), a unit root, against \(\gamma < 0\). The lag \(p\) minimises the AIC up to \(\lceil 12\,(n/100)^{1/4} \rceil\). Under \(H_0\) the t-ratio of \(\hat\gamma\) does not follow a Student distribution: its critical values (about \(-2.86\) with a constant and \(-3.41\) with a trend, at 5 %) and p-values come from MacKinnon (2010). The KPSS test (Kwiatkowski, Phillips, Schmidt and Shin, 1992) reverses the hypotheses: \(H_0\) is stationarity around a constant (or a linear trend). With \(e_t\) the residuals of \(x_t\) on the deterministic terms and \(S_t = \sum_{s \le t} e_s\), the statistic is \(\eta = \sum_t S_t^2 / (n^2 \hat\sigma^2_{\mathrm{LR}})\), where the long-run variance \(\hat\sigma^2_{\mathrm{LR}}\) uses the Bartlett kernel with an automatic number of lags (Hobijn, Franses and Ooms, 1998); its p-value is read from a table, so it is only known to lie between 0.01 and 0.10. Using both tests helps because each has little power near the boundary: a very persistent but stationary series rarely makes ADF reject, and a break in the level or the trend makes ADF accept a unit root and KPSS reject stationarity. Log prices behave as random walks with drift: shocks to the price are permanent and its variance grows with the horizon. This is why the other analyses of this page work on returns, which are stationary in mean, even though their volatility moves in clusters.
The dotted bands \(\pm 1.96/\sqrt{n}\) assume independent returns. With volatility clustering the sampling error of \(\hat\rho_k\) is larger: the dashed bands use \(\mathrm{se}_k = \sqrt{\textstyle\sum_t d_t^2 d_{t-k}^2}\,/\sum_t d_t^2\), \(d_t = r_t - \bar r\), and the robust test \(Q^* = \sum_{k=1}^{h} (\hat\rho_k/\mathrm{se}_k)^2 \sim \chi^2_h\) (Lobato, Nankervis and Savin, 2001) replaces Ljung-Box \(Q = n(n+2)\sum_{k=1}^{h} \hat\rho_k^2/(n-k)\), which rejects too often. For broad indices, a small positive \(\hat\rho_1\) in daily returns comes partly from stale prices of thinly traded stocks (non-synchronous trading): it is not a return that could be earned. Squared and absolute returns, in contrast, are strongly autocorrelated: large moves follow large moves.
Moments of the returns over a moving window of \(w\) periods. With \(q\) periods per year, the mean is annualised as \(q\,\bar r\) and the volatility as \(\sqrt{q}\,s\). The grey band, \(\pm 1.96\, q\,s/\sqrt{w}\), shows how badly the mean is estimated: over one year its standard error is about the volatility itself, so most of the swings of the rolling mean are noise, while the volatility is estimated precisely. Skewness \(m_3/m_2^{3/2}\) and excess kurtosis \(m_4/m_2^2 - 3\) are population moments; the dotted lines \(\pm 1.96\sqrt{6/w}\) and \(\pm 1.96\sqrt{24/w}\) are their sampling errors under normality.
Correlation of returns on the dates the assets have in common. Markets close at different times (Zurich 17:30, New York 22:00 Zurich time), which lowers daily correlations between regions: prefer weekly or monthly returns to compare markets.
All series start at 1 on the first date they have in common, in the currency and series (total return or price) chosen on the left. Comparing a price index (PR) with a total-return series (TR) understates the price index by the dividends.
Return over the horizon of \(H\) years ending at each date, \(R_t = P_t / P_{t-H} - 1\), on the selected frequency. The distribution shows annualised returns \((1+R_t)^{1/H} - 1\). Consecutive windows share almost all their data, so the share of negative windows is not a probability estimated from many observations: the evidence is the handful of non-overlapping periods shown on the chart, and it depends heavily on the start of the sample.
About the data
Prices come from a private data store fed by EODHD (end-of-day prices of indices, funds, stocks and exchange rates). They are licensed: the files published with this page are encrypted, and only the access code opens them. All calculations run in your browser; nothing is sent anywhere.
Total-return series reinvest dividends (indices labelled TR, accumulating funds, adjusted closes); price series do not (PR). Dividends are reinvested gross: withholding taxes (for example 15 % on US dividends for a Swiss investor) are not deducted, so the total return of a distributing US fund is slightly overstated. ETF and fund prices are already net of their management fees.
Conversion to CHF multiplies each value by the last USD/CHF or EUR/CHF rate known that day. The exchange rate and a foreign market do not close at the same time, which adds noise to daily returns in CHF and lowers daily correlations between regions: prefer weekly data for those comparisons.