A method for classification of data with uncertainty using hypothesis testing