An implementation of the Hosmer-Lemeshow goodness of fit test in Python.
Use the HosmerLemeshow function in HosmerLemeshow.py to perform the test for your logistic regression. The HosmerLemeshow.ipynb notebook provides a detailed explanation of the test.
- Hosmer, David W.; Lemeshow, Stanley (2013). Applied Logistic Regression. New York: Wiley. ISBN 978-0-470-58247-3.
This software is distributed under the MIT License. Please refer to the file LICENCE.txt included for details.