A safe Hosmer-Lemeshow test

Alexander Henzi, Marius Puke, Timo Dimitriadis, Johanna Ziegel
3/1/2022
stat.ME

Official code: marius-cp/eHL (0 stars, R, last commit 2023-02-24).

Abstract

This article proposes an alternative to the Hosmer-Lemeshow (HL) test for evaluating the calibration of probability forecasts for binary events. The approach is based on e-values, a new tool for hypothesis testing.

Show full abstract

An e-value is a random variable with expected value less or equal to one under a null hypothesis. Large e-values give evidence against the null hypothesis, and the multiplicative inverse of an e-value is a p-value. Our test uses online isotonic regression to estimate the calibration curve as a `betting strategy' against the null hypothesis. We show that the test has power against essentially all alternatives, which makes it theoretically superior to the HL test and at the same time resolves the well-known instability problem of the latter. A simulation study shows that a feasible version of the proposed eHL test can detect slight miscalibrations in practically relevant sample sizes, but trades its universal validity and power guarantees against a reduced empirical power compared to the HL test in a classical simulation setup.We illustrate our test on recalibrated predictions for credit card defaults during the Taiwan credit card crisis, where the classical HL test delivers equivocal results.

View on arXivView PDF

Code Implementations(1)

marius-cp/eHLOfficial100%

Replication material for "A safe Hosmer-Lemeshow test".

00RAug 29, 20213 years ago

Similar Papers

Cite this paper

@article{henzi2022safe,
  title  = {A safe Hosmer-Lemeshow test},
  author = {Alexander Henzi and Marius Puke and Timo Dimitriadis and Johanna Ziegel},
  year   = {2022},
  eprint = {2203.00426},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.00426}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.00426.svg)](https://codeofpaper.com/paper/2203.00426)

Discussion