{"id":78291,"date":"2025-06-01T21:56:41","date_gmt":"2025-06-01T21:56:41","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78291"},"modified":"2025-06-08T21:34:01","modified_gmt":"2025-06-08T21:34:01","slug":"pearson-vs-spearman-correlation","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78291","title":{"rendered":"Pearson vs Spearman Correlation"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><strong>Pearson:<\/strong> <\/p>\n\n\n\n<p>Generally Linear relation<\/p>\n\n\n\n<p>Assumes Linearity.<\/p>\n\n\n\n<p>Correlation between height and weight<\/p>\n\n\n\n<p>Sensitive to outliers.<\/p>\n\n\n\n<p><strong>Spearman:  <\/strong><\/p>\n\n\n\n<p>increasing or decreasing relationship, but may not be linear. Monotonic. <\/p>\n\n\n\n<p>Higher marks lead to lower ranks, but generally not linearly. <\/p>\n\n\n\n<p>Does not assume Linearity.<\/p>\n\n\n\n<p>It can be good for categorical variables and relationships.<\/p>\n\n\n\n<p>Less Sensitive to outliers.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Ref: Internet sources<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pearson: Generally Linear relation Assumes Linearity. Correlation between height and weight Sensitive to outliers. Spearman: increasing or decreasing relationship, but may not be linear. Monotonic. Higher marks lead to lower ranks, but generally not linearly. Does not assume Linearity. It can be good for categorical variables and relationships. Less Sensitive to outliers. Ref: Internet sources<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1974,1],"tags":[],"class_list":["post-78291","post","type-post","status-publish","format-standard","hentry","category-analytics-and-machine-learning-project-development","category-root","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78242,"url":"http:\/\/bangla.sitestree.com\/?p=78242","url_meta":{"origin":78291,"position":0},"title":"Statistics for Data Analytics and Machine Learning Projects","author":"Sayed","date":"May 22, 2025","format":false,"excerpt":"\u2022Null Hypothesis \u2022[2] \u2022Paired t-test \u2022Unpaired t-test \u2022Pearson Correlation \u2022One Way: Analysis of variance \u2022Spearman Correlation \u2022Spearman \u2022Kendal Tau Coef \u2022Wilcoxon Sum test \u2022Basic EDA \u2022Mcnaimer\u2019s test \u2022Friedman test \u2022Kruskal-Wallis Test \u2022Two Way Analysis of variance \u2022K-Fold Cross Validation paired t-test \u2022Wilcoxon Signed Rank Test Data Analytics, Machine Learning, Data\u2026","rel":"","context":"In &quot;Analytics and Machine Learning Project Development&quot;","block_context":{"text":"Analytics and Machine Learning Project Development","link":"http:\/\/bangla.sitestree.com\/?cat=1974"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-37.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-37.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-37.png?resize=525%2C300 1.5x"},"classes":[]},{"id":14811,"url":"http:\/\/bangla.sitestree.com\/?p=14811","url_meta":{"origin":78291,"position":1},"title":"Next Recession: How to Invest and Profit in the Next Recession","author":"Sayed","date":"June 17, 2019","format":false,"excerpt":"How to Invest and Profit in the Next Recession https:\/\/www.bloomberg.com\/opinion\/articles\/2019-06-17\/how-to-invest-and-profit-in-the-next-recession \" plan on deploying your cash in tranches: Buy a U.S. index fund when markets are down 20 to 25%; add a developed global index fund when markets fall by 30%. And if we are lucky enough to enjoy a\u2026","rel":"","context":"In &quot;AI ML DS RL DL NN NLP Data Mining Optimization&quot;","block_context":{"text":"AI ML DS RL DL NN NLP Data Mining Optimization","link":"http:\/\/bangla.sitestree.com\/?cat=1910"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25039,"url":"http:\/\/bangla.sitestree.com\/?p=25039","url_meta":{"origin":78291,"position":2},"title":"Next Recession: How to Invest and Profit in the Next Recession #Root","author":"Author-Check- Article-or-Video","date":"April 15, 2021","format":false,"excerpt":"How to Invest and Profit in the Next Recession https:\/\/www.bloomberg.com\/opinion\/articles\/2019-06-17\/how-to-invest-and-profit-in-the-next-recession \" plan on deploying your cash in tranches: Buy a U.S. index fund when markets are down 20 to 25%; add a developed global index fund when markets fall by 30%. And if we are lucky enough to enjoy a\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76091,"url":"http:\/\/bangla.sitestree.com\/?p=76091","url_meta":{"origin":78291,"position":3},"title":"Spearman Correlation Coefficient and Graph Mining","author":"Sayed","date":"May 19, 2024","format":false,"excerpt":"#!\/usr\/bin\/env python coding: utf-8 # 3rd Model: Deepgraph CNN: Stock Price Prediction using DeepGraphCNN Neural Networks. It includes GCN layers and CNN layers. I have added an MLP at the last layer to predict stock prices. # # Input graphs were created for spearman, Spearman, and Kendal Tau correlations\/coefficients from\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76087,"url":"http:\/\/bangla.sitestree.com\/?p=76087","url_meta":{"origin":78291,"position":4},"title":"Python\/ML Correlation Coefficients","author":"Sayed","date":"May 19, 2024","format":false,"excerpt":"df_s_transpose_pearson = df_s_transpose.corr(method = 'pearson', numeric_only = True) df_s_transpose_pearson # Pearson Correlation Coefficient df_s_transpose_pearson = df_s_transpose.corr(method = 'pearson', numeric_only = True) df_s_transpose_pearson Pearson Correlation Coefficient based Adjacency Graph Matrix df_s_transpose_pearson[df_s_transpose_pearson >= 0.5] = 1 df_s_transpose_pearson[df_s_transpose_pearson < 0.5] = 0 df_s_transpose_pearson Create a Graph import networkx as nx Graph_pearson = nx.Graph(df_s_transpose_pearson)\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=700%2C400 2x"},"classes":[]},{"id":16536,"url":"http:\/\/bangla.sitestree.com\/?p=16536","url_meta":{"origin":78291,"position":5},"title":"Part 2: Some basic Math\/Statistics concepts that Data Scientists (the true ones) will usually know\/use","author":"Sayed","date":"December 29, 2019","format":false,"excerpt":"Part 2: Some basic Math\/Statistics concepts that Data Scientists (the true ones) will usually know\/use (came across, studied, learned, used) Covariance and Correlation \"Covariance is a measure of how two variables change together, but its magnitude is unbounded, so it is difficult to interpret. By dividing covariance by the product\u2026","rel":"","context":"In &quot;Math and Statistics for Data Science, and Engineering&quot;","block_context":{"text":"Math and Statistics for Data Science, and Engineering","link":"http:\/\/bangla.sitestree.com\/?cat=1908"},"img":{"alt_text":"[eq5]","src":"https:\/\/i0.wp.com\/www.statlect.com\/images\/covariance-formula__12.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78291"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78291\/revisions"}],"predecessor-version":[{"id":78292,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78291\/revisions\/78292"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78291"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}