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
統計の基礎7 一元分散分析
Search
xjorv
January 29, 2021
Education
150
0
Share
統計の基礎7 一元分散分析
統計の基礎7では、3群以上の平均値の差の検定である、1元分散分析について説明します。
xjorv
January 29, 2021
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
リモートリポジトリの操作 / 02-c-remote
kaityo256
PRO
0
130
Interactive Tabletops and Surfaces - Lecture 5 - Next Generation User Interfaces (4018166FNR)
signer
PRO
1
2.1k
「機械学習と因果推論」入門① 因果効果とは
masakat0
0
670
Chapitre_2_-_Partie_3.pdf
bernhardsvt
0
220
悩める リーダー達に 届けたい書籍|レジリエントマネジメント 書籍イントロダクション-260126
mimoza60
1
410
Tangible, Embedded and Embodied Interaction - Lecture 7 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2.1k
GOBUSATA紹介
chankawa919
0
140
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
signer
PRO
0
2.6k
SARA Annual Report 2025-26
sara2023
1
260
計算物理におけるGitの使い方 / 01-c-compphys
kaityo256
PRO
2
530
Activité_5_-_Les_indicateurs_du_climat_global.pdf
bernhardsvt
0
220
演習:Gitの応用操作 / 05-git-advanced
kaityo256
PRO
0
240
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
660
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
170
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
140
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
200
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
Typedesign – Prime Four
hannesfritz
42
3k
WCS-LA-2024
lcolladotor
0
510
エンジニアに許された特別な時間の終わり
watany
106
240k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
310
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Transcript
統計の基礎7 一元分散分析 2021/1/4 Ver. 1.0
一元分散分析とは? 3群以上の平均値の差の検定 • 3つ以上のグループにおける平均値の差を調べる • 差のあるグループを特定するわけではない *正確には対応のない分散分析についての説明、対応のある分散分析は別資料で説明
分散分析: 分散比とF分布 分散分析では、分散比を計算する 群間の分散 群内の分散 この比がF分布を取る
F分布 分散比の分布を指す F = 11 2 1 2 /(1−1) 22
2 2 2 /(2−1) • 2つの母集団における分散の比を指す • 自由度を2つ持つ n: 標本数、s: 標本標準偏差、: 母標準偏差、右下の数字は集団を指す
F分布 分布の形 0~∞の範囲と2つの自由度を持つ 自由度15 自由度10 自由度5
一元分散分析とは? グループ分けが1種類だけの分散分析 1組 2組 3組 55 57 76 68 37
75 59 78 78 59 60 80 55 79 53 上記の表で、各組の間の差はあるかどうか?
組 1組 2組 3組 点数 55 57 76 68 37
75 59 78 78 59 60 80 55 79 53 偏差平方和 112.8 1198.8 485.2 全体の偏差平方和 2275.6 偏差平方和の計算 偏差平方和(分散×自由度)を用いる 各組の偏差平方和の和は1796.8 *112.8+1198.8+485.2=1796.8
偏差平方和の分配 偏差平方和を群間・群内に分ける 全体の偏差平方和=群間の偏差平方和+群内の偏差平方和 2275.6 1796.8 478.8 = + 群内は全体から群間を引くことで計算する
自由度 群間・群内の自由度をそれぞれ計算する 1組 2組 3組 55 57 76 68 37
75 59 78 78 59 60 80 55 79 53 群間の自由度は グループ数 - 1 群内の自由度は 各群内のデータ数 - 1の和 群間自由度は 群内自由度は 3グループ - 1 = 2 (5-1)+(5-1)+(5-1) = 12 になる
分散分析表 群間・群内の偏差平方和・自由度をまとめたもの 偏差平方和 自由度 不偏分散 分散比 群内 478.8 2 239.4
1.599 群間 1796.8 12 149.7 全体 2275.6 不偏分散は 分散比は 偏差平方和/自由度 群内不偏分散/群間不偏分散 で計算する
分散分析における仮説検証 平均値の差を検定する 帰無仮説 対立仮説 全グループの平均値は同じ 全グループの平均値は同じではない 分散比と2つの自由度を持つF分布から 全グループの平均値が同じである確率 を計算する
分散比とp値 自由度が2と12、分散比が1.599となる確率がp値 これがp値 p値が0.05より大きいので、差があるとは言えない と結論づける *p値は自由度2と12のF分布から計算する
どの間に差があるのか? 分散分析では、どのグループ間に差があるかはわからない 1組 2組 3組 55 57 76 68 37
75 59 78 78 59 60 80 55 79 53 グループ間の差を調べるには、多重検定の方法を用いる *多重検定については別途解説
なぜ平均値の差がわかるのか? 分散分析では、全体と個々のばらつきを比較している 平均が近い場合 平均が離れている場合 平均が離れると、全体/個々のばらつきは大きくなる