It starts when people try something different—Pepsi instead of Coca-Cola, a blue tie instead of the old red one—and find that something good happens.

Soon, without realizing it, someone who wouldn't think twice about, say, walking under a ladder or traveling on Friday the 13th begins to associate their new behavior with good luck—and starts reaching for the Pepsi again and again.

Such...