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
起こりうる誤った推論/平均・分散・標準偏差・自由度 / Possible erroneous ...
Search
Kenji Saito
PRO
December 06, 2023
Business
0
130
起こりうる誤った推論/平均・分散・標準偏差・自由度 / Possible erroneous inferences, and mean, variance, standard deviation, degree of freedom
早稲田大学大学院経営管理研究科「企業データ分析」2023 冬の第3-4回で使用したスライドです。
Kenji Saito
PRO
December 06, 2023
Tweet
Share
More Decks by Kenji Saito
See All by Kenji Saito
P 値と有意差/分散分析 / P-value, Significant Difference and Analysis of Variance
ks91
PRO
0
29
関連2群のt検定/独立2群のt検定 / Related 2-group t-test and independent 2-group t-test
ks91
PRO
0
51
A Guide to Paper Writing Support with Generative AI - A Joint Zemi
ks91
PRO
0
9
正規分布と簡単な統計理論/t分布と信頼区間 / Normal distribution, simple statistical theory, t-distribution and confidence intervals
ks91
PRO
0
43
じわじわ迫ってきている自動化社会 (その先にメタ・ネイチャー) / The Slowly Approaching Automated Society (and its beyond: Meta-Nature)
ks91
PRO
0
6
起こりうる誤った推論/平均・分散・標準偏差・自由度 / Possible false inferences, means, variances, standard deviations and degrees of freedom
ks91
PRO
0
59
LaTeX と Overleaf によるショートペーパー作成 / Short paper writing with LaTeX and Overleaf
ks91
PRO
0
23
R を用いた検定(補講) (1) — Welch 検定 / Tests using R (supplementary) (1) - Welch test
ks91
PRO
0
12
R を用いた検定(補講) (2) — カイ二乗検定 / Tests using R (supplementary) (2) - Chi-squared test
ks91
PRO
0
13
Other Decks in Business
See All in Business
ネクストビートコーポレートガイド/corporate-guide
nextbeat
3
77k
経験やセンスに頼らずに成果を出すためのチームマネジメント実践ガイド / Team Management Without Relying on Experience or Intuition
happy_imafuku
5
12k
無料アイスブレイクスライドサンプル
chibanba1982
PRO
0
170
UIL広島駅前 利用検討者への事業所紹介
ymtyhka7o4o8
0
660
なぜ施策優先度を意思決定しなければならないのか? 経験から得た要因と対策
mkitahara01985
2
280
株式会社miibo|採用デック
natsumidnx
0
270
職員給与等実態調査のDX
tokyo_metropolitan_gov_digital_hr
0
390
経営に囚われ_現場が見えなくなってしまったPMの奮闘記.pdf
akihiro0038
2
6.5k
【エンジニア採用】IDOM Digital Drive会社説明資料
idomdigitaldrive
0
320
Cobe Associe: Who we are? /コンサル・市場調査・人材紹介のCobe Associe
nozomi
6
19k
Sasuke Financial Lab_会社説明資料
mayuko_nishida
1
5.2k
イクシアス株式会社 会社紹介資料
ixyas
0
1.3k
Featured
See All Featured
KATA
mclloyd
29
14k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
930
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Fireside Chat
paigeccino
34
3.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Making the Leap to Tech Lead
cromwellryan
133
9k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
50k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Faster Mobile Websites
deanohume
305
30k
Transcript
generated by Stable Diffusion XL v1.0 2023 3-4 (WBS) 2023
3-4 — 2023-12-07 – p.1/37
https://speakerdeck.com/ks91/collections/corporate-data-analysis-2023-winter 2023 3-4 — 2023-12-07 – p.2/37
( ) 1 11 30 • 2 11 30 (B
A ) • 3 12 7 • 4 12 7 • 5 12 14 6 12 14 t 7 12 21 2 ( ) t 8 12 21 2 ( ) t 9 1 11 P 10 1 11 11 1 18 12 1 18 13 1 25 14 1 25 W-IOI 2023 3-4 — 2023-12-07 – p.3/37
( 20 ) 1 • 2 R • 3 •
4 • 5 6 ( ) 7 (1) 8 (2) 9 R ( ) (1) 10 R ( ) (2) 11 R ( ) (1) 12 R ( ) (2) 13 GPT-4 14 GPT-4 15 ( ) LaTeX Overleaf 8 (12/14 ) / (2 ) OK / 2023 3-4 — 2023-12-07 – p.4/37
(B A ) 1 ( ) 2 (Wilcoxon-Mann-Whitney ) 2023
3-4 — 2023-12-07 – p.5/37
3 1 ( ) 2 ( ) 1 2 4
σ2 σ s2 s df 2023 3-4 — 2023-12-07 – p.6/37
2023 3-4 — 2023-12-07 – p.7/37
1. (1) (2) 2023 12 3 ( ) 23:59 JST
( ) Waseda Moodle (Q & A ) 2023 3-4 — 2023-12-07 – p.8/37
. . . . . . 13(12) 11(10) (12/5( )
) ( ) R ( ) (1) 2023 3-4 — 2023-12-07 – p.9/37
(1) ( ) 2 1 ⇒ 1 2 (2) 95%
⇒ ( 6 ) 11 2 95% (← be ambitious!) 5% (← 2 ) 2023 3-4 — 2023-12-07 – p.10/37
0 2 4 6 8 10 0.0 0.1 0.2 0.3
0.4 0.5 0.6 ᳨ฟᅇᩘ ☜⋡ 2023 3-4 — 2023-12-07 – p.11/37
W GitHub Gist ⇒ RStudio Git GitHub https://github.com/ks91/cda-demo “cda-demo” RStudio
Git Git Dropbox “cda-demo” 2023 3-4 — 2023-12-07 – p.12/37
Git Git ( GPL) GitHub Git ( ) RStudio pull
Git (OS ) Linux : ( OK) macOS : ( OK) Windows : https://gitforwindows.org OK https://github.com/ks91/cda-demo ( ) 2023 3-4 — 2023-12-07 – p.13/37
S ⇒ D R ( ) × * ÷ /
xy x^y ( ) √ x sqrt(x) (function; ) ( 1 , 2 ,. . .) sqrt(9) + sqrt(16) <- ( ) ( ) x <- x + 1 x 1 ( ) 2023 3-4 — 2023-12-07 – p.14/37
R ( ) ⇒ D R " " T (true;
) F (false; ) c( 1 , 2 , . . .) ( ) 10 x x[1:3] 1 3 ( 1:100 1 100 ) a.b . . . . R R Source “ D.R” . . . ra <- sum(df[df$group == " ", "rank"]) ⇒ df group rank ra ( == ) 2023 3-4 — 2023-12-07 – p.15/37
“ D.R” ‘sum(. . .)’ # sum(df[df$group == " ",
"rank"]) ... <- 0 i <- 1 # while (i df ) { # if ((df i group ) == " ") { <- + (df i rank ) } i <- i + 1 } 2023 3-4 — 2023-12-07 – p.16/37
S ( ) ⇒ ↑ ( ) : Amazon PPT
Discord 2023 3-4 — 2023-12-07 – p.17/37
S 2 (A B ) ⇒ ( ) ( )
2023 3-4 — 2023-12-07 – p.18/37
S 1 1 1/6 5/6 1 1/6 ⇒ n 1
x ( n = 10 ) 2023 3-4 — 2023-12-07 – p.19/37
0 2 4 6 8 10 0.0 0.1 0.2 0.3
᳨ฟᅇᩘ ☜⋡ 2023 3-4 — 2023-12-07 – p.20/37
S A 5 B A ( ) A 5 B
A ( ) ( ) ( ) 1% 5 1/3 5 =0.41% 1% ⇒ n = 5 x = 5 x (1 3 )5 2023 3-4 — 2023-12-07 – p.21/37
0 1 2 3 4 5 0.0 0.1 0.2 0.3
᳨ฟᅇᩘ ☜⋡ 5% 2023 3-4 — 2023-12-07 – p.22/37
S 120g (120g ) 120g ⇒ 1kg 950g S 120g
· 120g 120g 2023 3-4 — 2023-12-07 – p.23/37
S ⇒ (p.84) χ2 H0 H0 [ ] RStudio Help
“chi” “chisq.test” 2023 3-4 — 2023-12-07 – p.24/37
χ2 1 6 (H0 ) # ( H_0 ) >
chisq.test(c(28, 33, 25, 35, 27, 32), p=c(1/6, 1/6, 1/6, 1/6, 1/6, 1/6)) # ( H_0 ) > chisq.test(c(42, 33, 25, 35, 27, 18), p=c(1/6, 1/6, 1/6, 1/6, 1/6, 1/6)) ‘chisq.test(. . .)’ ( ) ( ) ( ) ← R χ2 2023 3-4 — 2023-12-07 – p.25/37
K ⇒ 2023 3-4 — 2023-12-07 – p.26/37
. . . 2023 3-4 — 2023-12-07 – p.27/37
3 1 ( ) 2 ( ) 1 2 2023
3-4 — 2023-12-07 – p.28/37
100% 2 1 ( ( ) ) 2 ( (
) ) 2 1 1 α (α ) ( ) 2 β (β ) α n p 1 − β (power) 2023 3-4 — 2023-12-07 – p.29/37
3 “ .R” 3 bidist(n, p) : binull(n, p) :
5% bidistg(n, p0, p) : p0 p ( n = 20) p = 0.6 p = 0.2 p = 0.4 p = 0.8 p = 0.7 2023 3-4 — 2023-12-07 – p.30/37
0 5 10 15 20 0.00 0.05 0.10 0.15 0.20
᳨ฟᅇᩘ ☜⋡ 0 5 10 15 20 0.00 0.05 0.10 0.15 0.20 p = 0.2 2023 3-4 — 2023-12-07 – p.31/37
4 σ2 σ s2 s df 2023 3-4 — 2023-12-07
– p.32/37
(parameter; ) ( ) µ, σ2, σ (statistic) ( )
x, s2, s (degree of freedom) ( ) df = n− k 2023 3-4 — 2023-12-07 – p.33/37
E ( p.106) 8 “ E.R” R ‘var(. . .)’,
‘sd(. . .)’ x sqrt(sd(x)^2*(length(x) - 1)/length(x)) 2023 3-4 — 2023-12-07 – p.34/37
2023 3-4 — 2023-12-07 – p.35/37
2. 1 2 (1) 1 2 (2) 2023 12 10
( ) 23:59 JST ( ) Waseda Moodle (Q & A ) (1) Discord 2023 3-4 — 2023-12-07 – p.36/37
2023 3-4 — 2023-12-07 – p.37/37