How to find correlation in python?
Statistics and data science are often concerned about the relationships between two or more variables (or features) of a dataset.
A correlation could be positive, meaning both variables move in the same direction, or negative, meaning that when one variable’s value increases, the other variables’ values decrease. Correlation can also be neutral or zero, meaning that the variables are unrelated.
There are three types of correlation:-
- Positive Correlation: both variables change in the same direction.
- Neutral Correlation: No relationship in the change of the variables.
- Negative Correlation: variables change in opposite directions.
We have many libraries to find the correlation between variables like panda, numpy, seaborn, matplotlib, etc.
We can easily import these libraries in python and make graphs and other things to know the relation between variables.
Please login to comment
View all comments