Formulas and Calculations
How does Index One calculate volatility, sharpe ratio, sortino ratio, max drawdowns and returns?
Last updated
How does Index One calculate volatility, sharpe ratio, sortino ratio, max drawdowns and returns?
Last updated
The volatility of daily log returns is calculated as the standard deviation of the log returns. Volatility is "annualized" unless specified otherwise. Number of trading days for the index is typically 252.
Where:
σ = Volatility (standard deviation of log returns).
Pt = Index value on day t.
Rt=ln(Pt/Pt−1) = Log return on day t.
μR = Mean of the log returns.
n = Total number of days.
Annualized Volatility (𝜎annual):
Where:
𝜎annual = Annualized volatility.
N = Number of trading days in a year.
𝜎daily = Standard deviation of daily log returns.
The Sharpe Ratio measures the excess return (above a risk-free rate) per unit of risk (volatility) for an investment.
For the Sharpe ratio, we assume the risk-free return is zero.
Average Daily Log Return (R‾): The mean of the daily log returns is:
Risk-Free Rate (Rf): The daily risk-free rate is a constant, typically derived from annualized rates (e.g., from treasury bonds) and converted to a daily equivalent.
Volatility (σ): The annualized standard deviation of the daily log returns, refer to the Volatility definition for further details.
The Sortino ratio evaluates the risk-adjusted return of an investment, portfolio, or strategy.
For the Sortino ratio, we assume the risk-free return is zero.
Risk-Free Return (Rf): The daily risk-free rate is a constant, typically derived from annualized rates (e.g., from treasury bonds) and converted to a daily equivalent.
Mean Daily Log Return (R‾): The average daily log return is:
Downside Deviation (σD): The downside deviation measures the variability of returns that fall below the Risk-Free Rate. It is calculated as:
Maximum Drawdown (MDD) measures the largest peak-to-trough decline in a portfolio's value over a given period, expressed as a percentage.
Given a sequence of daily index values P1, P2, ... Pt (where t represents the day or index number), the maximum drawdown is calculated as:
Where:
Pt: Value of the index at time t.
T: Total number of time periods.
max_1≤i≤tPi: The highest value of the index observed from the beginning of the period up to time t.
(P_t-max_1≤i≤tPi)/(max_1≤i≤tPi): The relative drawdown at time t, which is the percentage loss from the highest value observed up to time t.
The return measures the percentage change in the value of an investment over a given period. For daily index values, the return is calculated using the initial and final index values.
Where:
P1: The initial index value (on the first day of the period).
Pn: The final index value (on the last day of the period).
The annualized return converts the total return over a period into an equivalent yearly return, assuming compounding. It helps to compare returns over different time periods.
Return: The total return over the entire period, calculated as:
T: The total number of days in the period.
365: The number of days in a year, used for annualization.