# Tag Info

## New answers tagged logistic-regression

### How sklearn logistic regression computes accuracy, recall etc if we don't provide threshold?

The default threshold is 0.5, so it is computed on that basis. It is kind of a problem as it isn't well documented (not even on the logistic regression predict page) and a very common pitfall. The two ...
• 2,377

### Decision tree vs logistic regression feature importances

The difference in the importance of the 'Total day charge' coefficient between the decision tree and logistic regression models is due to the way that each model ...
• 2,981
Accepted

### Why does Logistic Regression perform better than machine learning models in clinical prediction studies

Clinical trial data is typically collected from a sample population and often has a limited size and number of features. Complex models applied to such data are more likely to overfit, whereas simpler ...
• 93
$$\text{logit}=\hat\beta_0+\hat\beta_1x\\ \text{cor}(x, \text{logit})\\ =\text{cor}(x, \hat\beta_0+\hat\beta_1x)\\ =\text{cor}(x, \hat\beta_1x)$$ If the estimated slope coefficient $\hat\beta_1>0$...