이제 미국으로

R로 배우는 범주형 데이터 추론

Andrew Bray

Assistant Professor of Statistics at Reed College

이란 선거 부정

4-3-1.png

R로 배우는 범주형 데이터 추론

이란 선거 부정

4-3-2.png

R로 배우는 범주형 데이터 추론

이란 선거 부정

4-3-3.png

R로 배우는 범주형 데이터 추론

이란 선거 부정

4-3-4.png

R로 배우는 범주형 데이터 추론

미국 2016년 선거

$H_{0}:$ 선거는 공정함(벤퍼드 법칙 성립)

$H_{A}:$ 선거는 부정함(벤퍼드 법칙 불성립)

R로 배우는 범주형 데이터 추론

아이오와 득표수

미국 내 아이오와.svg

1 TUBS 작성 [CC BY SA 3.0], 위키미디어 공용 제공
R로 배우는 범주형 데이터 추론

아이오와 득표수

iowa
# A tibble: 1,386 x 5
   office              candidate                         party              county votes
   <chr>               <chr>                             <chr>              <chr>  <dbl>
 1 President/Vice Pre… Evan McMullin / Nathan Johnson    Nominated by Peti… Adair     10
 2 President/Vice Pre… Under Votes                       NA                 Adair     32
 3 President/Vice Pre… Gary Johnson / Bill Weld          Libertarian        Adair    127
 4 President/Vice Pre… Over Votes                        NA                 Adair      5
 5 President/Vice Pre… Gloria La Riva / Dennis J. Banks  Socialism and Lib… Adair      0
 6 President/Vice Pre… Darrell L. Castle / Scott N. Bra… Constitution       Adair     10
 7 President/Vice Pre… Hillary Clinton / Tim Kaine       Democratic         Adair   1133
 8 President/Vice Pre… Jill Stein / Ajamu Baraka         Green              Adair     14
 9 President/Vice Pre… Rocky Roque De La Fuente / Micha… Nominated by Peti… Adair      3
10 President/Vice Pre… Donald Trump / Mike Pence         Republican         Adair   2461
# … with 1,376 more rows
R로 배우는 범주형 데이터 추론

연습해 봅시다!

R로 배우는 범주형 데이터 추론

Preparing Video For Download...