Inferring Cognitive Heterogeneity From Aggregate Choices