Data Analysis, Chemometrics, Spectroscopy, Raman Spectroscopy, Cosmic Rays.
0.6745 is the 0.75th quartile of the standard normal distribution, to which the MAD converges to⁴. def modified_z_score(intensity): median_int = np.median(intensity) mad_int = np.median([np.abs(intensity — median_int)]) modified_z_scores = 0.6745 * (intensity — median_int) / mad_int return