Niketkumardheeryan / ML-CaPsule

ML-capsule is a Project for beginners and experienced data science Enthusiasts who don't have a mentor or guidance and wish to learn Machine learning. Using our repo they can learn ML, DL, and many related technologies with different real-world projects and become Interview ready.
MIT License
365 stars 309 forks source link

Correlation Tests (Pearson Correlation Coefficient,Spearman's Rank Correlation Coefficient) #852

Closed ranamanish674zu closed 2 months ago

ranamanish674zu commented 3 months ago

Pearson Correlation Coefficient and Spearman's Rank Correlation Coefficient are both measures of the strength and direction of the relationship between two variables, but they differ in their assumptions and applicability.

Pearson Correlation Coefficient (r) measures the linear relationship between two continuous variables. It ranges from -1 to 1, where -1 indicates a perfect negative linear relationship, 1 indicates a perfect positive linear relationship, and 0 indicates no linear relationship. Pearson's correlation assumes that the data are normally distributed and have a linear relationship with homoscedasticity (constant variance of the error terms).

Spearman's Rank Correlation Coefficient (ρ or rs) measures the strength and direction of the monotonic relationship between two variables, which can be ordinal, interval, or continuous. It is based on the ranks of the data rather than the raw data itself and ranges from -1 to 1, with the same interpretation as Pearson's correlation. Spearman's correlation does not assume normal distribution or linearity and is used when data are not normally distributed or when the relationship is not linear.

Both tests provide insights into the associations between variables but are chosen based on the nature and distribution of the data.

ranamanish674zu commented 3 months ago

Can you assign it to me? @Niketkumardheeryan Full name: Manish Rana GitHub profile link: https://github.com/ranamanish674zu Email ID: manish.rana2021@vitbhopal.ac.inn Approach for this : python What is your participant role?: GSSoC-2024 contributor

Can you add the label for GSSoC, i want to work on it Thanks.