Non-Parametric Statistical Diagnosis