Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I must write an application in C that calculates the Multiple Linear Regression but I have a doubt. Suppose to have

  • X The matrix is referred to as the design matrix. It contains information about the levels of the predictor variables at which the observations are obtained

-Y the output

-B The vector B contains all the regression coefficients. To obtain the regression model, should be known. B is estimated using least square estimates.

XB=Y is the relation in the system. After I calculate the error I must calculate the

B(^)=((Xtraspost*X)^-1)*y

where B(^) is the coefficients vector that minimizes the error.

if I don't have Y in the input data but only X how I can estimate y in this relation B(^)=((Xtraspost*X)^-1? Anyome can help me?

share|improve this question
    
Hi. I think what you call b(^) is more like (X'X)^(-1)X'Y (where X' is X transposed). However, there is no way to estimate it if you don't have any observed Y... –  Vincent May 12 at 9:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.