Instance-Based Classification through Hypothesis Testing