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 面向数据科学家的实用统计学
88
|
第
3
章
3.9.2
 卡方检验
:
统计理论
统计学的渐近理论指出,卡方统计量的分布可以由
卡方分布
近似得到。适合的标准卡方分
布取决于
自由度
(参见
3.7
节)。自由度与列联表的行数
r
和列数
s
有关。
自由度
= (
r
-
1)
×
(
c
-
1)
卡方分布通常是偏斜的,右侧具有长尾。图
3-7
显示了自由度分别为
1
、
2
、
5
和
10
时的卡
方分布情况。观测统计量在卡方分布中的位置越远,
p
值越小。
图 3-7:不同自由度下的卡方分布(
y
轴为概率,
x
轴为卡方统计量的值)
R
语言的 chisq.test 函数在计算
p
值时,使用了卡方分布作为参考分布。
> chisq.test(clicks, simulate.p.value=FALSE)
Pearson's Chi-squared test
data: clicks
X-squared = 1.6659, df = 2, p-value = 0.4348
此例中,卡方计算所给出的
p
值略小于重抽样的
p
值。这是因为卡方分布只是对统计量实
际分布的一种近似。
3.9.3
 费舍尔精确检验
卡方分布可以很好地近似上面所介绍的混洗重抽样检验过程,但是它并不适用于计数非常
低(达到个位数,特别是少于
5
个)的情况。在这种情况下,重抽样过程本身就能给出更
精确的
p
值。事实上,大多数统计软件都可以实际列出所有可能出现的重排(置换)情
况及其频数,进而确定观测结果的极端程度。这一操作被称为
费舍尔精确检验
(
Fisher
’
s
统计实验与显著性检验
|
89
exact test
),命名源自于伟大的统计学家费舍尔( ...
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