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

回答(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 CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by