Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

X is rank deficient to within machine precision.

1,460 views
Skip to first unread message

Michele Costola

unread,
Oct 31, 2009, 5:56:02 AM10/31/09
to
Hi everybody,
I'm doing regression on my y with x serie with 15 lag, so I have 17 column (const+1+15) in my x. When I start the regression I get this error:

Warning: X is rank deficient to within machine precision.
> In regress at 82

I tried to search on the newsreader but I don't really understand what could be the problem and how to solve it.
Thank you for your support,
Michele

Peter Perkins

unread,
Nov 2, 2009, 8:26:21 AM11/2/09
to
Michele Costola wrote:
> Hi everybody,
> I'm doing regression on my y with x serie with 15 lag, so I have 17 column (const+1+15) in my x. When I start the regression I get this error:
>
> Warning: X is rank deficient to within machine precision.
>> In regress at 82

Most likely you have too many predictor variables, and too few observations. As an alaogy, imagine trying to fit a cubic polynomial regression with only two observations. REGRESS will make a choise about which coefficients to set to zero, but it can't possibly know what you really want.

Hope this helps.

FG

unread,
Jan 9, 2012, 3:35:09 PM1/9/12
to
This is likely multicollinearity. if you the variables are dummies, remember to leave out one of the dummies as the model's intercept will pick up the dummy you leave out as the base model.


Peter Perkins <Peter....@MathRemoveThisWorks.com> wrote in message <hcmmlt$lqh$2...@fred.mathworks.com>...

Dinakar

unread,
Mar 6, 2014, 11:07:08 PM3/6/14
to
You have an extra intercept - you dont need both const and 1. Drop one and see.

Regards
Dj

"mklcst mklcst" wrote in message <hch1ji$1g0$1...@fred.mathworks.com>...
0 new messages