eqdisco.mlops.psi_critical_value#

eqdisco.mlops.psi_critical_value(n_ref, n_new, bins=10, level=0.95)[source]#

Value that the PSI of two samples of one distribution exceeds with probability 1 - level.

A second-order expansion of the logarithm shows that \(\mathrm{PSI}/(1/N+1/M)\) is asymptotically \(\chi^2\) with bins - 1 degrees of freedom when both samples come from the same distribution (Yurdakul and Naranjo, 2020); with 300 reference and 100 new samples in ten bins the 95 % point is 0.23, above the usual 0.1.