Estimating the Sampling Distribution of Overlapping Return Quantiles
Summary
The document discusses a simulation exercise: generate daily returns from a specified stable distribution, form overlapping five-day returns, and estimate the distribution of their empirical 5% quantiles across repeated samples. It gives the compounded-return relationship for combining daily returns and describes finding an empirical quantile by sorting observations and selecting the order statistic at the target percentile.
For the sampling distribution of a percentile, one answer connects the selected order statistic to a beta distribution: applying the underlying cumulative distribution function maps continuous observations to uniform values, whose order statistics have beta distributions. Another answer suggests estimating the standard error of the mean of the simulated quantiles to assess Monte Carlo precision. The discussion does not give a particular number of repetitions or a stopping threshold, so it leaves the required simulation count dependent on the desired precision. It also flags a modeling issue: ordinary returns cannot fall below negative one, so drawing them directly from an unrestricted stable distribution may be inappropriate; modeling log returns is suggested instead.
Key ideas
- Overlapping multi-day returns can be computed by compounding the corresponding daily returns.
- The empirical quantile is an order statistic selected from sorted simulated returns.
- For continuous data, the distribution of a sample percentile can be related to a beta distribution through the probability integral transform.
- Monte Carlo precision can be assessed by estimating the standard error of the simulated quantile estimates.
- Directly sampling ordinary returns from a stable distribution may produce values below negative one.
Tags
Full text
# Convergence of the distribution of 0.05 quantiles through Monte-Carlo simulation
# Convergence of the distribution of 0.05 quantiles through Monte-Carlo simulation
I am trying to get admitted to a masters in quantitative finance (I come from a computer science background), so next week I will have 3h to solve an exam in statistical computing using my favourite language (they recommended either MATLAB, Python or R). The mock exam I was provided with asks the following:
> Generate a 2-year time-series (500 observations) from a stable distribution with parameters $$\alpha = 1.5, \quad \beta = 0.0, \quad \gamma = 1.0, \quad \delta = 1.0$$ a) Find the distribution of the $0.05$ quantiles of 5-day overlapping returns obtained from the 2-year time-series of 1-day returns. b) Prove (numerically or theoretically) that enough trials have been considered. Note: taking $P_i$ as the price on the $i$-th day, 1-day returns: $R_{1}^{i} = \frac{P_{i+1} - P_{i}}{P_{i}}, \; i=1,\ldots,499$ n-day returns: $R_{n}^{i} = \frac{P_{i+n} - P_{i}}{P_{i}}$.
I am a little bit confused about the whole thing, so I would like some help to check if I am approaching this problem correctly. Here is how I would solve it:
1) generate a 500 value time-series using this technique (I'm assuming they're referring to the alpha-stable family of distributions);
2) after playing around a bit, I'm able to obtain the 5-day returns time-series from the original 1-day returns time-series: $$R^{n}_{i} = (R^{1}_{i} + 1) (R^{1}_{i+1} + 1) \ldots (R^{1}_{i+n-1} + 1) - 1$$
3) compute the empirical distribution function of the 5-day returns, say $F(x)$;
4) estimate each quantile $q_{\eta}$ by $$\hat q_{\eta} = F^{-1}(\eta)$$
Note: To invert the empirical distribution function I would order the simulated values by their size and then pick the value at position $k = \min \{ n \in \{ 1, \ldots, N \} | n/N \geq \eta \}$
5) save the distribution of $0.05$ quantiles
6) repeat steps 1) through 5) a minimum number of times, $K$, that I need to determine through some convergence law or something.
Question: Any hints on how to determine $K$?
## Answer by Kiwiakos (score 2)
https://quant.stackexchange.com/a/25931
Two comments:
- Normal returns should always be in $[-1,+\infty)$. I believe that the way you sample $R_i$ from Stable directly violates that. You might want to sample $\log (1+R_i)$ from Stable instead. The question is very poorly worded.
- For the sampling distribution of a percentile you can invoke order statistics. It will follow a transformation of Beta distribution.
Edit: Regarding your comment on point 2:
If a random variable $X$ follows any continuous distribution with cdf $F(x)=P[X<x]$ then the random variable $U=F(X)$ will follow a uniform distribution. Or, going the other way round, if $U$ is uniform, then $X=F^{-1}(U)$ will have the required distribution.
Also note that $F$ is a monotonic transformation, that is to say if I have a sample $X_1>X_2>\cdots>X_n$ then the transformed $U_1>U_2>\cdots>U_n$.
One can show that if I draw a sample of $N$ from a uniform distribution, then the $k$th smallest, denoted $U_{(k)}$, will follow a Beta distribution $B(k, N-k+1)$, say with cdf $Q(u;k,N) = P[U_{(k)}<u]$. If I want to work with a given percentile $p$, then I can set $k=pN$, and the distribution of the percentile will have cdf $Q(u;pN, N)$.
Putting the two together yields that the cdf of the $p$th percentile of $N$ draws of $X$ will have cdf $Q(F(x);pN,N)$.
## Answer by user29970 (score 1)
https://quant.stackexchange.com/a/25918
That all looks correct to me. It might be a bit more natural to convert the one day returns into prices and then compute the five day returns from those, but it's of course equivalent.
For your final question, you are generating a sequence of random variables (the quantiles) and want to know how good your estimate of the mean is. A practical choice would be to estimate the standard error of the mean in the usual way.Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.