現在輪到美國

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}:$ 選舉公平(符合 Benford's Law)

$H_{A}:$ 選舉舞弊(不符合 Benford's Law)

R 中的類別資料推論

愛荷華州得票數

Iowa_in_United_States.svg

1 By TUBS [CC BY SA 3.0], from Wikimedia Commons
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...