Standard deviation of intercept in a multivariate regression
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am currently performing some analysis on mutual fund performance using the regression equation:
Rit – Rft = αi + β0i(Rmt – Rft) + β1iSMBt + β2iHMLt + β3iMOMt + εit
I would like to perform t-tests on the alpha (intercept) for each fund and need to obtain the standard deviation for each alpha value for each fund to do so. So far I have used the following coding in order to obtain the alphas for each fund, but I am unsure how to obtain their standard deviations:
for i=1:2377
x=FUNDRETURNS(:,i);
y=isnan(x);
sy=sum(y);
x=x((sy+1):end);
lx=length(x);
X=zeros(lx,5);
X(:,1)=ones(lx,1);
X(:,2:5)=Carhart4Factors((sy+1):end,:);
beta=inv(X'*X)*X'*x;
alpha(i)=beta(1);
end
This gives me a vector of the alpha estimates for each fund. I was wondering if anyone would be able to point me in the right direction from here?
Thanks in advance,
Daniel
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Descriptive Statistics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!