p-value and confident intervals with logistic regression?
See original GitHub issueDescription
Steps/Code to Reproduce
Expected Results
Actual Results
Versions
Hi, Could it be possible to get p-value and confident intervals with logistic regression? If not, how could I get them? I tried with Logit in statsmodel, but it always output NAN value for coefficient and p-values. Thanks a lot!
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Can you calculate Confidence Intervals for a logistic ...
Yes it's possible. Wald confidence intervals in a logistic regression are calculated on the log-odds scale and then exponentiated to get the ...
Read more >Confidence intervals when p-values are bordeline
In this case, summary() shows the Wald test using normal approximation. The corresponding confidence interval is obtained by confint.default(), which also uses ...
Read more >17.2 Inference for Logistic Regression
The answer is the P -value for the test of the null hypothesis that the logistic regression slope is zero. If this P...
Read more >Logistic Regression Odds Ratio Review Confidence Interval ...
The p-value of the test for β = 0 (OR = 1) is .000 which is less than 0.05. So sector variable is...
Read more >Chapter 18 Logistic Regression - Macmillan Learning
p. 549. CONFIDENCE INTERVALS AND SIGNIFICANCE TESTS FOR. LOGISTIC REGRESSION. An approximate level C confidence interval for the slope 1 in the logistic....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can I work on this?
See https://datascience.stackexchange.com/questions/15398/how-to-get-p-value-and-confident-interval-in-logisticregression-with-sklearn
There was also some an earlier discussion about this https://github.com/scikit-learn/scikit-learn/issues/6773
Although computing these for all models may be out of scope, I still think that it would be useful to add a small section on confidence intervals to the docs with pointers of where to look: e.g.
predict_proba
mentioning the difference between that information and e.g. confidence intervals computed by boostrapping