Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've plotted 30-year moving averages across time for a couple of portfolios, and I was wondering how to calculate a 95% CI for the these moving average data (i.e., across all moving average data points, what is the CI?).

Given the points are clearly not independent of one another, I would think just using ±1.96 SD would be incorrect (as this nonindependence would be a violation of the central limit theorem), but I could be wrong and am not sure how this is done. Any links, book references, and recommended R packages/functions are also appreciated. Thank you!

share|improve this question

If you calculated MA by hand without actually fitting a MA(q) time series model, then you are out of luck. I suggest you use R, like in this example that shows how to construct a prediction interval, among other things.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.