Calculate the Realized Multipower Variation rMPVar, defined in Andersen et al. (2012).
Assume there are \(N\) equispaced returns \(r_{t,i}\) in period \(t\), \(i=1, \ldots,N\). Then, the rMPVar is given by
$$
\mbox{rMPVar}_{N}(m,p)= d_{m,p} \frac{N^{p/2}}{N-m+1} \sum_{i=1}^{N-m+1}|r_{t,i}|^{p/m} \ldots |r_{t,i+m-1}|^{p/m}
$$
in which
\(d_{m,p} = \mu_{p/m}^{-m}\):
\(m\): the window size of return blocks;
\(p\): the power of the variation;
and \(m\) > \(p/2\).