Re: Stochastic Volatility Model
Posted: Wed Apr 03, 2019 7:07 am
"By the way".bekkdcc wrote:Dear Tom,
Thanks for your help. It seems perfect now, but I have some question for the last time
1. I corrected the set dlogp = log(ith) but what is the abbreviation BTW ?
The problem is the estimation range, not the data range.bekkdcc wrote: 2. There is a code to narrow down the sample range and analyze it, but I couldn't remember what was the code beginning with .....:
calendar(m) 2010
data(org=obs,format=xls) 2010:01 2018:12 usd ith
*
*
............ 2011:04 2015:09
You don't want to see that.bekkdcc wrote: 4. phi seems statistically insignificant, is that mean SW model not appropriate or something else?
dlm(method=bfgs,sw=sw,sv=varx2,y=ysq,type=filter,c=1.0, $bekkdcc wrote: 3. You can't start your estimation with entry 2, as you're losing entries due to the lags. Where is the entry 2 and how can change it?
Thanks in advance
sx0=sw/(1-phi^2),x0=gammax,a=phi,z=gammax*(1-phi)) 2 * states
The start range on the DLM (both of them) can't be 2 (colored) as you've lost data points due to lags in the mean model. It looks like it should be 5.
As with a GARCH model, the first assumption with an SV model is that the series being modeled (your residuals) are serially uncorrelated. Are they? It doesn't look like your model would be able to do that.