How is the brain a statistical model of the world it inhabits?

How is the brain a statistical model of the world it inhabits?