现在看美国

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 中的分类数据推断

爱荷华州投票总数

爱荷华州在美国的位置

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 中的分类数据推断

¡Vamos a practicar!

R 中的分类数据推断

Preparing Video For Download...