Are you Confused with Correlation and Causation?
Last Updated on May 11, 2021 by Editorial Team
Author(s): Juhi Sharma
Data Science
Difference between Correlation and Causation
What is a βCo-relationβ?
βCo-relationβ is simply a relationship. If there is a correlation between two variables, we can observe a pattern betweenΒ them.
- Positive Correlation: When X increases, Y also increases or vice-versa
2. Negative Correlation: When X increases, Y also Decreases or vice-versa
3. No Correlation: When we canβt see any clear pattern between 2 variables.
Correlation is a Numerical value that tells about the strength of the relationship between the 2 things/Variables.
The correlation coefficient lies between -1 to1. Value of coefficient tells about the relationship Strength and sign tells about the how the variables are correlated. ( Positive sign tells that 2 variables are directly correlated and the negative sign tells that 2 variables are inversely correlated)
Example: Below in the image, we can see that there is a positive correlation between total bill and tipΒ paid.
What is causation?
Causation tells about the cause and effect relationship between 2 things. This means that a change in the value of one leads to a change in the value ofΒ another.
Example:
Exercise Caused Burning of calories.
Gravity causes objects to fall downwards.
Correlation doesnβt imply causation
If two things are correlated, doesnβt mean that one thing causesΒ another.
example: Going to Hospital is positively correlated with the number of deaths. It doesnβt mean that going to the hospital doesnβt cause you toΒ die.
Let's take oneΒ example
Smoking causes lungΒ cancer
People who do not smoke as the same chances of getting lung cancer as compared to the people who donβt?Β NO
Are any other reasons for Lung Cancer?Β YES
Here we can say that Smoking Contributes to Lung Cancer but it is not the only cause of Lung Cancer. There can be other causes like Pollution.
Before youΒ go
Thanks for reading! If you want to get in touch with me, feel free to reach me at [email protected] or my LinkedInΒ Profile.
Are you Confused with Correlation and Causation? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.
Published via Towards AI