Stereotyping as Inductive Hypothesis Testing