The Stochastics Of Diagnostic And Threat Detection Tests