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
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
統計の基礎6 カイ2乗分布とカイ2乗検定
統計の基礎6では、クロス集計表やカテゴリカル・データに用いられるカイ2乗検定について説明します。
xjorv
January 28, 2021
More Decks by xjorv
See All by xjorv
コンパートメントモデル
xjorv
3
6.1k
コンパートメントモデルをStanで解く
xjorv
0
530
生物学的同等性試験 検出力の計算法
xjorv
0
3.7k
生物学的同等性試験ガイドライン 同等性パラメータの計算方法
xjorv
0
6.6k
粉体特性2
xjorv
0
2.6k
粉体特性1
xjorv
0
3k
皮膜5
xjorv
0
2.4k
皮膜4
xjorv
0
2.3k
皮膜3
xjorv
0
2.3k
Other Decks in Education
See All in Education
BITCOIN : Les fondamentaux !
rlifchitz
0
220
AIには考えられないことを考えられる人になるために
iqbocchi
1
220
Center for Entrepreneurship Education | Science Tokyo (Institute of Science Tokyo)
sciencetokyo
PRO
0
210
Geografía y Fútbol: Chattanooga Geografía del Búnker de La Roja.
juanmartin2026
1
12k
AIがコードを書く時代に、何を教えるのか / What Should We Teach in the Age of AI-Generated Code?
ichiroc
1
440
Portable & Reproducible Research Environments in the Age of AI Agents
denkiwakame
0
630
Adobe Express
matleenalaakso
2
8.3k
Where Data Meets Storytelling
georgesinnott
0
150
観察、仮説、実行、検証、計画、提案を一年で3000回トレーニングする方法/3000 Thinking Loops in 365 Days
moriyuya
4
670
2026年度春学期 統計学 第6回 データの関係を知る(1)ー 相関関係 (2026. 5. 14)
akiraasano
PRO
0
210
The Strengthening Institutions Program
territorium
PRO
0
130
[2026前期火5] 論理学(京都大学文学部 前期 第6回)「かつとまたはの規則」
yatabe
0
470
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
560
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
660
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
470
Navigating Team Friction
lara
192
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
25k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
240
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
460
The SEO Collaboration Effect
kristinabergwall1
1
520
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
380
The Language of Interfaces
destraynor
162
27k
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乗分布を利用して検定統計量を求める