-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.nlogo
1367 lines (1209 loc) · 35.8 KB
/
model.nlogo
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
extensions [array]
breed[people person]
people-own[
groupType ;Is the agent of group A, B or C?
credence ;This encodes this agent's credence about phi.
bias ;This incodes the individual bias of this particular agent.
expectedPatchConsensus ;The expected patch-consensus is calculated in round one, based on the identity of the other players.
expectedDivergence ;Expected divergence is calculated in round one, based on the expected patch-consensus.
testimony ;Testimony is given in round two and visible to other agents.
;*********************************************************************************************************************
;learning function
averageTestimonies ;the average testimony given by members of this group to the agent
encounters ;the number of testimonies from these groups ;is there something wrong?
quietingCount ;how often - per group - has this agent been quietened?
]
globals[
phi ;value of the standpoint epistemological proposition that agents have credences about
countAgents ;total number of agents in the simulation
;*********************************************************************************************************************
; groups 0 (A) , 1 (B) and 2 (C) (3 is (if applicable) the total of all groups)
groupBiases
groupColors
groupCredences
groupTestimonies
groupPercentages ;How many percent of all agents are in groups A, B and C.
groupCounts
;*********************************************************************************************************************
;Values for plotting and updating the outputs
meanDistance ;How far - on average - are agents from the truth?
smotheringCounter ;How often did agents succumb to smothering this round?
quietingCounter ;how often did agents quieten others this round?
smotheringCounterTotals ;How often did agents succumb to smothering in total?
quietingCounterTotals ;How often did agents quieten others in total?
;*********************************************************************************************************************
;Metacredences about the three groups of agents
credencesAboutA
credencesAboutB
credencesAboutC
]
to setup ;called at the start of each simulation
clear-all
reset-ticks
setupWorld
setupAgents
prepareGame
printSetup
end
to go ;called once per tick
ifelse allowInjustice = true [playGame][skipGame]
if experiments = true [doExperiments]
prepareGame
if printUpdates? = TRUE [printUpdate]
if (ticks >= numberOfTicks) OR (meanDistance < stopAtMeanErrorOf)[
printUpdate
stop
]
tick
end
to playGame
;One game per patch:
ask patches [
;Determine the players
let players turtles-here
let countplayers array:from-list (list (count turtles-here with [groupType = 0]) (count turtles-here with [groupType = 1]) (count turtles-here with [groupType = 2]) (count players))
if array:item countplayers 3 > 1 [ ;no solo-games
;***************************************************************************************************************
;Round one
ask players[
calculateExpectedPatchConsensus self countplayers
calculateExpectedDivergence
]
;***************************************************************************************************************
;Round two
ask players[
let expectedUtility (calculateExpectedUtility self countplayers)
ifelse expectedUtility > utilitySmothering [;the bigger the value, the worse
smother self
][
set testimony credence ;give 'naive' testimony
]
]
let patchConsensus calculatePatchConsensus players countplayers
;***************************************************************************************************************
;Round three
ask players [
let inputFromThisGame (calculateInput self countPlayers players patchConsensus)
set credence (inputFromThisGame * weightOfInput) + (credence * (1 - weightOfInput))
]
]
]
end
to doExperiments ;agents slowly get closer to the truth on their own
ask people[
if biasType = "perpetual" [set credence (w * (phi + bias) + (1 - w) * credence)]
if biasType = "resolving" [
let r random-float 2
let delta (abs (credence - phi))
set credence (w * (phi + delta * bias) + (1 - w) * credence)
]
if biasType = "none" [
set credence (w * phi + (1 - w) * credence)
]
]
end
to skipGame ;if the simulation disallows testimonial injustice, everyone just updates by splitting the difference with the mean of the other players
ask patches [
let players turtles-here
let countplayers count players
ask players[
let input 0
if countplayers > 1 [
ask other players[
set testimony credence
ask myself [
set input input + [testimony] of myself
]
]
set input input / (countplayers - 1)
set credence (input * weightOfInput) + (credence * (1 - weightOfInput));update credence after collecting all the input from the game
]
]
]
end
to setupAgents
set groupColors array:from-list (list orange blue brown)
set groupBiases array:from-list (list biasTypeA biasTypeB biasTypeC)
set groupCounts array:from-list (list countTypeA countTypeB countTypeC)
set countAgents array:item groupCounts 0 + array:item groupCounts 1 + array:item groupCounts 2
set groupPercentages array:from-list (list ((countTypeA / countAgents) * 100) ((countTypeB / countAgents) * 100) ((countTypeC / countAgents) * 100))
foreach [0 1 2] [
x ->
let counter array:item groupCounts x
while [counter > 0] [
set counter counter - 1
create-people 1[
;-----------------------------------------------------------------------------------------------------
;basic features
set xcor random-xcor
set ycor random-ycor
set heading random 360
set shape "person"
set size 0.3
;-----------------------------------------------------------------------------------------------------
;group specific features
set bias (random-float 2.2 * (array:item groupBiases x) - (0.1 * array:item groupBiases x)) ;some people are outliers in their group!
;Coudld be used to disallows too-far-gones
; if (bias > 1)[set bias 1]
; if (bias < -1)[set bias -1]
set credence phi + bias + (random-float 0.4 - 0.2)
set groupType x
set color array:item groupColors x
set expectedDivergence array:from-list (list 0 0 0 0)
;-----------------------------------------------------------------------------------------------------
;learning function features
set quietingCount array:from-list (list 0 0 0 0)
set encounters array:from-list (list 0 0 0)
set averageTestimonies array:from-list (list random-float 1 random-float 1 random-float 1) ;random priors
]
]
]
end
to setupWorld
resize-world (0 -(worldDimensions / 2)) (worldDimensions / 2) (0 -(worldDimensions / 2)) (worldDimensions / 2)
set-patch-size 450 / (worldDimensions + 1)
ask patches [ ;checkerboard coloring
ifelse (((pxcor + pycor) mod 2) = 0)[
set pcolor grey
][
set pcolor white
]
]
ifelse staticPhi? = TRUE [
set phi staticPhi
][
set phi random-float 1
]
set quietingCounterTotals array:from-list (list 0 0 0 0)
set smotheringCounterTotals array:from-list (list 0 0 0 0)
end
to prepareGame ;agents move, group credences, testimony and distance from the truth are updatedphi
resetValues
; Update the all-groups totals of quieting and smothering
array:set quietingCounterTotals 3 (array:item quietingCounterTotals 0 + array:item quietingCounterTotals 1 + array:item quietingCounterTotals 2)
array:set smotheringCounterTotals 3 (array:item smotheringCounterTotals 0 + array:item smotheringCounterTotals 1 + array:item smotheringCounterTotals 2)
let NAcounter array:from-list (list 0 0 0)
ask people[
if credence > 1 [set credence 1] ;just in case
if credence < 0 [set credence 0]
forward random 10
left (random 10) - 5
set meanDistance meanDistance + abs (phi - credence)
array:set groupCredences groupType (array:item groupCredences groupType + credence)
ifelse testimony = "NA"[
array:set NAcounter [grouptype] of self ((array:item NAcounter [grouptype] of self) + 1)
][
array:set groupTestimonies groupType (array:item groupTestimonies groupType + testimony)
]
;update the metacredences
array:set credencesAboutA groupType (array:item credencesAboutA groupType + array:item averageTestimonies 0)
array:set credencesAboutB groupType (array:item credencesAboutB groupType + array:item averageTestimonies 1)
array:set credencesAboutC groupType (array:item credencesAboutC groupType + array:item averageTestimonies 2)
]
foreach [0 1 2] [
x ->
if array:item groupCounts x > 0 [
array:set groupCredences x (array:item groupCredences x / array:item groupCounts x)
if ((array:item groupCounts x - array:item NAcounter x) > 0)[
array:set groupTestimonies x (array:item groupTestimonies x / (array:item groupCounts x - array:item NAcounter x))]
array:set credencesAboutA x (array:item credencesAboutA x / array:item groupCounts x)
array:set credencesAboutB x (array:item credencesAboutB x / array:item groupCounts x)
array:set credencesAboutC x (array:item credencesAboutC x / array:item groupCounts x)
]
]
set meanDistance meanDistance / countAgents
end
to resetValues
set groupCredences array:from-list (list 0 0 0)
set groupTestimonies array:from-list (list 0 0 0)
set credencesAboutA array:from-list (list 0 0 0)
set credencesAboutB array:from-list (list 0 0 0)
set credencesAboutC array:from-list (list 0 0 0)
set meanDistance 0
set quietingCounter 0
set smotheringCounter 0
end
to printUpdate
print "--------------------------------------------------------------------------------------"
print(word "After round " ticks " the average credence in P is " (precision (array:item groupCredences 0) 3) " for group A, " (precision (array:item groupCredences 1) 3) " for group B, and " (precision (array:item groupCredences 2) 3) " for group C.")
print(word "The average testimony given by members of group A is " (precision (array:item groupTestimonies 0) 3) ", while for members of group B it is " (precision (array:item groupTestimonies 1) 3) " and for members of group C it is " (precision (array:item groupTestimonies 2) 3) ".")
print(word "The mean distance from the truth for the whole population of agents is currently " (precision meanDistance 3) ".")
print(word "This round " smotheringCounter " agents tailored their testimony (total of " array:item smotheringCounterTotals 3 ") , and " quietingCounter " individual instances of quieting were committed (total of " array:item quietingCounterTotals 3").")
end
to printSetup
print "--------------------------------------------------------------------------------------"
print "--------------------------------------------------------------------------------------"
print "--------------------------------------------------------------------------------------"
print(word "New simulation started @ "date-and-time)
print(word "In this simulation the objective value of the proposition is " (precision phi 3) ".")
print (word "It contains " countAgents " agents, " (precision (array:item groupPercentages 0) 1) "% group A, " (precision (array:item groupPercentages 1) 1) "% group B and " (precision (array:item groupPercentages 2) 1) "% group C.")
print(word "The average credence in P is " (precision (array:item groupCredences 0) 3) " for group A, " (precision (array:item groupCredences 1) 3) " for group B, and " (precision (array:item groupCredences 2) 3) " for group C.")
print(word "The mean distance from the truth for the whole population of agents starts at " (precision meanDistance 3) ".")
end
to-report shouldQuieten? [aggressor victim patchConsensus countplayers]
;---------------------------------------------------------------------------------------------------
;If smothering results in a refusal to speak at all, then there is no testimony to be quietened.
if [testimony] of victim = "NA" [
report FALSE
]
;---------------------------------------------------------------------------------------------------
let divergenceAggressorConsensus abs ([credence] of aggressor - patchConsensus)
let divergenceVictimConsensus abs ([testimony] of victim - patchConsensus)
let divergenceVictimAggressor abs ([testimony] of victim - [credence] of aggressor)
;conditions for quieting:
ifelse ([groupType] of aggressor != [groupType] of victim) ; 1: different group identities
AND divergenceAggressorConsensus < divergenceVictimConsensus ; 2: credence of aggressor is closer to the group consensus than testimony of victim
AND divergenceVictimAggressor > quietenThreshold ; 3: testimony of victim is far enough from credence of aggressor
AND divergenceVictimConsensus > quietenThreshold ; 4: testimony of victim is far enough from the patch consensus
AND (array:item countplayers [groupType] of aggressor) > (array:item countplayers [groupType] of victim) ;aggressor's group is in the majority compared to the victim's group
[report true][report false]
end
to smother [agent] ;give tailored testimony/ withold testimony
ask agent [
if smotheringType = "compromise"[
set testimony ((credence + expectedPatchConsensus) / 2)
]
if smotheringType = "tailor" [
set testimony expectedPatchConsensus
]
if smotheringType = "withhold"[
set testimony "NA"
]
set smotheringCounter smotheringCounter + 1
array:set smotheringCounterTotals groupType (array:item smotheringCounterTotals groupType + 1)
]
end
to calculateExpectedPatchConsensus [agent countplayers]
let result 0
ask agent [
;Are agents using their subjective metacredences or the objective mean credences?
let data 0
ifelse learningOption = TRUE [set data averageTestimonies][set data groupCredences]
;Are agents calculating the expected patch-consensus with, or without their own credence added to the pool?
if patchConsensusType = "include own credence" [
if groupType = 0 [set result (credence + (array:item countplayers 0 - 1) * array:item data 0 + (array:item countplayers 1) * (array:item data 1) + array:item countplayers 2 * array:item data 2)]
if groupType = 1 [set result (credence + (array:item countplayers 0) * array:item data 0 + (array:item countplayers 1 - 1) * (array:item data 1) + (array:item countplayers 2 * array:item data 2))]
if groupType = 2 [set result (credence + (array:item countplayers 0) * array:item data 0 + (array:item countplayers 1) * (array:item data 1) + (array:item countplayers 2 - 1) * array:item data 2)]
set result result / (array:item countplayers 3)
]
if patchConsensusType = "omit own credence" [
if groupType = 0 [set result ((array:item countplayers 0 - 1) * (array:item data 0) + (array:item countplayers 1) * (array:item data 1) + (array:item countplayers 2) * (array:item data 2))]
if groupType = 1 [set result ((array:item countplayers 0) * (array:item data 0) + (array:item countplayers 1 - 1) * (array:item data 1) + (array:item countplayers 2) * (array:item data 2))]
if groupType = 2 [set result ((array:item countplayers 0) * (array:item data 0) + (array:item countplayers 1) * (array:item data 1) + (array:item countplayers 2 - 1) * (array:item data 2))]
set result result / ((array:item countplayers 3) - 1)
]
set expectedPatchConsensus result
]
end
to-report calculatePatchConsensus [players countplayers]
let result 0
let relevantplayerCount array:item countplayers 3
ask players [
ifelse testimony = "NA"[
set relevantplayerCount relevantplayerCount - 1
][
set result result + testimony
]
]
set result result / relevantplayerCount
report result
end
to-report calculateExpectedUtility [agent countplayers] ;calculated in round 2 of each game, based the quieting conditions
let expectedUtility 0
ask agent[
if (requireExperience = FALSE) OR (array:item quietingCount 3 > 0)[;if we require experience AND have none, we skip this calculation
if (array:item expectedDivergence 3 > quietenThreshold)[;the agent is only in danger, if their expect to be far from the patch-consensus, and then for each group, if they expect to be far from the credence of its members
if groupType = 0[
if ((array:item countplayers 0) < (array:item countplayers 1)) AND (array:item expectedDivergence 1 > quietenThreshold)[set expectedUtility expectedUtility + (array:item countplayers 1) * utilityQuieting]
if ((array:item countplayers 0) < (array:item countplayers 2)) AND (array:item expectedDivergence 2 > quietenThreshold)[set expectedUtility expectedUtility + (array:item countplayers 2) * utilityQuieting]
]
if groupType = 1[
if ((array:item countplayers 1) < (array:item countplayers 0)) AND (array:item expectedDivergence 0 > quietenThreshold)[set expectedUtility expectedUtility + (array:item countplayers 0) * utilityQuieting]
if ((array:item countplayers 1) < (array:item countplayers 2)) AND (array:item expectedDivergence 2 > quietenThreshold)[set expectedUtility expectedUtility + (array:item countplayers 2) * utilityQuieting]
]
if groupType = 2[
if ((array:item countplayers 2) < (array:item countplayers 0)) AND (array:item expectedDivergence 0 > quietenThreshold)[set expectedUtility expectedUtility + (array:item countplayers 0) * utilityQuieting]
if ((array:item countplayers 2) < (array:item countplayers 1)) AND (array:item expectedDivergence 1 > quietenThreshold)[set expectedUtility expectedUtility + (array:item countplayers 1) * utilityQuieting]
]
]
]
]
report expectedUtility
end
to calculateExpectedDivergence
array:set expectedDivergence 3 abs (expectedPatchConsensus - credence)
foreach [0 1 2] [
x ->
ifelse learningOption = TRUE [
array:set expectedDivergence x abs (credence - array:item averageTestimonies x)
][
array:set expectedDivergence x abs (credence - array:item groupCredences x)
]
]
end
to-report calculateInput [agent playerCount players patchConsensus]
let inputFromThisGame 0 ;used to calculate the subjective mean testimony in the current game
ask agent [
let relevantplayerCount ((array:item playerCount 3) - 1); number of OTHER players
ask other players[
if learningOption = TRUE [ ;Updates the agents credences about the other players
if [testimony] of self != "NA"[
ask myself[
array:set averageTestimonies ([groupType] of myself) ((array:item averageTestimonies ([groupType] of myself) * array:item encounters ([groupType] of myself) + [testimony] of myself) / (array:item encounters ([groupType] of myself) + 1))
array:set encounters ([groupType] of myself) (array:item encounters ([groupType] of myself) + 1);the aggressor counts the encounter
]
]
]
ifelse (shouldQuieten? myself self patchConsensus playerCount) = TRUE [
;(Victim) counts the quieting.
array:set quietingCount 3 (array:item quietingCount 3 + 1)
array:set quietingCount ([groupType] of myself) (array:item quietingCount ([groupType] of myself) + 1)
set quietingCounter quietingCounter + 1
array:set quietingCounterTotals groupType (array:item quietingCounterTotals groupType + 1)
;quietened players get ignored
set relevantplayerCount relevantplayerCount - 1
][
ifelse [testimony] of self = "NA" [;NA testimony is not added to the input
set relevantplayerCount relevantplayerCount - 1
][
;non-quietened other players that gave testimony are added to the input of the agent
set inputFromThisGame inputFromThisGame + [testimony] of self
]
]
]
if relevantplayerCount > 0 [set inputFromThisGame inputFromThisGame / relevantplayerCount]
]
report inputFromThisGame
end
@#$#@#$#@
GRAPHICS-WINDOW
5
10
463
469
-1
-1
90.0
1
10
1
1
1
0
1
1
1
-2
2
-2
2
0
0
1
ticks
30.0
SLIDER
634
508
828
541
countTypeA
countTypeA
1
200
200.0
1
1
NIL
HORIZONTAL
BUTTON
7
474
62
548
NIL
setup
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
SLIDER
634
577
828
610
countTypeB
countTypeB
1
200
50.0
1
1
NIL
HORIZONTAL
SLIDER
634
542
828
575
biasTypeA
biasTypeA
-1
1
-0.9
0.01
1
NIL
HORIZONTAL
SLIDER
634
612
828
645
biasTypeB
biasTypeB
-1
1
0.0
0.1
1
NIL
HORIZONTAL
BUTTON
64
474
119
547
NIL
go
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
PLOT
1013
10
1266
256
Mean error
NIL
NIL
0.0
1.0
0.0
1.0
true
false
"" ""
PENS
"default" 1.0 0 -16777216 true "" "plot meanDistance"
PLOT
502
10
755
255
Mean credences
NIL
NIL
0.0
1.0
0.0
1.0
true
false
";set groupCredences array:from-list (list 0 0 0)" ""
PENS
"default" 1.0 0 -16777216 true "" "ifelse staticPhi? = TRUE [plot staticPhi][plot phi]"
"Group A" 1.0 0 -955883 true "" "plot array:item groupCredences 0"
"Group B" 1.0 0 -13345367 true "" "plot array:item groupCredences 1"
"Group C" 1.0 0 -6459832 true "" "plot array:item groupCredences 2"
SWITCH
1285
508
1522
541
learningOption
learningOption
0
1
-1000
SLIDER
1076
581
1260
614
utilityQuieting
utilityQuieting
0
10
2.0
1
1
NIL
HORIZONTAL
SLIDER
1076
617
1260
650
utilitySmothering
utilitySmothering
0
10
3.0
1
1
NIL
HORIZONTAL
SLIDER
8
612
175
645
worldDimensions
worldDimensions
0
10
4.0
2
1
NIL
HORIZONTAL
PLOT
757
10
1011
255
Mean testimonies
NIL
NIL
0.0
1.0
0.0
1.0
true
false
";set groupTestimonies array:from-list (list 0 0 0)" ""
PENS
"default" 1.0 0 -16777216 true "" "plot phi"
"Group A" 1.0 0 -955883 true "" "plot array:item groupTestimonies 0"
"Group B" 1.0 0 -13345367 true "" "plot array:item groupTestimonies 1"
"Group C" 1.0 0 -6459832 true "" "plot array:item groupTestimonies 2"
SLIDER
634
682
829
715
biasTypeC
biasTypeC
-1
1
0.5
0.1
1
NIL
HORIZONTAL
SWITCH
1076
509
1260
542
allowInjustice
allowInjustice
0
1
-1000
BUTTON
121
474
176
547
NIL
go
T
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
CHOOSER
1076
652
1261
697
smotheringType
smotheringType
"tailor" "compromise" "withhold"
0
SWITCH
869
509
1051
542
experiments
experiments
0
1
-1000
CHOOSER
288
586
494
631
patchConsensusType
patchConsensusType
"omit own credence" "include own credence"
0
PLOT
502
257
755
503
Mean # of quietings
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"set quietingCounterTotals array:from-list (list 0 0 0 0)\nset countAgents (countTypeA + countTypeB + countTypeC)" ""
PENS
"Total" 1.0 0 -16777216 true "" "plot array:item quietingCounterTotals 3 / countAgents"
"Group A" 1.0 0 -955883 true "" "plot array:item quietingCounterTotals 0 / countTypeA"
"Group B" 1.0 0 -13345367 true "" "plot array:item quietingCounterTotals 1 / countTypeB"
"Group C" 1.0 0 -6459832 true "" "if countTypeC > 0 [plot array:item quietingCounterTotals 2 / countTypeC]"
PLOT
759
256
1012
501
Mean # of smotherings
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"set smotheringCounterTotals array:from-list (list 0 0 0 0)\nset countAgents (countTypeA + countTypeB + countTypeC)\n" ""
PENS
"Total" 1.0 0 -16777216 true "" "plot array:item smotheringCounterTotals 3 / countAgents"
"Group A" 1.0 0 -955883 true "" "plot array:item smotheringCounterTotals 0 / countTypeA"
"Group B" 1.0 0 -13345367 true "" "plot array:item smotheringCounterTotals 1 / countTypeB"
"Group C" 1.0 0 -6459832 true "" "if countTypeC > 0 [plot array:item smotheringCounterTotals 2 / countTypeC]"
SWITCH
288
478
464
511
staticPhi?
staticPhi?
0
1
-1000
SLIDER
288
632
465
665
weightOfInput
weightOfInput
0.01
0.99
0.1
0.01
1
NIL
HORIZONTAL
PLOT
1013
256
1266
501
Metacredences about A
NIL
NIL
0.0
10.0
0.0
1.0
true
false
"" ""
PENS
"Actual Value" 1.0 0 -16777216 true "" "plot array:item groupCredences 0"
"group A" 1.0 0 -955883 true "" "plot array:item credencesAboutA 0"
"group B" 1.0 0 -13345367 true "" "plot array:item credencesAboutA 1"
"group C" 1.0 0 -6459832 true "" "plot array:item credencesAboutA 2"
PLOT
1268
257
1522
503
Metacredences about B
NIL
NIL
0.0
10.0
0.0
1.0
true
false
"" ""
PENS
"Actual Value" 1.0 0 -16777216 true "" "plot array:item groupCredences 1"
"group A" 1.0 0 -955883 true "" "plot array:item credencesAboutB 0"
"group B" 1.0 0 -13345367 true "" "plot array:item credencesAboutB 1"
"group C" 1.0 0 -6459832 true "" "plot array:item credencesAboutB 2"
PLOT
1268
10
1518
255
Metacredences about C
NIL
NIL
0.0
10.0
0.0
1.0
true
false
"" ""
PENS
"Actual Value" 1.0 0 -16777216 true "" "plot array:item groupCredences 2"
"Group A" 1.0 0 -955883 true "" "plot array:item credencesAboutC 0"
"Group B" 1.0 0 -13345367 true "" "plot array:item credencesAboutC 1"
"Group C" 1.0 0 -6459832 true "" "plot array:item credencesAboutC 2"
SWITCH
8
647
175
680
PrintUpdates?
PrintUpdates?
1
1
-1000
SLIDER
869
544
1051
577
w
w
0.01
0.1
0.1
0.01
1
NIL
HORIZONTAL
CHOOSER
869
579
1051
624
biasType
biasType
"resolving" "none" "perpetual"
0
INPUTBOX
8
551
176
611
numberOfTicks
3000.0
1
0
Number
SLIDER
1076
545
1260
578
quietenThreshold
quietenThreshold
0
1
0.1
0.1
1
NIL
HORIZONTAL
SLIDER
634
647
829
680
countTypeC
countTypeC
0
200
0.0
10
1
NIL
HORIZONTAL
SLIDER
288
515
465
548
staticPhi
staticPhi
0
1
1.0
0.05
1
NIL
HORIZONTAL
SWITCH
1285
544
1522
577
requireExperience
requireExperience
1
1
-1000
SLIDER
288
551
465
584
stopAtMeanErrorOf
stopAtMeanErrorOf
0
0.2