The Ulcer Index (UI) is defined as follows on page 89 of the book "Practical Portfolio Performance Measurement and Attribution, 2E" by Carl Bacon:
$$ UI= \sqrt{\sum_{i=1}^{i=n} \frac{D_{i}^{'2}}{n}} $$
where $D^{'}_i$ is the drawdown since the previous peak in period i.
Investopedia on the other hand defines it procedurally as:
The indicator is calculated in three steps:
- Percentage Drawdown = [(Close - 14-period High Close)/14-period High Close] x 100
- Squared Average = (14-period Sum of Percentage Drawdown Squared)/14
- Ulcer Index = Square Root of Squared Average
Evidently, the Bacon version results in a number without any parameters, while Investopedia's calculates it as a series given a number of periods taken into consideration as a parameter. So,
- Why is the number of periods not needed for Bacon's version?
- Why does the most recent value (and every other value, as I can notice) of Investopedia series differ from the number calculated by Bacon's formula?
- Which of these definitions is a) correct (as per the original paper) and b) most commonly used?
- When we are calculating Martin ratio, should we use Ulcer Index a) as per Bacon formula or b) the most recent value in the Investopedia's series?