Monday, July 27, 2015

programming - To calculate the Hedge Efficiency and Optimal Hedge Ratio with BEKK in R




I estimated an MGARCH-BEKK model (using the R package BEKK, i.e. Baba, Engle, Kraft and Kroner; see Engle and Kroner (1995)) on time series of spot and futures prices. The estimated parameters are:


  =====================================================
Estimate Std. Error t value Pr(> | t| )
-----------------------------------------------------
mu1.DLog_Base -0.002 0.001 -1.498 0.134
mu2.DLog_B3 0.0003 0.001 0.282 0.778
A011 0.004 0.003 1.047 0.295
A021 0.0004
A022 0.013 0.001 14.475 0
A11 0.008 0.027 0.314 0.754

A21 -0.096 0.089 -1.077 0.282
A12 -0.052 0.088 -0.588 0.557
A22 0.661 0.122 5.395 0.00000
B11 0.967 0.010 96.058 0
B21 0.124
B12 0.073 0.123 0.596 0.551
B22 0.011 0.185 0.058 0.953
-----------------------------------------------------

I don't now to calculate the conditional variance and covariance matrix.



[σssσsfσfsσff]=[c110c21c22][c110c21c22]+[a1100a22][ϵ2s,t1ϵs,t1ϵf,t1ϵfs,t1ϵs,t1ϵ2f,t1][a1100a22]


+[b1100b22][σss,t1σsf,t1σfs,t1σff,t1][b1100b22]


My conditional variance and covariance matrix:


[σssσsfσfsσff]=

[0.00400.00040.013][0.00400.00040.013]+[0.008000.661][ϵ2s,t1ϵs,t1ϵf,t1ϵfs,t1ϵs,t1ϵ2f,t1][0.008000.661]


+[0.967000.011][σss,t1σsf,t1σfs,t1σff,t1][0.967000.011]


To calculate the optimal hedge ratio BEKK:


ht=cov(ΔSt,ΔftΩt1)var(ΔftΩt1)


ΔSt, Δft is the return price spot and future, and Ωt1 is conditional variance and covariance matrix.




No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...