Is confirmation bias a real cognitive flaw, or a statistical ghost created by our models? My new PNAS paper shows a startling result: fitting Q-learning models to behavior in bandit tasks detect a bias, even from the behavior of a perfectly rational Bayesian learner.