python求皮尔逊相关系数
时间: 2023-11-04 18:56:22 浏览: 109
Python中可以使用多种方法求解皮尔逊相关系数。一种方法是使用NumPy库中的函数来计算皮尔逊相关系数。我们可以先对两个变量进行标准化处理,然后使用numpy的corrcoef函数计算相关系数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Python--如何计算皮尔逊相关系数(Pearson correlation coefficient)](https://blog.csdn.net/weixin_41744624/article/details/109266940)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Python计算皮尔逊相关系数](https://blog.csdn.net/qq_37770754/article/details/109828078)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文