What are examples of correlation vs causation?

A correlation is a relationship between two variables: as one changes, the other tends to change as well. For example, coffee consumption is correlated with productivity: people who drink more coffee often report getting more done.

Causation, on the other hand, means that a change in one variable directly causes changes in another. To test whether coffee actually increases productivity, you could conduct an experiment: assign some people to drink coffee and others to drink water, and compare their task performance.

It’s important to remember that correlation does not imply causation. Even if coffee consumption and productivity are correlated, it doesn’t mean one causes the other. It’s possible that people who are working more are tired, so they drink more coffee.