Suppose we were to find that happy people tend to be friendly. There is a correlation between happiness and friendliness. We might decide that there is a causal connection between these two factors, but which was the cause and which was the effect? A sensible way of settling this would be to investigate which comes first. Were these people happy first and then became friendly? Or were they first friendly and then became happy?