# What to do when a linear regression gives negative estimates which are not possible

I am using linear regression to estimate values that in reality are always non-negative. The predictor variables are also non-negative. For instance, regressing the number of years of education and age to predict salary. All variables in this case are always non-negative.

Due to the negative intercept, my model (determined with OLS) results in some negative predictions (when the value of the predictor variable is low with respect to the range of all values).

This topic has already been covered here, and I am also aware that forcing the intercept at 0 is discouraged, so it seems that I have to accept this model as the one I have to use. However, my question here is about the accepted norms and rules when evaluating such model. Are there any particular rules here? Specifically:

• If I get a negative estimate can I just round it to 0?
• If the observed value is 100, and the predicted value is -300, and I know that the minimum possible value is 0, is the error 400 or 100? For instance, when calculating the ME and RMSE.

If it is relevant to the discussion: I have used both simple linear regression and multiple linear regression. Both result in several negative values.

Edit:

Here is the example of the samples with the fit: The coefficients of the linear regression are 0.0010(x) and -540 (intercept).

Here is what happens when I use log for the X: Is linear regression suitable here?

• Your model is misspecified; you need a different kind of model. If your data cannot go below 0, and your model can, your model does not reflect the reality of your data. The difference may not be a big enough deal to worry about in some context, but it sounds like that isn't the case here. – gung - Reinstate Monica Mar 26 '16 at 21:26
• @gung, I have updated the question with plots. – Mon Mar 28 '16 at 15:36
• @gung, I'd like to avoid to go into too much detail since I don't find it relevant, so let's say that both X and Y are variables like income, age, rainfall, etc. which cannot be negative. – Mon Mar 28 '16 at 15:45
• The details are definitely relevant to what kind of data X & Y are, & what kinds of relationships between them are possible. There is a very real limit to what we can advise you w/o more information. – gung - Reinstate Monica Mar 28 '16 at 16:03
• If you are going to transform anything, it should be Y not X. Also, transforming X will not address your problem directly in any case. But check out Poisson regression, e.g. blog.stata.com/tag/poisson-regression – Nick Cox Mar 28 '16 at 18:00