Magical thinking. Most common in children and adults with obsessive-compulsive disorder, but seen in people with bipolar disorders as well. Magical thinkers come to believe that by doing some sort of ritual they can avoid harm to themselves or others. The ritual may or may not be connected with the perceived harm, and sufferers tend to keep their rituals secret. Children are not always sure what harm the ritual is fending off; they may simply report knowing that “something bad will happen” if they don’t touch each slat of the fence or make sure their footsteps end on an even number. Others may come to feel that ritual behavior will bring about some positive event.
Identifying Irrational Thoughts | Psych Central