Not believing in the horse shoe

The scientist had a horseshoe hanging behind his door. A horseshoe hanging upright collects luck, is the belief.

A visitor asked if the man is superstitious and he answered: "I am told it works, whether you believe in it or not".

This story is about someone acting against their own beliefs.
What meaning we make from that defines what we believe in.