Skip to Content
R 语言经典实例(原书第 2 版)
book

R 语言经典实例(原书第 2 版)

by J.D. Long, Paul Teetor
June 2020
Beginner to intermediate
522 pages
9h 6m
Chinese
China Machine Press
Content preview from R 语言经典实例(原书第 2 版)
222
9
统计概论
R 的任何有意义的应用都包括统计、模型或图形。本章介绍统计知识。其中,一些方法
简单描述了如何计算统计量,例如相对频率。大多数方法涉及统计检验或置信区间。统
计检验允许你在两个相互矛盾的假设之间进行选择,具体过程在下面描述。置信区间反
映了总体参数的可能范围,并根据数据样本进行计算。
原假设、备择假设和
p
本章中的许多统计检验都使用久经考验的统计推断方法。在检验过程中,一般有一个或
两个数据样本。我们还有两个相互对立的假设,其中一个是合理真实的。
其中一个假设称为
原假设
null hypothesis),它意味着
没有发生任何变化
:平均值没有
变化;治疗无效;你得到了预期的答案;模型没有改善,等等。
另一个假设,称为
备择假设
alternative hypothesis),
发生了变化
:平均值增加;治疗
改善了患者的健康;你有一个意想不到的答案;模型拟合更好,等等。
需要根据数据确定哪个假设更有可能为真。我们通过以下步骤做到这一点:
1. 首先,我们假设原假设是正确的。
2. 我们计算一个检验统计量。它可能是一个简单的指标,例如样本的平均值,或者它
也可能是非常复杂的指标。关键要求是我们必须知道统计量的分布。我们可能知道
样本均值的分布,例如,通过应用中心极限定理。
3. 从统计量及其分布,我们可以计算
p
值,它是在假设原假设为真时,得到这么大的
检验统计量值或者更大值的概率。
4. 如果
p
值太小,我们就有强有力的证据反对原假设。这被称为
拒绝
原假设。
5. 如果
p
值不小,那么我们没有这样的证据。这被称为 ...
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

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
大规模数据分析和建模:基于 Spark 与 R

大规模数据分析和建模:基于 Spark 与 R

Javier Luraschi, Kevin Kuo, Edgar Ruiz
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey

Publisher Resources

ISBN: 9787111656814