Skip to Content
面向数据科学家的实用统计学
book

面向数据科学家的实用统计学

by Peter Bruce, Andrew Bruce
October 2018
Beginner to intermediate
238 pages
6h 32m
Chinese
Posts & Telecom Press
Content preview from 面向数据科学家的实用统计学
探索性数据分析
|
25
与平均值和标准偏差一样,相关系数同样对数据离群值敏感。对于经典的相关系数,有的
软件包提供了一些稳健的替代方法。例如,
R
语言的
cor 函数具有 trim 参数
9
,设置类似于
截尾均值的计算
10
。
其他相关性估计量
统计学家早就提出了其他类型的相关系数,例如
斯皮尔曼秩相关系数
(
Spearman
’
s rho
)、
肯德尔秩相关系数
(
Kendall
’
s tau
)等基于数据秩的相关
系数。由于这些估计量操作的是秩,而非数据值,所以它们对离群值稳健,
并可以处理特定类型的非线性。但是在探索性数据分析中,数据科学家通常
会坚持使用皮尔逊相关系数及其一些稳健的替代者。多数情况下,基于秩的
估计量适用于小规模的数据集以及特定的假设检验。
1.7.1
 散点图
散点图是一种可视化两个测量数据变量间关系的标准方法。在散点图中,
x
轴表示一个
变量,
y
轴表示另一个变量,图中的每个点对应于一条记录。图
1-7
显示了股票
ATT
和
Verizon
日收益的绘图,用下面的
R
命令生成。
plot(telecom$T, telecom$VZ, xlab="T", ylab="VZ")
从图中可以看到,两支股票的日收益具有强正相关性。在大部分交易日中,两支股票都保持
同步涨跌。但还有少数几个交易日,其中一支股票明显下跌而另一支股票上涨,或是相反。
图 1-7:股票 ATT 和 Verizon 日收益的散点图
注
9
:原文即是如此。事实上,
R
的
cor
函数并不提供
trim
参数。在
R
中,有多种方法实现对离群值稳健的
相关性计算。一种是通过设置 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

基于Python的智能文本分析

基于Python的智能文本分析

Benjamin Bengfort, Rebecca Bilbro, Tony Ojeda
Python数据处理

Python数据处理

Jacqueline Kazil, Katharine Jarmul
精通機器學習

精通機器學習

Aurélien Géron
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787115493668