animator / learn-python

📖🐍 Free & Open Source book to master Python 3. Also available: PDF & Web Interface.
https://animator.github.io/learn-python/
Creative Commons Attribution Share Alike 4.0 International
324 stars 213 forks source link

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

Open ranamanish674zu opened 2 days ago

ranamanish674zu commented 2 days ago

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.

ranamanish674zu commented 2 days ago

Can you assign it to me? @animator

Full name: Manish Rana GitHub profile link: https://github.com/ranamanish674zu Email ID: manish.rana2021@vitbhopal.ac.in Approach for this project: Will use python What is your participant role?: GSSoC-2024 contributor

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