All our sensors are noisy and our perception of the world is incomplete. Hence, the brain needs to solve a statistical problem: estimate the state of the world based on incomplete information. We use perceptual and imaging studies to ask how the brain solves such statistical problems. Following ideas inspired by Bayesian statistics we ask how the brain represents and computes with uncertainty.