On Confirmation Bias and How to Avoid It