1

How can I evaluate which model - between linear and logit - determine the best fit to the data? The models use the same input variables and I thought that comparing the deviances was the proper choice but in my case I get a lower deviance in linear model (wasn't it supposed to be higher). What am I supposed to use to compare these models? Here the results:

#LINEAR
Null deviance: 178568  on 1107865  degrees of freedom 
Residual deviance: 163398  on 1107820  degrees of freedom
AIC: 1023626
#LOGIT
Null deviance: 1114802  on 1107865  degrees of freedom
Residual deviance: 1017671  on 1107820  degrees of freedom
AIC: 1017763
  • 1
    Welcome to Cross Validated! What exactly do you want to do? // If you're using linear regression, you probably assume a Gaussian likelihood, meaning that you are comparing a measure of square loss and a measure of log loss. – Dave May 06 '22 at 16:13
  • 1
    You don't mention what the outcome variable is, which tends to be the most important consideration in choosing between a linear regression (used to model continuous Y) and logistic regression (used to model counts). – dipetkov May 06 '22 at 16:51
  • The outcome is a binary variable, which makes logit model clearly the proper choice, as far as I have studied. But I need an estimator of goodness of fit in order to get a numerical proof that logit is superior than linear. I know that logit is explicitly developed to fit binary outcome, but what if I wanted to get the numerical proof in terms of goodness of fit (compared to linear model)? – StefanoB May 06 '22 at 17:02
  • Your linear deviance is actually higher ? Also, a linear regression is used for regression and logistic regression is used for classification, those models aim different goals. – Lelouch May 06 '22 at 20:25
  • You simply cannot compare deviance between linear and logistic regression, as hinted at in the other comments. See https://stats.stackexchange.com/questions/345069/likelihood-comparable-across-different-distributions, – kjetil b halvorsen May 07 '22 at 01:04

0 Answers0