Dr. James McCaffrey of Microsoft Research has revealed how to use Naive Bayes classification, a classical machine learning technique, to predict a person’s sex based on their job type, eye color and country of residence. Naive Bayes is a well suited technique for problems where the predictor variables are all categorical and can work well with small training datasets. There are several tools and code libraries, such as scikit-learn, that can be used to perform naive Bayes classification.