In RATS (using the various models from GARCHUV.RPF):
(a) How do I plot the PDF Fit from a (G)ARCH-family model superimposed on the raw returns, as (G)ARCH-family says returns are distributed around the mean with volatility sigma(t)?
(b) I want a diagnostic check (the assumption about the innovations), so plot the standardized residuals eps(t)/sigma(t) against the assumed pdf (Normal/t/GED). How?
Additionally,
Code: Select all
*===============================
* Normal overlay
@histogram(distrib=normal,maxgrid=100,$
header="distribution of log-returns dlogdm overlay of the normal density") dlogdm
* KDE overlay
density dlogdm / sgrid sdensity
density(type=histogram) dlogdm / hgrid hdensity
scatter(style=bargraph,overlay=line,header='kernel estimates of the distribution of log-returns dlogdm') 2
# hgrid hdensity
# sgrid sdensityFurther, how would I overlay all 3: normal, KDE and GARCH PDF Fit, with the histogram of the returns?
thanks,
Amarjit