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
R を用いた検定(補講) (1) — Welch 検定 / Other Tests Using...
Search
Kenji Saito
PRO
January 18, 2024
Business
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
R を用いた検定(補講) (1) — Welch 検定 / Other Tests Using R (1) - Welch Test
早稲田大学大学院経営管理研究科「企業データ分析」2023 冬のオンデマンド教材 第9回で使用したスライドです。
Kenji Saito
PRO
January 18, 2024
More Decks by Kenji Saito
See All by Kenji Saito
責任2.0 ∼ AI が主体となる世界で ∼ / Responsibility 2.0: In a World Where AI Takes Responsibilities
ks91
PRO
0
65
発表と総括 / Presentations and Summary
ks91
PRO
0
230
インシデントレスポンス演習II / Incident Response Exercise II
ks91
PRO
0
110
脱金融のフューチャー・デザイン / Future Design Beyond Finance
ks91
PRO
0
190
戦略と安全保障 / Strategy and Security
ks91
PRO
0
120
ローカル LLM とコンピューティングの脱領土化 / Local LLMs and Deterritorialization of Computing
ks91
PRO
0
43
サイバー戦の現在と未来 / The Present and Future of Cyber Warfare
ks91
PRO
0
100
金融の未来を考える / Thinking About the Future of Finance
ks91
PRO
0
220
AI Agentification: Current State and the Changes Ahead
ks91
PRO
0
63
Other Decks in Business
See All in Business
サステナブルな成長を支えるセルフマネジメントの技術/Self Management skill for growth
ikuodanaka
1
620
事業部でのAI推進とAIネイティブレベルの話
fotoyuma
0
290
SimpleForm 会社紹介資料
simpleform
2
58k
【ブログ用サンプル】Claudeを活用したエージェント分析レポート自動生成例
sai0412
0
460
結果、生き残った_きのこカンファレンス2026
yurufuwahealer
0
230
スマサテでの日々 -Sumasate Tour Deck-
sumasate
0
1.3k
ログラス会社紹介資料 / Loglass Company Deck
loglass2019
18
560k
マルチエージェント入門:チームで動くAIと非エンジニアのための設計(Claude Code)
forest8810
0
460
株式会社ripples(リップルズ)-Company Deck
ripples_deck
0
770
三井物産グループのデジタル証券~名古屋・大規模レジデンス~徹底解説セミナー
c0rp_mdm
PRO
0
1.3k
Terraform Provider for TROCCO × AI で 半自動化する複数プロダクトの連携運用 / Semi-Automating Multi-Product Data Integration Ops with the Terraform Provider for TROCCO × AI
medley
0
350
Company Profile
katsuegu23
2
15k
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
67k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
430
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
890
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
610
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Google's AI Overviews - The New Search
badams
0
1.1k
How GitHub (no longer) Works
holman
316
150k
The Curse of the Amulet
leimatthew05
2
14k
4 Signs Your Business is Dying
shpigford
187
22k
Leo the Paperboy
mayatellez
8
2.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Transcript
generated by Stable Diffusion XL v1.0 2023 9 R (
) (1) — Welch (WBS) 2023 9 R ( ) (1) — Welch — 2024-01 – p.1/10
https://speakerdeck.com/ks91/collections/corporate-data-analysis-2023-winter 2023 9 R ( ) (1) — Welch —
2024-01 – p.2/10
( 20 ) 1 • 2 R • 3 •
4 • 5 • 6 ( ) • 7 (1) • 8 (2) • 9 R ( ) (1) — Welch • 10 R ( ) (2) — χ2 11 R ( ) (1) — 12 R ( ) (2) — 13 GPT-4 14 GPT-4 15 ( ) LaTeX Overleaf 8 (12/21 ) / (2 ) OK / 2023 9 R ( ) (1) — Welch — 2024-01 – p.3/10
t Welch R t.test() Welch Welch 2023 9 R (
) (1) — Welch — 2024-01 – p.4/10
2 t ( ) (1/2) 2 ( ) xA −
xB (1) : (2) : σ ( ) σ sp sp = s2 A (nA − 1) + s2 B (nB − 1) nA + nB − 2 (R var() ) nA + nB − 2 t Welch A B (µA = µB ) A B (µA = µB ) 2023 9 R ( ) (1) — Welch — 2024-01 – p.5/10
2 t ( ) (2/2) xA − xB Student µA
= µB t = (xA − xB ) − (µA − µB ) sp 1 nA + 1 nB = xA − xB sp 1 nA + 1 nB (t ) t dfp = nA + nB − 2 t ( ) t0.05 (dfp ) t0.05 (dfp ) < |t| (P < 0.05) 2023 9 R ( ) (1) — Welch — 2024-01 – p.6/10
Welch t t = xA − xB s2 A nA
+ s2 B nB ( ) v . . . v ≈ ( s2 A nA + s2 B nB )2 s4 A n2 A (nA−1) + s4 B n2 B (nB−1) R 2023 9 R ( ) (1) — Welch — 2024-01 – p.7/10
( ) - (Shapiro-Wilk test) - (Anderson-Darling test for normality)
- (Kolmogorov-Smirnov test for normality) ( ) ( ) (Bartlett’s test for homogeneity of variances) 2023 9 R ( ) (1) — Welch — 2024-01 – p.8/10
.txt A /B g <- read.table(" .txt", header=T) colnames(g) <-
c(" ", " ") sampleA <- g$ sampleB <- g$ # ( ) shapiro.test(x=sampleA) shapiro.test(x=sampleB) # ( ) samples <- c(sampleA, sampleB) group_factor <- factor(rep(c("A", "B"), c(length(sampleA), length(sampleB)))) bartlett.test(formula=samples~group_factor) # Welch (t.test() ) ( Welch ) t.test(sampleA, sampleB) 2023 9 R ( ) (1) — Welch — 2024-01 – p.9/10
2023 9 R ( ) (1) — Welch — 2024-01
– p.10/10