Questions tagged [logistic]
8 questions
2
votes
0 answers
Force positive coefficients for Logistic Regression and LinearSVC
Do you know what is the best way to force positive coefficients with Logistic Regression and Linear SVC using scikit learn?
for instance
svm = LinearSVC(loss='hinge' )
coefficients = svm.coef_
Is there a way to force them to be positive numbers?
Alex
- 145
- 5
1
vote
1 answer
How does inverse of logistic function produces "linear relationship", (so we can use least-squares)
I am reading about time-series analysis in "A First Course on
Time Series Analysis". The book reviews the logistic function ($f_{log}(t)$) (more on the special logistic function here and here).
Part 1.6 (PDF page 16; book page 8; screenshot below)…
Nate Anderson
- 393
- 4
- 10
1
vote
1 answer
Why is my predictor value (continuous) perfectly correlated with my logit value (when testing logistic regression model assumptions)?
Question: Why is my predictor value (continuous) perfectly correlated with my logit value (when testing logistic regression model assumptions)?
Code:
# linearity in the logit for continuous var: check the linear relationship bw continuous predictor…
In_cognito
- 11
- 2
1
vote
1 answer
Checking Linearity in Logistic Regression Model by plotting log-odds against each independent variable
Is plotting the log_odds vs independent variables an appropriate way to check the linearity in logistic regression with multiple predictors?
I feel the assumption should be that linearity between dependent and an independent variable exists when…
Umang Garg
- 11
- 1
1
vote
1 answer
Effect of log odds on skewed data
Does taking the log of odds bring linearity between the odds of the dependent variable & the independent variables by removing skewness in the data? Is this one reason why we use log of odds in logistic regression?
If yes, then is log transformation…
Apoorva
- 275
- 4
- 13
1
vote
2 answers
Why is cross entropy based on Bernoulli or Multinoulli probability distribution?
When we use logistic regression, we use cross entropy as the loss function. However, based on my understanding and https://machinelearningmastery.com/cross-entropy-for-machine-learning/, cross entropy evaluates if two or more distributions are…
Feng Chen
- 207
- 1
- 9
0
votes
0 answers
How we interpret the coefficients of the WOE and Log-odd transformed variables in Logistic Regression?
We have a model with below-mentioned details:
target = PD (probability of default)
feature_1 = WOE transformed age ({
'woe for 18-45': 12.5%,
'woe for 46-65': - 43.4%,
…
Sitara
- 1
0
votes
1 answer
Interpreting log odds in case of multiple predictor variables
Interpretation of log odds with a single predictor variable -->
0.8=2.5(Hypertension)
The odds of a person with hypertension getting heart disease is 0.8.
Log odds with multiple predictor variables…
Apoorva
- 275
- 4
- 13