Standard deviation of intercept in a multivariate regression

1 回表示 (過去 30 日間)
Daniel Hooker
Daniel Hooker 2017 年 2 月 8 日
回答済み: Faiz Gouri 2017 年 2 月 10 日
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

回答 (1 件)

Faiz Gouri
Faiz Gouri 2017 年 2 月 10 日
It is my understanding that you would like to calculate standard deviation of your data.
You can use std or std2 based on your requirements to calculate the standatd deviation.

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by