views 449 words

Volatility

Daily Volatility: Daily Volatility = std(DailyChange)

Annualized Volatility: Annualized Volatility = Daily Volatility * sqrt(252)

When you want to annualize or de-annualize volatility (or transform volatility to any other time period), you need to multiply it by the square root of the time ratio, rather than the time ratio itself. For example, if you have monthly volatility and want to transform it to annual volatility, you multiply it by the square root of 12 and not by 12 directly (For week, it is multiply sqrt(52)).

Why Is Volatility Proportional to the Square Root of Time?

volatility is standard deviation of returns (Standard deviation is the square root of variance, or the square root of the average squared deviation from the mean). The calculation of (historical) volatility goes like this:

  1. Have daily closing prices of the security.
  2. Calculate returns for each day.
  3. Calculate standard deviation of these logarithmic returns over a period of last N days.
  4. The result (the standard deviation) is daily historical volatility.
  5. Transform it to annual volatility by multiplying it by the square root of the number of trading days per year.

The reason of volatility is proportional to the square root of time rather than time directly:

The reason is in the assumption that common option pricing and volatility models take – the assumption that prices make the so called random walk, mathematically Wiener Process, but popularly better known as Brownian Motion (from physics).

Each particular increment of this random walk has variance that is proportional to the time over which the price was moving. For example, if a particular randomly walking stock has variance equal to 1 in 1 day, it has variance equal to 2 in 2 days etc.

Volatility, or standard deviation, is the square root of variance. In mathematics the square root of a product of two numbers is equal to the product of their square roots:

$\sqrt{ab} = \sqrt{a}\times\sqrt{b}$

Now replace a with variance (denoted σ2) and b with time (denoted t). Volatility (denoted σ) is standard deviation of returns, which is the square root of variance:

$\sqrt{t\delta^2} = \sqrt{t}\times\sqrt{\delta^2} = \delta\times\sqrt{t}$

Takeaway:

  • For price making a random walk, variance is proportional to time.
  • Standard deviation is the square root of variance and therefore it is proportional to the square root of time.
  • Volatility is standard deviation and therefore it is proportional to the square root of time

Sharpe ratio

If the analysis results in a negative Sharpe ratio, it either means the risk-free rate is greater than the portfolio’s return, or the portfolio’s return is expected to be negative. In either case, a negative Sharpe ratio does not convey any useful meaning

CAPM

Alpha

https://corporatefinanceinstitute.com/resources/knowledge/finance/alpha/

Beta

https://blog.quantinsti.com/asset-beta-market-beta-python/ https://www.codingfinance.com/post/2018-04-25-portfolio-beta-py/

https://www.joinquant.com/help/api/help?name=api#%E4%BA%A4%E6%98%93%E7%A8%8E%E8%B4%B9