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 面向数据科学家的实用统计学
44
|
第
2
章
# 绘制直方图
ggplot(income, aes(x=income)) +
geom_histogram(bins=40) +
facet_grid(type ~ .)
2.3.1
 中心极限定理
上例中的现象被称为
中心极限定理
。该定理指出,即便原始总体不符合正态分布,但是只
要样本的规模足够大,并且数据并非在很大程度上偏离正常值,那么从多个样本得到的均
值将会呈现出我们所熟知的钟形正态曲线(参见
2.6
节)。在使用抽样分布做推理时,即置
信区间和假设检验中,中心极限定理允许我们使用
t
分布这样的近似正态公式。
中心极限定理在传统的统计学教科书中得到了大量的关注,因为它是支持假设检验和置信
区间的底层机制,而这些内容本身就占据了教科书的一半篇幅。数据科学家应该了解这一
点,但是鉴于在数据科学中,任意场景都能使用
自助法
(
bootstrap
)解决问题,很少正式
地使用假设检验和置信区间,因此中心极限定理并非处于数据科学实践的中心位置。
2.3.2
 标准误差
标准误差
是一种单变量度量,它总结了单个统计量抽样分布的变异性。标准误差可以根据
样本值的标准偏差
s
和样本规模
n
,使用基于统计学的方法进行估计,公式如下。
标准误差
s
n
=
正如我们在图
2-6
中所观察到的,标准误差会随样本规模的增大而减小。有时,我们称标
准误差与样本规模间的关系为
n
的平方根
规则。如果要使标准误差减小一半,那么样本规
模应该增大四倍。
标准误差计算公式的合理性源于中心极限定理(参见
2.3.1
节)。事实上,我们不必依靠中
心极限定理来理解标准误差。下面的方法可用于测量标准误差。 ...
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

精通機器學習

精通機器學習

Aurélien Géron
基于Python的智能文本分析

基于Python的智能文本分析

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

Python数据处理

Jacqueline Kazil, Katharine Jarmul

Publisher Resources

ISBN: 9787115493668