[R] CAPM-GARCH - Regression analysis with heteroskedasticity
mainzel89 at hotmail.com
Thu Nov 24 20:50:41 CET 2011
i want to do a CAPM-GARCH model. I didn´t find anything posted online.
(If there is something - shame on me - i didn´t find it.)
My Problem: What is the difference if I let the residuals “e” follow a
garch process ?
How do I do my regression analysis now? I began reading about regression
analyis with heteroscedasticity, but didn´t get it.
So i started programming.
First loading data with quantmod and applying a function to get continously
and squared returns. Looks good - stylised facts seems to be covered.
Starting with GARCH:
I use a GARCH(1,1) but will use it as an infinite ARCH(1,1):
Let h be the variance. ß_1 and a0 the coefficents and r2 the squared
Infinitive ARCH Model:
How I used it in R:
sumofbeta<- ß_1^rep(1:length(r2)) # Beta-Seq sum(ß_1^i) for the sum of the
Now i have my variance:
DOING THE CAPM:
Applying a simple regression analysis
ri <- alpha+beta*rm+e
e ~ N(0,h)
h is following the GARCH process decribed above
I don´t really get how my regression analysis changed when I change the
distribution of my residual “e”.
May be a dump question and somehow ashaming because it´s the concept of
CAPM-GARCH =) but I have to admit I don’t get it.
Thanks for your time and help
View this message in context: http://r.789695.n4.nabble.com/CAPM-GARCH-Regression-analysis-with-heteroskedasticity-tp4105346p4105346.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help