Suppose these are the returns (1000 rows):
1-a
2-b
3-c
I want to calculate adjusted volatility: drop first return calculate realized volatility, then drop the second one and calculate the realized volatility and etc. if you have n returns you will have n realized volatility.
Volatility1 = b*b+c*c
Volatility2 = a*a+c*c
Volatility3 = a*a+b*b
I can handle it with for loop, but is there any other way?