Standard deviation of intercept in a multivariate regression
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!