Pattern recognition first experiment Bayesian principle