Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Annualized Rolling window standard deviation

    Dear Stata Users,
    I need to calculate a 60 month rolling window standard deviation of returns with a minimum of 12 months. For this I use the following command (fdate is a year-month indicator (e.g. 2000m1):
    Code:
    asrol ret, stat(sd) w(fdate 60) by (permno) min (12)
    How do I calculate annualize volatility then? Please, advise me this issue.

  • #2
    Since the above command gives average monthly volatility based on last 60 months, you can convert this to yearly volatility by:

    Code:
    gen yearly_sd =sd60_ret * sqrt(12)
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment


    • #3
      Hello there, I have a similar problem. I have monthly return data and need the 60 month rolling sd of returns. This should represent my risk factor in my regression analysis. My dataset is on firm year basis. How do i get from 12 sd deviation values to one sd deviation value? Could you help me please Attaullah?

      Comment

      Working...
      X