Analysis of Diagnostics (Part I): Prevalence, Uncertainty Quantification, and Machine Learning