Your Brain Calculates Confidence Using Statistics