A query about Log. Regression !!

omarnj
New Altair Community Member
Hello everyone,
I want to ask about the Coefficients and intercept of the log Regression .. sometimes I get big numbers for the Coefficients or negative big number fro the intercept .. how can I make sure that everything is correct and no mistakes in my model !!
Thanks.
I want to ask about the Coefficients and intercept of the log Regression .. sometimes I get big numbers for the Coefficients or negative big number fro the intercept .. how can I make sure that everything is correct and no mistakes in my model !!
Thanks.
Tagged:
0
Answers
-
It really does not matter if coefficients are very large or very small. If you worry about their magnitude try normalizing your attributes (still no guarantee they would become smaller). Just treat your Logistic Regression as any other binomial classification model and validate it (or better cross-validate it). Use Performance (Binomial Classification) and measure its Accuracy, Kappa and Correlation. Then you'll know if it worked well or not.Jacob1
-
You can essentially ignore the intercept term. It is merely there as a bias offset, and it has no influence on the factors in the model. In fact you can specify in an advanced option whether to include or remove the intercept (standardized) altogether.
As previously implied, you should focus on the standardized coefficients (part of the model description output, 2nd column) to understand the relative magnitude of the effects of different attributes. The original coefficients are scaled based on the ranges of each underlying attribute, which may not be the same.0 -
Hi @omarnjFrom the algorithmic point of view, you can compare the RM implementation with the ones in Python and R, you should obtain the same results (make sure that you are using the same options, for example for the solver).If you want to know whether a logreg model is adequate, you have several options. If you are interested in the model's performance, your best bet is to do cross validation and look at accuracy, recall, F-value, AUC, etc. If you are interested in the interpretation of the coefficients, you can calculate confidence intervals by hand by using the standard errors. Here is an explanation:Note that statistical libraries in R or Python give you this information directly.Kind regards,Sebastian
0