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 面向数据科学家的实用统计学
统计实验与显著性检验
|
69
性,我们在前面已经做了介绍(参见
2.4
节)。本节将介绍用于检验假设的置换检验,它通
常涉及两组或多组。
主要术语
置换检验
将两组或多组样本组合在一起,并将观测值随机地(或穷尽地)重新分配给重抽样。
同义词:随机化检验、随机置换检验、准确检验
有放回
,
无放回
在抽样时,所抽取的元素在下一次抽取前是否放回样本中。
3.3.1
 置换检验
置换
过程涉及两组或多组样本,通常是
A/B
测试或其他假设检验中的组。置换意味着改变
一组值的顺序。要对一个假设进行
置换检验
,首先要将从
A
组和
B
组(当然还可以包括其
他组,例如
C
、
D
……)中得到的结果组合在一起。这就是零假设的逻辑,即无论处理指
定给哪个组,都是无差别的。然后,我们从组合集中随机抽取出各个组,并查看组间的差
异情况,实现对假设的检验。置换过程如下。
(1)
将各个组得出的结果组合为一个数据集。
(2)
对组合得到的数据做随机混洗,然后从中随机抽取(无放回)一个规模与
A
组相同的
重抽样样本。
(3)
在余下的数据中,随机抽取(无放回)一个规模与
B
组相同的重抽样样本。
(4)
如果还有
C
组、
D
组甚至更多的组,执行同样的操作。
(5)
无论对原始样本计算的是哪一种统计量或估计量(例如,组比例差异),现在对重抽样
进行重新计算,并记录结果。这构成了一次置换迭代。
(6)
重复上述步骤
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