It can be tough to work out which of the three explanations – social contagion, homophily or a shared environment – is the correct one. Do you like a certain activity because your friend does, or are you friends because you both like that activity? Did you skip your running session because your friend did, or did you both abandon the idea because it was raining?

