Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
統計の基礎6 カイ2乗分布とカイ2乗検定
Search
xjorv
January 28, 2021
Education
0
230
統計の基礎6 カイ2乗分布とカイ2乗検定
統計の基礎6では、クロス集計表やカテゴリカル・データに用いられるカイ2乗検定について説明します。
xjorv
January 28, 2021
Tweet
Share
More Decks by xjorv
See All by xjorv
コンパートメントモデル
xjorv
2
5.5k
コンパートメントモデルをStanで解く
xjorv
0
440
生物学的同等性試験 検出力の計算法
xjorv
0
3.4k
生物学的同等性試験ガイドライン 同等性パラメータの計算方法
xjorv
0
6k
粉体特性2
xjorv
0
2.4k
粉体特性1
xjorv
0
2.8k
皮膜5
xjorv
0
2.3k
皮膜4
xjorv
0
2.2k
皮膜3
xjorv
0
2.2k
Other Decks in Education
See All in Education
JPCERTから始まる草の根活動~セキュリティ文化醸成のためのアクション~
masakiokuda
0
180
ThingLink
matleenalaakso
28
4.1k
推しのコミュニティはなんぼあってもいい / Let's join a lot of communities.
kaga
2
1.7k
Sponsor the Conference | VizChitra 2025
vizchitra
0
550
ビジネスモデル理解
takenawa
0
5.8k
OJTに夢を見すぎていませんか? ロールプレイ研修の試行錯誤/tryanderror-in-roleplaying-training
takipone
1
150
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visualisation (4019538FNR)
signer
PRO
1
2.4k
RELC_2025_KYI
otamayuzak
0
120
実務プログラム
takenawa
0
5.8k
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019538FNR)
signer
PRO
1
2k
IMU-00 Pi
kanaya
0
370
Human-AI Interaction - Lecture 11 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
460
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
42
7.6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Designing Experiences People Love
moore
142
24k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
680
Large-scale JavaScript Application Architecture
addyosmani
512
110k
The World Runs on Bad Software
bkeepers
PRO
69
11k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
800
Navigating Team Friction
lara
187
15k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
230
Transcript
統計の基礎6 カイ二乗分布とカイ二乗検定 2020/9/1 Ver. 1.0
カイ二乗検定とは? カテゴリカルデータの比の検定 • 比がある値と同じである(適合度の検定) • 比がある値と異なる(独立性の検定) を検証する検定法 名前は2つあるが、基本的に同じものを指す
カテゴリカルデータ クロス集計表で表されるデータのこと 症状 男性 女性 あり 50 75 なし 100
140 男性と女性で比率が異なるかどうか検定する
カイ2乗分布 観測数と期待数の差の分布を調べる ( − )2 O: 観測された度数、E: 期待される度数 このパラメータの分布が、カイ2乗分布を取る
カイ2乗分布 ; = 1 2 2Γ( 2 ) ∙ /2
k=5 k=10 k=15 • 0~+∞の連続分布 • 期待値kを持つ • kは平均値となる
適合度の検定 比率がある値と同じであるかどうか検定する方法 • 女性の症状ありの比率が1:2かどうか検定する 症状 男性 女性 あり 50 75
なし 100 140
Rでの計算方法: 適合度 chisq.testで計算する • 女性の症状ありの比率は1:2と変わらない これがp値
独立性の検定 2グループでの比率の差を検定する方法 • 女性の症状ありの比率が男性と同じであるか検定する 症状 男性 女性 あり 50 75
なし 100 140
Rでの計算方法: 独立性 chisq.testで計算する • 女性の症状ありの比率は男性と変わらない これがp値
いつ使う? 比率計算が必要な際に使用されることがある • 被験者群間での応答性比較を行うとき • 形質の分離がメンデル的であるか確認するとき • カテゴリカルデータの取り扱いのとき
まとめ • 比率の比較を行うときはカイ2乗検定を利用する • カイ2乗検定は適合度と独立性の検定を含む • 適合度も独立性も根本的には同じ統計手法である • カイ2乗検定ではカイ2乗分布を利用して検定統計量を求める