Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
A query about Log. Regression !!
omarnj
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.
Find more posts tagged with
AI Studio
Accepted answers
All comments
sgenzer
hi
@omarnj
can you please post your process XML and your data set so we can see what you are asking about?
jacobcybulski
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.
Jacob
Telcontar120
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.
SGolbert
Hi
@omarnj
From 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:
https://stats.stackexchange.com/questions/354098/calculating-confidence-intervals-for-a-logistic-regression
Note that statistical libraries in R or Python give you this information directly.
Kind regards,
Sebastian
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups