hey guys I need a bit of math help. I am trying to compute the implied correlation of an ETF as i am trying to find expensive/cheap ivol. I was hoping someone could cross check my code or dummy example before I go and bet.
I am using the CBOE implied correlation formula to back out the IC from option prices.
Weights of Components:
w1 = .3
w2 = .4
w3 = .3
Ivols of Components:
v1 = .25
v2 = .35
v3 = .18
Ivol of Index:
vIndex = .21
Once plugged into my code (above formula) the result is an implied correlation of 36%
Thank you for your time
I am using the CBOE implied correlation formula to back out the IC from option prices.
Weights of Components:
w1 = .3
w2 = .4
w3 = .3
Ivols of Components:
v1 = .25
v2 = .35
v3 = .18
Ivol of Index:
vIndex = .21
Once plugged into my code (above formula) the result is an implied correlation of 36%
Code:
v = c(.25, .35, .18)
w = c(.3, .4, .3)
varIndex = .21^2
#create vector and matrix for top and bottom summations
top.sum = vector()
bottom.sum = matrix(nrow = length(v), ncol = length(v))
#loop over inputs
for(i in 1:length(v)){
top.sum[i] = w[i]^2 * v[i]^2
for(j in 1:length(v)){
bottom.sum[i,j] = w[i]*w[j]*v[i]*v[j]
}
}
#print top and bottom summations
top.sum
bottom.sum
#get the upper right corner of our matrix
mat = bottom.sum[upper.tri(bottom.sum)]
#print implied correlation
(varIndex - sum(top.sum))/(2 * sum(mat))
Thank you for your time
Last edited:

