Stochastic Physics Of Biological Assays And Improved Inference