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 面向数据科学家的实用统计学
14
|
第
1
章
1.4.3
 例子
:
美国各州人口的变异性估计量
本例的数据集中包括了美国各州的人口数量和谋杀率。表
1-3
显示了该数据集的前几行数据。
表1-3:
data.frame
的几行数据,显示了按州统计的人口数量和谋杀率
州 人口 谋杀率
1
阿拉巴马州
4 779 736 5.7
2
阿拉斯加州
710 231 5.6
3
亚利桑那州
6 392 017 4.7
4
阿肯色州
2 915 918 5.6
5
加利福尼亚州
37 253 956 4.4
6
科罗拉多州
5 029 196 2.8
7
康涅狄格州
3 574 097 2.4
8
特拉华州
897 934 5.8
下面使用
R
语言自带的函数计算标准偏差、四分位距和中位数绝对偏差。通过下面的计
算,我们得到了美国各州人口数据的变异性估计量。
> sd(state[["Population"]])
[1] 6848235
> IQR(state[["Population"]])
[1] 4847308
> mad(state[["Population"]])
[1] 3849870
可以看到,标准偏差几乎是中位数绝对偏差的两倍(在
R
语言中,默认将中位数绝对偏差
的规模调整到与均值一样)。这并不奇怪,因为标准偏差对离群值敏感。
本节要点
•
方差和标准偏差是日常最广为使用的变异性统计量。
•
方差和标准偏差都对离群值敏感。
•
更稳健的度量包括偏离均值(百分位数、四分位距)的平均(中位数)绝对偏差。
1.4.4
 拓展阅读
• David Lane
的在线统计学资源中有一节介绍了百分位数。
•
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