Population Stability Index

src.meliora.core.psi(data, bin_flag, variable)[source]

Calculate the PSI for a single variable :param expected_array: numpy array of original values :param actual_array: numpy array of new values, same size as expected :param buckets: number of percentile ranges to bucket the values into

Returns

calculated PSI value

Return type

psi_value