python皮尔逊相关系数
时间: 2023-10-17 12:36:22 浏览: 105
Python的pandas库提供了用于计算皮尔逊相关系数的函数,可以通过调用DataFrame的corr方法来计算。皮尔逊相关系数是用来度量两个变量之间线性相关程度的统计量。它的取值范围在-1到1之间,其中-1表示完全负相关,1表示完全正相关,0表示无相关性。方法的参数method设置为'pearson'即可计算出皮尔逊相关系数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Python 余弦相似度与皮尔逊相关系数 计算实例](https://download.csdn.net/download/weixin_38654382/12856976)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [python 皮尔森相关系数(Pearson)](https://blog.csdn.net/small__roc/article/details/123519616)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [皮尔逊相关系数python实现](https://blog.csdn.net/weixin_43876625/article/details/123919665)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文