I am using linear regression to predict 'y' based on 8 variables.(adsbygoogle = window.adsbygoogle || []).push({});

With my example, most the Betas that I got are negative. So, y, the value to predict, is negative.

To my data, y is a time in seconds, so I think it shouldn't be negative.

I my example in python, and I want to know if y should be negative, even when y is seconds, or my code is not correct.

Is is possible that y can be negative?

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# When y is negative in linear regression?

**Physics Forums | Science Articles, Homework Help, Discussion**