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
PRO
January 28, 2021
Education
0
190
統計の基礎6 カイ2乗分布とカイ2乗検定
統計の基礎6では、クロス集計表やカテゴリカル・データに用いられるカイ2乗検定について説明します。
xjorv
PRO
January 28, 2021
Tweet
Share
More Decks by xjorv
See All by xjorv
コンパートメントモデル
xjorv
PRO
0
4.2k
コンパートメントモデルをStanで解く
xjorv
PRO
0
270
生物学的同等性試験 検出力の計算法
xjorv
PRO
0
2.6k
生物学的同等性試験ガイドライン 同等性パラメータの計算方法
xjorv
PRO
0
3.8k
粉体特性2
xjorv
PRO
0
2k
粉体特性1
xjorv
PRO
0
2.3k
皮膜5
xjorv
PRO
0
1.9k
皮膜4
xjorv
PRO
0
1.8k
皮膜3
xjorv
PRO
0
1.8k
Other Decks in Education
See All in Education
Copilotとして理解する生成AI利用の基本
gmoriki
1
160
4 занятие. Разбор бизнес-моделей и метод красной нити #ideaNN 9.02.2024.
karlov
0
230
Поступление в ТОГУ 2024
pnuslide
0
41k
保育とふりかえりをコネクト! / connect childcare and retrospectives!
psj59129
1
160
AWS試験全冠したら新しい道が開けた話
nagisa53
3
1.1k
Canva
matleenalaakso
0
170
Avoin jakaminen ja Creative Commons -lisenssit
matleenalaakso
0
1.1k
Tangible, Embedded and Embodied Interaction - Lecture 9 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
1.2k
世界の子音探訪記
jamashita
0
110
「小・中・高等学校における情報教育の体系的な学習を目指したカリキュラムモデル基本方針」
codeforeveryone
0
1.4k
2024年度春学期 統計学 第3回 クロス集計と感度・特異度/データの可視化 (2024. 4. 25)
akiraasano
PRO
0
110
Information Architectures - Lecture 2 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
1.1k
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
92
4.8k
GraphQLとの向き合い方2022年版
quramy
33
12k
Making Projects Easy
brettharned
109
5.5k
Robots, Beer and Maslow
schacon
PRO
155
7.9k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Build your cross-platform service in a week with App Engine
jlugia
226
17k
Gamification - CAS2011
davidbonilla
77
4.6k
The Pragmatic Product Professional
lauravandoore
26
5.8k
Adopting Sorbet at Scale
ufuk
69
8.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
[RailsConf 2023] Rails as a piece of cake
palkan
28
4k
Imperfection Machines: The Place of Print at Facebook
scottboms
261
12k
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乗分布を利用して検定統計量を求める