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
3
5.9k
コンパートメントモデルをStanで解く
xjorv
0
500
生物学的同等性試験 検出力の計算法
xjorv
0
3.6k
生物学的同等性試験ガイドライン 同等性パラメータの計算方法
xjorv
0
6.5k
粉体特性2
xjorv
0
2.6k
粉体特性1
xjorv
0
2.9k
皮膜5
xjorv
0
2.4k
皮膜4
xjorv
0
2.3k
皮膜3
xjorv
0
2.3k
Other Decks in Education
See All in Education
Activité_5_-_Les_indicateurs_du_climat_global.pdf
bernhardsvt
0
200
Leveraging LLMs for student feedback in introductory data science courses (Stats Up AI)
minecr
1
230
Flinga
matleenalaakso
4
15k
Use Cases and Course Review - Lecture 8 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.4k
コマンドラインの使い方 / 01-d-cli
kaityo256
PRO
0
100
多様なメンター、多様な基準
yasulab
6
19k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.3k
Chapitre_2_-_Partie_3.pdf
bernhardsvt
0
200
自己紹介 / who-am-i
yasulab
6
6.4k
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4019538FNR)
signer
PRO
0
3k
地区危機管理委員会 出前セミナー「ロータリーにおける危機管理」:膳所 和彦 氏(国際ロータリー第2720地区 パストガバナー・日田ロータリークラブ・医療法人恒心会ぜぜ医院 理事長):2720 Japan O.K. ロータリーEクラブ2026年2月16日卓話
2720japanoke
1
590
0203
cbtlibrary
0
140
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Designing for Performance
lara
611
70k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
82
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
820
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
390
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
110
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
110
A Soul's Torment
seathinner
5
2.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
170
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乗分布を利用して検定統計量を求める