Standard deviation of intercept in a multivariate regression

1 view (last 30 days)
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

Answers (1)

Faiz Gouri
Faiz Gouri on 10 Feb 2017
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.

Categories

Find more on Descriptive Statistics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!