I am doing logistic regression with 3 attributes. According to my data set I am expecting all coefficients to be positive. But it gives me both positive and negative coefficients. Is it possible to have all positive coefficients using logistic regression.

  • $\begingroup$ Are you expecting the coefficients on the log odds scale to be positive? $\endgroup$ Feb 7, 2019 at 5:56
  • $\begingroup$ no, i want the logistic regression coefficients to be positive $\endgroup$
    – jenyK
    Feb 7, 2019 at 6:17
  • $\begingroup$ Do you have any regression software that allows setting bounds on the parameters? If so, you could set all of the lower bounds at zero. $\endgroup$ Feb 7, 2019 at 12:25
  • $\begingroup$ Can you post the output of your software? $\endgroup$ Feb 7, 2019 at 13:34

1 Answer 1


Yes, it is possible to have all positive coefficients in logistic regression.

That doesn't say very much, if a covariable $x$ have a negative coefficient you can just replace that covariable by $-x$ and get a positive coefficient ... you would get a more useful answer if you told us about your real problem, your data, the context and research questions.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.