Here are some clips from a brief essay by Jesse Bering, who is director of The Institute of Cognition and Culture, Queens University, Belfast.
What if I were to tell you that God were all in your mind? That God, like a tiny spec floating at the edge of your cornea producing the image of a hazy, out-of-reach orb accompanying your every turn, were in fact an illusion, a psychological blemish etched onto the core cognitive substrate of your brain?...Consider, briefly, the implications of seeing God this way, as a sort of scratch on our psychological lenses rather than the enigmatic figure out there in the heavenly world most people believe him to be. Subjectively, God would still be present in our lives. In fact rather annoyingly so. As a way of perceiving, he would continue to suffuse our experiences with an elusive meaning and give the sense that the universe is communicating with us in various ways.
...in the natural sciences, the concept of God as a causal force tends to be an unpalatable lump of gristle. Although treating God as an illusion may not be entirely philosophically warranted, therefore, it is in fact a scientifically valid treatment. Because the human brain, like any physical organ, is a product of evolution, and since natural selection works without recourse to intelligent forethought, this mental apparatus of ours evolved to think about God quite without need of the latter's consultation, let alone his being real.
...the human brain has many such odd quips that systematically alter, obscure, or misrepresent entirely the world outside our heads. That's not a bad thing necessarily; nor does it imply poor adaptive design. You have undoubtedly seen your share of optical illusions before, such as the famous Müller-Lyer image where a set of arrows of equal length with their tails in opposite directions creates the subjective impression that one line is actually longer than the other. You know, factually, the lines are of equal length, yet despite this knowledge your mind does not allow you to perceive the image this way. There are also well-documented social cognitive illusions that you may not be so familiar with. For example, David Bjorklund, a developmental psychologist, reasons that young children's overconfidence in their own abilities keeps them engaging in challenging tasks rather than simply giving up when they fail. Ultimately, with practice and over time, children's actual skills can ironically begin to more closely approximate these earlier, favorably warped self-judgments. Similarly, evolutionary psychologists David Buss and Martie Haselton argue that men's tendency to over-interpret women's smiles as sexual overtures prompts them to pursue courtship tactics more often, sometimes leading to real reproductive opportunities with friendly women.
...from both a well-being and a biological perspective, whether our beliefs about the world 'out there' are true and accurate matters little. Rather, psychologically speaking, it's whether they work for us—or for our genes—that counts. As you read this, cognitive scientists are inching their way towards a more complete understanding of the human mind as a reality-bending prism. What will change everything? The looming consensus among those who take Occam's Razor seriously that the existence of God is a question for psychologists and not physicists.