What is the difference between correlation and cause and effect?

Correlation means that two or more sets of data move in some consistent pattern. Perhaps during a 10-year period the number of cars sold in the U.S. moved in the same direction as the country's rate of inflation. Even with a 10-year correlation between the two sets of data, it is unlikely that more inflation caused an increase in the number of cars sold. In other words, correlation does not assure that there is a cause and effect relationship.

On the other hand, if there is a cause and effect relationship, there will have to be correlation.