logreg-linreg
Logistic and Linear Regression in Python
Performing logistic regression in Python using:
regplot
function from the seaborn libraryGLM
(Generalized Linear Models) with Binomial family and Logit (default) link from the statsmodels libraryLogit
function from the statsmodels libraryLogisticRegression
from the scikit-learn library
Bootstrap method application is demonstrated for the purpose of estimating confidence intervals on logistic regression coefficients and predictions.
Performing linear regression in Python using:
regplot
function from the seaborn libraryOLS
(Ordinary Least Squares) from the statsmodels libraryLinearRegression
from the scikit-learn library
Bootstrap method application is demonstrated for the purpose of estimating confidence intervals on linear regression coefficients and predictions.
HTML offprint of the Jupyter Notebook can be viewed here.