-
Notifications
You must be signed in to change notification settings - Fork 0
/
Statistical Quorum.nb
2921 lines (2799 loc) · 129 KB
/
Statistical Quorum.nb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 10.2' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 132086, 2913]
NotebookOptionsPosition[ 123811, 2773]
NotebookOutlinePosition[ 124224, 2791]
CellTagsIndexPosition[ 124181, 2788]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[CellGroupData[{
Cell["PeerMind", "Title",
CellChangeTimes->{{3.680032388804542*^9,
3.680032399869203*^9}},ExpressionUUID->"f8ed15cf-46b4-4aac-9581-\
1115f80932ce"],
Cell[CellGroupData[{
Cell["Statistical Quorum", "Section",
CellChangeTimes->{{3.6799520214415216`*^9,
3.67995202518405*^9}},ExpressionUUID->"8109296e-86cf-436b-af72-\
9ba12bf3cbbc"],
Cell[CellGroupData[{
Cell["Code:", "Subsection",
CellChangeTimes->{{3.6800357996378613`*^9,
3.6800358015897913`*^9}},ExpressionUUID->"e1b52c6f-4c07-46cf-a6a8-\
c09dfbe5ee06"],
Cell[CellGroupData[{
Cell["Simple/Super Majority", "Subsubsection",
CellChangeTimes->{{3.682054169995047*^9,
3.682054176177744*^9}},ExpressionUUID->"435a9939-e7ad-40ce-982c-\
1f7bc44f0ca7"],
Cell[BoxData[{
RowBox[{
RowBox[{
RowBox[{"initializePopulation", "[",
RowBox[{"size_", ",",
RowBox[{"majority_:", "\"\<simple\>\""}]}], "]"}], ":=",
RowBox[{"(", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"majority", " ", "\[Element]", " ",
RowBox[{
RowBox[{"{",
RowBox[{
"\"\<simple\>\"", ",", "\"\<super\>\"", ",", "\"\<consensus\>\""}],
"}"}], "."}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"populationSize", "=", "size"}], ";", "\[IndentingNewLine]",
RowBox[{"voteType", "=", "majority"}], ";"}], "\[IndentingNewLine]",
")"}]}], "\[IndentingNewLine]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"createVotes", "[", "compressedVotes_", "]"}], ":=",
RowBox[{"(", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"Takes", " ", "in", " ", "a", " ", "list", " ", "of", " ",
RowBox[{"{",
RowBox[{"score", ",", "freq"}], "}"}], " ", "pairs", " ", "to", " ",
"uncompress", " ", "into", " ", "a", " ", "list", " ", "of", " ", "raw",
" ",
RowBox[{"votes", "."}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{"Flatten", "[",
RowBox[{"Table", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{"score", ",", "freq"}], "}"}], "=", "item"}], ";",
"\[IndentingNewLine]",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"If", "[",
RowBox[{
RowBox[{"score", "\[Equal]", "\"\<abstain\>\""}], ",",
"\"\<abstain\>\"", ",",
RowBox[{"N", "[", "score", "]"}]}], "]"}], ",",
RowBox[{"{", "freq", "}"}]}], "]"}]}], "\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{"item", ",", "compressedVotes"}], "}"}]}], "]"}], "]"}],
"\[IndentingNewLine]", ")"}]}],
"\[IndentingNewLine]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"computeVoteStatistics", "[", "votes_", "]"}], ":=",
RowBox[{"(", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
"Extracts", " ", "required", " ", "information", " ", "from", " ", "raw",
" ", "votes", " ", "and", " ", "stores", " ", "them", " ", "as", " ",
"global", " ", "variables"}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"abstentions", "=",
RowBox[{"Count", "[",
RowBox[{"votes", ",", "\"\<abstain\>\""}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"effectivePopulationSize", " ", "=", " ",
RowBox[{"populationSize", "-", "abstentions"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"nonAbstentions", "=",
RowBox[{"DeleteCases", "[",
RowBox[{"votes", ",", "\"\<abstain\>\""}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"numVoters", "=",
RowBox[{"Length", "[", "nonAbstentions", "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"yes", "=",
RowBox[{"Total", "[",
RowBox[{
RowBox[{"(",
RowBox[{"nonAbstentions", "+", "1"}], ")"}], "/", "2"}], "]"}]}],
";",
RowBox[{"(*",
RowBox[{"for", " ", "range", " ", "voting", " ",
RowBox[{"in", " ", "[",
RowBox[{
RowBox[{"-", "1"}], ",", "1"}], "]"}]}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"no", "=",
RowBox[{"numVoters", "-", "yes"}]}], ";", "\[IndentingNewLine]",
RowBox[{"Which", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"voteType", "\[Equal]", "\"\<simple\>\""}], ",",
RowBox[{"threshold", "=",
RowBox[{"0.5", "*", "effectivePopulationSize"}]}], ",",
"\[IndentingNewLine]",
RowBox[{"voteType", "\[Equal]", "\"\<super\>\""}], ",",
RowBox[{"threshold", "=",
RowBox[{
RowBox[{"2.", "/", "3"}], "*", "effectivePopulationSize"}]}], ",",
"\[IndentingNewLine]",
RowBox[{"voteType", "\[Equal]", "\"\<consensus\>\""}], ",",
RowBox[{"threshold", "=",
RowBox[{"0.9", "*", "effectivePopulationSize"}]}]}],
"\[IndentingNewLine]", "]"}], ";", "\[IndentingNewLine]",
RowBox[{"yesVotesNeeded", "=",
RowBox[{"Floor", "[",
RowBox[{"threshold", "-", "yes"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
"maximum", " ", "number", " ", "of", " ", "incoming", " ", "yes", " ",
"votes", " ",
RowBox[{"s", ".", "t", ".", " ", "total"}], " ", "tally", " ", "would",
" ", "remain", " ", "below", " ", "threshold"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"remainingVoters", "=",
RowBox[{"effectivePopulationSize", "-", "numVoters"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"{",
RowBox[{
"yes", ",", "no", ",", "yesVotesNeeded", ",", "remainingVoters"}],
"}"}]}], "\[IndentingNewLine]", ")"}]}],
"\[IndentingNewLine]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"computeCredibility", "[", "voteStatistics_", "]"}], ":=",
RowBox[{"(", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
"Computes", " ", "the", " ", "probability", " ", "that", " ", "the", " ",
"true", " ", "bias", " ", "in", " ", "the", " ", "population", " ", "is",
" ",
RowBox[{"above", "/", "below"}], " ", "the", " ", "absolute", " ",
"threshold", " ", "necessary", " ", "to", " ", "make", " ", "a", " ",
RowBox[{"decision", "."}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{
"yes", ",", "no", ",", "yesVotesNeeded", ",", "remainingVoters"}],
"}"}], "=", "voteStatistics"}], ";", "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{"a", ",", "b"}], "}"}], "=",
RowBox[{"{",
RowBox[{"1", ",", "1"}], "}"}]}], ";", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{"1", ",", "1"}], "}"}], " ", "corresponds", " ", "to", " ",
"a", " ", "uniform", " ", "prior"}], ",", " ",
RowBox[{
RowBox[{"{",
RowBox[{"0.5", ",", "0.5"}], "}"}], " ", "corresponds", " ", "to",
" ",
RowBox[{"Jeffrey", "'"}], "s", " ", "prior"}], ",", " ",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "0"}], "}"}], " ", "corresponds", " ", "to", " ",
RowBox[{"Haldane", "'"}], "s", " ", "prior"}]}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"c", "=", "10"}], ";", "\[IndentingNewLine]",
RowBox[{"credibility", "=",
RowBox[{"1.0", "-",
RowBox[{"CDF", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"BetaBinomialDistribution", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"a", "+",
RowBox[{"yes", "*",
RowBox[{"c", "/", "remainingVoters"}]}]}], ",",
"\[IndentingNewLine]",
RowBox[{"b", "+",
RowBox[{"no", "*",
RowBox[{"c", "/", "remainingVoters"}]}]}], ",",
"\[IndentingNewLine]", "remainingVoters"}], "]"}], ",",
"\[IndentingNewLine]", "yesVotesNeeded"}], "]"}]}]}], ";",
"\[IndentingNewLine]",
RowBox[{"If", "[",
RowBox[{
RowBox[{"credibility", "<", "0.5"}], ",",
RowBox[{"credibility", "=",
RowBox[{"1", "-", "credibility"}]}]}], "]"}], ";", " ",
RowBox[{"(*",
RowBox[{"credibility", " ",
RowBox[{"of", " ", "'"}],
RowBox[{"no", "'"}], " ", "having", " ", "quorum"}], "*)"}],
"\[IndentingNewLine]", "credibility"}], "\[IndentingNewLine]",
")"}]}]}], "Input",
CellChangeTimes->{{3.680020820972921*^9, 3.680020827011919*^9}, {
3.68002090053539*^9, 3.6800210274631233`*^9}, {3.680021065548049*^9,
3.680021066483984*^9}, {3.680021169734473*^9, 3.68002119449435*^9}, {
3.680024246322433*^9, 3.6800242648705378`*^9}, {3.680024342948574*^9,
3.680024344468247*^9}, {3.680031100422564*^9, 3.6800311557104473`*^9}, {
3.680031191329969*^9, 3.6800313461254377`*^9}, {3.680031387648006*^9,
3.680031437866832*^9}, {3.68003177948125*^9, 3.6800317854874*^9}, {
3.680032158710037*^9, 3.680032236271554*^9}, {3.680033318617531*^9,
3.6800333550462227`*^9}, {3.680033389769754*^9, 3.680033392730185*^9}, {
3.6800334258946857`*^9, 3.6800334534718657`*^9}, {3.6800334857730703`*^9,
3.680033488924777*^9}, {3.680033539627652*^9, 3.6800336286427307`*^9}, {
3.680033659655854*^9, 3.6800336732784243`*^9}, {3.680033736354426*^9,
3.680033745154009*^9}, {3.6800337803064127`*^9, 3.6800340811378736`*^9}, {
3.6800341484414263`*^9, 3.6800341773637657`*^9}, {3.6800342532490673`*^9,
3.680034263847595*^9}, {3.6800343096092863`*^9, 3.680034310634325*^9}, {
3.680034344889102*^9, 3.680034446645155*^9}, {3.68003453549794*^9,
3.680034583009225*^9}, {3.680034718638055*^9, 3.6800347440782137`*^9}, {
3.680034814200679*^9, 3.680034815863432*^9}, {3.6800348721177263`*^9,
3.680034872634471*^9}, {3.680034970911656*^9, 3.680034972045713*^9}, {
3.680035146943776*^9, 3.680035147911456*^9}, {3.680040418203917*^9,
3.680040419881639*^9}, {3.680040583418775*^9, 3.680040584530347*^9}, {
3.683658438469919*^9, 3.6836585766962643`*^9}, {3.683658646135564*^9,
3.683658686522357*^9}, {3.6836587389486227`*^9, 3.683658740771229*^9}, {
3.683660030521076*^9, 3.683660091276807*^9}, {3.683660182773686*^9,
3.683660189100429*^9}, {3.683660228681776*^9, 3.6836602486418*^9}, {
3.6836602863593187`*^9, 3.683660291692952*^9}, {3.683660328580711*^9,
3.6836603598686943`*^9}, {3.6836604709220943`*^9, 3.68366051056765*^9}, {
3.683660591476121*^9, 3.683660598171404*^9}, {3.6852331606554337`*^9,
3.685233164008994*^9}, {3.685233195177973*^9, 3.6852331974656982`*^9}, {
3.685239685854663*^9, 3.685239695998331*^9}, {3.685240060775712*^9,
3.68524006284743*^9}, 3.68524015221341*^9, 3.6852402646438217`*^9,
3.685240374381754*^9, {3.68524051826224*^9, 3.685240537397048*^9}, {
3.689719182215517*^9, 3.689719232132846*^9}, {3.702056711870611*^9,
3.702056713561264*^9}, {3.702056768853993*^9, 3.702056796256229*^9}, {
3.702056847022002*^9, 3.7020568473063993`*^9}, {3.702056971466975*^9,
3.702056981131926*^9}, {3.7020570789524918`*^9, 3.7020571110480022`*^9}, {
3.702057180980401*^9, 3.702057216645896*^9}, {3.7020572659297123`*^9,
3.702057305285203*^9}, {3.702057339263493*^9, 3.702057424367276*^9}, {
3.702057591129475*^9, 3.702057641312005*^9}, {3.702058975401504*^9,
3.7020589767492743`*^9}, {3.702059008496911*^9, 3.702059038156735*^9}, {
3.702059132000654*^9, 3.70205914305543*^9}, {3.702059180849572*^9,
3.702059268621525*^9}, {3.702059330442829*^9, 3.7020593773067513`*^9}, {
3.702059409637247*^9, 3.7020594110759*^9}, {3.702059448131978*^9,
3.70205957677656*^9}, {3.70208742526429*^9, 3.702087610886408*^9}, {
3.70208780676045*^9, 3.702087810042183*^9}, {3.702087917030006*^9,
3.702087922473323*^9}, {3.702088648851184*^9, 3.702088690525576*^9}, {
3.702088933905514*^9, 3.70208896683986*^9}, 3.70209365497399*^9, {
3.7020950927199697`*^9, 3.7020951363426867`*^9}, {3.702095170757856*^9,
3.7020951803102427`*^9}, 3.70209550017868*^9, {3.702096376264309*^9,
3.702096379544715*^9}, 3.7020965903464212`*^9, {3.702157701990049*^9,
3.702157744982201*^9}, {3.702157781900256*^9, 3.7021578078580427`*^9},
3.7021578563771276`*^9, {3.7021579908496037`*^9, 3.7021580234070263`*^9}, {
3.7022703144610777`*^9, 3.702270318186678*^9}, {3.702270359671999*^9,
3.702270361615407*^9}, {3.702270521747188*^9, 3.702270540432538*^9}, {
3.7022706534679813`*^9, 3.7022706558120604`*^9}, {3.702270737289214*^9,
3.702270740472595*^9}, {3.702270801989451*^9, 3.702270803092984*^9}, {
3.7146982968827677`*^9, 3.7146983013053217`*^9}, {3.714759550367323*^9,
3.714759554164721*^9}, {3.732917977179154*^9, 3.732917981529562*^9}, {
3.732918101647709*^9, 3.7329181058091087`*^9}, {3.733053533556148*^9,
3.733053541398089*^9}, {3.73306071501446*^9,
3.733060718190056*^9}},ExpressionUUID->"8ef17d26-1325-4539-a446-\
5b855640d6b8"]
}, Open ]],
Cell[CellGroupData[{
Cell["Dynamic Statistical Quorum", "Subsubsection",
CellChangeTimes->{{3.682054169995047*^9, 3.682054176177744*^9}, {
3.702159615516533*^9,
3.702159620456462*^9}},ExpressionUUID->"5f979884-fb33-4d82-af84-\
4215ce7c41c7"],
Cell[BoxData[
RowBox[{"(*",
RowBox[{"Only", " ", "for", " ", "the", " ", "single", " ", "motion", " ",
RowBox[{"case", "."}]}], "*)"}]], "Input",
CellChangeTimes->{{3.702307537042203*^9, 3.702307546010347*^9}, {
3.733158978489356*^9,
3.733158978839841*^9}},ExpressionUUID->"750f9ae3-f8ee-47be-9577-\
f7b719e9c9d3"],
Cell[BoxData[
RowBox[{
RowBox[{"computeDynamicCredibility", "[",
RowBox[{"votes_", ",", "rate_", ",",
RowBox[{"decay_:",
RowBox[{"1.", "/",
RowBox[{"Sqrt", "[", "2", "]"}]}]}], ",",
RowBox[{"bound_:", "0.95"}]}], "]"}], ":=",
RowBox[{"(", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{"Computes", " ", "a", " ", "high"}], "-",
RowBox[{
"probability", " ", "upper", " ", "bound", " ", "on", " ", "the", " ",
"relevant", " ", "population", " ", "size", " ", "and", " ", "proceeds",
" ", "to", " ", "compute", " ", "credibility", " ", "within", " ",
"that", " ",
RowBox[{"population", "."}]}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"probabilityBound", "=", "0.0"}], ";", "\[IndentingNewLine]",
RowBox[{"remaining", "=", "0"}], ";", "\[IndentingNewLine]",
RowBox[{"Lambda", " ", "=", " ",
RowBox[{"rate", "*",
RowBox[{
RowBox[{"(",
RowBox[{"remainingVoters", "/", "effectivePopulationSize"}], ")"}],
"/",
RowBox[{"Log", "[",
RowBox[{"1", "/", "decay"}], "]"}]}]}]}], ";", "\[IndentingNewLine]",
RowBox[{"While", "[",
RowBox[{
RowBox[{"probabilityBound", "<", "bound"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"probabilityBound", "+=",
RowBox[{
RowBox[{
RowBox[{"Lambda", "^", "remaining"}], "/",
RowBox[{"remaining", "!"}]}], "*",
RowBox[{"Exp", "[",
RowBox[{"-", "Lambda"}], "]"}]}]}], ";", "\[IndentingNewLine]",
RowBox[{"remaining", "++"}]}]}], "]"}], ";", "\[IndentingNewLine]",
RowBox[{"newPop", "=",
RowBox[{"Min", "[",
RowBox[{"populationSize", ",",
RowBox[{
RowBox[{"Length", "[", "votes", "]"}], "+", "remaining"}]}], "]"}]}],
";", "\[IndentingNewLine]",
RowBox[{"populationSize", "=", "newPop"}], ";", "\[IndentingNewLine]",
RowBox[{"voteStatistics", "=",
RowBox[{"computeVoteStatistics", "[", "votes", "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"computeCredibility", "[", "voteStatistics", "]"}], "*",
"bound"}]}], "\[IndentingNewLine]", ")"}]}]], "Input",
CellChangeTimes->{{3.70215962548281*^9, 3.7021596474239683`*^9},
3.70218050913828*^9, {3.702306012276122*^9, 3.702306113463011*^9}, {
3.702306789513319*^9, 3.70230683917782*^9}, {3.7023070353920116`*^9,
3.702307037236251*^9}, {3.702307077016301*^9, 3.7023070830063877`*^9}, {
3.702307338906623*^9, 3.702307345680605*^9}, {3.702307378461163*^9,
3.702307495937737*^9}, {3.702307595876072*^9, 3.7023076558866167`*^9}, {
3.7023093147467337`*^9, 3.7023094043247004`*^9}, 3.702309792854711*^9, {
3.702309823927911*^9, 3.702309866512723*^9}, {3.702309897127928*^9,
3.702309922230567*^9}, 3.702310773566737*^9, {3.702310832426279*^9,
3.702310836760098*^9}, {3.702310938839293*^9, 3.702310942454253*^9}, {
3.7023109841114063`*^9, 3.7023109845117693`*^9}, {3.702311287871632*^9,
3.702311290742156*^9}, {3.702311452074525*^9,
3.7023114528229723`*^9}},ExpressionUUID->"855b4bc0-ebcb-45ef-9cd6-\
2c1b6374ee31"]
}, Open ]],
Cell[CellGroupData[{
Cell["Competing Motions", "Subsubsection",
CellChangeTimes->{{3.68205418734674*^9,
3.682054189481695*^9}},ExpressionUUID->"eaaa7bbd-4ab4-4efc-aa57-\
4e69ea84e21f"],
Cell[BoxData[
RowBox[{
RowBox[{"computeCompetingCredibility", "[", "voteStatistics_", "]"}], ":=",
RowBox[{"(", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
"Computes", " ", "the", " ", "probability", " ", "that", " ", "the", " ",
"first", " ",
RowBox[{"item", "'"}], "s", " ", "\"\<yes-bias\>\"", " ", "is", " ",
"greater", " ", "than", " ", "that", " ", "of", " ", "all", " ",
"competing", " ",
RowBox[{"items", "."}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"credibility", "=", "1."}], ";", "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{"a", ",", "b"}], "}"}], "=",
RowBox[{"{",
RowBox[{"1", ",", "1"}], "}"}]}], ";", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{"1", ",", "1"}], "}"}], " ", "corresponds", " ", "to", " ",
"a", " ", "uniform", " ", "prior"}], ",", " ",
RowBox[{
RowBox[{"{",
RowBox[{"0.5", ",", "0.5"}], "}"}], " ", "corresponds", " ", "to",
" ",
RowBox[{"Jeffrey", "'"}], "s", " ", "prior"}], ",", " ",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "0"}], "}"}], " ", "corresponds", " ", "to", " ",
RowBox[{"Haldane", "'"}], "s", " ", "prior"}]}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"c", "=", "10"}], ";", "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{
"yes1", ",", "no1", ",", "yesVotesNeeded1", ",", "remainingVoters1"}],
"}"}], "=",
RowBox[{"voteStatistics", "[",
RowBox[{"[", "1", "]"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"Do", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{
"yesI", ",", "noI", ",", "yesVotesNeededI", ",",
"remainingVotersI"}], "}"}], "=",
RowBox[{"voteStatistics", "[",
RowBox[{"[", "i", "]"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"diff", "=",
RowBox[{"Ceiling", "[",
RowBox[{"yes1", "-", "yesI"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"credibility", "*=",
RowBox[{"1", "-",
RowBox[{"Sum", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"PDF", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
"BetaBinomialDistribution", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"a", "+",
RowBox[{"yesI", "*",
RowBox[{"c", "/", "remainingVotersI"}]}]}], ",",
"\[IndentingNewLine]",
RowBox[{"b", "+",
RowBox[{"noI", "*",
RowBox[{"c", "/", "remainingVotersI"}]}]}], ",",
"\[IndentingNewLine]", "remainingVotersI"}], "]"}], ",",
"\[IndentingNewLine]", "k"}], "]"}], "\[IndentingNewLine]", "*",
"\[IndentingNewLine]",
RowBox[{"CDF", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
"BetaBinomialDistribution", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"a", "+",
RowBox[{"yes1", "*",
RowBox[{"c", "/", "remainingVoters1"}]}]}], ",",
"\[IndentingNewLine]",
RowBox[{"b", "+",
RowBox[{"no1", "*",
RowBox[{"c", "/", "remainingVoters1"}]}]}], ",",
"\[IndentingNewLine]", "remainingVoters1"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"yesI", "+", "k", "-", "yes1"}]}], "]"}]}],
"\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{"k", ",", "diff", ",", "remainingVotersI"}], "}"}]}],
"]"}]}]}], ";"}], "\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{"i", ",", "2", ",",
RowBox[{"Length", "[", "voteStatistics", "]"}]}], "}"}]}], "]"}], ";",
"\[IndentingNewLine]", "credibility"}], "\[IndentingNewLine]",
")"}]}]], "Input",
CellChangeTimes->{{3.683655615133965*^9, 3.6836556167115297`*^9}, {
3.6836594671233664`*^9, 3.6836596121125298`*^9}, {3.6836596641655397`*^9,
3.683659729973835*^9}, {3.683659767760973*^9, 3.683659792212755*^9}, {
3.6836606910844927`*^9, 3.6836606952339087`*^9}, {3.683661028468852*^9,
3.68366107692964*^9}, {3.68366116495236*^9, 3.683661194857181*^9}, {
3.68366127151791*^9, 3.6836612891498737`*^9}, {3.683661319467678*^9,
3.683661358819542*^9}, {3.683661413323193*^9, 3.683661433905143*^9}, {
3.683661474878508*^9, 3.683661486475707*^9}, {3.6836615254314413`*^9,
3.6836615999454*^9}, {3.6836616330503807`*^9, 3.683661711131653*^9}, {
3.683661757636751*^9, 3.6836618645473557`*^9}, {3.6852338192792273`*^9,
3.6852338402003937`*^9}, {3.6852354761100683`*^9, 3.685235516938921*^9}, {
3.685235640473138*^9, 3.685235656247602*^9}, 3.6852395052015457`*^9, {
3.6852397088955193`*^9, 3.685239717180917*^9}, 3.685240117574767*^9,
3.685240253603219*^9, 3.68524055426083*^9, {3.6852408868873568`*^9,
3.685240888981134*^9}, {3.685240930793552*^9, 3.6852409546518*^9}, {
3.685241039178981*^9, 3.685241065944462*^9}, {3.685241098681386*^9,
3.6852411326491127`*^9}, {3.6852430193492403`*^9,
3.6852430223141003`*^9}, {3.6852430816891193`*^9,
3.6852430875741453`*^9}, {3.6885700204070683`*^9, 3.688570045995112*^9}, {
3.68857021328798*^9, 3.688570222130077*^9}, {3.6885744398682737`*^9,
3.6885744459278927`*^9}, 3.688617159969846*^9, 3.688617339175261*^9, {
3.688617376259297*^9, 3.688617423982317*^9}, {3.6886174568336697`*^9,
3.6886174804339447`*^9}, 3.688617526259822*^9, 3.688617601681733*^9, {
3.689719221414721*^9, 3.6897192305490313`*^9}, {3.7020575010386667`*^9,
3.702057502900947*^9}, {3.7020575403016977`*^9, 3.7020575556201973`*^9}, {
3.7020590492702723`*^9, 3.702059051748424*^9}, {3.7021581379656076`*^9,
3.7021581391475277`*^9}, {3.702176915233038*^9, 3.702176921519311*^9}, {
3.702177050132987*^9, 3.702177060990279*^9}, {3.702177165782262*^9,
3.7021771738734922`*^9}, {3.702177208288497*^9, 3.7021772670388117`*^9}, {
3.7021774413398457`*^9, 3.702177452714757*^9}, {3.702177488179018*^9,
3.70217752982485*^9}, {3.702177629941283*^9, 3.702177632459499*^9}, {
3.702177707977337*^9, 3.702177787695231*^9}, {3.702180390190469*^9,
3.7021805038996153`*^9}, {3.702305962250938*^9, 3.7023060013835773`*^9}, {
3.702311443954405*^9, 3.7023114458232327`*^9}, 3.714846023086771*^9,
3.714846165014327*^9, 3.714846395336815*^9, {3.73291788717352*^9,
3.732917903527741*^9}, {3.733157275077134*^9,
3.733157276522195*^9}},ExpressionUUID->"87c06edc-ef8a-46c5-a848-\
27f933306b13"]
}, Open ]]
}, Open ]],
Cell[CellGroupData[{
Cell["Figures:", "Subsection",
CellChangeTimes->{{3.682054213346613*^9, 3.682054236394314*^9}, {
3.701820287333247*^9, 3.7018202907776737`*^9}, {3.70231543643615*^9,
3.702315437198711*^9}},ExpressionUUID->"14fb527f-4bd6-485f-a78f-\
a1428203881c"],
Cell[CellGroupData[{
Cell["Simple Majority", "Subsubsection",
CellChangeTimes->{{3.68003932001936*^9, 3.680039323106409*^9}, {
3.680039378777121*^9, 3.680039381369104*^9},
3.682054218313183*^9},ExpressionUUID->"f8960a06-333f-4884-b883-\
3fb874991336"],
Cell[BoxData[{
RowBox[{
RowBox[{"initializePopulation", "[",
RowBox[{"100", ",", "\"\<simple\>\""}], "]"}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"raw", "=",
RowBox[{
RowBox[{"2.", "*",
RowBox[{"RandomVariate", "[",
RowBox[{
RowBox[{"BernoulliDistribution", "[", "0.75", "]"}], ",", "100"}],
"]"}]}], "-", "1"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"points", "=",
RowBox[{"Table", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"votes", "=",
RowBox[{"raw", "[",
RowBox[{"[",
RowBox[{"1", ";;", "i"}], "]"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{
"yes", ",", "no", ",", "yesVotesNeeded", ",", "remainingVoters"}],
"}"}], "=",
RowBox[{"computeVoteStatistics", "[", "votes", "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"lowerBound", "=", "0"}], ";", "\[IndentingNewLine]",
RowBox[{"While", "[",
RowBox[{"True", ",", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
"Find", " ", "a", " ", "90", "%", " ", "lower", " ", "bound", " ",
"on", " ", "the", " ",
RowBox[{"number", " ", "'"}],
RowBox[{"yes", "'"}], " ", "votes", " ", "you", " ", "will", " ",
RowBox[{"get", ":"}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"If", "[",
RowBox[{
RowBox[{
RowBox[{"CDF", "[",
RowBox[{
RowBox[{"BetaBinomialDistribution", "[",
RowBox[{
RowBox[{"1", "+",
RowBox[{"yes", "*",
RowBox[{"10.", "/", "remainingVoters"}]}]}], ",",
RowBox[{"1", "+",
RowBox[{"no", "*",
RowBox[{"10.", "/", "remainingVoters"}]}]}], ",",
"remainingVoters"}], "]"}], ",", "lowerBound"}], "]"}], "<",
RowBox[{"(",
RowBox[{"1", "-", "0.9"}], ")"}]}], ",", "\[IndentingNewLine]",
RowBox[{"lowerBound", "++"}], ",", "\[IndentingNewLine]",
RowBox[{"Break", "[", "]"}]}], "\[IndentingNewLine]", "]"}],
";"}]}], "\[IndentingNewLine]", "]"}], ";", "\[IndentingNewLine]",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"(",
RowBox[{"populationSize", "-",
RowBox[{"2.", "*",
RowBox[{"Count", "[",
RowBox[{"votes", ",",
RowBox[{"-", "1."}]}], "]"}]}]}], ")"}], "/",
"populationSize"}], ",", "\[IndentingNewLine]",
RowBox[{"Mean", "[", "votes", "]"}], ",",
RowBox[{
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"-", "1."}], "*",
RowBox[{"(",
RowBox[{"populationSize", "-",
RowBox[{"Count", "[",
RowBox[{"votes", ",", "1."}], "]"}], "-", "lowerBound"}],
")"}]}], "+",
RowBox[{"Count", "[",
RowBox[{"votes", ",", "1."}], "]"}], "+", "lowerBound"}], ")"}],
"/", "populationSize"}]}], "\[IndentingNewLine]", "}"}]}],
"\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{"i", ",", "1", ",", "99"}], "}"}]}], "]"}]}], ";"}]}], "Input",
CellChangeTimes->{{3.7023120320180407`*^9, 3.702312033797514*^9}, {
3.702312107105484*^9, 3.7023122094511147`*^9}, {3.702312339664114*^9,
3.7023123728715*^9}, {3.7023124240074787`*^9, 3.702312433085086*^9}, {
3.702312474580924*^9, 3.702312495960475*^9}, {3.702312527584817*^9,
3.702312574472596*^9}, {3.702312647505334*^9, 3.7023126537293167`*^9},
3.702312965719738*^9, {3.702313007511093*^9, 3.7023130354861107`*^9}, {
3.702313066027686*^9, 3.702313264807021*^9}, {3.70231331057277*^9,
3.702313329385871*^9}, 3.702313408852337*^9, {3.702313475905148*^9,
3.702313541309185*^9}, {3.702313743051777*^9, 3.702313749647097*^9}, {
3.702313792149612*^9, 3.7023138745529957`*^9}, {3.702313910841228*^9,
3.702313910992231*^9}, {3.702313962081367*^9, 3.702314002193369*^9}, {
3.702314158291957*^9, 3.702314159771709*^9}, {3.702314267883457*^9,
3.7023142742191*^9}, {3.733149769855111*^9, 3.7331497724859447`*^9}, {
3.733149831433363*^9, 3.733149833927908*^9}, {3.733150461394517*^9,
3.733150463993135*^9}, 3.733150551897843*^9, {3.733150897276783*^9,
3.7331509077227383`*^9}, {3.733151307178535*^9, 3.7331513413181963`*^9}, {
3.7331514549284773`*^9, 3.733151525600128*^9}, {3.733151849217147*^9,
3.7331518494805813`*^9}, {3.733151885849945*^9, 3.733151913465954*^9}, {
3.733152127943612*^9,
3.7331521432962437`*^9}},ExpressionUUID->"5df6022e-b376-4f7a-8769-\
fc026815d7a5"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"ListPlot", "[",
RowBox[{
RowBox[{"Transpose", "[", "points", "]"}], ",", "\[IndentingNewLine]",
RowBox[{"FrameLabel", "\[Rule]",
RowBox[{"{",
RowBox[{"\"\<votes\>\"", ",", "\"\<average\>\""}], "}"}]}], ",",
"\[IndentingNewLine]",
RowBox[{"Frame", "\[Rule]", "True"}], ",",
RowBox[{"FrameStyle", "\[Rule]",
RowBox[{"Directive", "[",
RowBox[{"Black", ",",
RowBox[{"Thickness", "[", "Medium", "]"}]}], "]"}]}], ",",
RowBox[{"LabelStyle", "\[Rule]",
RowBox[{"{", "15", "}"}]}], ",", "\[IndentingNewLine]",
RowBox[{"PlotLegends", "\[Rule]",
RowBox[{"SwatchLegend", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"ColorData", "[",
RowBox[{"97", ",", "\"\<ColorList\>\""}], "]"}], "[",
RowBox[{"[", "1", "]"}], "]"}], ",",
RowBox[{
RowBox[{"ColorData", "[",
RowBox[{"97", ",", "\"\<ColorList\>\""}], "]"}], "[",
RowBox[{"[", "2", "]"}], "]"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
"\"\<voting average\>\"", ",", "\"\<90% credibile interval\>\""}],
"}"}]}], "]"}]}], ",", "\[IndentingNewLine]",
RowBox[{"Joined", "\[Rule]", "True"}], ",", "\[IndentingNewLine]",
RowBox[{"PlotStyle", "\[Rule]",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"ColorData", "[",
RowBox[{"97", ",", "\"\<ColorList\>\""}], "]"}], "[",
RowBox[{"[", "2", "]"}], "]"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"ColorData", "[",
RowBox[{"97", ",", "\"\<ColorList\>\""}], "]"}], "[",
RowBox[{"[", "1", "]"}], "]"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"ColorData", "[",
RowBox[{"97", ",", "\"\<ColorList\>\""}], "]"}], "[",
RowBox[{"[", "2", "]"}], "]"}]}], "}"}]}], ",", "\[IndentingNewLine]",
RowBox[{"PlotMarkers", "\[Rule]",
RowBox[{"{",
RowBox[{",",
RowBox[{"{",
RowBox[{"\[FilledCircle]", ",", "7"}], "}"}], ","}], "}"}]}], ",",
"\[IndentingNewLine]",
RowBox[{"Filling", "\[Rule]",
RowBox[{"{",
RowBox[{
RowBox[{"1", "\[Rule]",
RowBox[{"{", "2", "}"}]}], ",",
RowBox[{"3", "\[Rule]",
RowBox[{"{", "2", "}"}]}]}], "}"}]}], ",", "\[IndentingNewLine]",
RowBox[{"AspectRatio", "\[Rule]", ".75"}], ",", "\[IndentingNewLine]",
RowBox[{"ImageSize", "\[Rule]", "Large"}]}], "\[IndentingNewLine]",
"]"}]], "Input",
CellChangeTimes->{{3.702312937013145*^9, 3.7023129432862663`*^9}, {
3.702314293580352*^9, 3.7023143142055264`*^9}, {3.702314373038125*^9,
3.702314389989376*^9}, {3.7023144302063723`*^9, 3.702314515327491*^9}, {
3.70231463253236*^9, 3.702314770864949*^9}, {3.702314995833482*^9,
3.702315127583666*^9}, {3.702315540856453*^9, 3.7023155566554623`*^9}, {
3.702315597399757*^9, 3.7023157012292128`*^9}, {3.702315862869966*^9,
3.702315953587481*^9}, {3.702315994772953*^9, 3.7023159971795597`*^9}, {
3.7023160704814577`*^9, 3.702316126049307*^9}, {3.702316171548276*^9,
3.702316580087832*^9}, {3.70231663250524*^9, 3.702316720582505*^9}, {
3.70231675368635*^9, 3.702316758043927*^9}, {3.702316802570054*^9,
3.7023168038037786`*^9}, {3.702316894657219*^9, 3.7023170309536657`*^9},
3.7023170668834352`*^9, {3.702317109171646*^9, 3.7023171376975327`*^9}, {
3.702317221746613*^9, 3.7023172224260397`*^9}, {3.733149449944524*^9,
3.7331494515646753`*^9}, {3.733153067592661*^9, 3.733153099552362*^9}, {
3.733153368230323*^9, 3.733153623280875*^9}, {3.733153673559547*^9,
3.73315367753537*^9}, {3.7331580109742727`*^9,
3.73315801756592*^9}},ExpressionUUID->"1f6da296-fb3a-4bfd-857f-\
e2d1476ace17"],
Cell[BoxData[
TemplateBox[{GraphicsBox[{{}, {{{}, {}, {}, {}, {}, {}, {}, {}, {}, {
EdgeForm[],
Directive[
RGBColor[0.880722, 0.611041, 0.142051],
Opacity[0.2]],
GraphicsGroupBox[{{
PolygonBox[CompressedData["
1:eJxdlg1MlWUUx9/p2MRpQ72lLTRSInCEIiAfl4+DChcuXOVePu4dXNdqK01y
QOmc4OhWKmMt3ZqI5fAjbIUVZUSiIVwxNAsFgYD4CiICVMjBtJm59bwv57zb
c85edvfj/5znOe85557nPvdKnu3VOYqiXBN/6ues3YvDz8bUah8/u9dM3PbK
hhrr7xONuAAUyeZBpma/ou6F+hCyAUI0G0FextZ7w4e+yeJpQvZh+68E72sF
4qnHuHyZ7geJS7fuupVwHnV/3L8ZeTWc6Cmt6Cm9gRyI57UjB1E8yGtx/x7k
YOho1wx5HcbTghwCexeOhh3pbkMOhY8/Uu06chicGNsrnpvI60EEq0aMHA6X
Jix5hR2/IEfg+bRfJNy11q04cIfWR4HBeG6J8VwHshGKPCef/66c1kez94sB
k2Pq9f2jdH4sLNKM9ouDMps54NMjtB7w/M5ZdgHLTzyUH1WtC/V4cOxrtu9r
7kZ9A0QeGok4NIL5c22AVSd3vxcw/RvqG8H/69P1B6d7Ud8IzobRnIbRPtQ3
wY0W1fpR3wRVW0t7yz4fQD0B+r7fqT6oJ8DiPT8uLzDheiURtHZYiutdiTA4
oBnqJsw3+Ztgm9bfFF8SfHFWNYovCUK7Sq7+20b9kIz1xfWuZMjWDNcrZtDK
s4T2N0PxE1WeV3No/xRYc/rS/geLaf8UyHc8OlibR/unQrJWQNo/FYIrmnc9
1UH+Fnj5wmeLjhaRvwVWbY+oejRN/ptZfJvhP0P5gstRFN8W6M7O/aq2i/y3
yPlU0rD+mE9Ig4GfPugXD65PgxeOv/HtdT9c706DML/2uWU15G+FaM3I3wot
tXPfmnSTvxWWd8aLB+vhtsLI+ZSYpxupPjbQ2idiEP1tMHazwrhnivxt0Hbx
suHhl3S+DQKch5vu+1P90+GZn3NFi9H56awf0uV+c6dDbZ3nzA/Z5J8h9x9k
QG6x48yCaPLPkPvRnQH1tzof1paQfybEtM5Et86Qfyb092mG/plyv7ozoaS4
Zvd4OOUvC9ZcHP/k/SCsD2TBWcvOHenHqV5ZkPONh3go/ixWP7vc32CH8P78
KwvDKX92eNMj+MK7x+h8O7zd+mLB7X8ofgervwOcj09VznmJ/B3yeW4HBHrs
eGx+p1fn4UJDtWm4V18v1UfsVxAzv7syf0A/T2IRjzrtrHWDerwSA2OFsciH
7M8YGCuMRT1m/z+k1+tMvhrgkF5PiUW9k2ZfWO8HiUW/zM7vYb2fJFYYi36U
2MVY9LOaTefhP/R+l1h8HyR2MRbfJ7yP9e+bSL54oRH9+yixizEwVhiLeSD7
MxbzpEjNTuGf+ryRWMwjWWcs5pmsMxbzUNYt8Kxa3hWj+jyVWGEs5rGsp8AV
NX1NpJtlFvN+22uq/aXfBxIrjMV9IutJMF9L0Jh+H0ks7iv1bQzVpCeCTWvY
cf2+k1jch7LOWNynD9Tw75POWNzHss5Y3Oeyzlj8HpB1xuL3hKxzjmMcyziG
cTTedxPIRsZREKsl9DZyJOMIxuGM1+M8Iw5jHMo4BLT2OXAHeR3jYJyHd5HX
4n1DHMQ4kPFqxv6M/Rj7Ml6J83YS2YexN+NljA2MveBJrUGnkOfhPCVWQHtd
59/I9+KI/wcD3cUS
"]]}}]}, {}, {}, {}, {}, {
EdgeForm[],
Directive[
RGBColor[0.880722, 0.611041, 0.142051],
Opacity[0.2]],
GraphicsGroupBox[{{
PolygonBox[CompressedData["
1:eJxdV39M1VUU/07HJkwb2lvaQiMlAkcoCoL8PCDweO/xiPceP94A12orTXJA
6ZzgiMpkrFVbA7EclkErrOgHkmAIDxXMQvkZELxnMfYSLf0Dps3Mrfv9vnO+
7Z6z+/bdZ597ftxzz73nvieeL7O/sERRlAHxU7/ZbcGhhYGLKbube9ptv93o
VXwC9s51b/1pm0e8DO6Glbx3/g7hQPjwA1VovgGSAyaby5NuIl7D9INg14uq
/IE4GB4XbOc6L+L1sFWTOcQhoFoLmCQcCn/ZVIOziMOgRaWbf0e8ESpUWO5B
HAGzlYY24+w04kiMZwrxZqhS6cpxxFEQ4HOIeAubvxUu3FET8AviaDY/htnb
hvGOII7F9Y0hjsP4hxFvh3A1vWGDiOPR/iXECZjvy4gTGZ/E+GSM5yLiFNCW
09mDGHB+lw/XAPJtyKeifgvyqaBIkoZ8fYqPJ9ziw8oOxKeR30H+kE+neJBP
x3z1IZ/B+AzGZ9L6kM+kfCBvZLyR6WcxPovxJsabmH0z5Rt5M+MtjLcwPpvx
2bT/yFtx/VeRtzI+h/E5VE/IP0P1hzzDSi7Vow9DLtUvzme8i/GKTcZgo/OB
+jY6H6jPsGKn84X6dpmvscv2XIxXHDIGh2yvhvEuxit5zH8e7sevqM+wi81X
8mUe8pl/xrsYrxSw+AuYPsOuAtmeUsj8M1xTSPcf6jOsOGUMDNcw7HKy9Tgh
wm/PA/Pr/8+f+X6vOnR7JQ8+bl7yrFv35/u69XheG3q64ubfbj3eV/yiut44
5tbXE+suv7Ai1q2v99wNa1nl2IyeD8mfyFfxN35izOj5PGXdu8dxfFrP96az
85+8HTmt70dtdfv++dgZfb9WHbi4tsLo1vfTPaOJvt9JQ4uJQ4sUfx50j4zf
66il+POgdWfddMPnHr2eSqudLcsTPXq9XRlUhfQd0NHpv/hDEek7oKTHW9zj
pfgdsHrnvpGM1aTvgMd+Kg37+iTp2/E+IH07DJ/tM9z7kvTtcP1qU8KB25Q/
O7w7FyfGNf08zp2xJD3a69HP69rxVDEofhsMdix99ZaL9G2QqAn5z4WY0NGl
De2Uv1x46vjL310OJf+54PnxHbcY+n0j7b+4j6T9E/fVZFHpVx0TVE858K+h
cXlfPO1fDqtvK2zYHdd6f4HOkxWe6/ps5dEq0s+GqKb+fY+M0XnJBtP7IWKQ
vgXKnfePdJSRvgU2nTx3+O4q0jdD9UOt/gPFpG+GhG8fFoPWa4IiTSg+E4sv
C6Inagf+GSb7WfDFKVXIvhF2ae8tsm+U61v0s2seTfR+J9WD6IdSvYp+KZ+H
dLkeRb+V6k/0Y6neRL8WxdV9ZIHiS4MNH+1/M3yB4kuD7VoB0f2UCs5D/YWH
+uk+ToXGo6pMIA+Qrwne3+K94ftS/0iBBrs5/NP6UcTJsFIT6k9JYHTefumw
F/ubeO9o22ei+QlQ5X/rydON1O/iwaBtEPYr8Z6S+10c+qf5sZjvnxFvAzW7
IsWIY+DE9YNikP9ouV+L9+DBFd6Y+kmytwWCLlWIQf05CsZGNUG8Gf1TPUSy
/ESw9W2EE1N1TVN1VxCH4fx+xKGQqRXEGcQhaJ9kPcbTjXww44PQ3/leH15D
8SA2sPd4IOrTe3sZm6/o9vn/if8AY/+1CQ==
"]]}}]}, {
EdgeForm[],
Directive[
RGBColor[0.880722, 0.611041, 0.142051],
Opacity[0.2]],
GraphicsGroupBox[{{
PolygonBox[{{1., -1.}, {
1.1914893617021276`, -0.8085106382978724}, {
1.1914893617021276`, -0.8085106382978724}, {
1., -0.8200000000000001}}]}}]}, {}, {}}, {{}, {}, {}, {
Hue[0.67, 0.6, 0.6],
Directive[
PointSize[0.007333333333333334],
AbsoluteThickness[1.6],
RGBColor[0.880722, 0.611041, 0.142051]],
LineBox[CompressedData["
1:eJxd1DssQ1EYB/AvJjEZKjGIV0RKRFBv6n6erVZpb1s6mAhGrCxnMZtZmc3G
G1ZmiSDq/ajHUrOe0+8O53+Sm5vf/ec/fCfnnqaVTXetgohWS49+l9evs7x/
Vgwu/zjygW1X8mn93mfq9FtczTUnkfxOwHeAt8NVV0dbX+JacB24EdwMbuHL
C70K4lZwENwO7gB3grvA3dxmBvbdw3ra0sjiELiXS8OXduBD3AfuBw/wmB4v
7HsQPAQeBo/w4YFe7+JRcJj/gnqAN/EY2AGzbQWmccjBNAE5mCYhB9MU5GCa
ZtccOD8H0wzkYIqwOZ4nr5JH2GxnlZiitlWUN9b1epF81rYCUwzyGJ8X9QDP
ksdtqzg3mAPk53O2FZgSkCd4Vx+nnSfJ520rMC1ADqakbQarJJvtuXos2wNT
yjaDFdgDkwt9l0Nm+X2XzfWz/yB9MKVtM1iluWB+17z0wZSxzWAF9jIcLf/Q
0s/a5iwf63GO7qUP9rJc7olpUe7TO+mDFdgD0xL0wQrsgSkn9+2t9MEqJ/fh
jfRzcp9dO/9Pc/Ta
"]]}, {
Hue[0.9060679774997897, 0.6, 0.6],
Directive[
PointSize[0.007333333333333334],
AbsoluteThickness[1.6],
RGBColor[0.368417, 0.506779, 0.709798]],
LineBox[CompressedData["
1:eJxdUnlIlHEQXRQhIUNLskjD0kzDMkvzzmd5H+nuuu6iRhRFpYlaRlRidopE
BuFRiZYdlHaabafHdmhZmqampqsFItkloVSYCX37NfPHfo9ZPh5v3szsb2bB
pnTFFhOZTLZZ+Bm+//EjkL4N0TftndSW44HbLtbXyD98bqAEyIwwDSoR70i3
JP0jcWusFDFEfI4k3xanHCOEeErcXlJ/IWxfZApRS3M5SnQnhNqsz3obcp90
Z6rfSHwJynvzy3rzW4m7Ur8O4st4HuLLqX4vcXd0doggvoLmaSG+Ensthj0L
e9qJe+DsGQOaiXui/NNeId4QXwVhWMPExL1Q9zkmfV/na+Le1J/r+eCb/MH8
o1853xfWftWz/Ko7ifthv/n3RXdLON9f8v8CEKYZ3X5kmPuvhpUIrheIIkWk
y+VCzgf17/rPcyF5nyCUFBvQTXoQNNmN6uzGHtLXwKdgyLtgiN4vdw0czu0+
7DL2nvS1cL5VUXtsrI/0tUiuH06qH+4nPRitLQboSQ9G5fr8vqKrA6SHoP9e
miFID8HMPc/tMsMoXxYK8RxsKD83FIMDIkgPo/dmfxi2ivfN84XjWpUBPF84
PLrzmv608z1E0H4pPzcCiSIoXxYJcT2zuH4kcmZUmjclcf0ouFXUHfk1k+tH
IUMzeUybzvWjESEukOtHw72sMWt2J/tjsPHhFavi/eyPgcM278rJMfavk8y3
Dn+tS6Y/8eX5YtGTmHpD283+WOP3lMXR/uk9EYeBlyf0QlB+HBaX7rjT7ET5
ujh4OnWYFtWwXw5/EeyXo0Vruuu7jv1y2HUFCUH70MkxdD8qYG4D70cB8Xy8
B8mvwKc3ZX57RtmvQPujJ9YT17m/Ai7JJ5/+dOb9KzHvVapwYtxfKbkHpfG9
6ZTQPjAff5zI/njj+0M8UnM0l6b7sz/e+B518ah92zWhzWO/CgFt4/5t4+xX
Qd8vgvwq43vVqZCXU7N7xIvfLwFuj0YuHF9G+0ECqmLSUpSlvK8EJN02E4Ln
T5DsT21831DDS5/xzMKL30+NnWbuDw+d5v5qHGhbmvnlN8+vkexfg+Sp8xdN
NrBfY9xPp4GrWcpU5MG+wH/8tdHX
"]]}, {
Hue[0.1421359549995791, 0.6, 0.6],
Directive[
PointSize[0.007333333333333334],
AbsoluteThickness[1.6],
RGBColor[0.880722, 0.611041, 0.142051]],
LineBox[CompressedData["
1:eJxdlDlIXFEUhi+pZCoLC4ugRkRGkWA0cYnLHNdxGZf31BmLVMElXbQ1zWus
bWy0namnSYpJoy8LBCGEhCgmQkgGUdwKQbTW6/tP4P4XhuHjO+fcc8+77z16
+dqff2CMmbv72f9oXSa6Y/vZpa6z7VS+qjZTepV4ld166/093UaA+IWK1XPv
BFwiN/EXax+vlUtlc8MujS8TrRdxOeU/lMUFu47BVVJ5ZwsVR+Bqab5fh+Aa
sdVi+8q1cuHZgkVwXHJWZ/+B62XZ4tIfcIMUV8ryyeIB+DH6+QVulDdWr+yC
n0gs2hDcRPHN8unaDmAP/JTin1G9FvT7A9yK8/0Et6H/7+B2qbPjjX8FP0f9
L+AOzHsH3Em+i3w3+vkMTsj9cQpbYEH8+4gDgc/D9yA/B98jxlm98OuJyCvn
IjZ94HfwfboffL/2A9+PeX2AHyA/QH5Qzwc/qPOAT5JPUv4Q+SHyw+SHqf6I
zht+hPwo+VHyKfIpff7wYzj/N/gx8uPkx/U+wU/o/YMnNpN6HyOWSb2/iCcf
kjeey+Lp+4F8T98P5BMbX98v5PuuD3y3XkjeTLksU269gHxI3kzT/tN4Hr+R
TxxSvJlxvczQ/uRD8iZN/acpnzhMu/VMhvYnDjL6/UM+sZl1WYgD4nD2f/1b
QU7s+A==
"]]}}, {{
Directive[
PointSize[0.007333333333333334],
AbsoluteThickness[1.6],
RGBColor[0.880722, 0.611041, 0.142051],
AbsolutePointSize[6]],
GeometricTransformationBox[
InsetBox[
BoxData[""], {0., 0.}], CompressedData["
1:eJxd1DksREEYB/APjagUJApxRWSJiPte73Puuu1j2UIlcXRoaaZRq2lXvY1G
xQsttUTc900i1N7Mfq+Y/yRT/N4//+KbzJvSuWV3PouI5v2d4e9MCta3M7t5
+Bua/XLkA9vO5r2ijbfY3qc4l/NTkZu1vMB5vBrOOU2ufIgLwIXgEnAZuJxP
jvV6F1eAQ+AqcDW4BlwLruNKM3DgetbT+iOLG8CN7A/vn8CruAncDG7hLj1e
OHAruA3cDu7g7S29XsSd4DD/hfQAz+IusANm2wpM3ZCDqQdyMPVCDqY+yMHU
z665cEEOpgHIwRRhcz1TT5JH2BxnjpiitlWUFxf0epR80LYC0xDkQ3z0qwd4
kHzYthrmYnOBgnzEtgLTKOSjvK6v09q95GO2FZjGIQfThG0Gqwk2x3N6l7YH
pphtBiuwByYX+i43mBX0XTbPz+at9ME0aZvBapLfze96I30wTdlmsAJ7UxxN
/9DSj9vmOO/ocZLX0gd7cU73xDQt7+ml9MEK7IFpBvpgBfbAlJD39kL6YJWQ
9/Bc+gl5z86ckVRJxUzuj7OU3N+NXb0coP8BA3UFRw==
"]]}, {
Directive[
PointSize[0.007333333333333334],
AbsoluteThickness[1.6],
RGBColor[0.368417, 0.506779, 0.709798],
AbsolutePointSize[6]],
GeometricTransformationBox[
InsetBox[
BoxData[
FormBox[
StyleBox["\[FilledCircle]", FontSize -> 7, StripOnInput -> False],
TraditionalForm]], {0., 0.}], CompressedData["
1:eJxdUnlIlHEQ3RQhwSJNOsii0kzDNFPzzqelpma6u667eBAV0WGiliGVmJUp
EhWEZiV2R2lFmW0emW2Wdnlral4FItqhhFJhJvTt18wf+z1mWd6+eTOzv5ll
25MUO41lMtkO4TND+BjJGD/86Ps5/QCZAWZCJeID6XNI/0zcEi4iBokvkORb
4ZxNiBC1xJdK6i+H1esUIappDhuJboug+fGprYHlpNtR/Triq3C5O7eoO7eR
uAP1ayPuyPMQX0P1u4k7o71NBPG1NE8DcRccmjXkltfVQtwVly7q8Za4Gy4P
HxKiifg6CMPqJybujmdfwpMOt78n7kH9uZ4nvssrlpz8xvlesPQunetd2k7c
G0dMR1c8LuB8H8n/80WwZmxP1hD3Xw9zEVzPD/mKUPtbeZwP6t/xn2dC8j7+
KDivRyfp/tCk16nT67pID4DnmUGPM4P0fpkBsL5y8IT9+EfSN8DuwbXq7PEe
0jcgrmYotmaol/SNaGzQo4/0jSiOz+3Jv9NPeiB6nyTqg/RAWKS9WpwSTPmy
IIjnMJ/yM4Mw0C+C9GB6b/YHY9eNmjL5J55vE+6W6MHzbYJrZ079nxa+hxDa
L+VnhiBGBOXLQiGuZy7XD0XG7GLT+liuHwana8+yfllw/TAka6aytUlcfzNC
xAVy/c1wLqpLndfO/nBsq7xtfv4I+8NhvdujeGqc/Vsk823BX8sCsxdePF8E
umIS7ms72R9h+J6ySNo/vSci0f/mdJ8QlB+JlYX7Hr21pXxdJNxs24zzy9gv
h48I9svRoDU+MKpjvxyLO/yFoH3o5BgsD/Nd+Jz3o4B4Ph4D5FdguKnIO22M
/Qq0VL2wnLzH/RWwjztb+9OO96/EoncJwolxf6XkHpSG96ZTQlthOvE0hv1R
hveHKCRkaG6a+bA/yvAedVGobu2Y1OawXwXf5gmf5gn2q9DXK4L8KsN71amQ
k1F2cMSd3y8aTlUj10850n4QjZLwxL3KQt5XNGIfmgjB80dL9qc2vG+o4d6X
/HKWO7+fGvtNnCuPX+D+ahxtXp3y9TfPr5HsX4O46as3jLayX2PYT6eBg8ne
6dBjPX7/AGxwyas=
"]]}, {
Directive[
PointSize[0.007333333333333334],
AbsoluteThickness[1.6],
RGBColor[0.880722, 0.611041, 0.142051],
AbsolutePointSize[6]],
GeometricTransformationBox[
InsetBox[
BoxData[""], {0., 0.}], CompressedData["
1:eJxdlDtIHUEUhkdt5FYWFhZBo0i4igQf8R29x+f1rbvq1cLKkKTUtKbZJnUa
G229tZXFtTGrEUQQUVR8gOBFDFFTpDF17rj/EeYf2OLbb86ZM2dntnx+wf9Y
YIz5kHvyck++0fE30Rk7X1vsePiBF+JnSr89er/BhfIvPvd950m5SFZX7LgH
F4sbX0Lxr+TzJzt+gV9LWc5mSu/AFdLwPG7BlWKzxc6V38gfzybMguOStnrt
BlwtXywuXoNrJLtUvJ7MXoHfop4LcK18tXrpFFwnsWhBcD3Nb5CfT7YBZ+B3
NL+R8jWh3mNwM/Z3Am5B/UfgVqmy7Y0fgNuQfw/cjn7vg9+T7yDfiXp2wQl5
3k5mCyyYvxlxIPDr8F2IT8N3iXFGN/xyIvLK6YhND3gDvkfXg+/VeuB70a9t
+D7yfeT7dX/w/doP+CT5JMUPkB8gP0h+kPIPab/hh8gPkx8mP0J+RL8//Cj2
fwg/Sn6M/JieJ/hxPX/wxGZCz2PEMqHnF/PJh+SN57J4ej8Q7+n9QDyx8fV+
Id53feC7+ULyZtJlmXTzBeRD8maK1p/C97hEPHFI882062Wa1icfkjcpqj9F
8cRhys1nZmh94mBG/3+IJzazLgtxQBzOvuT/D4pq5Mw=
"]]}, {}}}, {}, {}, {}, {}}, {
DisplayFunction -> Identity, PlotRangePadding -> {{
Scaled[0.02],
Scaled[0.02]}, {
Scaled[0.05],
Scaled[0.05]}}, AxesOrigin -> {0., 0},
PlotRange -> {{0., 99.}, {-1., 0.98}}, PlotRangeClipping -> True,
ImagePadding -> All, DisplayFunction -> Identity, AspectRatio -> 0.75,
Axes -> {True, True}, AxesLabel -> {None, None}, AxesOrigin -> {0., 0},
DisplayFunction :> Identity, Frame -> {{True, True}, {True, True}},
FrameLabel -> {{
FormBox["\"average\"", TraditionalForm], None}, {
FormBox["\"votes\"", TraditionalForm], None}}, FrameStyle -> Directive[
GrayLevel[0],
Thickness[Medium]],
FrameTicks -> {{Automatic, Automatic}, {Automatic, Automatic}},
GridLines -> {None, None}, GridLinesStyle -> Directive[
GrayLevel[0.5, 0.4]], ImageSize -> Large, LabelStyle -> {15},
Method -> {"CoordinatesToolOptions" -> {"DisplayFunction" -> ({
(Identity[#]& )[
Part[#, 1]],
(Identity[#]& )[
Part[#, 2]]}& ), "CopiedValueFunction" -> ({
(Identity[#]& )[
Part[#, 1]],
(Identity[#]& )[
Part[#, 2]]}& )}}, PlotRange -> {{0., 99.}, {-1., 0.98}},
PlotRangeClipping -> True, PlotRangePadding -> {{
Scaled[0.02],
Scaled[0.02]}, {
Scaled[0.05],
Scaled[0.05]}}, Ticks -> {Automatic, Automatic}}],FormBox[
FormBox[
TemplateBox[{"\"voting average\"", "\"90% credibile interval\""},
"SwatchLegend", DisplayFunction -> (FormBox[
StyleBox[
StyleBox[
PaneBox[
TagBox[
GridBox[{{