-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlcoholAgent.java
More file actions
1911 lines (1702 loc) · 605 KB
/
AlcoholAgent.java
File metadata and controls
1911 lines (1702 loc) · 605 KB
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
/*
* Alcohol ABM
*
* This model will compare interventions aimed at reducing racial disparities in alcohol-related
* homicide, using New York City as the place and population of interest.
*
* The agent class creates the individual agents that populate the model.
*
* Revised Oct 20, 2014
*
* Notes: 9.3.2014 -- restricted age of baseline population to 18-64
* 9.3.2014 -- removed smoking and marijuana use
* 9.3.2014 -- removed marital status
* 10.20.2014 -- removed attitude towards drinking
*
*/
package cbtModel;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Vector;
import uchicago.src.sim.gui.Drawable;
import uchicago.src.sim.gui.Named;
import uchicago.src.sim.gui.SimGraphics;
import uchicago.src.sim.gui.ColorMap;
import uchicago.src.sim.space.Object2DGrid;
import uchicago.src.sim.space.Object2DTorus;
import uchicago.src.sim.util.Random;
public class AlcoholAgent implements Drawable {
// variable declarations -- attributes of each agent and other components of the model
// that are relevant to the agents
public static int nextID = 0; // to give each agent an ID
int ID;
// demographic characteristics and socio-economic status
public double age;
public int agecat; // 1 18-24, 2 25-34, 3 35-44, 4 45-54, 5 55-64, 6 65+
public int lastagecat; // age category (1-6) at last time step (to keep track of those changing age category)
public int gender; // 0 female, 1 male
public int race; // 1 white, 2 black, 3 hispanic, 4 others
public int education; // 1 < high school, 2 high school, 3 > high school
public int houseincome; // 1 < 20k, 2 $20k-$39k, 3 $40k-$74k, 4 $75k+ can change
public int lastincome; // income category (1-4) at last time step (to keep track of those changing income category)
public int houseinc16; // 1 < $10k, 2 $10k-$14k, 3 $15k-$19k, 4 $20k-$24k, 5 $25k-$29k
// 6 $30k-$34k, 7 $35k-$39k, 8 $40k-$44k, 9 $45k-$49k, 10 $50k-$59k
// 11 $60k-$74k, 12 $75k-$99k, 13 $100k-$124k, 14 $125k-$149k, 15 $150k-$199k, 16 $200k+
public int baseinc16; // 16 income categories -- stays the same during the model run
// dummy variables
public int age1, age2, age3, age4, age5, age6; // 18-24 is referent
// age2 (25-34), age3 (35-44), age4 (45-54), age5 (55-64), age6 (65+)
public int white, black, hisp, otherRace; // white is referent
public int lesshs, hs, morehs; // < hs is referent
public int inc1, inc2, inc3, inc4; // <$20,000 is referent
// inc2 ($20k-$39k), inc3 ($40k-$74k), inc4 ($75k+)
// all-cause mortality
public double pMortality; // probability of dying at current time step
public int died; // agent died at this time step (1 yes, 0 no)
public int lastdied; // agent died at last time step (1 yes, 0 no)
public int doNotCount; // indicator to show agent was recycled at this time step and should not be counted
// when calculating drinking transition probabilities
// moving
public double pMove; // probability of agent moving to another neighborhood at current time step
public int moved; // agent moved at this time step (1 yes, 0 no)
public int everHighInc; // agent ever lived in high income neighborhood
public int everLowInc; // agent ever lived in low income neighborhood
public int baseIncHood; // income level of baseline neighborhood (1 = high, 2 = low)
public double[] probDuration = new double[7]; // probabilities of categories of initial duration of residence
public int durationCat; // initial duration of residence category
public double durationRes; // number of time steps in current neighborhood
// dummy variables for duration of residence
public int durRes1, durRes2, durRes3; // durRes1 (0-5 yrs), durRes2 (6-10 yrs), durRes3 (11-20 yrs) (>20 yrs is referent)
// agent location and neighborhood
private int myX;
private int myY;
public int Agenthood; // neighborhood ID of agent (0-58)
public int cdcode; // community district ID of agents (101-112; 201-218; 301-312; 401-414; 501-503)
// variables for assigning agents to neighborhoods
public double[] popDist = new double[60]; // probabilities of residing in each of 59 community districts
// drinking
// drinking
public double probNonDrk; // probability of being a current non-drinker
public double probLightDrk; // probability of being a current light/moderate drinker
public double probHeavyDrk; // probability of being a current heavy drinker
public int drinkStat; // current drinking status (1 non-drinker, 2 light/mod drinker, 3 heavy drinker)
public int lastDrinkStat; // drinking status at last time step (1 non-drinker, 2 light/mod drinker, 3 heavy)
public int nonDrinker; // agent is a non-drinker (1 yes, 0 no)
public int lightDrinker; // agent is a light/moderate drinker (1 yes, 0 no)
public int heavyDrinker; // agent is a heavy drinker (1 yes, 0 no)
public int everHeavyDrk; // agent was ever a heavy drinker (1 yes, 0 no)
public double probAnyBeer; // probability agent drinks beer ever
public double probAnyWine; // probability agent drinks wine ever
public double probAnySpirit; // probability agent drinks spiris ever
public int anyBeer; // agent drinks beer (1 yes, 0 no)
public int anyWine; // agent drinks wine (1 yes, 0 no)
public int anySpirit; // agent drinks spirits (1 yes, 0 no)
public double probBeer; // probability of preferring beer
public double probWine; // probability of preferring wine
public double probSpirit; // probability of preferring spirits
public int preferBeer; // agent prefers beer (1 yes, 0 no)
public int preferWine; // agent prefers wine (1 yes, 0 no)
public int preferSpirit; // agent prefers spirits (1 yes, 0 no)
// social network variables
public int finalfriendsize;
public ArrayList<AlcoholAgent> friendList = new ArrayList<AlcoholAgent>();
public int numFrdNoDrk; // number of friends who do not drink
public int numFrdLightDrk; // number of friends who are light/moderate drinkers
public int numFrdHeavyDrk; // number of friends who are heavy drinkers
public int numFrdVictim; // number of friends who were victimized at last time step
public int numFrdPerp; // number of friends who were perpetrators of violence at last time step
// variables used in creating social network links
public double friendAgeMean, friendAgeDiff;
public double friendAgeSum=0;
public double friendAgeTemp=0;
public double friendAgeSame=0;
public double friendEduMean, friendEduDiff;
public double friendEduSum=0;
public double friendEduTemp=0;
public double friendEduSame=0;
public double friendRaceMean, friendRaceDiff;
public double friendRaceSum=0;
public double friendRaceTemp=0;
public double friendRaceSame=0;
public double friendGenderMean, friendGenderDiff;
public double friendGenderSum=0;
public double friendGenderTemp=0;
public double friendGenderSame=0;
public int eduYrs; // midpoint of education categories to approximate years
//// violent victimization, perpetration, and homicide
// victimization
public double pviolvict; // probability of violent victimization
public int potviolvict; // potential to be violently victimized (1 yes, 0 no)
public int violvict; // any violent victimization at current time step (1 yes, 0 no)
public int alcViol; // alcohol-related violent victimization at current time step (1 yes, 0 no)
// perpetration
public double pviolperp; // probability of violent perpetration
public int potviolperp; // potential to commit violent perpetration (1 yes, 0 no)
public int violperp; // violent perpetration at current time step (1 yes, 0 no)
// history of violent victimization and perpetration
public int priorviolvict; // prior violent victimization at any time in past (0 no, 1 yes)
public int lastviolvict; // violent victimization at last time step
public int priorviolperp; // prior violent perpetration at any time in past (0 no, 1 yes)
public int lastviolperp; // violent perpetration at last time step (0 no, 1 yes)
// homicide
public double probHomicide; // probability of homicide
public int pothomicide; // potential to be killed (1 yes, 0 no)
public int homicide; // fatal violence at current time step (0 no, 1 yes)
public int alcHomicide; // fatal alcohol-related violence at current time step (0 no, 1 yes)
public double probViolence; // highest probability of violence (of homicide, victimization, perpetration)
///////////// agent movement -- NEED TO ADD THESE VARIABLES!
// the Agent constructor
public AlcoholAgent() {
// Assign agent ID number
ID = nextID++;
// Initialize age, race and gender
ageRaceSexDist();
// Initialize education level, based on age and sex
educationDist();
// Initialize household income level, based on race
houseIncomeDist();
// Initialize baseline probabilities of residing in each neighborhood
hoodProbDist();
hoodProbDist2();
// Initialize mortality probability
mortalityProb();
// Initialize duration of residence
durationResProb();
double randDuration = Random.uniform.nextDoubleFromTo(0, 1);
for (int j=0; j<6; j++) {
if (randDuration > probDuration[j] && randDuration <= probDuration[j+1]) {
durationCat = j + 1;
}
}
// Select actual number of years within category
if (durationCat == 1) { durationRes = 1; }
else if (durationCat == 2) { durationRes = (double) Random.uniform.nextIntFromTo(2,5); }
else if (durationCat == 3) { durationRes = (double) Random.uniform.nextIntFromTo(6,10); }
else if (durationCat == 4) { durationRes = (double) Random.uniform.nextIntFromTo(11,20); }
else if (durationCat == 5) { durationRes = (double) Random.uniform.nextIntFromTo(21,30); }
else if (durationCat == 6) { durationRes = (double) Random.uniform.nextIntFromTo(31,40); }
// Make sure valid number is chosen and set dummy variables
if (durationRes > age) { durationRes = age; }
if (durationRes >= 0 && durationRes <= 5) { setDurRes1(1); } else setDurRes1(0);
if (durationRes >= 6 && durationRes <= 10) { setDurRes2(1); } else setDurRes2(0);
if (durationRes >= 11 && durationRes <= 20) { setDurRes3(1); } else setDurRes3(0);
//// Initialize all variables holding agent characteristics
if (age>=18 && age<25) { setAgecat(1); }
else if (age>=25 && age<35) { setAgecat(2); }
else if (age>=35 && age<45) { setAgecat(3); }
else if (age>=45 && age<55) { setAgecat(4); }
else if (age>=55 && age<65) { setAgecat(5); }
else if (age>=65) { setAgecat(6); }
setLastagecat(agecat);
// dummy variables for socio-demographic characteristics
if (age>=18 && age<25){setAge1(1);} else setAge1(0);
if (age>=25 && age<35){setAge2(1);} else setAge2(0);
if (age>=35 && age<45){setAge3(1);} else setAge3(0);
if (age>=45 && age<55){setAge4(1);} else setAge4(0);
if (age>=55 && age<65){setAge5(1);} else setAge5(0);
if (age>=65) { setAge6(1); } else setAge6(0);
if (race == 1 ){ setWhite(1);} else setWhite(0);
if (race == 2 ){ setBlack(1);} else setBlack(0);
if (race == 3 ){ setHisp(1);} else setHisp(0);
if (race == 4 ){ setOtherRace(1);} else setOtherRace(0);
if (education == 1 ) { setLesshs(1);} else setLesshs(0);
if (education == 2 ) { setHs(1);} else setHs(0);
if (education == 3 ) { setMorehs(1);} else setMorehs(0);
if (houseincome == 1 ) { setInc1(1);} else setInc1(0);
if (houseincome == 2 ) { setInc2(1);} else setInc2(0);
if (houseincome == 3 ) { setInc3(1);} else setInc3(0);
if (houseincome == 4 ) { setInc4(1);} else setInc4(0);
setLastincome(houseincome);
// mortality
died = 0;
doNotCount = 0;
// moving
moved = 0;
everHighInc = 0;
everLowInc = 0;
baseIncHood = -1;
// drinking
probNonDrk = 0;
probLightDrk = 0;
probHeavyDrk = 0;
lastDrinkStat = -1;
drinkStat = -1;
nonDrinker = -1;
lightDrinker = -1;
heavyDrinker = -1;
everHeavyDrk = 0;
// probability and preference for types of beverages
probAnyBeer = 0;
probAnyWine = 0;
probAnySpirit = 0;
anyBeer = 0;
anyWine = 0;
anySpirit = 0;
probBeer = 0;
probWine = 0;
probSpirit = 0;
preferBeer = 0;
preferWine = 0;
preferSpirit = 0;
// number of friends
finalfriendsize = 1 + (int)(Math.random() * ((8 - 1) + 1));
friendList.clear();
// take mid-points for education for social network calculations
eduYrs = 0;
if (education==1) { setEduYrs(6); }
else if (education==2) { setEduYrs(12); }
else if (education==3) { setEduYrs(15); }
// violent victimization
pviolvict = 0;
potviolvict = -1;
violvict = -1;
priorviolvict = 0;
lastviolvict = -1;
alcViol = 0;
// violent perpetration
pviolperp = 0;
potviolperp = -1;
violperp = -1;
priorviolperp = 0;
lastviolperp = -1;
// homicide
probHomicide = 0;
pothomicide = -1;
homicide = -1;
alcHomicide = 0;
// overall violence
probViolence = 0;
} // end of agent constructor
////////////////////////// FUNCTIONS CALLED BY THE AGENT CONSTRUCTOR
// Initial distribution of race, gender, and age
public void ageRaceSexDist(){
// initialize race, sex, age
double randomP = Random.uniform.nextDoubleFromTo(0,1);
if (randomP <= 0.002507528 ) { age = 18 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.005246433 ) { age = 19 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.008071106 ) { age = 20 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.010846852 ) { age = 21 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.013985551 ) { age = 22 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.017690899 ) { age = 23 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.021658618 ) { age = 24 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.026046792 ) { age = 25 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.030286237 ) { age = 26 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.034740881 ) { age = 27 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.039572707 ) { age = 28 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.044711541 ) { age = 29 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.050247049 ) { age = 30 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.054937554 ) { age = 31 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.059545019 ) { age = 32 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.064026953 ) { age = 33 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.068506937 ) { age = 34 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.073439539 ) { age = 35 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.077821671 ) { age = 36 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.082031488 ) { age = 37 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.086259822 ) { age = 38 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.090435917 ) { age = 39 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.095082173 ) { age = 40 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.099039561 ) { age = 41 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.103029111 ) { age = 42 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.106858237 ) { age = 43 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.11076202 ) { age = 44 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.115002635 ) { age = 45 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.11869044 ) { age = 46 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.122504168 ) { age = 47 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.126194117 ) { age = 48 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.129912915 ) { age = 49 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.133912017 ) { age = 50 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.13756337 ) { age = 51 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.141447271 ) { age = 52 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.145279321 ) { age = 53 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.148292877 ) { age = 54 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.151294348 ) { age = 55 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.154105765 ) { age = 56 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.157075073 ) { age = 57 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.159720219 ) { age = 58 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.162236713 ) { age = 59 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.164904666 ) { age = 60 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.167342215 ) { age = 61 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.169817386 ) { age = 62 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.172121411 ) { age = 63 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.174373781 ) { age = 64 ; gender = 1 ; race = 1 ; }
else if (randomP <= 0.176812305 ) { age = 18 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.17957811 ) { age = 19 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.182453463 ) { age = 20 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.185328037 ) { age = 21 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.188841188 ) { age = 22 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.192948084 ) { age = 23 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.197370175 ) { age = 24 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.202142159 ) { age = 25 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.206539104 ) { age = 26 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.211167038 ) { age = 27 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.215947598 ) { age = 28 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.221080194 ) { age = 29 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.226397775 ) { age = 30 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.230878149 ) { age = 31 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.235243322 ) { age = 32 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.239365812 ) { age = 33 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.243459453 ) { age = 34 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.24778798 ) { age = 35 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.251776166 ) { age = 36 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.255651489 ) { age = 37 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.259542797 ) { age = 38 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.263481862 ) { age = 39 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.267708832 ) { age = 40 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.271507355 ) { age = 41 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.275500414 ) { age = 42 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.279384899 ) { age = 43 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.283238391 ) { age = 44 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.287383883 ) { age = 45 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.291225484 ) { age = 46 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.295131411 ) { age = 47 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.299029931 ) { age = 48 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.302968411 ) { age = 49 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.307188754 ) { age = 50 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.311220018 ) { age = 51 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.315512874 ) { age = 52 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.319790525 ) { age = 53 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.323212451 ) { age = 54 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.326588764 ) { age = 55 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.329786915 ) { age = 56 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.333141591 ) { age = 57 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.336163139 ) { age = 58 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.339064223 ) { age = 59 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.342128459 ) { age = 60 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.344959759 ) { age = 61 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.347849927 ) { age = 62 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.350493319 ) { age = 63 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.35312443 ) { age = 64 ; gender = 0 ; race = 1 ; }
else if (randomP <= 0.356268976 ) { age = 18 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.359281362 ) { age = 19 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.362134104 ) { age = 20 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.364886849 ) { age = 21 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.367574099 ) { age = 22 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.370183574 ) { age = 23 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.372731646 ) { age = 24 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.375296677 ) { age = 25 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.377685301 ) { age = 26 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.380224212 ) { age = 27 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.382775988 ) { age = 28 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.385640036 ) { age = 29 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.388572307 ) { age = 30 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.391300102 ) { age = 31 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.394041151 ) { age = 32 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.396760174 ) { age = 33 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.3997211 ) { age = 34 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.40296194 ) { age = 35 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.405990115 ) { age = 36 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.408944413 ) { age = 37 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.411827759 ) { age = 38 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.414778159 ) { age = 39 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.417914713 ) { age = 40 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.420679738 ) { age = 41 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.423436382 ) { age = 42 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.426068662 ) { age = 43 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.428606794 ) { age = 44 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.431222701 ) { age = 45 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.433497097 ) { age = 46 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.435741085 ) { age = 47 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.437894628 ) { age = 48 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.440132183 ) { age = 49 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.442446929 ) { age = 50 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.44443537 ) { age = 51 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.446376053 ) { age = 52 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.448235062 ) { age = 53 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.449880432 ) { age = 54 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.451556406 ) { age = 55 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.453185598 ) { age = 56 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.454718106 ) { age = 57 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.456137947 ) { age = 58 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.457563636 ) { age = 59 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.459043514 ) { age = 60 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.460339187 ) { age = 61 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.46163369 ) { age = 62 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.462790576 ) { age = 63 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.463960132 ) { age = 64 ; gender = 1 ; race = 2 ; }
else if (randomP <= 0.467102924 ) { age = 18 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.470219791 ) { age = 19 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.473366871 ) { age = 20 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.476462296 ) { age = 21 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.479670388 ) { age = 22 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.482916686 ) { age = 23 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.486188518 ) { age = 24 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.48945119 ) { age = 25 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.492620492 ) { age = 26 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.495934818 ) { age = 27 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.499322437 ) { age = 28 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.503054101 ) { age = 29 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.506884786 ) { age = 30 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.510359147 ) { age = 31 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.51389569 ) { age = 32 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.517505914 ) { age = 33 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.521469929 ) { age = 34 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.525506457 ) { age = 35 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.529459166 ) { age = 36 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.533350864 ) { age = 37 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.537083112 ) { age = 38 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.540928612 ) { age = 39 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.544892822 ) { age = 40 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.548474587 ) { age = 41 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.551962398 ) { age = 42 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.555402842 ) { age = 43 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.558708202 ) { age = 44 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.562077888 ) { age = 45 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.565055382 ) { age = 46 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.568047691 ) { age = 47 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.570932596 ) { age = 48 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.573876369 ) { age = 49 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.576969454 ) { age = 50 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.579704071 ) { age = 51 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.582397559 ) { age = 52 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.584959666 ) { age = 53 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.587368366 ) { age = 54 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.58980884 ) { age = 55 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.592105458 ) { age = 56 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.59443268 ) { age = 57 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.596563416 ) { age = 58 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.598653802 ) { age = 59 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.60082021 ) { age = 60 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.602695008 ) { age = 61 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.60459807 ) { age = 62 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.606334861 ) { age = 63 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.608094458 ) { age = 64 ; gender = 0 ; race = 2 ; }
else if (randomP <= 0.611723005 ) { age = 18 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.615446287 ) { age = 19 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.61917834 ) { age = 20 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.622897138 ) { age = 21 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.626668567 ) { age = 22 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.630412315 ) { age = 23 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.634183938 ) { age = 24 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.637944646 ) { age = 25 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.641534403 ) { age = 26 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.645244624 ) { age = 27 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.648872392 ) { age = 28 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.652813211 ) { age = 29 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.656731418 ) { age = 30 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.660343397 ) { age = 31 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.664001768 ) { age = 32 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.667510046 ) { age = 33 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.671153408 ) { age = 34 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.674881953 ) { age = 35 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.678352805 ) { age = 36 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.681668496 ) { age = 37 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.684824543 ) { age = 38 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.687982734 ) { age = 39 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.691209929 ) { age = 40 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.694015889 ) { age = 41 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.696757913 ) { age = 42 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.699374015 ) { age = 43 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.701907078 ) { age = 44 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.704452617 ) { age = 45 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.706697384 ) { age = 46 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.708841765 ) { age = 47 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.7109495 ) { age = 48 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.713098364 ) { age = 49 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.715254831 ) { age = 50 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.71713879 ) { age = 51 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.71899663 ) { age = 52 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.720768313 ) { age = 53 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.722458321 ) { age = 54 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.723986931 ) { age = 55 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.725443613 ) { age = 56 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.726909261 ) { age = 57 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.728235733 ) { age = 58 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.729533355 ) { age = 59 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.730866454 ) { age = 60 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.732085716 ) { age = 61 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.733242797 ) { age = 62 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.734277464 ) { age = 63 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.735273341 ) { age = 64 ; gender = 1 ; race = 3 ; }
else if (randomP <= 0.738634645 ) { age = 18 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.7420593 ) { age = 19 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.745626445 ) { age = 20 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.74916942 ) { age = 21 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.752855666 ) { age = 22 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.756588304 ) { age = 23 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.76031295 ) { age = 24 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.764083598 ) { age = 25 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.767723451 ) { age = 26 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.771482599 ) { age = 27 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.775218941 ) { age = 28 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.77923812 ) { age = 29 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.783185566 ) { age = 30 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.78688955 ) { age = 31 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.790686904 ) { age = 32 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.794352487 ) { age = 33 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.798158612 ) { age = 34 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.802030232 ) { age = 35 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.805808288 ) { age = 36 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.809404868 ) { age = 37 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.812877279 ) { age = 38 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.816310901 ) { age = 39 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.819802025 ) { age = 40 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.822969963 ) { age = 41 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.826077668 ) { age = 42 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.829097851 ) { age = 43 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.832060921 ) { age = 44 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.835056349 ) { age = 45 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.837737556 ) { age = 46 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.840377439 ) { age = 47 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.842871712 ) { age = 48 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.845462669 ) { age = 49 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.848124383 ) { age = 50 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.850470707 ) { age = 51 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.85279364 ) { age = 52 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.854981685 ) { age = 53 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.857044392 ) { age = 54 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.858955251 ) { age = 55 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.860785606 ) { age = 56 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.86265943 ) { age = 57 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.864275366 ) { age = 58 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.865894227 ) { age = 59 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.867549928 ) { age = 60 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.869095107 ) { age = 61 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.8705629 ) { age = 62 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.871930305 ) { age = 63 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.873265548 ) { age = 64 ; gender = 0 ; race = 3 ; }
else if (randomP <= 0.874400992 ) { age = 18 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.875568599 ) { age = 19 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.876858814 ) { age = 20 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.878168717 ) { age = 21 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.879548988 ) { age = 22 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.881053622 ) { age = 23 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.882591198 ) { age = 24 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.884327794 ) { age = 25 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.886038659 ) { age = 26 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.887886168 ) { age = 27 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.889766229 ) { age = 28 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.891683326 ) { age = 29 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.893739601 ) { age = 30 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.895551438 ) { age = 31 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.897292322 ) { age = 32 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.898973754 ) { age = 33 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.900790074 ) { age = 34 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.902786116 ) { age = 35 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.904620565 ) { age = 36 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.906517975 ) { age = 37 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.908139369 ) { age = 38 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.909865049 ) { age = 39 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.911803393 ) { age = 40 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.913446229 ) { age = 41 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.915176782 ) { age = 42 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.916772447 ) { age = 43 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.918309828 ) { age = 44 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.919959876 ) { age = 45 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.921336444 ) { age = 46 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.9226904 ) { age = 47 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.923929544 ) { age = 48 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.925191885 ) { age = 49 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.92658853 ) { age = 50 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.927737229 ) { age = 51 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.928840705 ) { age = 52 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.929814555 ) { age = 53 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.930649423 ) { age = 54 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.931480978 ) { age = 55 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.932166532 ) { age = 56 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.932868851 ) { age = 57 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.933538811 ) { age = 58 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.934199416 ) { age = 59 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.934889648 ) { age = 60 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.935480274 ) { age = 61 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.936078307 ) { age = 62 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.936655873 ) { age = 63 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.93720342 ) { age = 64 ; gender = 1 ; race = 4 ; }
else if (randomP <= 0.938275123 ) { age = 18 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.939449747 ) { age = 19 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.940757311 ) { age = 20 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.942034271 ) { age = 21 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.943517268 ) { age = 22 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.945115271 ) { age = 23 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.946785982 ) { age = 24 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.948637194 ) { age = 25 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.950467939 ) { age = 26 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.952394393 ) { age = 27 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.954357883 ) { age = 28 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.956280633 ) { age = 29 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.958292854 ) { age = 30 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.960122624 ) { age = 31 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.961889433 ) { age = 32 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.963528956 ) { age = 33 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.965226371 ) { age = 34 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.967002342 ) { age = 35 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.968723344 ) { age = 36 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.970422709 ) { age = 37 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.971935529 ) { age = 38 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.973529439 ) { age = 39 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.975185531 ) { age = 40 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.976685486 ) { age = 41 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.978239826 ) { age = 42 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.979696313 ) { age = 43 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.981138765 ) { age = 44 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.982623517 ) { age = 45 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.983903206 ) { age = 46 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.985194981 ) { age = 47 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.986380131 ) { age = 48 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.987617911 ) { age = 49 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.989012606 ) { age = 50 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.990185866 ) { age = 51 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.991297529 ) { age = 52 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.992288728 ) { age = 53 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.993165894 ) { age = 54 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.994010899 ) { age = 55 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.994721794 ) { age = 56 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.995467386 ) { age = 57 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.996172823 ) { age = 58 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.996874946 ) { age = 59 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.997595978 ) { age = 60 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.998223639 ) { age = 61 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.998841165 ) { age = 62 ; gender = 0 ; race = 4 ; }
else if (randomP <= 0.999423019 ) { age = 63 ; gender = 0 ; race = 4 ; }
else if (randomP <= 1 ) { age = 64 ; gender = 0 ; race = 4 ; }
}
// Initial distribution of education, by age, gender, and race/ethnicity
public void educationDist() {
double randomP3= Random.uniform.nextDoubleFromTo(0,1);
if (age >= 18 && age <= 24 && gender == 1 && race == 1 && randomP3 >= 0 && randomP3 <= 0.13763727 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 1 && randomP3 > 0.13763727 && randomP3 <= 0.36707497 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 1 && randomP3 > 0.36707497 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.06589960 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 1 && randomP3 > 0.06589960 && randomP3 <= 0.22116472 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 1 && randomP3 > 0.22116472 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.09335278 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 1 && randomP3 > 0.09335278 && randomP3 <= 0.29787638 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 1 && randomP3 > 0.29787638 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.13873367 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 1 && randomP3 > 0.13873367 && randomP3 <= 0.35544335 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 1 && randomP3 > 0.35544335 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 1 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.30426984 ) { education=1; }
else if (age >= 65 && gender == 1 && race == 1 && randomP3 > 0.30426984 && randomP3 <= 0.58504560 ) { education=2; }
else if (age >= 65 && gender == 1 && race == 1 && randomP3 > 0.58504560 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.36801775 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 2 && randomP3 > 0.36801775 && randomP3 <= 0.68993993 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 2 && randomP3 > 0.68993993 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.22040986 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 2 && randomP3 > 0.22040986 && randomP3 <= 0.51991116 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 2 && randomP3 > 0.51991116 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.25089660 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 2 && randomP3 > 0.25089660 && randomP3 <= 0.55589883 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 2 && randomP3 > 0.55589883 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.31564102 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 2 && randomP3 > 0.31564102 && randomP3 <= 0.61274733 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 2 && randomP3 > 0.61274733 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 1 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.50029300 ) { education=1; }
else if (age >= 65 && gender == 1 && race == 2 && randomP3 > 0.50029300 && randomP3 <= 0.77288205 ) { education=2; }
else if (age >= 65 && gender == 1 && race == 2 && randomP3 > 0.77288205 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.46990512 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 3 && randomP3 > 0.46990512 && randomP3 <= 0.74582696 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 3 && randomP3 > 0.74582696 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.39196886 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 3 && randomP3 > 0.39196886 && randomP3 <= 0.66439661 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 3 && randomP3 > 0.66439661 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.41058252 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 3 && randomP3 > 0.41058252 && randomP3 <= 0.66942668 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 3 && randomP3 > 0.66942668 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.53954539 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 3 && randomP3 > 0.53954539 && randomP3 <= 0.76215008 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 3 && randomP3 > 0.76215008 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 1 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.71564951 ) { education=1; }
else if (age >= 65 && gender == 1 && race == 3 && randomP3 > 0.71564951 && randomP3 <= 0.87759694 ) { education=2; }
else if (age >= 65 && gender == 1 && race == 3 && randomP3 > 0.87759694 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.22715460 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 4 && randomP3 > 0.22715460 && randomP3 <= 0.47531159 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 1 && race == 4 && randomP3 > 0.47531159 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.17514430 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 4 && randomP3 > 0.17514430 && randomP3 <= 0.36191977 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 1 && race == 4 && randomP3 > 0.36191977 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.26186877 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 4 && randomP3 > 0.26186877 && randomP3 <= 0.49581444 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 1 && race == 4 && randomP3 > 0.49581444 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.33277756 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 4 && randomP3 > 0.33277756 && randomP3 <= 0.54677938 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 1 && race == 4 && randomP3 > 0.54677938 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 1 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.51070096 ) { education=1; }
else if (age >= 65 && gender == 1 && race == 4 && randomP3 > 0.51070096 && randomP3 <= 0.68821437 ) { education=2; }
else if (age >= 65 && gender == 1 && race == 4 && randomP3 > 0.68821437 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.09438806 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 1 && randomP3 > 0.09438806 && randomP3 <= 0.29170704 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 1 && randomP3 > 0.29170704 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.05357646 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 1 && randomP3 > 0.05357646 && randomP3 <= 0.19268480 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 1 && randomP3 > 0.19268480 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.07776794 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 1 && randomP3 > 0.07776794 && randomP3 <= 0.29168960 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 1 && randomP3 > 0.29168960 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.12665498 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 1 && randomP3 > 0.12665498 && randomP3 <= 0.39492998 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 1 && randomP3 > 0.39492998 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 0 && race == 1 && randomP3 >= 0.00000000 && randomP3 <= 0.31981060 ) { education=1; }
else if (age >= 65 && gender == 0 && race == 1 && randomP3 > 0.31981060 && randomP3 <= 0.69273959 ) { education=2; }
else if (age >= 65 && gender == 0 && race == 1 && randomP3 > 0.69273959 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.29560424 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 2 && randomP3 > 0.29560424 && randomP3 <= 0.57683716 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 2 && randomP3 > 0.57683716 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.19301626 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 2 && randomP3 > 0.19301626 && randomP3 <= 0.44931725 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 2 && randomP3 > 0.44931725 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.21953912 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 2 && randomP3 > 0.21953912 && randomP3 <= 0.48288066 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 2 && randomP3 > 0.48288066 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.27679082 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 2 && randomP3 > 0.27679082 && randomP3 <= 0.58082854 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 2 && randomP3 > 0.58082854 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 0 && race == 2 && randomP3 >= 0.00000000 && randomP3 <= 0.49269763 ) { education=1; }
else if (age >= 65 && gender == 0 && race == 2 && randomP3 > 0.49269763 && randomP3 <= 0.77529469 ) { education=2; }
else if (age >= 65 && gender == 0 && race == 2 && randomP3 > 0.77529469 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.38382807 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 3 && randomP3 > 0.38382807 && randomP3 <= 0.64175579 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 3 && randomP3 > 0.64175579 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.33717825 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 3 && randomP3 > 0.33717825 && randomP3 <= 0.57490747 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 3 && randomP3 > 0.57490747 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.37705387 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 3 && randomP3 > 0.37705387 && randomP3 <= 0.62248910 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 3 && randomP3 > 0.62248910 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.53069688 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 3 && randomP3 > 0.53069688 && randomP3 <= 0.75894870 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 3 && randomP3 > 0.75894870 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 0 && race == 3 && randomP3 >= 0.00000000 && randomP3 <= 0.73826242 ) { education=1; }
else if (age >= 65 && gender == 0 && race == 3 && randomP3 > 0.73826242 && randomP3 <= 0.89476345 ) { education=2; }
else if (age >= 65 && gender == 0 && race == 3 && randomP3 > 0.89476345 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.12791095 ) { education=1; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 4 && randomP3 > 0.12791095 && randomP3 <= 0.24547519 ) { education=2; }
else if (age >= 18 && age <= 24 && gender == 0 && race == 4 && randomP3 > 0.24547519 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.15916659 ) { education=1; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 4 && randomP3 > 0.15916659 && randomP3 <= 0.22779869 ) { education=2; }
else if (age >= 25 && age <= 34 && gender == 0 && race == 4 && randomP3 > 0.22779869 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.18821546 ) { education=1; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 4 && randomP3 > 0.18821546 && randomP3 <= 0.24787088 ) { education=2; }
else if (age >= 35 && age <= 44 && gender == 0 && race == 4 && randomP3 > 0.24787088 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.32404471 ) { education=1; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 4 && randomP3 > 0.32404471 && randomP3 <= 0.40450043 ) { education=2; }
else if (age >= 45 && age <= 64 && gender == 0 && race == 4 && randomP3 > 0.40450043 && randomP3 <= 1.00000000 ) { education=3; }
else if (age >= 65 && gender == 0 && race == 4 && randomP3 >= 0.00000000 && randomP3 <= 0.53577867 ) { education=1; }
else if (age >= 65 && gender == 0 && race == 4 && randomP3 > 0.53577867 && randomP3 <= 0.63875501 ) { education=2; }
else if (age >= 65 && gender == 0 && race == 4 && randomP3 > 0.63875501 && randomP3 <= 1.00000000 ) { education=3; }
}
// houseIncomeDist()
// Initial distribution of household income, by race/ethnicity
public void houseIncomeDist() {
double randomP4= Random.uniform.nextDoubleFromTo(0,1);
if (race == 1 && randomP4 <= 0.104371658 ) { houseinc16 = 1 ; }
else if (race == 1 && randomP4 <= 0.167480885 ) { houseinc16 = 2 ; }
else if (race == 1 && randomP4 <= 0.215532812 ) { houseinc16 = 3 ; }
else if (race == 1 && randomP4 <= 0.2639164 ) { houseinc16 = 4 ; }
else if (race == 1 && randomP4 <= 0.31055972 ) { houseinc16 = 5 ; }
else if (race == 1 && randomP4 <= 0.359308672 ) { houseinc16 = 6 ; }
else if (race == 1 && randomP4 <= 0.404865091 ) { houseinc16 = 7 ; }
else if (race == 1 && randomP4 <= 0.450613766 ) { houseinc16 = 8 ; }
else if (race == 1 && randomP4 <= 0.491205978 ) { houseinc16 = 9 ; }
else if (race == 1 && randomP4 <= 0.572613297 ) { houseinc16 = 10 ; }
else if (race == 1 && randomP4 <= 0.673047139 ) { houseinc16 = 11 ; }
else if (race == 1 && randomP4 <= 0.784568296 ) { houseinc16 = 12 ; }
else if (race == 1 && randomP4 <= 0.856267033 ) { houseinc16 = 13 ; }
else if (race == 1 && randomP4 <= 0.895777705 ) { houseinc16 = 14 ; }
else if (race == 1 && randomP4 <= 0.936559876 ) { houseinc16 = 15 ; }
else if (race == 1 && randomP4 <= 1 ) { houseinc16 = 16 ; }
else if (race == 2 && randomP4 <= 0.215898742 ) { houseinc16 = 1 ; }
else if (race == 2 && randomP4 <= 0.287427968 ) { houseinc16 = 2 ; }
else if (race == 2 && randomP4 <= 0.349305162 ) { houseinc16 = 3 ; }
else if (race == 2 && randomP4 <= 0.415087711 ) { houseinc16 = 4 ; }
else if (race == 2 && randomP4 <= 0.483683282 ) { houseinc16 = 5 ; }
else if (race == 2 && randomP4 <= 0.547709349 ) { houseinc16 = 6 ; }
else if (race == 2 && randomP4 <= 0.60430782 ) { houseinc16 = 7 ; }
else if (race == 2 && randomP4 <= 0.654508722 ) { houseinc16 = 8 ; }
else if (race == 2 && randomP4 <= 0.697561739 ) { houseinc16 = 9 ; }
else if (race == 2 && randomP4 <= 0.772495224 ) { houseinc16 = 10 ; }
else if (race == 2 && randomP4 <= 0.854091409 ) { houseinc16 = 11 ; }
else if (race == 2 && randomP4 <= 0.928945356 ) { houseinc16 = 12 ; }
else if (race == 2 && randomP4 <= 0.963271642 ) { houseinc16 = 13 ; }
else if (race == 2 && randomP4 <= 0.979379571 ) { houseinc16 = 14 ; }
else if (race == 2 && randomP4 <= 0.990509698 ) { houseinc16 = 15 ; }
else if (race == 2 && randomP4 <= 1 ) { houseinc16 = 16 ; }
else if (race == 3 && randomP4 <= 0.225214233 ) { houseinc16 = 1 ; }
else if (race == 3 && randomP4 <= 0.313753957 ) { houseinc16 = 2 ; }
else if (race == 3 && randomP4 <= 0.386621854 ) { houseinc16 = 3 ; }
else if (race == 3 && randomP4 <= 0.458507348 ) { houseinc16 = 4 ; }
else if (race == 3 && randomP4 <= 0.526049502 ) { houseinc16 = 5 ; }
else if (race == 3 && randomP4 <= 0.591947296 ) { houseinc16 = 6 ; }
else if (race == 3 && randomP4 <= 0.648848496 ) { houseinc16 = 7 ; }
else if (race == 3 && randomP4 <= 0.698751008 ) { houseinc16 = 8 ; }
else if (race == 3 && randomP4 <= 0.740260209 ) { houseinc16 = 9 ; }
else if (race == 3 && randomP4 <= 0.809914608 ) { houseinc16 = 10 ; }
else if (race == 3 && randomP4 <= 0.882859232 ) { houseinc16 = 11 ; }
else if (race == 3 && randomP4 <= 0.945137326 ) { houseinc16 = 12 ; }
else if (race == 3 && randomP4 <= 0.971042401 ) { houseinc16 = 13 ; }
else if (race == 3 && randomP4 <= 0.983038863 ) { houseinc16 = 14 ; }
else if (race == 3 && randomP4 <= 0.991365978 ) { houseinc16 = 15 ; }
else if (race == 3 && randomP4 <= 1 ) { houseinc16 = 16 ; }
else if (race == 4 && randomP4 <= 0.185263595 ) { houseinc16 = 1 ; }
else if (race == 4 && randomP4 <= 0.265120408 ) { houseinc16 = 2 ; }
else if (race == 4 && randomP4 <= 0.334770323 ) { houseinc16 = 3 ; }
else if (race == 4 && randomP4 <= 0.403243614 ) { houseinc16 = 4 ; }
else if (race == 4 && randomP4 <= 0.468545567 ) { houseinc16 = 5 ; }
else if (race == 4 && randomP4 <= 0.532456058 ) { houseinc16 = 6 ; }
else if (race == 4 && randomP4 <= 0.589335257 ) { houseinc16 = 7 ; }
else if (race == 4 && randomP4 <= 0.641000031 ) { houseinc16 = 8 ; }
else if (race == 4 && randomP4 <= 0.68375689 ) { houseinc16 = 9 ; }
else if (race == 4 && randomP4 <= 0.757279564 ) { houseinc16 = 10 ; }
else if (race == 4 && randomP4 <= 0.838719912 ) { houseinc16 = 11 ; }
else if (race == 4 && randomP4 <= 0.914072259 ) { houseinc16 = 12 ; }
else if (race == 4 && randomP4 <= 0.95187079 ) { houseinc16 = 13 ; }
else if (race == 4 && randomP4 <= 0.96942768 ) { houseinc16 = 14 ; }
else if (race == 4 && randomP4 <= 0.984857539 ) { houseinc16 = 15 ; }
else if (race == 4 && randomP4 <= 1 ) { houseinc16 = 16 ; }
// 4 broader income categories
// 1 <$20k, 2 $20k-$39k, 3 $40k-$74k, 4 $75k+
if (houseinc16 >= 1 && houseinc16 <= 3) { houseincome = 1; }
else if (houseinc16 >= 4 && houseinc16 <= 7) { houseincome = 2; }
else if (houseinc16 >= 8 && houseinc16 <= 11) { houseincome = 3; }
else if (houseinc16 >= 12 && houseinc16 <= 16) { houseincome = 4; }
baseinc16 = houseinc16;
} // end of houseIncomeDist()
// Probabilities of residing in each neighborhood, by agent gender, race, age, and household income
// NOTE: this function had to be split into two because so large
public void hoodProbDist() {
if (gender == 1 && age >= 18 && age <= 24 && race == 1 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0009 ; popDist[2] = 0.0014 ; popDist[3] = 0.0017 ; popDist[4] = 0.0030 ; popDist[5] = 0.0042 ; popDist[6] = 0.0115 ; popDist[7] = 0.0194 ; popDist[8] = 0.0307 ; popDist[9] = 0.0334 ; popDist[10] = 0.0449 ; popDist[11] = 0.0582 ; popDist[12] = 0.0637 ; popDist[13] = 0.1156 ; popDist[14] = 0.1325 ; popDist[15] = 0.1342 ; popDist[16] = 0.1360 ; popDist[17] = 0.1408 ; popDist[18] = 0.1551 ; popDist[19] = 0.1716 ; popDist[20] = 0.1772 ; popDist[21] = 0.1820 ; popDist[22] = 0.2079 ; popDist[23] = 0.2677 ; popDist[24] = 0.3484 ; popDist[25] = 0.3810 ; popDist[26] = 0.4110 ; popDist[27] = 0.4607 ; popDist[28] = 0.4611 ; popDist[29] = 0.4623 ; popDist[30] = 0.4795 ; popDist[31] = 0.4881 ; popDist[32] = 0.5134 ; popDist[33] = 0.5619 ; popDist[34] = 0.5783 ; popDist[35] = 0.5923 ; popDist[36] = 0.6111 ; popDist[37] = 0.6358 ; popDist[38] = 0.6574 ; popDist[39] = 0.6794 ; popDist[40] = 0.6817 ; popDist[41] = 0.6888 ; popDist[42] = 0.7026 ; popDist[43] = 0.7512 ; popDist[44] = 0.7656 ; popDist[45] = 0.7748 ; popDist[46] = 0.7833 ; popDist[47] = 0.8124 ; popDist[48] = 0.8287 ; popDist[49] = 0.8640 ; popDist[50] = 0.8785 ; popDist[51] = 0.8920 ; popDist[52] = 0.9035 ; popDist[53] = 0.9142 ; popDist[54] = 0.9158 ; popDist[55] = 0.9207 ; popDist[56] = 0.9364 ; popDist[57] = 0.9631 ; popDist[58] = 0.9840 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 1 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0006 ; popDist[2] = 0.0008 ; popDist[3] = 0.0009 ; popDist[4] = 0.0016 ; popDist[5] = 0.0021 ; popDist[6] = 0.0056 ; popDist[7] = 0.0116 ; popDist[8] = 0.0231 ; popDist[9] = 0.0254 ; popDist[10] = 0.0408 ; popDist[11] = 0.0554 ; popDist[12] = 0.0604 ; popDist[13] = 0.1003 ; popDist[14] = 0.1152 ; popDist[15] = 0.1162 ; popDist[16] = 0.1175 ; popDist[17] = 0.1206 ; popDist[18] = 0.1352 ; popDist[19] = 0.1505 ; popDist[20] = 0.1547 ; popDist[21] = 0.1595 ; popDist[22] = 0.1876 ; popDist[23] = 0.2384 ; popDist[24] = 0.3001 ; popDist[25] = 0.3217 ; popDist[26] = 0.3487 ; popDist[27] = 0.3956 ; popDist[28] = 0.3958 ; popDist[29] = 0.3971 ; popDist[30] = 0.4176 ; popDist[31] = 0.4297 ; popDist[32] = 0.4540 ; popDist[33] = 0.4918 ; popDist[34] = 0.5079 ; popDist[35] = 0.5208 ; popDist[36] = 0.5429 ; popDist[37] = 0.5683 ; popDist[38] = 0.5945 ; popDist[39] = 0.6101 ; popDist[40] = 0.6114 ; popDist[41] = 0.6155 ; popDist[42] = 0.6269 ; popDist[43] = 0.6773 ; popDist[44] = 0.6964 ; popDist[45] = 0.7077 ; popDist[46] = 0.7178 ; popDist[47] = 0.7549 ; popDist[48] = 0.7756 ; popDist[49] = 0.8217 ; popDist[50] = 0.8453 ; popDist[51] = 0.8622 ; popDist[52] = 0.8785 ; popDist[53] = 0.8975 ; popDist[54] = 0.8997 ; popDist[55] = 0.9088 ; popDist[56] = 0.9218 ; popDist[57] = 0.9483 ; popDist[58] = 0.9716 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 1 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0002 ; popDist[3] = 0.0003 ; popDist[4] = 0.0008 ; popDist[5] = 0.0012 ; popDist[6] = 0.0028 ; popDist[7] = 0.0065 ; popDist[8] = 0.0188 ; popDist[9] = 0.0202 ; popDist[10] = 0.0381 ; popDist[11] = 0.0506 ; popDist[12] = 0.0546 ; popDist[13] = 0.0799 ; popDist[14] = 0.0942 ; popDist[15] = 0.0949 ; popDist[16] = 0.0954 ; popDist[17] = 0.0974 ; popDist[18] = 0.1157 ; popDist[19] = 0.1272 ; popDist[20] = 0.1298 ; popDist[21] = 0.1327 ; popDist[22] = 0.1636 ; popDist[23] = 0.2128 ; popDist[24] = 0.2609 ; popDist[25] = 0.2770 ; popDist[26] = 0.2964 ; popDist[27] = 0.3418 ; popDist[28] = 0.3419 ; popDist[29] = 0.3428 ; popDist[30] = 0.3665 ; popDist[31] = 0.3777 ; popDist[32] = 0.4088 ; popDist[33] = 0.4365 ; popDist[34] = 0.4530 ; popDist[35] = 0.4681 ; popDist[36] = 0.5008 ; popDist[37] = 0.5305 ; popDist[38] = 0.5693 ; popDist[39] = 0.5781 ; popDist[40] = 0.5788 ; popDist[41] = 0.5809 ; popDist[42] = 0.5886 ; popDist[43] = 0.6287 ; popDist[44] = 0.6454 ; popDist[45] = 0.6555 ; popDist[46] = 0.6633 ; popDist[47] = 0.7013 ; popDist[48] = 0.7271 ; popDist[49] = 0.7722 ; popDist[50] = 0.7974 ; popDist[51] = 0.8143 ; popDist[52] = 0.8328 ; popDist[53] = 0.8607 ; popDist[54] = 0.8626 ; popDist[55] = 0.8751 ; popDist[56] = 0.8854 ; popDist[57] = 0.9153 ; popDist[58] = 0.9509 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 1 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0001 ; popDist[3] = 0.0001 ; popDist[4] = 0.0001 ; popDist[5] = 0.0003 ; popDist[6] = 0.0008 ; popDist[7] = 0.0022 ; popDist[8] = 0.0121 ; popDist[9] = 0.0126 ; popDist[10] = 0.0251 ; popDist[11] = 0.0328 ; popDist[12] = 0.0357 ; popDist[13] = 0.0471 ; popDist[14] = 0.0626 ; popDist[15] = 0.0628 ; popDist[16] = 0.0630 ; popDist[17] = 0.0638 ; popDist[18] = 0.0850 ; popDist[19] = 0.0921 ; popDist[20] = 0.0937 ; popDist[21] = 0.0949 ; popDist[22] = 0.1213 ; popDist[23] = 0.1540 ; popDist[24] = 0.1847 ; popDist[25] = 0.1937 ; popDist[26] = 0.2054 ; popDist[27] = 0.2455 ; popDist[28] = 0.2455 ; popDist[29] = 0.2458 ; popDist[30] = 0.2671 ; popDist[31] = 0.2998 ; popDist[32] = 0.3568 ; popDist[33] = 0.3762 ; popDist[34] = 0.3984 ; popDist[35] = 0.4308 ; popDist[36] = 0.4886 ; popDist[37] = 0.5451 ; popDist[38] = 0.6199 ; popDist[39] = 0.6263 ; popDist[40] = 0.6266 ; popDist[41] = 0.6278 ; popDist[42] = 0.6313 ; popDist[43] = 0.6556 ; popDist[44] = 0.6650 ; popDist[45] = 0.6709 ; popDist[46] = 0.6751 ; popDist[47] = 0.7004 ; popDist[48] = 0.7246 ; popDist[49] = 0.7627 ; popDist[50] = 0.7842 ; popDist[51] = 0.7947 ; popDist[52] = 0.8091 ; popDist[53] = 0.8418 ; popDist[54] = 0.8429 ; popDist[55] = 0.8560 ; popDist[56] = 0.8637 ; popDist[57] = 0.8915 ; popDist[58] = 0.9336 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 2 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0184 ; popDist[2] = 0.0275 ; popDist[3] = 0.0511 ; popDist[4] = 0.0865 ; popDist[5] = 0.1176 ; popDist[6] = 0.1377 ; popDist[7] = 0.1563 ; popDist[8] = 0.1598 ; popDist[9] = 0.1898 ; popDist[10] = 0.1949 ; popDist[11] = 0.2025 ; popDist[12] = 0.2412 ; popDist[13] = 0.2483 ; popDist[14] = 0.2646 ; popDist[15] = 0.3415 ; popDist[16] = 0.3604 ; popDist[17] = 0.4129 ; popDist[18] = 0.4160 ; popDist[19] = 0.4193 ; popDist[20] = 0.4601 ; popDist[21] = 0.5047 ; popDist[22] = 0.5053 ; popDist[23] = 0.5057 ; popDist[24] = 0.5111 ; popDist[25] = 0.5204 ; popDist[26] = 0.5589 ; popDist[27] = 0.5611 ; popDist[28] = 0.6110 ; popDist[29] = 0.6787 ; popDist[30] = 0.7049 ; popDist[31] = 0.7056 ; popDist[32] = 0.7064 ; popDist[33] = 0.7185 ; popDist[34] = 0.7203 ; popDist[35] = 0.7212 ; popDist[36] = 0.7223 ; popDist[37] = 0.7258 ; popDist[38] = 0.7264 ; popDist[39] = 0.7582 ; popDist[40] = 0.8126 ; popDist[41] = 0.8445 ; popDist[42] = 0.8561 ; popDist[43] = 0.8627 ; popDist[44] = 0.8641 ; popDist[45] = 0.8712 ; popDist[46] = 0.8789 ; popDist[47] = 0.8797 ; popDist[48] = 0.8803 ; popDist[49] = 0.8833 ; popDist[50] = 0.8892 ; popDist[51] = 0.8931 ; popDist[52] = 0.8989 ; popDist[53] = 0.8991 ; popDist[54] = 0.9535 ; popDist[55] = 0.9703 ; popDist[56] = 0.9882 ; popDist[57] = 0.9990 ; popDist[58] = 0.9996 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 2 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0106 ; popDist[2] = 0.0160 ; popDist[3] = 0.0294 ; popDist[4] = 0.0548 ; popDist[5] = 0.0761 ; popDist[6] = 0.0879 ; popDist[7] = 0.1050 ; popDist[8] = 0.1096 ; popDist[9] = 0.1383 ; popDist[10] = 0.1466 ; popDist[11] = 0.1570 ; popDist[12] = 0.2023 ; popDist[13] = 0.2090 ; popDist[14] = 0.2264 ; popDist[15] = 0.2823 ; popDist[16] = 0.2970 ; popDist[17] = 0.3416 ; popDist[18] = 0.3453 ; popDist[19] = 0.3492 ; popDist[20] = 0.3895 ; popDist[21] = 0.4419 ; popDist[22] = 0.4426 ; popDist[23] = 0.4431 ; popDist[24] = 0.4481 ; popDist[25] = 0.4558 ; popDist[26] = 0.4984 ; popDist[27] = 0.5010 ; popDist[28] = 0.5321 ; popDist[29] = 0.6158 ; popDist[30] = 0.6544 ; popDist[31] = 0.6555 ; popDist[32] = 0.6565 ; popDist[33] = 0.6679 ; popDist[34] = 0.6701 ; popDist[35] = 0.6711 ; popDist[36] = 0.6725 ; popDist[37] = 0.6767 ; popDist[38] = 0.6781 ; popDist[39] = 0.7056 ; popDist[40] = 0.7433 ; popDist[41] = 0.7653 ; popDist[42] = 0.7774 ; popDist[43] = 0.7860 ; popDist[44] = 0.7884 ; popDist[45] = 0.7990 ; popDist[46] = 0.8103 ; popDist[47] = 0.8112 ; popDist[48] = 0.8123 ; popDist[49] = 0.8172 ; popDist[50] = 0.8291 ; popDist[51] = 0.8349 ; popDist[52] = 0.8452 ; popDist[53] = 0.8458 ; popDist[54] = 0.9274 ; popDist[55] = 0.9670 ; popDist[56] = 0.9850 ; popDist[57] = 0.9985 ; popDist[58] = 0.9996 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 2 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0055 ; popDist[2] = 0.0094 ; popDist[3] = 0.0173 ; popDist[4] = 0.0353 ; popDist[5] = 0.0492 ; popDist[6] = 0.0565 ; popDist[7] = 0.0709 ; popDist[8] = 0.0776 ; popDist[9] = 0.1025 ; popDist[10] = 0.1155 ; popDist[11] = 0.1273 ; popDist[12] = 0.1755 ; popDist[13] = 0.1809 ; popDist[14] = 0.2034 ; popDist[15] = 0.2477 ; popDist[16] = 0.2571 ; popDist[17] = 0.2921 ; popDist[18] = 0.2985 ; popDist[19] = 0.3025 ; popDist[20] = 0.3356 ; popDist[21] = 0.3770 ; popDist[22] = 0.3780 ; popDist[23] = 0.3790 ; popDist[24] = 0.3842 ; popDist[25] = 0.3917 ; popDist[26] = 0.4323 ; popDist[27] = 0.4356 ; popDist[28] = 0.4566 ; popDist[29] = 0.5356 ; popDist[30] = 0.5945 ; popDist[31] = 0.5958 ; popDist[32] = 0.5977 ; popDist[33] = 0.6090 ; popDist[34] = 0.6123 ; popDist[35] = 0.6137 ; popDist[36] = 0.6164 ; popDist[37] = 0.6229 ; popDist[38] = 0.6249 ; popDist[39] = 0.6460 ; popDist[40] = 0.6723 ; popDist[41] = 0.6885 ; popDist[42] = 0.6987 ; popDist[43] = 0.7080 ; popDist[44] = 0.7109 ; popDist[45] = 0.7237 ; popDist[46] = 0.7349 ; popDist[47] = 0.7362 ; popDist[48] = 0.7382 ; popDist[49] = 0.7442 ; popDist[50] = 0.7610 ; popDist[51] = 0.7693 ; popDist[52] = 0.7848 ; popDist[53] = 0.7861 ; popDist[54] = 0.8870 ; popDist[55] = 0.9577 ; popDist[56] = 0.9767 ; popDist[57] = 0.9970 ; popDist[58] = 0.9987 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 2 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0030 ; popDist[2] = 0.0046 ; popDist[3] = 0.0089 ; popDist[4] = 0.0166 ; popDist[5] = 0.0240 ; popDist[6] = 0.0273 ; popDist[7] = 0.0353 ; popDist[8] = 0.0432 ; popDist[9] = 0.0587 ; popDist[10] = 0.0722 ; popDist[11] = 0.0830 ; popDist[12] = 0.1330 ; popDist[13] = 0.1366 ; popDist[14] = 0.1730 ; popDist[15] = 0.2058 ; popDist[16] = 0.2108 ; popDist[17] = 0.2348 ; popDist[18] = 0.2459 ; popDist[19] = 0.2493 ; popDist[20] = 0.2782 ; popDist[21] = 0.3060 ; popDist[22] = 0.3074 ; popDist[23] = 0.3081 ; popDist[24] = 0.3131 ; popDist[25] = 0.3195 ; popDist[26] = 0.3554 ; popDist[27] = 0.3596 ; popDist[28] = 0.3736 ; popDist[29] = 0.4374 ; popDist[30] = 0.5173 ; popDist[31] = 0.5233 ; popDist[32] = 0.5283 ; popDist[33] = 0.5403 ; popDist[34] = 0.5468 ; popDist[35] = 0.5515 ; popDist[36] = 0.5593 ; popDist[37] = 0.5772 ; popDist[38] = 0.5841 ; popDist[39] = 0.6071 ; popDist[40] = 0.6252 ; popDist[41] = 0.6385 ; popDist[42] = 0.6451 ; popDist[43] = 0.6534 ; popDist[44] = 0.6558 ; popDist[45] = 0.6667 ; popDist[46] = 0.6765 ; popDist[47] = 0.6778 ; popDist[48] = 0.6802 ; popDist[49] = 0.6879 ; popDist[50] = 0.7098 ; popDist[51] = 0.7172 ; popDist[52] = 0.7352 ; popDist[53] = 0.7374 ; popDist[54] = 0.8349 ; popDist[55] = 0.9445 ; popDist[56] = 0.9660 ; popDist[57] = 0.9941 ; popDist[58] = 0.9976 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 3 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0396 ; popDist[2] = 0.0623 ; popDist[3] = 0.0857 ; popDist[4] = 0.1316 ; popDist[5] = 0.1788 ; popDist[6] = 0.2174 ; popDist[7] = 0.2576 ; popDist[8] = 0.2655 ; popDist[9] = 0.3044 ; popDist[10] = 0.3103 ; popDist[11] = 0.3218 ; popDist[12] = 0.3313 ; popDist[13] = 0.3691 ; popDist[14] = 0.3753 ; popDist[15] = 0.3917 ; popDist[16] = 0.4350 ; popDist[17] = 0.4699 ; popDist[18] = 0.4741 ; popDist[19] = 0.5051 ; popDist[20] = 0.5102 ; popDist[21] = 0.5147 ; popDist[22] = 0.5188 ; popDist[23] = 0.5266 ; popDist[24] = 0.5457 ; popDist[25] = 0.5546 ; popDist[26] = 0.5660 ; popDist[27] = 0.5700 ; popDist[28] = 0.5803 ; popDist[29] = 0.5843 ; popDist[30] = 0.5881 ; popDist[31] = 0.5888 ; popDist[32] = 0.5906 ; popDist[33] = 0.6229 ; popDist[34] = 0.6270 ; popDist[35] = 0.6281 ; popDist[36] = 0.6295 ; popDist[37] = 0.6343 ; popDist[38] = 0.6360 ; popDist[39] = 0.6724 ; popDist[40] = 0.6831 ; popDist[41] = 0.7207 ; popDist[42] = 0.7843 ; popDist[43] = 0.8102 ; popDist[44] = 0.8262 ; popDist[45] = 0.8629 ; popDist[46] = 0.9076 ; popDist[47] = 0.9193 ; popDist[48] = 0.9224 ; popDist[49] = 0.9371 ; popDist[50] = 0.9433 ; popDist[51] = 0.9593 ; popDist[52] = 0.9661 ; popDist[53] = 0.9676 ; popDist[54] = 0.9777 ; popDist[55] = 0.9807 ; popDist[56] = 0.9881 ; popDist[57] = 0.9967 ; popDist[58] = 0.9990 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 3 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0227 ; popDist[2] = 0.0362 ; popDist[3] = 0.0495 ; popDist[4] = 0.0825 ; popDist[5] = 0.1147 ; popDist[6] = 0.1372 ; popDist[7] = 0.1746 ; popDist[8] = 0.1846 ; popDist[9] = 0.2224 ; popDist[10] = 0.2321 ; popDist[11] = 0.2475 ; popDist[12] = 0.2585 ; popDist[13] = 0.2940 ; popDist[14] = 0.3005 ; popDist[15] = 0.3123 ; popDist[16] = 0.3459 ; popDist[17] = 0.3754 ; popDist[18] = 0.3807 ; popDist[19] = 0.4162 ; popDist[20] = 0.4212 ; popDist[21] = 0.4263 ; popDist[22] = 0.4319 ; popDist[23] = 0.4399 ; popDist[24] = 0.4577 ; popDist[25] = 0.4648 ; popDist[26] = 0.4772 ; popDist[27] = 0.4820 ; popDist[28] = 0.4882 ; popDist[29] = 0.4931 ; popDist[30] = 0.4986 ; popDist[31] = 0.4998 ; popDist[32] = 0.5017 ; popDist[33] = 0.5322 ; popDist[34] = 0.5372 ; popDist[35] = 0.5384 ; popDist[36] = 0.5406 ; popDist[37] = 0.5463 ; popDist[38] = 0.5483 ; popDist[39] = 0.5799 ; popDist[40] = 0.5873 ; popDist[41] = 0.6136 ; popDist[42] = 0.6780 ; popDist[43] = 0.7112 ; popDist[44] = 0.7372 ; popDist[45] = 0.7923 ; popDist[46] = 0.8576 ; popDist[47] = 0.8759 ; popDist[48] = 0.8807 ; popDist[49] = 0.9042 ; popDist[50] = 0.9162 ; popDist[51] = 0.9404 ; popDist[52] = 0.9519 ; popDist[53] = 0.9552 ; popDist[54] = 0.9701 ; popDist[55] = 0.9768 ; popDist[56] = 0.9842 ; popDist[57] = 0.9949 ; popDist[58] = 0.9979 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 3 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0118 ; popDist[2] = 0.0212 ; popDist[3] = 0.0290 ; popDist[4] = 0.0524 ; popDist[5] = 0.0732 ; popDist[6] = 0.0872 ; popDist[7] = 0.1187 ; popDist[8] = 0.1329 ; popDist[9] = 0.1658 ; popDist[10] = 0.1807 ; popDist[11] = 0.1985 ; popDist[12] = 0.2102 ; popDist[13] = 0.2402 ; popDist[14] = 0.2486 ; popDist[15] = 0.2581 ; popDist[16] = 0.2797 ; popDist[17] = 0.3030 ; popDist[18] = 0.3118 ; popDist[19] = 0.3475 ; popDist[20] = 0.3515 ; popDist[21] = 0.3556 ; popDist[22] = 0.3639 ; popDist[23] = 0.3740 ; popDist[24] = 0.3924 ; popDist[25] = 0.3995 ; popDist[26] = 0.4116 ; popDist[27] = 0.4176 ; popDist[28] = 0.4220 ; popDist[29] = 0.4266 ; popDist[30] = 0.4351 ; popDist[31] = 0.4366 ; popDist[32] = 0.4401 ; popDist[33] = 0.4698 ; popDist[34] = 0.4766 ; popDist[35] = 0.4785 ; popDist[36] = 0.4826 ; popDist[37] = 0.4916 ; popDist[38] = 0.4960 ; popDist[39] = 0.5199 ; popDist[40] = 0.5250 ; popDist[41] = 0.5441 ; popDist[42] = 0.6002 ; popDist[43] = 0.6352 ; popDist[44] = 0.6655 ; popDist[45] = 0.7313 ; popDist[46] = 0.7969 ; popDist[47] = 0.8220 ; popDist[48] = 0.8301 ; popDist[49] = 0.8602 ; popDist[50] = 0.8775 ; popDist[51] = 0.9100 ; popDist[52] = 0.9275 ; popDist[53] = 0.9341 ; popDist[54] = 0.9530 ; popDist[55] = 0.9651 ; popDist[56] = 0.9730 ; popDist[57] = 0.9890 ; popDist[58] = 0.9954 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 3 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0068 ; popDist[2] = 0.0113 ; popDist[3] = 0.0156 ; popDist[4] = 0.0259 ; popDist[5] = 0.0375 ; popDist[6] = 0.0440 ; popDist[7] = 0.0623 ; popDist[8] = 0.0802 ; popDist[9] = 0.1010 ; popDist[10] = 0.1173 ; popDist[11] = 0.1340 ; popDist[12] = 0.1469 ; popDist[13] = 0.1683 ; popDist[14] = 0.1821 ; popDist[15] = 0.1892 ; popDist[16] = 0.2014 ; popDist[17] = 0.2184 ; popDist[18] = 0.2343 ; popDist[19] = 0.2683 ; popDist[20] = 0.2719 ; popDist[21] = 0.2749 ; popDist[22] = 0.2861 ; popDist[23] = 0.2969 ; popDist[24] = 0.3149 ; popDist[25] = 0.3210 ; popDist[26] = 0.3319 ; popDist[27] = 0.3404 ; popDist[28] = 0.3433 ; popDist[29] = 0.3470 ; popDist[30] = 0.3591 ; popDist[31] = 0.3662 ; popDist[32] = 0.3759 ; popDist[33] = 0.4084 ; popDist[34] = 0.4228 ; popDist[35] = 0.4289 ; popDist[36] = 0.4407 ; popDist[37] = 0.4686 ; popDist[38] = 0.4809 ; popDist[39] = 0.5087 ; popDist[40] = 0.5126 ; popDist[41] = 0.5287 ; popDist[42] = 0.5681 ; popDist[43] = 0.6008 ; popDist[44] = 0.6272 ; popDist[45] = 0.6855 ; popDist[46] = 0.7426 ; popDist[47] = 0.7686 ; popDist[48] = 0.7803 ; popDist[49] = 0.8200 ; popDist[50] = 0.8432 ; popDist[51] = 0.8743 ; popDist[52] = 0.8953 ; popDist[53] = 0.9070 ; popDist[54] = 0.9257 ; popDist[55] = 0.9453 ; popDist[56] = 0.9547 ; popDist[57] = 0.9781 ; popDist[58] = 0.9901 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 4 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0351 ; popDist[2] = 0.0548 ; popDist[3] = 0.0758 ; popDist[4] = 0.1221 ; popDist[5] = 0.1702 ; popDist[6] = 0.2058 ; popDist[7] = 0.2452 ; popDist[8] = 0.2524 ; popDist[9] = 0.2856 ; popDist[10] = 0.2901 ; popDist[11] = 0.3001 ; popDist[12] = 0.3099 ; popDist[13] = 0.3495 ; popDist[14] = 0.3561 ; popDist[15] = 0.3738 ; popDist[16] = 0.4188 ; popDist[17] = 0.4566 ; popDist[18] = 0.4610 ; popDist[19] = 0.4909 ; popDist[20] = 0.4969 ; popDist[21] = 0.5026 ; popDist[22] = 0.5084 ; popDist[23] = 0.5169 ; popDist[24] = 0.5389 ; popDist[25] = 0.5482 ; popDist[26] = 0.5613 ; popDist[27] = 0.5655 ; popDist[28] = 0.5758 ; popDist[29] = 0.5820 ; popDist[30] = 0.5861 ; popDist[31] = 0.5871 ; popDist[32] = 0.5889 ; popDist[33] = 0.6194 ; popDist[34] = 0.6231 ; popDist[35] = 0.6242 ; popDist[36] = 0.6258 ; popDist[37] = 0.6303 ; popDist[38] = 0.6311 ; popDist[39] = 0.6703 ; popDist[40] = 0.6819 ; popDist[41] = 0.7147 ; popDist[42] = 0.7837 ; popDist[43] = 0.8129 ; popDist[44] = 0.8270 ; popDist[45] = 0.8554 ; popDist[46] = 0.8923 ; popDist[47] = 0.9031 ; popDist[48] = 0.9057 ; popDist[49] = 0.9188 ; popDist[50] = 0.9262 ; popDist[51] = 0.9475 ; popDist[52] = 0.9603 ; popDist[53] = 0.9617 ; popDist[54] = 0.9773 ; popDist[55] = 0.9815 ; popDist[56] = 0.9896 ; popDist[57] = 0.9979 ; popDist[58] = 0.9995 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 4 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0199 ; popDist[2] = 0.0315 ; popDist[3] = 0.0433 ; popDist[4] = 0.0761 ; popDist[5] = 0.1089 ; popDist[6] = 0.1296 ; popDist[7] = 0.1658 ; popDist[8] = 0.1747 ; popDist[9] = 0.2065 ; popDist[10] = 0.2139 ; popDist[11] = 0.2273 ; popDist[12] = 0.2390 ; popDist[13] = 0.2757 ; popDist[14] = 0.2828 ; popDist[15] = 0.2953 ; popDist[16] = 0.3297 ; popDist[17] = 0.3615 ; popDist[18] = 0.3667 ; popDist[19] = 0.4004 ; popDist[20] = 0.4065 ; popDist[21] = 0.4133 ; popDist[22] = 0.4206 ; popDist[23] = 0.4288 ; popDist[24] = 0.4496 ; popDist[25] = 0.4571 ; popDist[26] = 0.4714 ; popDist[27] = 0.4765 ; popDist[28] = 0.4827 ; popDist[29] = 0.4901 ; popDist[30] = 0.4957 ; popDist[31] = 0.4974 ; popDist[32] = 0.4995 ; popDist[33] = 0.5283 ; popDist[34] = 0.5328 ; popDist[35] = 0.5341 ; popDist[36] = 0.5360 ; popDist[37] = 0.5413 ; popDist[38] = 0.5432 ; popDist[39] = 0.5770 ; popDist[40] = 0.5850 ; popDist[41] = 0.6076 ; popDist[42] = 0.6771 ; popDist[43] = 0.7142 ; popDist[44] = 0.7368 ; popDist[45] = 0.7790 ; popDist[46] = 0.8328 ; popDist[47] = 0.8500 ; popDist[48] = 0.8540 ; popDist[49] = 0.8741 ; popDist[50] = 0.8889 ; popDist[51] = 0.9207 ; popDist[52] = 0.9425 ; popDist[53] = 0.9459 ; popDist[54] = 0.9685 ; popDist[55] = 0.9778 ; popDist[56] = 0.9860 ; popDist[57] = 0.9965 ; popDist[58] = 0.9988 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 4 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0103 ; popDist[2] = 0.0183 ; popDist[3] = 0.0253 ; popDist[4] = 0.0485 ; popDist[5] = 0.0697 ; popDist[6] = 0.0822 ; popDist[7] = 0.1125 ; popDist[8] = 0.1251 ; popDist[9] = 0.1528 ; popDist[10] = 0.1640 ; popDist[11] = 0.1792 ; popDist[12] = 0.1916 ; popDist[13] = 0.2223 ; popDist[14] = 0.2313 ; popDist[15] = 0.2412 ; popDist[16] = 0.2631 ; popDist[17] = 0.2885 ; popDist[18] = 0.2975 ; popDist[19] = 0.3313 ; popDist[20] = 0.3360 ; popDist[21] = 0.3413 ; popDist[22] = 0.3521 ; popDist[23] = 0.3626 ; popDist[24] = 0.3839 ; popDist[25] = 0.3912 ; popDist[26] = 0.4052 ; popDist[27] = 0.4116 ; popDist[28] = 0.4158 ; popDist[29] = 0.4228 ; popDist[30] = 0.4314 ; popDist[31] = 0.4333 ; popDist[32] = 0.4374 ; popDist[33] = 0.4651 ; popDist[34] = 0.4712 ; popDist[35] = 0.4730 ; popDist[36] = 0.4771 ; popDist[37] = 0.4855 ; popDist[38] = 0.4890 ; popDist[39] = 0.5144 ; popDist[40] = 0.5198 ; popDist[41] = 0.5363 ; popDist[42] = 0.5964 ; popDist[43] = 0.6349 ; popDist[44] = 0.6612 ; popDist[45] = 0.7118 ; popDist[46] = 0.7654 ; popDist[47] = 0.7884 ; popDist[48] = 0.7947 ; popDist[49] = 0.8213 ; popDist[50] = 0.8419 ; popDist[51] = 0.8844 ; popDist[52] = 0.9173 ; popDist[53] = 0.9237 ; popDist[54] = 0.9516 ; popDist[55] = 0.9692 ; popDist[56] = 0.9776 ; popDist[57] = 0.9928 ; popDist[58] = 0.9973 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 18 && age <= 24 && race == 4 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0059 ; popDist[2] = 0.0097 ; popDist[3] = 0.0135 ; popDist[4] = 0.0237 ; popDist[5] = 0.0349 ; popDist[6] = 0.0407 ; popDist[7] = 0.0584 ; popDist[8] = 0.0740 ; popDist[9] = 0.0913 ; popDist[10] = 0.1035 ; popDist[11] = 0.1179 ; popDist[12] = 0.1313 ; popDist[13] = 0.1531 ; popDist[14] = 0.1677 ; popDist[15] = 0.1754 ; popDist[16] = 0.1877 ; popDist[17] = 0.2054 ; popDist[18] = 0.2214 ; popDist[19] = 0.2538 ; popDist[20] = 0.2583 ; popDist[21] = 0.2620 ; popDist[22] = 0.2768 ; popDist[23] = 0.2883 ; popDist[24] = 0.3092 ; popDist[25] = 0.3157 ; popDist[26] = 0.3282 ; popDist[27] = 0.3370 ; popDist[28] = 0.3398 ; popDist[29] = 0.3458 ; popDist[30] = 0.3586 ; popDist[31] = 0.3674 ; popDist[32] = 0.3785 ; popDist[33] = 0.4086 ; popDist[34] = 0.4218 ; popDist[35] = 0.4281 ; popDist[36] = 0.4385 ; popDist[37] = 0.4622 ; popDist[38] = 0.4728 ; popDist[39] = 0.5021 ; popDist[40] = 0.5058 ; popDist[41] = 0.5194 ; popDist[42] = 0.5610 ; popDist[43] = 0.5976 ; popDist[44] = 0.6204 ; popDist[45] = 0.6651 ; popDist[46] = 0.7117 ; popDist[47] = 0.7358 ; popDist[48] = 0.7452 ; popDist[49] = 0.7799 ; popDist[50] = 0.8075 ; popDist[51] = 0.8477 ; popDist[52] = 0.8876 ; popDist[53] = 0.8996 ; popDist[54] = 0.9278 ; popDist[55] = 0.9552 ; popDist[56] = 0.9652 ; popDist[57] = 0.9871 ; popDist[58] = 0.9951 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 1 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0006 ; popDist[2] = 0.0009 ; popDist[3] = 0.0011 ; popDist[4] = 0.0020 ; popDist[5] = 0.0029 ; popDist[6] = 0.0068 ; popDist[7] = 0.0138 ; popDist[8] = 0.0242 ; popDist[9] = 0.0264 ; popDist[10] = 0.0372 ; popDist[11] = 0.0509 ; popDist[12] = 0.0553 ; popDist[13] = 0.0962 ; popDist[14] = 0.1158 ; popDist[15] = 0.1171 ; popDist[16] = 0.1184 ; popDist[17] = 0.1217 ; popDist[18] = 0.1458 ; popDist[19] = 0.1601 ; popDist[20] = 0.1649 ; popDist[21] = 0.1684 ; popDist[22] = 0.2000 ; popDist[23] = 0.2565 ; popDist[24] = 0.3122 ; popDist[25] = 0.3365 ; popDist[26] = 0.3593 ; popDist[27] = 0.3992 ; popDist[28] = 0.3996 ; popDist[29] = 0.4005 ; popDist[30] = 0.4144 ; popDist[31] = 0.4217 ; popDist[32] = 0.4546 ; popDist[33] = 0.5005 ; popDist[34] = 0.5326 ; popDist[35] = 0.5486 ; popDist[36] = 0.5799 ; popDist[37] = 0.6250 ; popDist[38] = 0.6709 ; popDist[39] = 0.6841 ; popDist[40] = 0.6862 ; popDist[41] = 0.6915 ; popDist[42] = 0.7026 ; popDist[43] = 0.7532 ; popDist[44] = 0.7704 ; popDist[45] = 0.7786 ; popDist[46] = 0.7861 ; popDist[47] = 0.8164 ; popDist[48] = 0.8380 ; popDist[49] = 0.8753 ; popDist[50] = 0.8891 ; popDist[51] = 0.9022 ; popDist[52] = 0.9121 ; popDist[53] = 0.9233 ; popDist[54] = 0.9245 ; popDist[55] = 0.9285 ; popDist[56] = 0.9408 ; popDist[57] = 0.9640 ; popDist[58] = 0.9842 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 1 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0003 ; popDist[2] = 0.0004 ; popDist[3] = 0.0005 ; popDist[4] = 0.0010 ; popDist[5] = 0.0015 ; popDist[6] = 0.0033 ; popDist[7] = 0.0085 ; popDist[8] = 0.0189 ; popDist[9] = 0.0206 ; popDist[10] = 0.0347 ; popDist[11] = 0.0493 ; popDist[12] = 0.0535 ; popDist[13] = 0.0841 ; popDist[14] = 0.1007 ; popDist[15] = 0.1014 ; popDist[16] = 0.1022 ; popDist[17] = 0.1043 ; popDist[18] = 0.1285 ; popDist[19] = 0.1416 ; popDist[20] = 0.1455 ; popDist[21] = 0.1488 ; popDist[22] = 0.1823 ; popDist[23] = 0.2289 ; popDist[24] = 0.2701 ; popDist[25] = 0.2857 ; popDist[26] = 0.3057 ; popDist[27] = 0.3419 ; popDist[28] = 0.3420 ; popDist[29] = 0.3429 ; popDist[30] = 0.3589 ; popDist[31] = 0.3689 ; popDist[32] = 0.3993 ; popDist[33] = 0.4337 ; popDist[34] = 0.4641 ; popDist[35] = 0.4783 ; popDist[36] = 0.5141 ; popDist[37] = 0.5592 ; popDist[38] = 0.6134 ; popDist[39] = 0.6224 ; popDist[40] = 0.6235 ; popDist[41] = 0.6265 ; popDist[42] = 0.6354 ; popDist[43] = 0.6860 ; popDist[44] = 0.7082 ; popDist[45] = 0.7179 ; popDist[46] = 0.7264 ; popDist[47] = 0.7642 ; popDist[48] = 0.7910 ; popDist[49] = 0.8387 ; popDist[50] = 0.8605 ; popDist[51] = 0.8760 ; popDist[52] = 0.8899 ; popDist[53] = 0.9092 ; popDist[54] = 0.9107 ; popDist[55] = 0.9186 ; popDist[56] = 0.9284 ; popDist[57] = 0.9509 ; popDist[58] = 0.9731 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 1 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0002 ; popDist[3] = 0.0003 ; popDist[4] = 0.0005 ; popDist[5] = 0.0007 ; popDist[6] = 0.0015 ; popDist[7] = 0.0047 ; popDist[8] = 0.0153 ; popDist[9] = 0.0163 ; popDist[10] = 0.0319 ; popDist[11] = 0.0438 ; popDist[12] = 0.0470 ; popDist[13] = 0.0655 ; popDist[14] = 0.0808 ; popDist[15] = 0.0811 ; popDist[16] = 0.0815 ; popDist[17] = 0.0828 ; popDist[18] = 0.1114 ; popDist[19] = 0.1209 ; popDist[20] = 0.1231 ; popDist[21] = 0.1250 ; popDist[22] = 0.1599 ; popDist[23] = 0.2028 ; popDist[24] = 0.2336 ; popDist[25] = 0.2447 ; popDist[26] = 0.2584 ; popDist[27] = 0.2919 ; popDist[28] = 0.2920 ; popDist[29] = 0.2926 ; popDist[30] = 0.3102 ; popDist[31] = 0.3189 ; popDist[32] = 0.3562 ; popDist[33] = 0.3803 ; popDist[34] = 0.4106 ; popDist[35] = 0.4265 ; popDist[36] = 0.4772 ; popDist[37] = 0.5273 ; popDist[38] = 0.6034 ; popDist[39] = 0.6083 ; popDist[40] = 0.6089 ; popDist[41] = 0.6104 ; popDist[42] = 0.6160 ; popDist[43] = 0.6544 ; popDist[44] = 0.6729 ; popDist[45] = 0.6814 ; popDist[46] = 0.6876 ; popDist[47] = 0.7243 ; popDist[48] = 0.7561 ; popDist[49] = 0.8006 ; popDist[50] = 0.8228 ; popDist[51] = 0.8380 ; popDist[52] = 0.8529 ; popDist[53] = 0.8801 ; popDist[54] = 0.8814 ; popDist[55] = 0.8915 ; popDist[56] = 0.8989 ; popDist[57] = 0.9231 ; popDist[58] = 0.9552 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 1 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0001 ; popDist[3] = 0.0001 ; popDist[4] = 0.0002 ; popDist[5] = 0.0003 ; popDist[6] = 0.0005 ; popDist[7] = 0.0015 ; popDist[8] = 0.0091 ; popDist[9] = 0.0095 ; popDist[10] = 0.0194 ; popDist[11] = 0.0260 ; popDist[12] = 0.0280 ; popDist[13] = 0.0356 ; popDist[14] = 0.0506 ; popDist[15] = 0.0508 ; popDist[16] = 0.0510 ; popDist[17] = 0.0515 ; popDist[18] = 0.0815 ; popDist[19] = 0.0867 ; popDist[20] = 0.0878 ; popDist[21] = 0.0886 ; popDist[22] = 0.1157 ; popDist[23] = 0.1414 ; popDist[24] = 0.1592 ; popDist[25] = 0.1648 ; popDist[26] = 0.1722 ; popDist[27] = 0.1992 ; popDist[28] = 0.1992 ; popDist[29] = 0.1994 ; popDist[30] = 0.2137 ; popDist[31] = 0.2369 ; popDist[32] = 0.2987 ; popDist[33] = 0.3140 ; popDist[34] = 0.3509 ; popDist[35] = 0.3817 ; popDist[36] = 0.4625 ; popDist[37] = 0.5496 ; popDist[38] = 0.6829 ; popDist[39] = 0.6861 ; popDist[40] = 0.6864 ; popDist[41] = 0.6872 ; popDist[42] = 0.6894 ; popDist[43] = 0.7105 ; popDist[44] = 0.7199 ; popDist[45] = 0.7241 ; popDist[46] = 0.7273 ; popDist[47] = 0.7496 ; popDist[48] = 0.7765 ; popDist[49] = 0.8105 ; popDist[50] = 0.8277 ; popDist[51] = 0.8361 ; popDist[52] = 0.8467 ; popDist[53] = 0.8754 ; popDist[54] = 0.8761 ; popDist[55] = 0.8855 ; popDist[56] = 0.8905 ; popDist[57] = 0.9109 ; popDist[58] = 0.9453 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 2 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0147 ; popDist[2] = 0.0220 ; popDist[3] = 0.0429 ; popDist[4] = 0.0774 ; popDist[5] = 0.1062 ; popDist[6] = 0.1199 ; popDist[7] = 0.1404 ; popDist[8] = 0.1446 ; popDist[9] = 0.1747 ; popDist[10] = 0.1807 ; popDist[11] = 0.1904 ; popDist[12] = 0.2320 ; popDist[13] = 0.2387 ; popDist[14] = 0.2628 ; popDist[15] = 0.3309 ; popDist[16] = 0.3482 ; popDist[17] = 0.3948 ; popDist[18] = 0.4013 ; popDist[19] = 0.4050 ; popDist[20] = 0.4510 ; popDist[21] = 0.4919 ; popDist[22] = 0.4927 ; popDist[23] = 0.4933 ; popDist[24] = 0.4981 ; popDist[25] = 0.5071 ; popDist[26] = 0.5441 ; popDist[27] = 0.5463 ; popDist[28] = 0.5887 ; popDist[29] = 0.6545 ; popDist[30] = 0.6814 ; popDist[31] = 0.6821 ; popDist[32] = 0.6835 ; popDist[33] = 0.6980 ; popDist[34] = 0.7028 ; popDist[35] = 0.7040 ; popDist[36] = 0.7063 ; popDist[37] = 0.7139 ; popDist[38] = 0.7160 ; popDist[39] = 0.7403 ; popDist[40] = 0.8047 ; popDist[41] = 0.8351 ; popDist[42] = 0.8471 ; popDist[43] = 0.8560 ; popDist[44] = 0.8582 ; popDist[45] = 0.8662 ; popDist[46] = 0.8746 ; popDist[47] = 0.8754 ; popDist[48] = 0.8766 ; popDist[49] = 0.8807 ; popDist[50] = 0.8879 ; popDist[51] = 0.8927 ; popDist[52] = 0.8992 ; popDist[53] = 0.8995 ; popDist[54] = 0.9511 ; popDist[55] = 0.9693 ; popDist[56] = 0.9869 ; popDist[57] = 0.9989 ; popDist[58] = 0.9997 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 2 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0082 ; popDist[2] = 0.0125 ; popDist[3] = 0.0240 ; popDist[4] = 0.0483 ; popDist[5] = 0.0676 ; popDist[6] = 0.0755 ; popDist[7] = 0.0942 ; popDist[8] = 0.0994 ; popDist[9] = 0.1278 ; popDist[10] = 0.1377 ; popDist[11] = 0.1506 ; popDist[12] = 0.1978 ; popDist[13] = 0.2041 ; popDist[14] = 0.2293 ; popDist[15] = 0.2774 ; popDist[16] = 0.2906 ; popDist[17] = 0.3290 ; popDist[18] = 0.3369 ; popDist[19] = 0.3411 ; popDist[20] = 0.3854 ; popDist[21] = 0.4325 ; popDist[22] = 0.4337 ; popDist[23] = 0.4344 ; popDist[24] = 0.4388 ; popDist[25] = 0.4457 ; popDist[26] = 0.4857 ; popDist[27] = 0.4881 ; popDist[28] = 0.5138 ; popDist[29] = 0.5931 ; popDist[30] = 0.6318 ; popDist[31] = 0.6329 ; popDist[32] = 0.6345 ; popDist[33] = 0.6480 ; popDist[34] = 0.6536 ; popDist[35] = 0.6550 ; popDist[36] = 0.6579 ; popDist[37] = 0.6674 ; popDist[38] = 0.6704 ; popDist[39] = 0.6908 ; popDist[40] = 0.7342 ; popDist[41] = 0.7551 ; popDist[42] = 0.7671 ; popDist[43] = 0.7780 ; popDist[44] = 0.7816 ; popDist[45] = 0.7933 ; popDist[46] = 0.8056 ; popDist[47] = 0.8069 ; popDist[48] = 0.8088 ; popDist[49] = 0.8151 ; popDist[50] = 0.8293 ; popDist[51] = 0.8365 ; popDist[52] = 0.8475 ; popDist[53] = 0.8484 ; popDist[54] = 0.9243 ; popDist[55] = 0.9667 ; popDist[56] = 0.9839 ; popDist[57] = 0.9984 ; popDist[58] = 0.9994 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 2 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0041 ; popDist[2] = 0.0070 ; popDist[3] = 0.0137 ; popDist[4] = 0.0304 ; popDist[5] = 0.0426 ; popDist[6] = 0.0474 ; popDist[7] = 0.0625 ; popDist[8] = 0.0698 ; popDist[9] = 0.0939 ; popDist[10] = 0.1087 ; popDist[11] = 0.1232 ; popDist[12] = 0.1723 ; popDist[13] = 0.1773 ; popDist[14] = 0.2086 ; popDist[15] = 0.2458 ; popDist[16] = 0.2540 ; popDist[17] = 0.2837 ; popDist[18] = 0.2964 ; popDist[19] = 0.3005 ; popDist[20] = 0.3356 ; popDist[21] = 0.3715 ; popDist[22] = 0.3731 ; popDist[23] = 0.3740 ; popDist[24] = 0.3783 ; popDist[25] = 0.3852 ; popDist[26] = 0.4223 ; popDist[27] = 0.4253 ; popDist[28] = 0.4423 ; popDist[29] = 0.5152 ; popDist[30] = 0.5724 ; popDist[31] = 0.5738 ; popDist[32] = 0.5765 ; popDist[33] = 0.5892 ; popDist[34] = 0.5967 ; popDist[35] = 0.5987 ; popDist[36] = 0.6044 ; popDist[37] = 0.6182 ; popDist[38] = 0.6241 ; popDist[39] = 0.6392 ; popDist[40] = 0.6686 ; popDist[41] = 0.6832 ; popDist[42] = 0.6934 ; popDist[43] = 0.7045 ; popDist[44] = 0.7085 ; popDist[45] = 0.7220 ; popDist[46] = 0.7340 ; popDist[47] = 0.7358 ; popDist[48] = 0.7386 ; popDist[49] = 0.7466 ; popDist[50] = 0.7659 ; popDist[51] = 0.7754 ; popDist[52] = 0.7917 ; popDist[53] = 0.7933 ; popDist[54] = 0.8838 ; popDist[55] = 0.9578 ; popDist[56] = 0.9754 ; popDist[57] = 0.9965 ; popDist[58] = 0.9986 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 2 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0022 ; popDist[2] = 0.0035 ; popDist[3] = 0.0069 ; popDist[4] = 0.0136 ; popDist[5] = 0.0197 ; popDist[6] = 0.0218 ; popDist[7] = 0.0298 ; popDist[8] = 0.0380 ; popDist[9] = 0.0520 ; popDist[10] = 0.0664 ; popDist[11] = 0.0789 ; popDist[12] = 0.1266 ; popDist[13] = 0.1300 ; popDist[14] = 0.1778 ; popDist[15] = 0.2040 ; popDist[16] = 0.2081 ; popDist[17] = 0.2270 ; popDist[18] = 0.2481 ; popDist[19] = 0.2518 ; popDist[20] = 0.2807 ; popDist[21] = 0.3035 ; popDist[22] = 0.3056 ; popDist[23] = 0.3065 ; popDist[24] = 0.3104 ; popDist[25] = 0.3158 ; popDist[26] = 0.3469 ; popDist[27] = 0.3510 ; popDist[28] = 0.3617 ; popDist[29] = 0.4171 ; popDist[30] = 0.4898 ; popDist[31] = 0.4954 ; popDist[32] = 0.5026 ; popDist[33] = 0.5150 ; popDist[34] = 0.5296 ; popDist[35] = 0.5356 ; popDist[36] = 0.5499 ; popDist[37] = 0.5875 ; popDist[38] = 0.6042 ; popDist[39] = 0.6200 ; popDist[40] = 0.6392 ; popDist[41] = 0.6506 ; popDist[42] = 0.6567 ; popDist[43] = 0.6661 ; popDist[44] = 0.6694 ; popDist[45] = 0.6805 ; popDist[46] = 0.6902 ; popDist[47] = 0.6918 ; popDist[48] = 0.6956 ; popDist[49] = 0.7047 ; popDist[50] = 0.7281 ; popDist[51] = 0.7363 ; popDist[52] = 0.7541 ; popDist[53] = 0.7570 ; popDist[54] = 0.8392 ; popDist[55] = 0.9468 ; popDist[56] = 0.9657 ; popDist[57] = 0.9936 ; popDist[58] = 0.9973 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 3 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0304 ; popDist[2] = 0.0480 ; popDist[3] = 0.0681 ; popDist[4] = 0.1108 ; popDist[5] = 0.1528 ; popDist[6] = 0.1781 ; popDist[7] = 0.2208 ; popDist[8] = 0.2299 ; popDist[9] = 0.2676 ; popDist[10] = 0.2744 ; popDist[11] = 0.2887 ; popDist[12] = 0.2985 ; popDist[13] = 0.3347 ; popDist[14] = 0.3434 ; popDist[15] = 0.3572 ; popDist[16] = 0.3954 ; popDist[17] = 0.4252 ; popDist[18] = 0.4339 ; popDist[19] = 0.4670 ; popDist[20] = 0.4725 ; popDist[21] = 0.4764 ; popDist[22] = 0.4827 ; popDist[23] = 0.4915 ; popDist[24] = 0.5075 ; popDist[25] = 0.5155 ; popDist[26] = 0.5261 ; popDist[27] = 0.5301 ; popDist[28] = 0.5385 ; popDist[29] = 0.5422 ; popDist[30] = 0.5459 ; popDist[31] = 0.5466 ; popDist[32] = 0.5492 ; popDist[33] = 0.5862 ; popDist[34] = 0.5962 ; popDist[35] = 0.5977 ; popDist[36] = 0.6006 ; popDist[37] = 0.6113 ; popDist[38] = 0.6151 ; popDist[39] = 0.6417 ; popDist[40] = 0.6538 ; popDist[41] = 0.6887 ; popDist[42] = 0.7505 ; popDist[43] = 0.7834 ; popDist[44] = 0.8067 ; popDist[45] = 0.8464 ; popDist[46] = 0.8938 ; popDist[47] = 0.9087 ; popDist[48] = 0.9137 ; popDist[49] = 0.9328 ; popDist[50] = 0.9398 ; popDist[51] = 0.9585 ; popDist[52] = 0.9655 ; popDist[53] = 0.9674 ; popDist[54] = 0.9767 ; popDist[55] = 0.9799 ; popDist[56] = 0.9869 ; popDist[57] = 0.9962 ; popDist[58] = 0.9988 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 3 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0165 ; popDist[2] = 0.0265 ; popDist[3] = 0.0373 ; popDist[4] = 0.0667 ; popDist[5] = 0.0940 ; popDist[6] = 0.1081 ; popDist[7] = 0.1459 ; popDist[8] = 0.1566 ; popDist[9] = 0.1914 ; popDist[10] = 0.2020 ; popDist[11] = 0.2204 ; popDist[12] = 0.2311 ; popDist[13] = 0.2636 ; popDist[14] = 0.2723 ; popDist[15] = 0.2820 ; popDist[16] = 0.3101 ; popDist[17] = 0.3340 ; popDist[18] = 0.3446 ; popDist[19] = 0.3807 ; popDist[20] = 0.3859 ; popDist[21] = 0.3902 ; popDist[22] = 0.3982 ; popDist[23] = 0.4071 ; popDist[24] = 0.4212 ; popDist[25] = 0.4274 ; popDist[26] = 0.4383 ; popDist[27] = 0.4427 ; popDist[28] = 0.4477 ; popDist[29] = 0.4519 ; popDist[30] = 0.4570 ; popDist[31] = 0.4583 ; popDist[32] = 0.4613 ; popDist[33] = 0.4947 ; popDist[34] = 0.5059 ; popDist[35] = 0.5075 ; popDist[36] = 0.5117 ; popDist[37] = 0.5243 ; popDist[38] = 0.5295 ; popDist[39] = 0.5516 ; popDist[40] = 0.5595 ; popDist[41] = 0.5827 ; popDist[42] = 0.6427 ; popDist[43] = 0.6824 ; popDist[44] = 0.7183 ; popDist[45] = 0.7754 ; popDist[46] = 0.8413 ; popDist[47] = 0.8638 ; popDist[48] = 0.8713 ; popDist[49] = 0.9002 ; popDist[50] = 0.9137 ; popDist[51] = 0.9406 ; popDist[52] = 0.9523 ; popDist[53] = 0.9564 ; popDist[54] = 0.9697 ; popDist[55] = 0.9766 ; popDist[56] = 0.9833 ; popDist[57] = 0.9942 ; popDist[58] = 0.9976 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 3 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0082 ; popDist[2] = 0.0149 ; popDist[3] = 0.0209 ; popDist[4] = 0.0407 ; popDist[5] = 0.0576 ; popDist[6] = 0.0660 ; popDist[7] = 0.0966 ; popDist[8] = 0.1112 ; popDist[9] = 0.1399 ; popDist[10] = 0.1555 ; popDist[11] = 0.1757 ; popDist[12] = 0.1866 ; popDist[13] = 0.2128 ; popDist[14] = 0.2236 ; popDist[15] = 0.2309 ; popDist[16] = 0.2482 ; popDist[17] = 0.2662 ; popDist[18] = 0.2830 ; popDist[19] = 0.3176 ; popDist[20] = 0.3217 ; popDist[21] = 0.3250 ; popDist[22] = 0.3362 ; popDist[23] = 0.3470 ; popDist[24] = 0.3610 ; popDist[25] = 0.3668 ; popDist[26] = 0.3769 ; popDist[27] = 0.3823 ; popDist[28] = 0.3854 ; popDist[29] = 0.3893 ; popDist[30] = 0.3968 ; popDist[31] = 0.3982 ; popDist[32] = 0.4031 ; popDist[33] = 0.4343 ; popDist[34] = 0.4493 ; popDist[35] = 0.4516 ; popDist[36] = 0.4594 ; popDist[37] = 0.4782 ; popDist[38] = 0.4882 ; popDist[39] = 0.5043 ; popDist[40] = 0.5095 ; popDist[41] = 0.5256 ; popDist[42] = 0.5758 ; popDist[43] = 0.6158 ; popDist[44] = 0.6559 ; popDist[45] = 0.7209 ; popDist[46] = 0.7842 ; popDist[47] = 0.8133 ; popDist[48] = 0.8252 ; popDist[49] = 0.8610 ; popDist[50] = 0.8793 ; popDist[51] = 0.9139 ; popDist[52] = 0.9309 ; popDist[53] = 0.9385 ; popDist[54] = 0.9540 ; popDist[55] = 0.9656 ; popDist[56] = 0.9724 ; popDist[57] = 0.9882 ; popDist[58] = 0.9950 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 3 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0045 ; popDist[2] = 0.0074 ; popDist[3] = 0.0105 ; popDist[4] = 0.0185 ; popDist[5] = 0.0271 ; popDist[6] = 0.0307 ; popDist[7] = 0.0471 ; popDist[8] = 0.0639 ; popDist[9] = 0.0811 ; popDist[10] = 0.0969 ; popDist[11] = 0.1147 ; popDist[12] = 0.1257 ; popDist[13] = 0.1430 ; popDist[14] = 0.1597 ; popDist[15] = 0.1649 ; popDist[16] = 0.1739 ; popDist[17] = 0.1859 ; popDist[18] = 0.2139 ; popDist[19] = 0.2445 ; popDist[20] = 0.2480 ; popDist[21] = 0.2501 ; popDist[22] = 0.2638 ; popDist[23] = 0.2742 ; popDist[24] = 0.2871 ; popDist[25] = 0.2920 ; popDist[26] = 0.3006 ; popDist[27] = 0.3073 ; popDist[28] = 0.3094 ; popDist[29] = 0.3126 ; popDist[30] = 0.3227 ; popDist[31] = 0.3288 ; popDist[32] = 0.3415 ; popDist[33] = 0.3729 ; popDist[34] = 0.4020 ; popDist[35] = 0.4090 ; popDist[36] = 0.4291 ; popDist[37] = 0.4811 ; popDist[38] = 0.5090 ; popDist[39] = 0.5260 ; popDist[40] = 0.5295 ; popDist[41] = 0.5420 ; popDist[42] = 0.5741 ; popDist[43] = 0.6089 ; popDist[44] = 0.6412 ; popDist[45] = 0.6943 ; popDist[46] = 0.7456 ; popDist[47] = 0.7736 ; popDist[48] = 0.7899 ; popDist[49] = 0.8339 ; popDist[50] = 0.8564 ; popDist[51] = 0.8870 ; popDist[52] = 0.9059 ; popDist[53] = 0.9186 ; popDist[54] = 0.9329 ; popDist[55] = 0.9502 ; popDist[56] = 0.9576 ; popDist[57] = 0.9784 ; popDist[58] = 0.9901 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 4 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0268 ; popDist[2] = 0.0422 ; popDist[3] = 0.0602 ; popDist[4] = 0.1032 ; popDist[5] = 0.1462 ; popDist[6] = 0.1694 ; popDist[7] = 0.2112 ; popDist[8] = 0.2191 ; popDist[9] = 0.2512 ; popDist[10] = 0.2564 ; popDist[11] = 0.2689 ; popDist[12] = 0.2791 ; popDist[13] = 0.3168 ; popDist[14] = 0.3260 ; popDist[15] = 0.3411 ; popDist[16] = 0.3805 ; popDist[17] = 0.4128 ; popDist[18] = 0.4218 ; popDist[19] = 0.4537 ; popDist[20] = 0.4604 ; popDist[21] = 0.4655 ; popDist[22] = 0.4741 ; popDist[23] = 0.4837 ; popDist[24] = 0.5023 ; popDist[25] = 0.5107 ; popDist[26] = 0.5229 ; popDist[27] = 0.5271 ; popDist[28] = 0.5355 ; popDist[29] = 0.5411 ; popDist[30] = 0.5450 ; popDist[31] = 0.5460 ; popDist[32] = 0.5492 ; popDist[33] = 0.5841 ; popDist[34] = 0.5932 ; popDist[35] = 0.5946 ; popDist[36] = 0.5974 ; popDist[37] = 0.6070 ; popDist[38] = 0.6102 ; popDist[39] = 0.6392 ; popDist[40] = 0.6524 ; popDist[41] = 0.6829 ; popDist[42] = 0.7501 ; popDist[43] = 0.7873 ; popDist[44] = 0.8080 ; popDist[45] = 0.8390 ; popDist[46] = 0.8782 ; popDist[47] = 0.8925 ; popDist[48] = 0.8965 ; popDist[49] = 0.9131 ; popDist[50] = 0.9218 ; popDist[51] = 0.9466 ; popDist[52] = 0.9600 ; popDist[53] = 0.9619 ; popDist[54] = 0.9761 ; popDist[55] = 0.9806 ; popDist[56] = 0.9883 ; popDist[57] = 0.9975 ; popDist[58] = 0.9993 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 4 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0146 ; popDist[2] = 0.0233 ; popDist[3] = 0.0329 ; popDist[4] = 0.0622 ; popDist[5] = 0.0902 ; popDist[6] = 0.1032 ; popDist[7] = 0.1403 ; popDist[8] = 0.1498 ; popDist[9] = 0.1791 ; popDist[10] = 0.1874 ; popDist[11] = 0.2036 ; popDist[12] = 0.2150 ; popDist[13] = 0.2486 ; popDist[14] = 0.2580 ; popDist[15] = 0.2684 ; popDist[16] = 0.2974 ; popDist[17] = 0.3233 ; popDist[18] = 0.3341 ; popDist[19] = 0.3686 ; popDist[20] = 0.3748 ; popDist[21] = 0.3804 ; popDist[22] = 0.3911 ; popDist[23] = 0.4004 ; popDist[24] = 0.4170 ; popDist[25] = 0.4234 ; popDist[26] = 0.4365 ; popDist[27] = 0.4412 ; popDist[28] = 0.4461 ; popDist[29] = 0.4529 ; popDist[30] = 0.4584 ; popDist[31] = 0.4599 ; popDist[32] = 0.4633 ; popDist[33] = 0.4949 ; popDist[34] = 0.5052 ; popDist[35] = 0.5067 ; popDist[36] = 0.5106 ; popDist[37] = 0.5222 ; popDist[38] = 0.5264 ; popDist[39] = 0.5502 ; popDist[40] = 0.5588 ; popDist[41] = 0.5788 ; popDist[42] = 0.6438 ; popDist[43] = 0.6882 ; popDist[44] = 0.7199 ; popDist[45] = 0.7639 ; popDist[46] = 0.8188 ; popDist[47] = 0.8398 ; popDist[48] = 0.8458 ; popDist[49] = 0.8712 ; popDist[50] = 0.8875 ; popDist[51] = 0.9226 ; popDist[52] = 0.9450 ; popDist[53] = 0.9491 ; popDist[54] = 0.9688 ; popDist[55] = 0.9786 ; popDist[56] = 0.9860 ; popDist[57] = 0.9964 ; popDist[58] = 0.9989 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 4 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0071 ; popDist[2] = 0.0129 ; popDist[3] = 0.0184 ; popDist[4] = 0.0380 ; popDist[5] = 0.0552 ; popDist[6] = 0.0628 ; popDist[7] = 0.0923 ; popDist[8] = 0.1051 ; popDist[9] = 0.1294 ; popDist[10] = 0.1413 ; popDist[11] = 0.1589 ; popDist[12] = 0.1703 ; popDist[13] = 0.1975 ; popDist[14] = 0.2088 ; popDist[15] = 0.2166 ; popDist[16] = 0.2344 ; popDist[17] = 0.2538 ; popDist[18] = 0.2706 ; popDist[19] = 0.3037 ; popDist[20] = 0.3084 ; popDist[21] = 0.3128 ; popDist[22] = 0.3277 ; popDist[23] = 0.3389 ; popDist[24] = 0.3555 ; popDist[25] = 0.3617 ; popDist[26] = 0.3734 ; popDist[27] = 0.3793 ; popDist[28] = 0.3824 ; popDist[29] = 0.3885 ; popDist[30] = 0.3966 ; popDist[31] = 0.3984 ; popDist[32] = 0.4039 ; popDist[33] = 0.4334 ; popDist[34] = 0.4471 ; popDist[35] = 0.4495 ; popDist[36] = 0.4566 ; popDist[37] = 0.4731 ; popDist[38] = 0.4813 ; popDist[39] = 0.4985 ; popDist[40] = 0.5043 ; popDist[41] = 0.5181 ; popDist[42] = 0.5723 ; popDist[43] = 0.6171 ; popDist[44] = 0.6524 ; popDist[45] = 0.7027 ; popDist[46] = 0.7550 ; popDist[47] = 0.7824 ; popDist[48] = 0.7919 ; popDist[49] = 0.8232 ; popDist[50] = 0.8453 ; popDist[51] = 0.8906 ; popDist[52] = 0.9227 ; popDist[53] = 0.9304 ; popDist[54] = 0.9536 ; popDist[55] = 0.9703 ; popDist[56] = 0.9776 ; popDist[57] = 0.9927 ; popDist[58] = 0.9973 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 25 && age <= 34 && race == 4 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0038 ; popDist[2] = 0.0064 ; popDist[3] = 0.0093 ; popDist[4] = 0.0175 ; popDist[5] = 0.0261 ; popDist[6] = 0.0295 ; popDist[7] = 0.0457 ; popDist[8] = 0.0608 ; popDist[9] = 0.0755 ; popDist[10] = 0.0875 ; popDist[11] = 0.1031 ; popDist[12] = 0.1147 ; popDist[13] = 0.1328 ; popDist[14] = 0.1506 ; popDist[15] = 0.1562 ; popDist[16] = 0.1654 ; popDist[17] = 0.1785 ; popDist[18] = 0.2064 ; popDist[19] = 0.2358 ; popDist[20] = 0.2399 ; popDist[21] = 0.2426 ; popDist[22] = 0.2612 ; popDist[23] = 0.2723 ; popDist[24] = 0.2872 ; popDist[25] = 0.2921 ; popDist[26] = 0.3022 ; popDist[27] = 0.3095 ; popDist[28] = 0.3116 ; popDist[29] = 0.3161 ; popDist[30] = 0.3263 ; popDist[31] = 0.3339 ; popDist[32] = 0.3491 ; popDist[33] = 0.3788 ; popDist[34] = 0.4052 ; popDist[35] = 0.4125 ; popDist[36] = 0.4309 ; popDist[37] = 0.4770 ; popDist[38] = 0.4997 ; popDist[39] = 0.5180 ; popDist[40] = 0.5217 ; popDist[41] = 0.5325 ; popDist[42] = 0.5672 ; popDist[43] = 0.6061 ; popDist[44] = 0.6345 ; popDist[45] = 0.6759 ; popDist[46] = 0.7183 ; popDist[47] = 0.7446 ; popDist[48] = 0.7575 ; popDist[49] = 0.7960 ; popDist[50] = 0.8234 ; popDist[51] = 0.8634 ; popDist[52] = 0.8994 ; popDist[53] = 0.9121 ; popDist[54] = 0.9336 ; popDist[55] = 0.9586 ; popDist[56] = 0.9667 ; popDist[57] = 0.9868 ; popDist[58] = 0.9949 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 1 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0008 ; popDist[2] = 0.0010 ; popDist[3] = 0.0013 ; popDist[4] = 0.0023 ; popDist[5] = 0.0034 ; popDist[6] = 0.0077 ; popDist[7] = 0.0144 ; popDist[8] = 0.0256 ; popDist[9] = 0.0280 ; popDist[10] = 0.0414 ; popDist[11] = 0.0552 ; popDist[12] = 0.0604 ; popDist[13] = 0.0959 ; popDist[14] = 0.1118 ; popDist[15] = 0.1132 ; popDist[16] = 0.1144 ; popDist[17] = 0.1180 ; popDist[18] = 0.1370 ; popDist[19] = 0.1502 ; popDist[20] = 0.1550 ; popDist[21] = 0.1590 ; popDist[22] = 0.1908 ; popDist[23] = 0.2552 ; popDist[24] = 0.3120 ; popDist[25] = 0.3419 ; popDist[26] = 0.3689 ; popDist[27] = 0.4184 ; popDist[28] = 0.4188 ; popDist[29] = 0.4198 ; popDist[30] = 0.4376 ; popDist[31] = 0.4440 ; popDist[32] = 0.4683 ; popDist[33] = 0.5080 ; popDist[34] = 0.5351 ; popDist[35] = 0.5457 ; popDist[36] = 0.5680 ; popDist[37] = 0.6075 ; popDist[38] = 0.6403 ; popDist[39] = 0.6516 ; popDist[40] = 0.6539 ; popDist[41] = 0.6595 ; popDist[42] = 0.6705 ; popDist[43] = 0.7162 ; popDist[44] = 0.7316 ; popDist[45] = 0.7395 ; popDist[46] = 0.7470 ; popDist[47] = 0.7793 ; popDist[48] = 0.8021 ; popDist[49] = 0.8463 ; popDist[50] = 0.8619 ; popDist[51] = 0.8762 ; popDist[52] = 0.8878 ; popDist[53] = 0.9030 ; popDist[54] = 0.9046 ; popDist[55] = 0.9098 ; popDist[56] = 0.9253 ; popDist[57] = 0.9540 ; popDist[58] = 0.9796 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 1 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0003 ; popDist[2] = 0.0004 ; popDist[3] = 0.0005 ; popDist[4] = 0.0011 ; popDist[5] = 0.0016 ; popDist[6] = 0.0035 ; popDist[7] = 0.0085 ; popDist[8] = 0.0196 ; popDist[9] = 0.0214 ; popDist[10] = 0.0392 ; popDist[11] = 0.0538 ; popDist[12] = 0.0584 ; popDist[13] = 0.0847 ; popDist[14] = 0.0981 ; popDist[15] = 0.0989 ; popDist[16] = 0.0996 ; popDist[17] = 0.1021 ; popDist[18] = 0.1208 ; popDist[19] = 0.1327 ; popDist[20] = 0.1365 ; popDist[21] = 0.1402 ; popDist[22] = 0.1737 ; popDist[23] = 0.2263 ; popDist[24] = 0.2678 ; popDist[25] = 0.2869 ; popDist[26] = 0.3103 ; popDist[27] = 0.3548 ; popDist[28] = 0.3549 ; popDist[29] = 0.3559 ; popDist[30] = 0.3766 ; popDist[31] = 0.3854 ; popDist[32] = 0.4078 ; popDist[33] = 0.4375 ; popDist[34] = 0.4630 ; popDist[35] = 0.4723 ; popDist[36] = 0.4976 ; popDist[37] = 0.5364 ; popDist[38] = 0.5748 ; popDist[39] = 0.5824 ; popDist[40] = 0.5837 ; popDist[41] = 0.5867 ; popDist[42] = 0.5956 ; popDist[43] = 0.6411 ; popDist[44] = 0.6608 ; popDist[45] = 0.6702 ; popDist[46] = 0.6787 ; popDist[47] = 0.7187 ; popDist[48] = 0.7468 ; popDist[49] = 0.8023 ; popDist[50] = 0.8270 ; popDist[51] = 0.8439 ; popDist[52] = 0.8599 ; popDist[53] = 0.8857 ; popDist[54] = 0.8875 ; popDist[55] = 0.8976 ; popDist[56] = 0.9098 ; popDist[57] = 0.9375 ; popDist[58] = 0.9652 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 1 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0002 ; popDist[3] = 0.0003 ; popDist[4] = 0.0005 ; popDist[5] = 0.0008 ; popDist[6] = 0.0016 ; popDist[7] = 0.0046 ; popDist[8] = 0.0160 ; popDist[9] = 0.0172 ; popDist[10] = 0.0367 ; popDist[11] = 0.0486 ; popDist[12] = 0.0522 ; popDist[13] = 0.0681 ; popDist[14] = 0.0803 ; popDist[15] = 0.0809 ; popDist[16] = 0.0812 ; popDist[17] = 0.0826 ; popDist[18] = 0.1050 ; popDist[19] = 0.1135 ; popDist[20] = 0.1157 ; popDist[21] = 0.1178 ; popDist[22] = 0.1529 ; popDist[23] = 0.2013 ; popDist[24] = 0.2323 ; popDist[25] = 0.2459 ; popDist[26] = 0.2620 ; popDist[27] = 0.3035 ; popDist[28] = 0.3035 ; popDist[29] = 0.3042 ; popDist[30] = 0.3269 ; popDist[31] = 0.3345 ; popDist[32] = 0.3619 ; popDist[33] = 0.3827 ; popDist[34] = 0.4081 ; popDist[35] = 0.4185 ; popDist[36] = 0.4541 ; popDist[37] = 0.4975 ; popDist[38] = 0.5517 ; popDist[39] = 0.5559 ; popDist[40] = 0.5566 ; popDist[41] = 0.5582 ; popDist[42] = 0.5638 ; popDist[43] = 0.5983 ; popDist[44] = 0.6147 ; popDist[45] = 0.6227 ; popDist[46] = 0.6288 ; popDist[47] = 0.6679 ; popDist[48] = 0.7011 ; popDist[49] = 0.7530 ; popDist[50] = 0.7781 ; popDist[51] = 0.7946 ; popDist[52] = 0.8120 ; popDist[53] = 0.8484 ; popDist[54] = 0.8500 ; popDist[55] = 0.8628 ; popDist[56] = 0.8720 ; popDist[57] = 0.9018 ; popDist[58] = 0.9419 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 1 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0001 ; popDist[3] = 0.0001 ; popDist[4] = 0.0002 ; popDist[5] = 0.0003 ; popDist[6] = 0.0005 ; popDist[7] = 0.0016 ; popDist[8] = 0.0102 ; popDist[9] = 0.0106 ; popDist[10] = 0.0237 ; popDist[11] = 0.0307 ; popDist[12] = 0.0330 ; popDist[13] = 0.0399 ; popDist[14] = 0.0526 ; popDist[15] = 0.0528 ; popDist[16] = 0.0529 ; popDist[17] = 0.0535 ; popDist[18] = 0.0782 ; popDist[19] = 0.0832 ; popDist[20] = 0.0845 ; popDist[21] = 0.0854 ; popDist[22] = 0.1140 ; popDist[23] = 0.1446 ; popDist[24] = 0.1634 ; popDist[25] = 0.1707 ; popDist[26] = 0.1798 ; popDist[27] = 0.2149 ; popDist[28] = 0.2149 ; popDist[29] = 0.2152 ; popDist[30] = 0.2347 ; popDist[31] = 0.2560 ; popDist[32] = 0.3039 ; popDist[33] = 0.3178 ; popDist[34] = 0.3503 ; popDist[35] = 0.3716 ; popDist[36] = 0.4315 ; popDist[37] = 0.5109 ; popDist[38] = 0.6107 ; popDist[39] = 0.6136 ; popDist[40] = 0.6139 ; popDist[41] = 0.6147 ; popDist[42] = 0.6171 ; popDist[43] = 0.6370 ; popDist[44] = 0.6457 ; popDist[45] = 0.6500 ; popDist[46] = 0.6533 ; popDist[47] = 0.6783 ; popDist[48] = 0.7081 ; popDist[49] = 0.7500 ; popDist[50] = 0.7703 ; popDist[51] = 0.7800 ; popDist[52] = 0.7928 ; popDist[53] = 0.8334 ; popDist[54] = 0.8344 ; popDist[55] = 0.8470 ; popDist[56] = 0.8537 ; popDist[57] = 0.8801 ; popDist[58] = 0.9254 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 2 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0154 ; popDist[2] = 0.0228 ; popDist[3] = 0.0438 ; popDist[4] = 0.0787 ; popDist[5] = 0.1077 ; popDist[6] = 0.1214 ; popDist[7] = 0.1391 ; popDist[8] = 0.1433 ; popDist[9] = 0.1738 ; popDist[10] = 0.1807 ; popDist[11] = 0.1897 ; popDist[12] = 0.2323 ; popDist[13] = 0.2376 ; popDist[14] = 0.2552 ; popDist[15] = 0.3295 ; popDist[16] = 0.3447 ; popDist[17] = 0.3924 ; popDist[18] = 0.3970 ; popDist[19] = 0.4001 ; popDist[20] = 0.4424 ; popDist[21] = 0.4839 ; popDist[22] = 0.4847 ; popDist[23] = 0.4855 ; popDist[24] = 0.4899 ; popDist[25] = 0.4999 ; popDist[26] = 0.5396 ; popDist[27] = 0.5421 ; popDist[28] = 0.5866 ; popDist[29] = 0.6539 ; popDist[30] = 0.6854 ; popDist[31] = 0.6859 ; popDist[32] = 0.6869 ; popDist[33] = 0.6981 ; popDist[34] = 0.7019 ; popDist[35] = 0.7026 ; popDist[36] = 0.7040 ; popDist[37] = 0.7098 ; popDist[38] = 0.7111 ; popDist[39] = 0.7298 ; popDist[40] = 0.7954 ; popDist[41] = 0.8239 ; popDist[42] = 0.8349 ; popDist[43] = 0.8422 ; popDist[44] = 0.8440 ; popDist[45] = 0.8511 ; popDist[46] = 0.8587 ; popDist[47] = 0.8595 ; popDist[48] = 0.8607 ; popDist[49] = 0.8647 ; popDist[50] = 0.8722 ; popDist[51] = 0.8769 ; popDist[52] = 0.8838 ; popDist[53] = 0.8844 ; popDist[54] = 0.9437 ; popDist[55] = 0.9650 ; popDist[56] = 0.9852 ; popDist[57] = 0.9987 ; popDist[58] = 0.9997 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 2 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0086 ; popDist[2] = 0.0129 ; popDist[3] = 0.0245 ; popDist[4] = 0.0488 ; popDist[5] = 0.0681 ; popDist[6] = 0.0759 ; popDist[7] = 0.0919 ; popDist[8] = 0.0971 ; popDist[9] = 0.1259 ; popDist[10] = 0.1371 ; popDist[11] = 0.1488 ; popDist[12] = 0.1969 ; popDist[13] = 0.2019 ; popDist[14] = 0.2202 ; popDist[15] = 0.2725 ; popDist[16] = 0.2839 ; popDist[17] = 0.3233 ; popDist[18] = 0.3289 ; popDist[19] = 0.3325 ; popDist[20] = 0.3729 ; popDist[21] = 0.4202 ; popDist[22] = 0.4211 ; popDist[23] = 0.4218 ; popDist[24] = 0.4257 ; popDist[25] = 0.4335 ; popDist[26] = 0.4762 ; popDist[27] = 0.4791 ; popDist[28] = 0.5059 ; popDist[29] = 0.5868 ; popDist[30] = 0.6318 ; popDist[31] = 0.6327 ; popDist[32] = 0.6338 ; popDist[33] = 0.6441 ; popDist[34] = 0.6483 ; popDist[35] = 0.6491 ; popDist[36] = 0.6510 ; popDist[37] = 0.6583 ; popDist[38] = 0.6602 ; popDist[39] = 0.6760 ; popDist[40] = 0.7199 ; popDist[41] = 0.7393 ; popDist[42] = 0.7501 ; popDist[43] = 0.7590 ; popDist[44] = 0.7618 ; popDist[45] = 0.7721 ; popDist[46] = 0.7830 ; popDist[47] = 0.7843 ; popDist[48] = 0.7859 ; popDist[49] = 0.7925 ; popDist[50] = 0.8068 ; popDist[51] = 0.8137 ; popDist[52] = 0.8254 ; popDist[53] = 0.8265 ; popDist[54] = 0.9131 ; popDist[55] = 0.9624 ; popDist[56] = 0.9821 ; popDist[57] = 0.9982 ; popDist[58] = 0.9994 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 2 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0043 ; popDist[2] = 0.0072 ; popDist[3] = 0.0138 ; popDist[4] = 0.0303 ; popDist[5] = 0.0422 ; popDist[6] = 0.0469 ; popDist[7] = 0.0601 ; popDist[8] = 0.0672 ; popDist[9] = 0.0911 ; popDist[10] = 0.1077 ; popDist[11] = 0.1207 ; popDist[12] = 0.1702 ; popDist[13] = 0.1742 ; popDist[14] = 0.1969 ; popDist[15] = 0.2369 ; popDist[16] = 0.2440 ; popDist[17] = 0.2742 ; popDist[18] = 0.2831 ; popDist[19] = 0.2866 ; popDist[20] = 0.3184 ; popDist[21] = 0.3543 ; popDist[22] = 0.3558 ; popDist[23] = 0.3567 ; popDist[24] = 0.3609 ; popDist[25] = 0.3683 ; popDist[26] = 0.4073 ; popDist[27] = 0.4107 ; popDist[28] = 0.4282 ; popDist[29] = 0.5019 ; popDist[30] = 0.5682 ; popDist[31] = 0.5693 ; popDist[32] = 0.5711 ; popDist[33] = 0.5811 ; popDist[34] = 0.5868 ; popDist[35] = 0.5880 ; popDist[36] = 0.5917 ; popDist[37] = 0.6025 ; popDist[38] = 0.6064 ; popDist[39] = 0.6180 ; popDist[40] = 0.6474 ; popDist[41] = 0.6611 ; popDist[42] = 0.6702 ; popDist[43] = 0.6794 ; popDist[44] = 0.6825 ; popDist[45] = 0.6943 ; popDist[46] = 0.7048 ; popDist[47] = 0.7065 ; popDist[48] = 0.7092 ; popDist[49] = 0.7173 ; popDist[50] = 0.7370 ; popDist[51] = 0.7462 ; popDist[52] = 0.7632 ; popDist[53] = 0.7652 ; popDist[54] = 0.8678 ; popDist[55] = 0.9525 ; popDist[56] = 0.9725 ; popDist[57] = 0.9960 ; popDist[58] = 0.9984 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 2 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0023 ; popDist[2] = 0.0036 ; popDist[3] = 0.0069 ; popDist[4] = 0.0138 ; popDist[5] = 0.0198 ; popDist[6] = 0.0218 ; popDist[7] = 0.0289 ; popDist[8] = 0.0371 ; popDist[9] = 0.0511 ; popDist[10] = 0.0676 ; popDist[11] = 0.0790 ; popDist[12] = 0.1284 ; popDist[13] = 0.1309 ; popDist[14] = 0.1658 ; popDist[15] = 0.1942 ; popDist[16] = 0.1979 ; popDist[17] = 0.2176 ; popDist[18] = 0.2325 ; popDist[19] = 0.2355 ; popDist[20] = 0.2621 ; popDist[21] = 0.2854 ; popDist[22] = 0.2871 ; popDist[23] = 0.2879 ; popDist[24] = 0.2918 ; popDist[25] = 0.2977 ; popDist[26] = 0.3312 ; popDist[27] = 0.3355 ; popDist[28] = 0.3468 ; popDist[29] = 0.4037 ; popDist[30] = 0.4895 ; popDist[31] = 0.4940 ; popDist[32] = 0.4988 ; popDist[33] = 0.5087 ; popDist[34] = 0.5197 ; popDist[35] = 0.5234 ; popDist[36] = 0.5326 ; popDist[37] = 0.5624 ; popDist[38] = 0.5733 ; popDist[39] = 0.5856 ; popDist[40] = 0.6050 ; popDist[41] = 0.6155 ; popDist[42] = 0.6211 ; popDist[43] = 0.6292 ; popDist[44] = 0.6318 ; popDist[45] = 0.6414 ; popDist[46] = 0.6500 ; popDist[47] = 0.6516 ; popDist[48] = 0.6553 ; popDist[49] = 0.6653 ; popDist[50] = 0.6896 ; popDist[51] = 0.6976 ; popDist[52] = 0.7165 ; popDist[53] = 0.7198 ; popDist[54] = 0.8145 ; popDist[55] = 0.9400 ; popDist[56] = 0.9618 ; popDist[57] = 0.9928 ; popDist[58] = 0.9970 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 3 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0342 ; popDist[2] = 0.0532 ; popDist[3] = 0.0748 ; popDist[4] = 0.1210 ; popDist[5] = 0.1660 ; popDist[6] = 0.1929 ; popDist[7] = 0.2326 ; popDist[8] = 0.2420 ; popDist[9] = 0.2831 ; popDist[10] = 0.2914 ; popDist[11] = 0.3053 ; popDist[12] = 0.3160 ; popDist[13] = 0.3466 ; popDist[14] = 0.3533 ; popDist[15] = 0.3694 ; popDist[16] = 0.4053 ; popDist[17] = 0.4380 ; popDist[18] = 0.4448 ; popDist[19] = 0.4742 ; popDist[20] = 0.4797 ; popDist[21] = 0.4840 ; popDist[22] = 0.4901 ; popDist[23] = 0.4998 ; popDist[24] = 0.5154 ; popDist[25] = 0.5250 ; popDist[26] = 0.5370 ; popDist[27] = 0.5419 ; popDist[28] = 0.5513 ; popDist[29] = 0.5554 ; popDist[30] = 0.5601 ; popDist[31] = 0.5607 ; popDist[32] = 0.5627 ; popDist[33] = 0.5938 ; popDist[34] = 0.6019 ; popDist[35] = 0.6028 ; popDist[36] = 0.6049 ; popDist[37] = 0.6138 ; popDist[38] = 0.6165 ; popDist[39] = 0.6386 ; popDist[40] = 0.6518 ; popDist[41] = 0.6868 ; popDist[42] = 0.7470 ; popDist[43] = 0.7760 ; popDist[44] = 0.7961 ; popDist[45] = 0.8335 ; popDist[46] = 0.8792 ; popDist[47] = 0.8948 ; popDist[48] = 0.9000 ; popDist[49] = 0.9218 ; popDist[50] = 0.9295 ; popDist[51] = 0.9495 ; popDist[52] = 0.9576 ; popDist[53] = 0.9601 ; popDist[54] = 0.9715 ; popDist[55] = 0.9755 ; popDist[56] = 0.9841 ; popDist[57] = 0.9952 ; popDist[58] = 0.9986 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 3 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0188 ; popDist[2] = 0.0296 ; popDist[3] = 0.0412 ; popDist[4] = 0.0731 ; popDist[5] = 0.1025 ; popDist[6] = 0.1176 ; popDist[7] = 0.1530 ; popDist[8] = 0.1645 ; popDist[9] = 0.2022 ; popDist[10] = 0.2153 ; popDist[11] = 0.2334 ; popDist[12] = 0.2454 ; popDist[13] = 0.2731 ; popDist[14] = 0.2800 ; popDist[15] = 0.2913 ; popDist[16] = 0.3177 ; popDist[17] = 0.3441 ; popDist[18] = 0.3523 ; popDist[19] = 0.3845 ; popDist[20] = 0.3896 ; popDist[21] = 0.3943 ; popDist[22] = 0.4023 ; popDist[23] = 0.4119 ; popDist[24] = 0.4258 ; popDist[25] = 0.4333 ; popDist[26] = 0.4459 ; popDist[27] = 0.4513 ; popDist[28] = 0.4568 ; popDist[29] = 0.4616 ; popDist[30] = 0.4683 ; popDist[31] = 0.4693 ; popDist[32] = 0.4714 ; popDist[33] = 0.4996 ; popDist[34] = 0.5088 ; popDist[35] = 0.5099 ; popDist[36] = 0.5128 ; popDist[37] = 0.5235 ; popDist[38] = 0.5271 ; popDist[39] = 0.5453 ; popDist[40] = 0.5541 ; popDist[41] = 0.5774 ; popDist[42] = 0.6360 ; popDist[43] = 0.6712 ; popDist[44] = 0.7025 ; popDist[45] = 0.7559 ; popDist[46] = 0.8198 ; popDist[47] = 0.8433 ; popDist[48] = 0.8512 ; popDist[49] = 0.8845 ; popDist[50] = 0.8994 ; popDist[51] = 0.9281 ; popDist[52] = 0.9414 ; popDist[53] = 0.9467 ; popDist[54] = 0.9629 ; popDist[55] = 0.9715 ; popDist[56] = 0.9799 ; popDist[57] = 0.9929 ; popDist[58] = 0.9972 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 3 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0093 ; popDist[2] = 0.0165 ; popDist[3] = 0.0232 ; popDist[4] = 0.0446 ; popDist[5] = 0.0629 ; popDist[6] = 0.0718 ; popDist[7] = 0.1002 ; popDist[8] = 0.1157 ; popDist[9] = 0.1471 ; popDist[10] = 0.1664 ; popDist[11] = 0.1860 ; popDist[12] = 0.1982 ; popDist[13] = 0.2204 ; popDist[14] = 0.2288 ; popDist[15] = 0.2372 ; popDist[16] = 0.2536 ; popDist[17] = 0.2737 ; popDist[18] = 0.2865 ; popDist[19] = 0.3173 ; popDist[20] = 0.3213 ; popDist[21] = 0.3249 ; popDist[22] = 0.3360 ; popDist[23] = 0.3479 ; popDist[24] = 0.3617 ; popDist[25] = 0.3687 ; popDist[26] = 0.3803 ; popDist[27] = 0.3869 ; popDist[28] = 0.3905 ; popDist[29] = 0.3948 ; popDist[30] = 0.4044 ; popDist[31] = 0.4057 ; popDist[32] = 0.4093 ; popDist[33] = 0.4355 ; popDist[34] = 0.4478 ; popDist[35] = 0.4493 ; popDist[36] = 0.4546 ; popDist[37] = 0.4707 ; popDist[38] = 0.4776 ; popDist[39] = 0.4908 ; popDist[40] = 0.4966 ; popDist[41] = 0.5128 ; popDist[42] = 0.5615 ; popDist[43] = 0.5969 ; popDist[44] = 0.6318 ; popDist[45] = 0.6928 ; popDist[46] = 0.7540 ; popDist[47] = 0.7844 ; popDist[48] = 0.7966 ; popDist[49] = 0.8380 ; popDist[50] = 0.8583 ; popDist[51] = 0.8954 ; popDist[52] = 0.9146 ; popDist[53] = 0.9245 ; popDist[54] = 0.9436 ; popDist[55] = 0.9582 ; popDist[56] = 0.9665 ; popDist[57] = 0.9852 ; popDist[58] = 0.9935 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 3 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0051 ; popDist[2] = 0.0083 ; popDist[3] = 0.0118 ; popDist[4] = 0.0206 ; popDist[5] = 0.0300 ; popDist[6] = 0.0339 ; popDist[7] = 0.0496 ; popDist[8] = 0.0677 ; popDist[9] = 0.0867 ; popDist[10] = 0.1063 ; popDist[11] = 0.1240 ; popDist[12] = 0.1363 ; popDist[13] = 0.1513 ; popDist[14] = 0.1647 ; popDist[15] = 0.1708 ; popDist[16] = 0.1795 ; popDist[17] = 0.1930 ; popDist[18] = 0.2148 ; popDist[19] = 0.2426 ; popDist[20] = 0.2461 ; popDist[21] = 0.2484 ; popDist[22] = 0.2621 ; popDist[23] = 0.2736 ; popDist[24] = 0.2866 ; popDist[25] = 0.2924 ; popDist[26] = 0.3026 ; popDist[27] = 0.3112 ; popDist[28] = 0.3136 ; popDist[29] = 0.3170 ; popDist[30] = 0.3298 ; popDist[31] = 0.3352 ; popDist[32] = 0.3445 ; popDist[33] = 0.3714 ; popDist[34] = 0.3955 ; popDist[35] = 0.4002 ; popDist[36] = 0.4141 ; popDist[37] = 0.4591 ; popDist[38] = 0.4785 ; popDist[39] = 0.4928 ; popDist[40] = 0.4968 ; popDist[41] = 0.5096 ; popDist[42] = 0.5414 ; popDist[43] = 0.5726 ; popDist[44] = 0.6012 ; popDist[45] = 0.6517 ; popDist[46] = 0.7023 ; popDist[47] = 0.7321 ; popDist[48] = 0.7489 ; popDist[49] = 0.8002 ; popDist[50] = 0.8255 ; popDist[51] = 0.8586 ; popDist[52] = 0.8805 ; popDist[53] = 0.8974 ; popDist[54] = 0.9155 ; popDist[55] = 0.9379 ; popDist[56] = 0.9472 ; popDist[57] = 0.9726 ; popDist[58] = 0.9874 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 4 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0302 ; popDist[2] = 0.0467 ; popDist[3] = 0.0661 ; popDist[4] = 0.1125 ; popDist[5] = 0.1587 ; popDist[6] = 0.1833 ; popDist[7] = 0.2223 ; popDist[8] = 0.2305 ; popDist[9] = 0.2653 ; popDist[10] = 0.2716 ; popDist[11] = 0.2839 ; popDist[12] = 0.2952 ; popDist[13] = 0.3270 ; popDist[14] = 0.3341 ; popDist[15] = 0.3515 ; popDist[16] = 0.3886 ; popDist[17] = 0.4239 ; popDist[18] = 0.4307 ; popDist[19] = 0.4589 ; popDist[20] = 0.4655 ; popDist[21] = 0.4710 ; popDist[22] = 0.4794 ; popDist[23] = 0.4898 ; popDist[24] = 0.5084 ; popDist[25] = 0.5184 ; popDist[26] = 0.5325 ; popDist[27] = 0.5378 ; popDist[28] = 0.5471 ; popDist[29] = 0.5533 ; popDist[30] = 0.5583 ; popDist[31] = 0.5592 ; popDist[32] = 0.5615 ; popDist[33] = 0.5911 ; popDist[34] = 0.5986 ; popDist[35] = 0.5996 ; popDist[36] = 0.6014 ; popDist[37] = 0.6093 ; popDist[38] = 0.6115 ; popDist[39] = 0.6353 ; popDist[40] = 0.6497 ; popDist[41] = 0.6801 ; popDist[42] = 0.7455 ; popDist[43] = 0.7780 ; popDist[44] = 0.7959 ; popDist[45] = 0.8249 ; popDist[46] = 0.8629 ; popDist[47] = 0.8774 ; popDist[48] = 0.8816 ; popDist[49] = 0.9005 ; popDist[50] = 0.9098 ; popDist[51] = 0.9362 ; popDist[52] = 0.9516 ; popDist[53] = 0.9541 ; popDist[54] = 0.9712 ; popDist[55] = 0.9767 ; popDist[56] = 0.9862 ; popDist[57] = 0.9971 ; popDist[58] = 0.9993 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 4 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0164 ; popDist[2] = 0.0257 ; popDist[3] = 0.0360 ; popDist[4] = 0.0679 ; popDist[5] = 0.0979 ; popDist[6] = 0.1116 ; popDist[7] = 0.1458 ; popDist[8] = 0.1559 ; popDist[9] = 0.1880 ; popDist[10] = 0.1980 ; popDist[11] = 0.2139 ; popDist[12] = 0.2264 ; popDist[13] = 0.2549 ; popDist[14] = 0.2622 ; popDist[15] = 0.2743 ; popDist[16] = 0.3016 ; popDist[17] = 0.3302 ; popDist[18] = 0.3384 ; popDist[19] = 0.3691 ; popDist[20] = 0.3751 ; popDist[21] = 0.3812 ; popDist[22] = 0.3917 ; popDist[23] = 0.4018 ; popDist[24] = 0.4182 ; popDist[25] = 0.4258 ; popDist[26] = 0.4407 ; popDist[27] = 0.4464 ; popDist[28] = 0.4519 ; popDist[29] = 0.4590 ; popDist[30] = 0.4660 ; popDist[31] = 0.4673 ; popDist[32] = 0.4700 ; popDist[33] = 0.4965 ; popDist[34] = 0.5051 ; popDist[35] = 0.5061 ; popDist[36] = 0.5086 ; popDist[37] = 0.5181 ; popDist[38] = 0.5213 ; popDist[39] = 0.5407 ; popDist[40] = 0.5502 ; popDist[41] = 0.5705 ; popDist[42] = 0.6334 ; popDist[43] = 0.6727 ; popDist[44] = 0.7003 ; popDist[45] = 0.7418 ; popDist[46] = 0.7945 ; popDist[47] = 0.8163 ; popDist[48] = 0.8226 ; popDist[49] = 0.8515 ; popDist[50] = 0.8695 ; popDist[51] = 0.9072 ; popDist[52] = 0.9324 ; popDist[53] = 0.9378 ; popDist[54] = 0.9621 ; popDist[55] = 0.9742 ; popDist[56] = 0.9831 ; popDist[57] = 0.9956 ; popDist[58] = 0.9984 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 4 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0081 ; popDist[2] = 0.0143 ; popDist[3] = 0.0202 ; popDist[4] = 0.0414 ; popDist[5] = 0.0598 ; popDist[6] = 0.0678 ; popDist[7] = 0.0954 ; popDist[8] = 0.1090 ; popDist[9] = 0.1352 ; popDist[10] = 0.1499 ; popDist[11] = 0.1670 ; popDist[12] = 0.1794 ; popDist[13] = 0.2022 ; popDist[14] = 0.2112 ; popDist[15] = 0.2203 ; popDist[16] = 0.2370 ; popDist[17] = 0.2586 ; popDist[18] = 0.2713 ; popDist[19] = 0.3004 ; popDist[20] = 0.3051 ; popDist[21] = 0.3096 ; popDist[22] = 0.3243 ; popDist[23] = 0.3368 ; popDist[24] = 0.3529 ; popDist[25] = 0.3601 ; popDist[26] = 0.3734 ; popDist[27] = 0.3802 ; popDist[28] = 0.3838 ; popDist[29] = 0.3905 ; popDist[30] = 0.4006 ; popDist[31] = 0.4022 ; popDist[32] = 0.4061 ; popDist[33] = 0.4307 ; popDist[34] = 0.4418 ; popDist[35] = 0.4433 ; popDist[36] = 0.4482 ; popDist[37] = 0.4621 ; popDist[38] = 0.4677 ; popDist[39] = 0.4819 ; popDist[40] = 0.4881 ; popDist[41] = 0.5020 ; popDist[42] = 0.5546 ; popDist[43] = 0.5940 ; popDist[44] = 0.6244 ; popDist[45] = 0.6713 ; popDist[46] = 0.7216 ; popDist[47] = 0.7497 ; popDist[48] = 0.7596 ; popDist[49] = 0.7954 ; popDist[50] = 0.8197 ; popDist[51] = 0.8681 ; popDist[52] = 0.9043 ; popDist[53] = 0.9143 ; popDist[54] = 0.9428 ; popDist[55] = 0.9637 ; popDist[56] = 0.9727 ; popDist[57] = 0.9908 ; popDist[58] = 0.9965 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 35 && age <= 44 && race == 4 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0045 ; popDist[2] = 0.0072 ; popDist[3] = 0.0103 ; popDist[4] = 0.0190 ; popDist[5] = 0.0284 ; popDist[6] = 0.0319 ; popDist[7] = 0.0474 ; popDist[8] = 0.0633 ; popDist[9] = 0.0794 ; popDist[10] = 0.0942 ; popDist[11] = 0.1096 ; popDist[12] = 0.1223 ; popDist[13] = 0.1375 ; popDist[14] = 0.1516 ; popDist[15] = 0.1581 ; popDist[16] = 0.1668 ; popDist[17] = 0.1811 ; popDist[18] = 0.2027 ; popDist[19] = 0.2291 ; popDist[20] = 0.2330 ; popDist[21] = 0.2362 ; popDist[22] = 0.2547 ; popDist[23] = 0.2670 ; popDist[24] = 0.2822 ; popDist[25] = 0.2883 ; popDist[26] = 0.3000 ; popDist[27] = 0.3091 ; popDist[28] = 0.3115 ; popDist[29] = 0.3168 ; popDist[30] = 0.3300 ; popDist[31] = 0.3366 ; popDist[32] = 0.3473 ; popDist[33] = 0.3725 ; popDist[34] = 0.3944 ; popDist[35] = 0.3992 ; popDist[36] = 0.4118 ; popDist[37] = 0.4513 ; popDist[38] = 0.4673 ; popDist[39] = 0.4824 ; popDist[40] = 0.4867 ; popDist[41] = 0.4977 ; popDist[42] = 0.5323 ; popDist[43] = 0.5674 ; popDist[44] = 0.5923 ; popDist[45] = 0.6311 ; popDist[46] = 0.6725 ; popDist[47] = 0.7002 ; popDist[48] = 0.7138 ; popDist[49] = 0.7583 ; popDist[50] = 0.7886 ; popDist[51] = 0.8318 ; popDist[52] = 0.8730 ; popDist[53] = 0.8901 ; popDist[54] = 0.9169 ; popDist[55] = 0.9483 ; popDist[56] = 0.9583 ; popDist[57] = 0.9830 ; popDist[58] = 0.9931 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 1 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0007 ; popDist[2] = 0.0009 ; popDist[3] = 0.0011 ; popDist[4] = 0.0019 ; popDist[5] = 0.0027 ; popDist[6] = 0.0062 ; popDist[7] = 0.0119 ; popDist[8] = 0.0239 ; popDist[9] = 0.0263 ; popDist[10] = 0.0399 ; popDist[11] = 0.0531 ; popDist[12] = 0.0578 ; popDist[13] = 0.0939 ; popDist[14] = 0.1089 ; popDist[15] = 0.1101 ; popDist[16] = 0.1112 ; popDist[17] = 0.1148 ; popDist[18] = 0.1316 ; popDist[19] = 0.1436 ; popDist[20] = 0.1478 ; popDist[21] = 0.1519 ; popDist[22] = 0.1830 ; popDist[23] = 0.2484 ; popDist[24] = 0.3104 ; popDist[25] = 0.3468 ; popDist[26] = 0.3739 ; popDist[27] = 0.4338 ; popDist[28] = 0.4341 ; popDist[29] = 0.4350 ; popDist[30] = 0.4540 ; popDist[31] = 0.4602 ; popDist[32] = 0.4836 ; popDist[33] = 0.5212 ; popDist[34] = 0.5448 ; popDist[35] = 0.5549 ; popDist[36] = 0.5792 ; popDist[37] = 0.6187 ; popDist[38] = 0.6525 ; popDist[39] = 0.6630 ; popDist[40] = 0.6649 ; popDist[41] = 0.6698 ; popDist[42] = 0.6806 ; popDist[43] = 0.7168 ; popDist[44] = 0.7301 ; popDist[45] = 0.7374 ; popDist[46] = 0.7437 ; popDist[47] = 0.7727 ; popDist[48] = 0.7970 ; popDist[49] = 0.8416 ; popDist[50] = 0.8581 ; popDist[51] = 0.8708 ; popDist[52] = 0.8820 ; popDist[53] = 0.8991 ; popDist[54] = 0.9007 ; popDist[55] = 0.9060 ; popDist[56] = 0.9213 ; popDist[57] = 0.9487 ; popDist[58] = 0.9781 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 1 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0003 ; popDist[2] = 0.0004 ; popDist[3] = 0.0005 ; popDist[4] = 0.0010 ; popDist[5] = 0.0014 ; popDist[6] = 0.0029 ; popDist[7] = 0.0071 ; popDist[8] = 0.0191 ; popDist[9] = 0.0208 ; popDist[10] = 0.0386 ; popDist[11] = 0.0527 ; popDist[12] = 0.0571 ; popDist[13] = 0.0837 ; popDist[14] = 0.0962 ; popDist[15] = 0.0969 ; popDist[16] = 0.0976 ; popDist[17] = 0.0999 ; popDist[18] = 0.1165 ; popDist[19] = 0.1272 ; popDist[20] = 0.1305 ; popDist[21] = 0.1344 ; popDist[22] = 0.1670 ; popDist[23] = 0.2206 ; popDist[24] = 0.2659 ; popDist[25] = 0.2891 ; popDist[26] = 0.3127 ; popDist[27] = 0.3667 ; popDist[28] = 0.3668 ; popDist[29] = 0.3677 ; popDist[30] = 0.3895 ; popDist[31] = 0.3980 ; popDist[32] = 0.4196 ; popDist[33] = 0.4476 ; popDist[34] = 0.4698 ; popDist[35] = 0.4787 ; popDist[36] = 0.5062 ; popDist[37] = 0.5450 ; popDist[38] = 0.5847 ; popDist[39] = 0.5919 ; popDist[40] = 0.5930 ; popDist[41] = 0.5957 ; popDist[42] = 0.6044 ; popDist[43] = 0.6403 ; popDist[44] = 0.6572 ; popDist[45] = 0.6657 ; popDist[46] = 0.6728 ; popDist[47] = 0.7086 ; popDist[48] = 0.7386 ; popDist[49] = 0.7951 ; popDist[50] = 0.8207 ; popDist[51] = 0.8357 ; popDist[52] = 0.8511 ; popDist[53] = 0.8803 ; popDist[54] = 0.8818 ; popDist[55] = 0.8921 ; popDist[56] = 0.9042 ; popDist[57] = 0.9306 ; popDist[58] = 0.9625 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 1 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0001 ; popDist[3] = 0.0002 ; popDist[4] = 0.0004 ; popDist[5] = 0.0005 ; popDist[6] = 0.0012 ; popDist[7] = 0.0037 ; popDist[8] = 0.0158 ; popDist[9] = 0.0169 ; popDist[10] = 0.0365 ; popDist[11] = 0.0479 ; popDist[12] = 0.0512 ; popDist[13] = 0.0672 ; popDist[14] = 0.0787 ; popDist[15] = 0.0792 ; popDist[16] = 0.0795 ; popDist[17] = 0.0808 ; popDist[18] = 0.1006 ; popDist[19] = 0.1082 ; popDist[20] = 0.1101 ; popDist[21] = 0.1122 ; popDist[22] = 0.1461 ; popDist[23] = 0.1949 ; popDist[24] = 0.2286 ; popDist[25] = 0.2450 ; popDist[26] = 0.2610 ; popDist[27] = 0.3106 ; popDist[28] = 0.3107 ; popDist[29] = 0.3112 ; popDist[30] = 0.3350 ; popDist[31] = 0.3423 ; popDist[32] = 0.3685 ; popDist[33] = 0.3881 ; popDist[34] = 0.4100 ; popDist[35] = 0.4198 ; popDist[36] = 0.4582 ; popDist[37] = 0.5014 ; popDist[38] = 0.5569 ; popDist[39] = 0.5607 ; popDist[40] = 0.5612 ; popDist[41] = 0.5626 ; popDist[42] = 0.5680 ; popDist[43] = 0.5950 ; popDist[44] = 0.6090 ; popDist[45] = 0.6163 ; popDist[46] = 0.6215 ; popDist[47] = 0.6560 ; popDist[48] = 0.6912 ; popDist[49] = 0.7433 ; popDist[50] = 0.7691 ; popDist[51] = 0.7836 ; popDist[52] = 0.8001 ; popDist[53] = 0.8406 ; popDist[54] = 0.8421 ; popDist[55] = 0.8551 ; popDist[56] = 0.8642 ; popDist[57] = 0.8925 ; popDist[58] = 0.9384 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 1 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0000 ; popDist[2] = 0.0000 ; popDist[3] = 0.0000 ; popDist[4] = 0.0000 ; popDist[5] = 0.0001 ; popDist[6] = 0.0003 ; popDist[7] = 0.0012 ; popDist[8] = 0.0104 ; popDist[9] = 0.0109 ; popDist[10] = 0.0238 ; popDist[11] = 0.0304 ; popDist[12] = 0.0327 ; popDist[13] = 0.0395 ; popDist[14] = 0.0512 ; popDist[15] = 0.0513 ; popDist[16] = 0.0514 ; popDist[17] = 0.0519 ; popDist[18] = 0.0735 ; popDist[19] = 0.0780 ; popDist[20] = 0.0790 ; popDist[21] = 0.0799 ; popDist[22] = 0.1073 ; popDist[23] = 0.1379 ; popDist[24] = 0.1582 ; popDist[25] = 0.1670 ; popDist[26] = 0.1760 ; popDist[27] = 0.2175 ; popDist[28] = 0.2175 ; popDist[29] = 0.2179 ; popDist[30] = 0.2382 ; popDist[31] = 0.2586 ; popDist[32] = 0.3039 ; popDist[33] = 0.3169 ; popDist[34] = 0.3448 ; popDist[35] = 0.3649 ; popDist[36] = 0.4288 ; popDist[37] = 0.5070 ; popDist[38] = 0.6085 ; popDist[39] = 0.6111 ; popDist[40] = 0.6113 ; popDist[41] = 0.6120 ; popDist[42] = 0.6143 ; popDist[43] = 0.6297 ; popDist[44] = 0.6372 ; popDist[45] = 0.6410 ; popDist[46] = 0.6437 ; popDist[47] = 0.6656 ; popDist[48] = 0.6969 ; popDist[49] = 0.7388 ; popDist[50] = 0.7597 ; popDist[51] = 0.7680 ; popDist[52] = 0.7801 ; popDist[53] = 0.8250 ; popDist[54] = 0.8259 ; popDist[55] = 0.8386 ; popDist[56] = 0.8451 ; popDist[57] = 0.8699 ; popDist[58] = 0.9214 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 2 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0146 ; popDist[2] = 0.0217 ; popDist[3] = 0.0405 ; popDist[4] = 0.0693 ; popDist[5] = 0.0955 ; popDist[6] = 0.1070 ; popDist[7] = 0.1234 ; popDist[8] = 0.1283 ; popDist[9] = 0.1587 ; popDist[10] = 0.1661 ; popDist[11] = 0.1755 ; popDist[12] = 0.2190 ; popDist[13] = 0.2250 ; popDist[14] = 0.2428 ; popDist[15] = 0.3140 ; popDist[16] = 0.3280 ; popDist[17] = 0.3753 ; popDist[18] = 0.3796 ; popDist[19] = 0.3825 ; popDist[20] = 0.4218 ; popDist[21] = 0.4675 ; popDist[22] = 0.4683 ; popDist[23] = 0.4691 ; popDist[24] = 0.4743 ; popDist[25] = 0.4874 ; popDist[26] = 0.5303 ; popDist[27] = 0.5336 ; popDist[28] = 0.5762 ; popDist[29] = 0.6529 ; popDist[30] = 0.6891 ; popDist[31] = 0.6896 ; popDist[32] = 0.6906 ; popDist[33] = 0.7023 ; popDist[34] = 0.7058 ; popDist[35] = 0.7066 ; popDist[36] = 0.7084 ; popDist[37] = 0.7146 ; popDist[38] = 0.7162 ; popDist[39] = 0.7350 ; popDist[40] = 0.7937 ; popDist[41] = 0.8209 ; popDist[42] = 0.8323 ; popDist[43] = 0.8382 ; popDist[44] = 0.8398 ; popDist[45] = 0.8466 ; popDist[46] = 0.8535 ; popDist[47] = 0.8542 ; popDist[48] = 0.8555 ; popDist[49] = 0.8603 ; popDist[50] = 0.8685 ; popDist[51] = 0.8732 ; popDist[52] = 0.8803 ; popDist[53] = 0.8808 ; popDist[54] = 0.9395 ; popDist[55] = 0.9630 ; popDist[56] = 0.9845 ; popDist[57] = 0.9986 ; popDist[58] = 0.9997 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 2 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0080 ; popDist[2] = 0.0120 ; popDist[3] = 0.0221 ; popDist[4] = 0.0419 ; popDist[5] = 0.0590 ; popDist[6] = 0.0653 ; popDist[7] = 0.0797 ; popDist[8] = 0.0855 ; popDist[9] = 0.1136 ; popDist[10] = 0.1254 ; popDist[11] = 0.1374 ; popDist[12] = 0.1858 ; popDist[13] = 0.1911 ; popDist[14] = 0.2093 ; popDist[15] = 0.2585 ; popDist[16] = 0.2689 ; popDist[17] = 0.3071 ; popDist[18] = 0.3123 ; popDist[19] = 0.3157 ; popDist[20] = 0.3525 ; popDist[21] = 0.4037 ; popDist[22] = 0.4049 ; popDist[23] = 0.4057 ; popDist[24] = 0.4104 ; popDist[25] = 0.4205 ; popDist[26] = 0.4657 ; popDist[27] = 0.4695 ; popDist[28] = 0.4946 ; popDist[29] = 0.5847 ; popDist[30] = 0.6350 ; popDist[31] = 0.6359 ; popDist[32] = 0.6371 ; popDist[33] = 0.6477 ; popDist[34] = 0.6518 ; popDist[35] = 0.6527 ; popDist[36] = 0.6547 ; popDist[37] = 0.6624 ; popDist[38] = 0.6649 ; popDist[39] = 0.6805 ; popDist[40] = 0.7190 ; popDist[41] = 0.7371 ; popDist[42] = 0.7480 ; popDist[43] = 0.7553 ; popDist[44] = 0.7580 ; popDist[45] = 0.7679 ; popDist[46] = 0.7776 ; popDist[47] = 0.7788 ; popDist[48] = 0.7809 ; popDist[49] = 0.7881 ; popDist[50] = 0.8041 ; popDist[51] = 0.8105 ; popDist[52] = 0.8225 ; popDist[53] = 0.8236 ; popDist[54] = 0.9078 ; popDist[55] = 0.9610 ; popDist[56] = 0.9815 ; popDist[57] = 0.9977 ; popDist[58] = 0.9992 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 2 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0040 ; popDist[2] = 0.0067 ; popDist[3] = 0.0125 ; popDist[4] = 0.0257 ; popDist[5] = 0.0362 ; popDist[6] = 0.0401 ; popDist[7] = 0.0518 ; popDist[8] = 0.0598 ; popDist[9] = 0.0829 ; popDist[10] = 0.1004 ; popDist[11] = 0.1135 ; popDist[12] = 0.1627 ; popDist[13] = 0.1667 ; popDist[14] = 0.1890 ; popDist[15] = 0.2261 ; popDist[16] = 0.2324 ; popDist[17] = 0.2613 ; popDist[18] = 0.2696 ; popDist[19] = 0.2729 ; popDist[20] = 0.3016 ; popDist[21] = 0.3401 ; popDist[22] = 0.3417 ; popDist[23] = 0.3425 ; popDist[24] = 0.3471 ; popDist[25] = 0.3566 ; popDist[26] = 0.3975 ; popDist[27] = 0.4019 ; popDist[28] = 0.4182 ; popDist[29] = 0.4991 ; popDist[30] = 0.5723 ; popDist[31] = 0.5733 ; popDist[32] = 0.5752 ; popDist[33] = 0.5847 ; popDist[34] = 0.5901 ; popDist[35] = 0.5912 ; popDist[36] = 0.5953 ; popDist[37] = 0.6064 ; popDist[38] = 0.6103 ; popDist[39] = 0.6214 ; popDist[40] = 0.6470 ; popDist[41] = 0.6594 ; popDist[42] = 0.6687 ; popDist[43] = 0.6762 ; popDist[44] = 0.6792 ; popDist[45] = 0.6904 ; popDist[46] = 0.6999 ; popDist[47] = 0.7014 ; popDist[48] = 0.7043 ; popDist[49] = 0.7130 ; popDist[50] = 0.7345 ; popDist[51] = 0.7429 ; popDist[52] = 0.7598 ; popDist[53] = 0.7621 ; popDist[54] = 0.8607 ; popDist[55] = 0.9514 ; popDist[56] = 0.9720 ; popDist[57] = 0.9955 ; popDist[58] = 0.9983 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 2 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0020 ; popDist[2] = 0.0032 ; popDist[3] = 0.0061 ; popDist[4] = 0.0116 ; popDist[5] = 0.0170 ; popDist[6] = 0.0187 ; popDist[7] = 0.0248 ; popDist[8] = 0.0338 ; popDist[9] = 0.0472 ; popDist[10] = 0.0646 ; popDist[11] = 0.0757 ; popDist[12] = 0.1240 ; popDist[13] = 0.1268 ; popDist[14] = 0.1605 ; popDist[15] = 0.1865 ; popDist[16] = 0.1898 ; popDist[17] = 0.2082 ; popDist[18] = 0.2221 ; popDist[19] = 0.2247 ; popDist[20] = 0.2481 ; popDist[21] = 0.2724 ; popDist[22] = 0.2743 ; popDist[23] = 0.2753 ; popDist[24] = 0.2796 ; popDist[25] = 0.2871 ; popDist[26] = 0.3215 ; popDist[27] = 0.3270 ; popDist[28] = 0.3373 ; popDist[29] = 0.3988 ; popDist[30] = 0.4921 ; popDist[31] = 0.4965 ; popDist[32] = 0.5011 ; popDist[33] = 0.5109 ; popDist[34] = 0.5208 ; popDist[35] = 0.5245 ; popDist[36] = 0.5350 ; popDist[37] = 0.5660 ; popDist[38] = 0.5774 ; popDist[39] = 0.5893 ; popDist[40] = 0.6060 ; popDist[41] = 0.6155 ; popDist[42] = 0.6212 ; popDist[43] = 0.6276 ; popDist[44] = 0.6298 ; popDist[45] = 0.6387 ; popDist[46] = 0.6463 ; popDist[47] = 0.6478 ; popDist[48] = 0.6517 ; popDist[49] = 0.6621 ; popDist[50] = 0.6878 ; popDist[51] = 0.6952 ; popDist[52] = 0.7140 ; popDist[53] = 0.7178 ; popDist[54] = 0.8070 ; popDist[55] = 0.9393 ; popDist[56] = 0.9612 ; popDist[57] = 0.9917 ; popDist[58] = 0.9967 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 3 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0328 ; popDist[2] = 0.0512 ; popDist[3] = 0.0709 ; popDist[4] = 0.1101 ; popDist[5] = 0.1518 ; popDist[6] = 0.1748 ; popDist[7] = 0.2120 ; popDist[8] = 0.2232 ; popDist[9] = 0.2648 ; popDist[10] = 0.2738 ; popDist[11] = 0.2886 ; popDist[12] = 0.2996 ; popDist[13] = 0.3336 ; popDist[14] = 0.3406 ; popDist[15] = 0.3563 ; popDist[16] = 0.3901 ; popDist[17] = 0.4230 ; popDist[18] = 0.4296 ; popDist[19] = 0.4588 ; popDist[20] = 0.4640 ; popDist[21] = 0.4689 ; popDist[22] = 0.4756 ; popDist[23] = 0.4865 ; popDist[24] = 0.5051 ; popDist[25] = 0.5180 ; popDist[26] = 0.5311 ; popDist[27] = 0.5374 ; popDist[28] = 0.5466 ; popDist[29] = 0.5511 ; popDist[30] = 0.5566 ; popDist[31] = 0.5573 ; popDist[32] = 0.5593 ; popDist[33] = 0.5916 ; popDist[34] = 0.5993 ; popDist[35] = 0.6003 ; popDist[36] = 0.6027 ; popDist[37] = 0.6127 ; popDist[38] = 0.6158 ; popDist[39] = 0.6385 ; popDist[40] = 0.6505 ; popDist[41] = 0.6845 ; popDist[42] = 0.7483 ; popDist[43] = 0.7735 ; popDist[44] = 0.7925 ; popDist[45] = 0.8299 ; popDist[46] = 0.8724 ; popDist[47] = 0.8875 ; popDist[48] = 0.8935 ; popDist[49] = 0.9176 ; popDist[50] = 0.9264 ; popDist[51] = 0.9458 ; popDist[52] = 0.9543 ; popDist[53] = 0.9574 ; popDist[54] = 0.9686 ; popDist[55] = 0.9731 ; popDist[56] = 0.9825 ; popDist[57] = 0.9941 ; popDist[58] = 0.9984 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 3 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0178 ; popDist[2] = 0.0281 ; popDist[3] = 0.0386 ; popDist[4] = 0.0652 ; popDist[5] = 0.0922 ; popDist[6] = 0.1050 ; popDist[7] = 0.1376 ; popDist[8] = 0.1509 ; popDist[9] = 0.1890 ; popDist[10] = 0.2032 ; popDist[11] = 0.2222 ; popDist[12] = 0.2344 ; popDist[13] = 0.2645 ; popDist[14] = 0.2717 ; popDist[15] = 0.2825 ; popDist[16] = 0.3071 ; popDist[17] = 0.3333 ; popDist[18] = 0.3411 ; popDist[19] = 0.3727 ; popDist[20] = 0.3775 ; popDist[21] = 0.3827 ; popDist[22] = 0.3912 ; popDist[23] = 0.4020 ; popDist[24] = 0.4186 ; popDist[25] = 0.4285 ; popDist[26] = 0.4421 ; popDist[27] = 0.4490 ; popDist[28] = 0.4543 ; popDist[29] = 0.4598 ; popDist[30] = 0.4674 ; popDist[31] = 0.4685 ; popDist[32] = 0.4707 ; popDist[33] = 0.4997 ; popDist[34] = 0.5085 ; popDist[35] = 0.5096 ; popDist[36] = 0.5131 ; popDist[37] = 0.5250 ; popDist[38] = 0.5291 ; popDist[39] = 0.5477 ; popDist[40] = 0.5555 ; popDist[41] = 0.5778 ; popDist[42] = 0.6393 ; popDist[43] = 0.6693 ; popDist[44] = 0.6985 ; popDist[45] = 0.7517 ; popDist[46] = 0.8103 ; popDist[47] = 0.8329 ; popDist[48] = 0.8419 ; popDist[49] = 0.8785 ; popDist[50] = 0.8952 ; popDist[51] = 0.9226 ; popDist[52] = 0.9364 ; popDist[53] = 0.9429 ; popDist[54] = 0.9592 ; popDist[55] = 0.9689 ; popDist[56] = 0.9777 ; popDist[57] = 0.9913 ; popDist[58] = 0.9967 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 3 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0087 ; popDist[2] = 0.0155 ; popDist[3] = 0.0214 ; popDist[4] = 0.0390 ; popDist[5] = 0.0555 ; popDist[6] = 0.0629 ; popDist[7] = 0.0888 ; popDist[8] = 0.1066 ; popDist[9] = 0.1378 ; popDist[10] = 0.1585 ; popDist[11] = 0.1789 ; popDist[12] = 0.1912 ; popDist[13] = 0.2151 ; popDist[14] = 0.2235 ; popDist[15] = 0.2317 ; popDist[16] = 0.2468 ; popDist[17] = 0.2664 ; popDist[18] = 0.2784 ; popDist[19] = 0.3083 ; popDist[20] = 0.3119 ; popDist[21] = 0.3158 ; popDist[22] = 0.3272 ; popDist[23] = 0.3402 ; popDist[24] = 0.3567 ; popDist[25] = 0.3658 ; popDist[26] = 0.3783 ; popDist[27] = 0.3869 ; popDist[28] = 0.3902 ; popDist[29] = 0.3951 ; popDist[30] = 0.4058 ; popDist[31] = 0.4071 ; popDist[32] = 0.4107 ; popDist[33] = 0.4375 ; popDist[34] = 0.4491 ; popDist[35] = 0.4506 ; popDist[36] = 0.4569 ; popDist[37] = 0.4739 ; popDist[38] = 0.4813 ; popDist[39] = 0.4946 ; popDist[40] = 0.4998 ; popDist[41] = 0.5151 ; popDist[42] = 0.5652 ; popDist[43] = 0.5950 ; popDist[44] = 0.6270 ; popDist[45] = 0.6867 ; popDist[46] = 0.7421 ; popDist[47] = 0.7711 ; popDist[48] = 0.7851 ; popDist[49] = 0.8300 ; popDist[50] = 0.8525 ; popDist[51] = 0.8874 ; popDist[52] = 0.9071 ; popDist[53] = 0.9192 ; popDist[54] = 0.9377 ; popDist[55] = 0.9540 ; popDist[56] = 0.9628 ; popDist[57] = 0.9821 ; popDist[58] = 0.9925 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 3 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0046 ; popDist[2] = 0.0076 ; popDist[3] = 0.0106 ; popDist[4] = 0.0177 ; popDist[5] = 0.0260 ; popDist[6] = 0.0293 ; popDist[7] = 0.0434 ; popDist[8] = 0.0638 ; popDist[9] = 0.0822 ; popDist[10] = 0.1029 ; popDist[11] = 0.1207 ; popDist[12] = 0.1332 ; popDist[13] = 0.1489 ; popDist[14] = 0.1619 ; popDist[15] = 0.1677 ; popDist[16] = 0.1754 ; popDist[17] = 0.1886 ; popDist[18] = 0.2087 ; popDist[19] = 0.2350 ; popDist[20] = 0.2381 ; popDist[21] = 0.2407 ; popDist[22] = 0.2547 ; popDist[23] = 0.2670 ; popDist[24] = 0.2819 ; popDist[25] = 0.2893 ; popDist[26] = 0.3001 ; popDist[27] = 0.3107 ; popDist[28] = 0.3129 ; popDist[29] = 0.3167 ; popDist[30] = 0.3310 ; popDist[31] = 0.3364 ; popDist[32] = 0.3459 ; popDist[33] = 0.3726 ; popDist[34] = 0.3946 ; popDist[35] = 0.3993 ; popDist[36] = 0.4152 ; popDist[37] = 0.4625 ; popDist[38] = 0.4837 ; popDist[39] = 0.4976 ; popDist[40] = 0.5009 ; popDist[41] = 0.5127 ; popDist[42] = 0.5450 ; popDist[43] = 0.5709 ; popDist[44] = 0.5966 ; popDist[45] = 0.6453 ; popDist[46] = 0.6899 ; popDist[47] = 0.7177 ; popDist[48] = 0.7364 ; popDist[49] = 0.7907 ; popDist[50] = 0.8185 ; popDist[51] = 0.8493 ; popDist[52] = 0.8714 ; popDist[53] = 0.8915 ; popDist[54] = 0.9090 ; popDist[55] = 0.9327 ; popDist[56] = 0.9425 ; popDist[57] = 0.9683 ; popDist[58] = 0.9860 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 4 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0288 ; popDist[2] = 0.0447 ; popDist[3] = 0.0623 ; popDist[4] = 0.1016 ; popDist[5] = 0.1439 ; popDist[6] = 0.1651 ; popDist[7] = 0.2014 ; popDist[8] = 0.2112 ; popDist[9] = 0.2466 ; popDist[10] = 0.2535 ; popDist[11] = 0.2665 ; popDist[12] = 0.2783 ; popDist[13] = 0.3136 ; popDist[14] = 0.3212 ; popDist[15] = 0.3382 ; popDist[16] = 0.3729 ; popDist[17] = 0.4084 ; popDist[18] = 0.4150 ; popDist[19] = 0.4431 ; popDist[20] = 0.4493 ; popDist[21] = 0.4555 ; popDist[22] = 0.4642 ; popDist[23] = 0.4756 ; popDist[24] = 0.4978 ; popDist[25] = 0.5112 ; popDist[26] = 0.5268 ; popDist[27] = 0.5335 ; popDist[28] = 0.5424 ; popDist[29] = 0.5497 ; popDist[30] = 0.5553 ; popDist[31] = 0.5562 ; popDist[32] = 0.5586 ; popDist[33] = 0.5893 ; popDist[34] = 0.5964 ; popDist[35] = 0.5974 ; popDist[36] = 0.5998 ; popDist[37] = 0.6083 ; popDist[38] = 0.6105 ; popDist[39] = 0.6347 ; popDist[40] = 0.6477 ; popDist[41] = 0.6772 ; popDist[42] = 0.7463 ; popDist[43] = 0.7744 ; popDist[44] = 0.7911 ; popDist[45] = 0.8204 ; popDist[46] = 0.8556 ; popDist[47] = 0.8701 ; popDist[48] = 0.8750 ; popDist[49] = 0.8960 ; popDist[50] = 0.9068 ; popDist[51] = 0.9319 ; popDist[52] = 0.9480 ; popDist[53] = 0.9511 ; popDist[54] = 0.9682 ; popDist[55] = 0.9745 ; popDist[56] = 0.9846 ; popDist[57] = 0.9961 ; popDist[58] = 0.9991 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 4 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0155 ; popDist[2] = 0.0244 ; popDist[3] = 0.0336 ; popDist[4] = 0.0603 ; popDist[5] = 0.0875 ; popDist[6] = 0.0990 ; popDist[7] = 0.1308 ; popDist[8] = 0.1424 ; popDist[9] = 0.1744 ; popDist[10] = 0.1855 ; popDist[11] = 0.2019 ; popDist[12] = 0.2147 ; popDist[13] = 0.2458 ; popDist[14] = 0.2532 ; popDist[15] = 0.2648 ; popDist[16] = 0.2902 ; popDist[17] = 0.3185 ; popDist[18] = 0.3263 ; popDist[19] = 0.3562 ; popDist[20] = 0.3619 ; popDist[21] = 0.3686 ; popDist[22] = 0.3797 ; popDist[23] = 0.3908 ; popDist[24] = 0.4099 ; popDist[25] = 0.4200 ; popDist[26] = 0.4360 ; popDist[27] = 0.4435 ; popDist[28] = 0.4488 ; popDist[29] = 0.4570 ; popDist[30] = 0.4652 ; popDist[31] = 0.4666 ; popDist[32] = 0.4693 ; popDist[33] = 0.4967 ; popDist[34] = 0.5047 ; popDist[35] = 0.5057 ; popDist[36] = 0.5090 ; popDist[37] = 0.5193 ; popDist[38] = 0.5226 ; popDist[39] = 0.5424 ; popDist[40] = 0.5509 ; popDist[41] = 0.5703 ; popDist[42] = 0.6363 ; popDist[43] = 0.6700 ; popDist[44] = 0.6957 ; popDist[45] = 0.7367 ; popDist[46] = 0.7852 ; popDist[47] = 0.8065 ; popDist[48] = 0.8136 ; popDist[49] = 0.8454 ; popDist[50] = 0.8658 ; popDist[51] = 0.9013 ; popDist[52] = 0.9275 ; popDist[53] = 0.9339 ; popDist[54] = 0.9582 ; popDist[55] = 0.9717 ; popDist[56] = 0.9813 ; popDist[57] = 0.9941 ; popDist[58] = 0.9979 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 4 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0075 ; popDist[2] = 0.0134 ; popDist[3] = 0.0186 ; popDist[4] = 0.0360 ; popDist[5] = 0.0528 ; popDist[6] = 0.0595 ; popDist[7] = 0.0845 ; popDist[8] = 0.1002 ; popDist[9] = 0.1261 ; popDist[10] = 0.1418 ; popDist[11] = 0.1594 ; popDist[12] = 0.1724 ; popDist[13] = 0.1972 ; popDist[14] = 0.2061 ; popDist[15] = 0.2147 ; popDist[16] = 0.2300 ; popDist[17] = 0.2513 ; popDist[18] = 0.2633 ; popDist[19] = 0.2916 ; popDist[20] = 0.2958 ; popDist[21] = 0.3009 ; popDist[22] = 0.3161 ; popDist[23] = 0.3299 ; popDist[24] = 0.3487 ; popDist[25] = 0.3582 ; popDist[26] = 0.3727 ; popDist[27] = 0.3816 ; popDist[28] = 0.3850 ; popDist[29] = 0.3923 ; popDist[30] = 0.4033 ; popDist[31] = 0.4050 ; popDist[32] = 0.4091 ; popDist[33] = 0.4339 ; popDist[34] = 0.4442 ; popDist[35] = 0.4457 ; popDist[36] = 0.4515 ; popDist[37] = 0.4662 ; popDist[38] = 0.4722 ; popDist[39] = 0.4861 ; popDist[40] = 0.4916 ; popDist[41] = 0.5048 ; popDist[42] = 0.5588 ; popDist[43] = 0.5918 ; popDist[44] = 0.6198 ; popDist[45] = 0.6658 ; popDist[46] = 0.7113 ; popDist[47] = 0.7384 ; popDist[48] = 0.7496 ; popDist[49] = 0.7885 ; popDist[50] = 0.8156 ; popDist[51] = 0.8611 ; popDist[52] = 0.8983 ; popDist[53] = 0.9104 ; popDist[54] = 0.9383 ; popDist[55] = 0.9610 ; popDist[56] = 0.9706 ; popDist[57] = 0.9888 ; popDist[58] = 0.9959 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 45 && age <= 54 && race == 4 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0040 ; popDist[2] = 0.0066 ; popDist[3] = 0.0093 ; popDist[4] = 0.0167 ; popDist[5] = 0.0249 ; popDist[6] = 0.0277 ; popDist[7] = 0.0415 ; popDist[8] = 0.0593 ; popDist[9] = 0.0748 ; popDist[10] = 0.0906 ; popDist[11] = 0.1061 ; popDist[12] = 0.1189 ; popDist[13] = 0.1351 ; popDist[14] = 0.1492 ; popDist[15] = 0.1552 ; popDist[16] = 0.1632 ; popDist[17] = 0.1770 ; popDist[18] = 0.1971 ; popDist[19] = 0.2223 ; popDist[20] = 0.2258 ; popDist[21] = 0.2291 ; popDist[22] = 0.2477 ; popDist[23] = 0.2607 ; popDist[24] = 0.2782 ; popDist[25] = 0.2860 ; popDist[26] = 0.2984 ; popDist[27] = 0.3095 ; popDist[28] = 0.3117 ; popDist[29] = 0.3171 ; popDist[30] = 0.3316 ; popDist[31] = 0.3383 ; popDist[32] = 0.3492 ; popDist[33] = 0.3741 ; popDist[34] = 0.3942 ; popDist[35] = 0.3989 ; popDist[36] = 0.4130 ; popDist[37] = 0.4549 ; popDist[38] = 0.4723 ; popDist[39] = 0.4874 ; popDist[40] = 0.4911 ; popDist[41] = 0.5012 ; popDist[42] = 0.5362 ; popDist[43] = 0.5646 ; popDist[44] = 0.5873 ; popDist[45] = 0.6249 ; popDist[46] = 0.6619 ; popDist[47] = 0.6880 ; popDist[48] = 0.7031 ; popDist[49] = 0.7501 ; popDist[50] = 0.7835 ; popDist[51] = 0.8236 ; popDist[52] = 0.8650 ; popDist[53] = 0.8851 ; popDist[54] = 0.9114 ; popDist[55] = 0.9453 ; popDist[56] = 0.9558 ; popDist[57] = 0.9805 ; popDist[58] = 0.9924 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 1 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0008 ; popDist[2] = 0.0011 ; popDist[3] = 0.0012 ; popDist[4] = 0.0020 ; popDist[5] = 0.0026 ; popDist[6] = 0.0061 ; popDist[7] = 0.0109 ; popDist[8] = 0.0233 ; popDist[9] = 0.0260 ; popDist[10] = 0.0417 ; popDist[11] = 0.0548 ; popDist[12] = 0.0604 ; popDist[13] = 0.0932 ; popDist[14] = 0.1074 ; popDist[15] = 0.1089 ; popDist[16] = 0.1100 ; popDist[17] = 0.1136 ; popDist[18] = 0.1273 ; popDist[19] = 0.1376 ; popDist[20] = 0.1418 ; popDist[21] = 0.1457 ; popDist[22] = 0.1779 ; popDist[23] = 0.2488 ; popDist[24] = 0.2989 ; popDist[25] = 0.3421 ; popDist[26] = 0.3666 ; popDist[27] = 0.4263 ; popDist[28] = 0.4265 ; popDist[29] = 0.4274 ; popDist[30] = 0.4452 ; popDist[31] = 0.4493 ; popDist[32] = 0.4716 ; popDist[33] = 0.5075 ; popDist[34] = 0.5291 ; popDist[35] = 0.5393 ; popDist[36] = 0.5664 ; popDist[37] = 0.6075 ; popDist[38] = 0.6487 ; popDist[39] = 0.6596 ; popDist[40] = 0.6618 ; popDist[41] = 0.6675 ; popDist[42] = 0.6773 ; popDist[43] = 0.7155 ; popDist[44] = 0.7286 ; popDist[45] = 0.7354 ; popDist[46] = 0.7408 ; popDist[47] = 0.7714 ; popDist[48] = 0.7976 ; popDist[49] = 0.8445 ; popDist[50] = 0.8604 ; popDist[51] = 0.8716 ; popDist[52] = 0.8833 ; popDist[53] = 0.8998 ; popDist[54] = 0.9010 ; popDist[55] = 0.9074 ; popDist[56] = 0.9242 ; popDist[57] = 0.9492 ; popDist[58] = 0.9781 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 1 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0004 ; popDist[2] = 0.0005 ; popDist[3] = 0.0007 ; popDist[4] = 0.0010 ; popDist[5] = 0.0013 ; popDist[6] = 0.0029 ; popDist[7] = 0.0065 ; popDist[8] = 0.0186 ; popDist[9] = 0.0206 ; popDist[10] = 0.0411 ; popDist[11] = 0.0552 ; popDist[12] = 0.0600 ; popDist[13] = 0.0841 ; popDist[14] = 0.0960 ; popDist[15] = 0.0967 ; popDist[16] = 0.0972 ; popDist[17] = 0.0997 ; popDist[18] = 0.1135 ; popDist[19] = 0.1225 ; popDist[20] = 0.1257 ; popDist[21] = 0.1294 ; popDist[22] = 0.1629 ; popDist[23] = 0.2208 ; popDist[24] = 0.2574 ; popDist[25] = 0.2847 ; popDist[26] = 0.3056 ; popDist[27] = 0.3593 ; popDist[28] = 0.3595 ; popDist[29] = 0.3604 ; popDist[30] = 0.3805 ; popDist[31] = 0.3860 ; popDist[32] = 0.4064 ; popDist[33] = 0.4331 ; popDist[34] = 0.4534 ; popDist[35] = 0.4624 ; popDist[36] = 0.4930 ; popDist[37] = 0.5335 ; popDist[38] = 0.5814 ; popDist[39] = 0.5888 ; popDist[40] = 0.5899 ; popDist[41] = 0.5928 ; popDist[42] = 0.6010 ; popDist[43] = 0.6391 ; popDist[44] = 0.6555 ; popDist[45] = 0.6637 ; popDist[46] = 0.6702 ; popDist[47] = 0.7079 ; popDist[48] = 0.7400 ; popDist[49] = 0.7989 ; popDist[50] = 0.8237 ; popDist[51] = 0.8369 ; popDist[52] = 0.8528 ; popDist[53] = 0.8812 ; popDist[54] = 0.8829 ; popDist[55] = 0.8945 ; popDist[56] = 0.9075 ; popDist[57] = 0.9314 ; popDist[58] = 0.9629 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 1 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0001 ; popDist[2] = 0.0002 ; popDist[3] = 0.0002 ; popDist[4] = 0.0004 ; popDist[5] = 0.0006 ; popDist[6] = 0.0014 ; popDist[7] = 0.0035 ; popDist[8] = 0.0158 ; popDist[9] = 0.0169 ; popDist[10] = 0.0394 ; popDist[11] = 0.0508 ; popDist[12] = 0.0545 ; popDist[13] = 0.0689 ; popDist[14] = 0.0797 ; popDist[15] = 0.0802 ; popDist[16] = 0.0806 ; popDist[17] = 0.0820 ; popDist[18] = 0.0978 ; popDist[19] = 0.1043 ; popDist[20] = 0.1061 ; popDist[21] = 0.1082 ; popDist[22] = 0.1429 ; popDist[23] = 0.1955 ; popDist[24] = 0.2224 ; popDist[25] = 0.2415 ; popDist[26] = 0.2557 ; popDist[27] = 0.3050 ; popDist[28] = 0.3051 ; popDist[29] = 0.3057 ; popDist[30] = 0.3276 ; popDist[31] = 0.3323 ; popDist[32] = 0.3568 ; popDist[33] = 0.3752 ; popDist[34] = 0.3950 ; popDist[35] = 0.4049 ; popDist[36] = 0.4477 ; popDist[37] = 0.4921 ; popDist[38] = 0.5585 ; popDist[39] = 0.5624 ; popDist[40] = 0.5630 ; popDist[41] = 0.5645 ; popDist[42] = 0.5692 ; popDist[43] = 0.5976 ; popDist[44] = 0.6112 ; popDist[45] = 0.6179 ; popDist[46] = 0.6225 ; popDist[47] = 0.6585 ; popDist[48] = 0.6958 ; popDist[49] = 0.7499 ; popDist[50] = 0.7746 ; popDist[51] = 0.7874 ; popDist[52] = 0.8042 ; popDist[53] = 0.8434 ; popDist[54] = 0.8449 ; popDist[55] = 0.8597 ; popDist[56] = 0.8693 ; popDist[57] = 0.8947 ; popDist[58] = 0.9395 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 1 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0000 ; popDist[2] = 0.0000 ; popDist[3] = 0.0000 ; popDist[4] = 0.0000 ; popDist[5] = 0.0000 ; popDist[6] = 0.0002 ; popDist[7] = 0.0009 ; popDist[8] = 0.0101 ; popDist[9] = 0.0106 ; popDist[10] = 0.0252 ; popDist[11] = 0.0316 ; popDist[12] = 0.0341 ; popDist[13] = 0.0404 ; popDist[14] = 0.0514 ; popDist[15] = 0.0516 ; popDist[16] = 0.0518 ; popDist[17] = 0.0523 ; popDist[18] = 0.0696 ; popDist[19] = 0.0733 ; popDist[20] = 0.0743 ; popDist[21] = 0.0751 ; popDist[22] = 0.1029 ; popDist[23] = 0.1356 ; popDist[24] = 0.1516 ; popDist[25] = 0.1618 ; popDist[26] = 0.1696 ; popDist[27] = 0.2103 ; popDist[28] = 0.2103 ; popDist[29] = 0.2105 ; popDist[30] = 0.2292 ; popDist[31] = 0.2422 ; popDist[32] = 0.2846 ; popDist[33] = 0.2967 ; popDist[34] = 0.3217 ; popDist[35] = 0.3416 ; popDist[36] = 0.4125 ; popDist[37] = 0.4921 ; popDist[38] = 0.6126 ; popDist[39] = 0.6154 ; popDist[40] = 0.6157 ; popDist[41] = 0.6164 ; popDist[42] = 0.6184 ; popDist[43] = 0.6347 ; popDist[44] = 0.6419 ; popDist[45] = 0.6454 ; popDist[46] = 0.6480 ; popDist[47] = 0.6707 ; popDist[48] = 0.7037 ; popDist[49] = 0.7464 ; popDist[50] = 0.7662 ; popDist[51] = 0.7735 ; popDist[52] = 0.7859 ; popDist[53] = 0.8291 ; popDist[54] = 0.8301 ; popDist[55] = 0.8447 ; popDist[56] = 0.8516 ; popDist[57] = 0.8735 ; popDist[58] = 0.9235 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 2 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0164 ; popDist[2] = 0.0231 ; popDist[3] = 0.0428 ; popDist[4] = 0.0706 ; popDist[5] = 0.0909 ; popDist[6] = 0.1023 ; popDist[7] = 0.1156 ; popDist[8] = 0.1203 ; popDist[9] = 0.1518 ; popDist[10] = 0.1602 ; popDist[11] = 0.1692 ; popDist[12] = 0.2166 ; popDist[13] = 0.2220 ; popDist[14] = 0.2385 ; popDist[15] = 0.3121 ; popDist[16] = 0.3252 ; popDist[17] = 0.3735 ; popDist[18] = 0.3768 ; popDist[19] = 0.3792 ; popDist[20] = 0.4179 ; popDist[21] = 0.4613 ; popDist[22] = 0.4620 ; popDist[23] = 0.4631 ; popDist[24] = 0.4672 ; popDist[25] = 0.4822 ; popDist[26] = 0.5192 ; popDist[27] = 0.5225 ; popDist[28] = 0.5676 ; popDist[29] = 0.6499 ; popDist[30] = 0.6827 ; popDist[31] = 0.6831 ; popDist[32] = 0.6842 ; popDist[33] = 0.6950 ; popDist[34] = 0.6981 ; popDist[35] = 0.6988 ; popDist[36] = 0.7004 ; popDist[37] = 0.7065 ; popDist[38] = 0.7081 ; popDist[39] = 0.7269 ; popDist[40] = 0.7902 ; popDist[41] = 0.8197 ; popDist[42] = 0.8296 ; popDist[43] = 0.8363 ; popDist[44] = 0.8378 ; popDist[45] = 0.8439 ; popDist[46] = 0.8501 ; popDist[47] = 0.8511 ; popDist[48] = 0.8527 ; popDist[49] = 0.8573 ; popDist[50] = 0.8652 ; popDist[51] = 0.8693 ; popDist[52] = 0.8766 ; popDist[53] = 0.8773 ; popDist[54] = 0.9373 ; popDist[55] = 0.9636 ; popDist[56] = 0.9860 ; popDist[57] = 0.9983 ; popDist[58] = 0.9995 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 2 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0090 ; popDist[2] = 0.0129 ; popDist[3] = 0.0235 ; popDist[4] = 0.0428 ; popDist[5] = 0.0561 ; popDist[6] = 0.0624 ; popDist[7] = 0.0742 ; popDist[8] = 0.0799 ; popDist[9] = 0.1092 ; popDist[10] = 0.1224 ; popDist[11] = 0.1339 ; popDist[12] = 0.1868 ; popDist[13] = 0.1913 ; popDist[14] = 0.2083 ; popDist[15] = 0.2595 ; popDist[16] = 0.2691 ; popDist[17] = 0.3083 ; popDist[18] = 0.3125 ; popDist[19] = 0.3152 ; popDist[20] = 0.3516 ; popDist[21] = 0.4003 ; popDist[22] = 0.4012 ; popDist[23] = 0.4018 ; popDist[24] = 0.4053 ; popDist[25] = 0.4170 ; popDist[26] = 0.4566 ; popDist[27] = 0.4599 ; popDist[28] = 0.4866 ; popDist[29] = 0.5834 ; popDist[30] = 0.6292 ; popDist[31] = 0.6298 ; popDist[32] = 0.6307 ; popDist[33] = 0.6405 ; popDist[34] = 0.6441 ; popDist[35] = 0.6449 ; popDist[36] = 0.6473 ; popDist[37] = 0.6551 ; popDist[38] = 0.6578 ; popDist[39] = 0.6734 ; popDist[40] = 0.7151 ; popDist[41] = 0.7347 ; popDist[42] = 0.7446 ; popDist[43] = 0.7523 ; popDist[44] = 0.7549 ; popDist[45] = 0.7638 ; popDist[46] = 0.7722 ; popDist[47] = 0.7734 ; popDist[48] = 0.7755 ; popDist[49] = 0.7827 ; popDist[50] = 0.7976 ; popDist[51] = 0.8033 ; popDist[52] = 0.8153 ; popDist[53] = 0.8166 ; popDist[54] = 0.9027 ; popDist[55] = 0.9624 ; popDist[56] = 0.9839 ; popDist[57] = 0.9981 ; popDist[58] = 0.9994 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 2 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0044 ; popDist[2] = 0.0069 ; popDist[3] = 0.0128 ; popDist[4] = 0.0255 ; popDist[5] = 0.0336 ; popDist[6] = 0.0374 ; popDist[7] = 0.0466 ; popDist[8] = 0.0546 ; popDist[9] = 0.0788 ; popDist[10] = 0.0982 ; popDist[11] = 0.1109 ; popDist[12] = 0.1643 ; popDist[13] = 0.1678 ; popDist[14] = 0.1885 ; popDist[15] = 0.2270 ; popDist[16] = 0.2331 ; popDist[17] = 0.2623 ; popDist[18] = 0.2688 ; popDist[19] = 0.2717 ; popDist[20] = 0.2999 ; popDist[21] = 0.3367 ; popDist[22] = 0.3383 ; popDist[23] = 0.3394 ; popDist[24] = 0.3430 ; popDist[25] = 0.3538 ; popDist[26] = 0.3893 ; popDist[27] = 0.3937 ; popDist[28] = 0.4110 ; popDist[29] = 0.4982 ; popDist[30] = 0.5644 ; popDist[31] = 0.5651 ; popDist[32] = 0.5666 ; popDist[33] = 0.5753 ; popDist[34] = 0.5800 ; popDist[35] = 0.5811 ; popDist[36] = 0.5854 ; popDist[37] = 0.5971 ; popDist[38] = 0.6020 ; popDist[39] = 0.6132 ; popDist[40] = 0.6409 ; popDist[41] = 0.6544 ; popDist[42] = 0.6626 ; popDist[43] = 0.6702 ; popDist[44] = 0.6729 ; popDist[45] = 0.6831 ; popDist[46] = 0.6912 ; popDist[47] = 0.6928 ; popDist[48] = 0.6959 ; popDist[49] = 0.7047 ; popDist[50] = 0.7248 ; popDist[51] = 0.7323 ; popDist[52] = 0.7492 ; popDist[53] = 0.7514 ; popDist[54] = 0.8517 ; popDist[55] = 0.9531 ; popDist[56] = 0.9749 ; popDist[57] = 0.9956 ; popDist[58] = 0.9985 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 2 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0023 ; popDist[2] = 0.0035 ; popDist[3] = 0.0064 ; popDist[4] = 0.0116 ; popDist[5] = 0.0158 ; popDist[6] = 0.0173 ; popDist[7] = 0.0221 ; popDist[8] = 0.0311 ; popDist[9] = 0.0451 ; popDist[10] = 0.0642 ; popDist[11] = 0.0750 ; popDist[12] = 0.1275 ; popDist[13] = 0.1302 ; popDist[14] = 0.1613 ; popDist[15] = 0.1882 ; popDist[16] = 0.1912 ; popDist[17] = 0.2104 ; popDist[18] = 0.2214 ; popDist[19] = 0.2235 ; popDist[20] = 0.2468 ; popDist[21] = 0.2701 ; popDist[22] = 0.2717 ; popDist[23] = 0.2724 ; popDist[24] = 0.2760 ; popDist[25] = 0.2848 ; popDist[26] = 0.3147 ; popDist[27] = 0.3200 ; popDist[28] = 0.3308 ; popDist[29] = 0.3968 ; popDist[30] = 0.4811 ; popDist[31] = 0.4840 ; popDist[32] = 0.4881 ; popDist[33] = 0.4969 ; popDist[34] = 0.5056 ; popDist[35] = 0.5092 ; popDist[36] = 0.5201 ; popDist[37] = 0.5509 ; popDist[38] = 0.5642 ; popDist[39] = 0.5758 ; popDist[40] = 0.5940 ; popDist[41] = 0.6045 ; popDist[42] = 0.6100 ; popDist[43] = 0.6166 ; popDist[44] = 0.6188 ; popDist[45] = 0.6272 ; popDist[46] = 0.6336 ; popDist[47] = 0.6350 ; popDist[48] = 0.6393 ; popDist[49] = 0.6501 ; popDist[50] = 0.6742 ; popDist[51] = 0.6806 ; popDist[52] = 0.6992 ; popDist[53] = 0.7027 ; popDist[54] = 0.7934 ; popDist[55] = 0.9419 ; popDist[56] = 0.9652 ; popDist[57] = 0.9921 ; popDist[58] = 0.9966 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 3 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0389 ; popDist[2] = 0.0572 ; popDist[3] = 0.0786 ; popDist[4] = 0.1180 ; popDist[5] = 0.1515 ; popDist[6] = 0.1751 ; popDist[7] = 0.2067 ; popDist[8] = 0.2182 ; popDist[9] = 0.2637 ; popDist[10] = 0.2744 ; popDist[11] = 0.2892 ; popDist[12] = 0.3020 ; popDist[13] = 0.3335 ; popDist[14] = 0.3403 ; popDist[15] = 0.3575 ; popDist[16] = 0.3901 ; popDist[17] = 0.4251 ; popDist[18] = 0.4304 ; popDist[19] = 0.4557 ; popDist[20] = 0.4609 ; popDist[21] = 0.4658 ; popDist[22] = 0.4729 ; popDist[23] = 0.4847 ; popDist[24] = 0.5001 ; popDist[25] = 0.5156 ; popDist[26] = 0.5274 ; popDist[27] = 0.5337 ; popDist[28] = 0.5439 ; popDist[29] = 0.5492 ; popDist[30] = 0.5546 ; popDist[31] = 0.5550 ; popDist[32] = 0.5569 ; popDist[33] = 0.5879 ; popDist[34] = 0.5949 ; popDist[35] = 0.5959 ; popDist[36] = 0.5985 ; popDist[37] = 0.6092 ; popDist[38] = 0.6124 ; popDist[39] = 0.6361 ; popDist[40] = 0.6495 ; popDist[41] = 0.6880 ; popDist[42] = 0.7483 ; popDist[43] = 0.7754 ; popDist[44] = 0.7944 ; popDist[45] = 0.8300 ; popDist[46] = 0.8682 ; popDist[47] = 0.8846 ; popDist[48] = 0.8911 ; popDist[49] = 0.9170 ; popDist[50] = 0.9259 ; popDist[51] = 0.9435 ; popDist[52] = 0.9524 ; popDist[53] = 0.9557 ; popDist[54] = 0.9681 ; popDist[55] = 0.9731 ; popDist[56] = 0.9835 ; popDist[57] = 0.9944 ; popDist[58] = 0.9985 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 3 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0211 ; popDist[2] = 0.0314 ; popDist[3] = 0.0430 ; popDist[4] = 0.0700 ; popDist[5] = 0.0917 ; popDist[6] = 0.1048 ; popDist[7] = 0.1325 ; popDist[8] = 0.1462 ; popDist[9] = 0.1878 ; popDist[10] = 0.2048 ; popDist[11] = 0.2241 ; popDist[12] = 0.2382 ; popDist[13] = 0.2663 ; popDist[14] = 0.2732 ; popDist[15] = 0.2850 ; popDist[16] = 0.3090 ; popDist[17] = 0.3373 ; popDist[18] = 0.3437 ; popDist[19] = 0.3713 ; popDist[20] = 0.3762 ; popDist[21] = 0.3813 ; popDist[22] = 0.3903 ; popDist[23] = 0.4020 ; popDist[24] = 0.4155 ; popDist[25] = 0.4273 ; popDist[26] = 0.4396 ; popDist[27] = 0.4468 ; popDist[28] = 0.4526 ; popDist[29] = 0.4586 ; popDist[30] = 0.4655 ; popDist[31] = 0.4663 ; popDist[32] = 0.4684 ; popDist[33] = 0.4967 ; popDist[34] = 0.5047 ; popDist[35] = 0.5057 ; popDist[36] = 0.5094 ; popDist[37] = 0.5216 ; popDist[38] = 0.5271 ; popDist[39] = 0.5467 ; popDist[40] = 0.5557 ; popDist[41] = 0.5812 ; popDist[42] = 0.6393 ; popDist[43] = 0.6718 ; popDist[44] = 0.7010 ; popDist[45] = 0.7519 ; popDist[46] = 0.8053 ; popDist[47] = 0.8294 ; popDist[48] = 0.8394 ; popDist[49] = 0.8780 ; popDist[50] = 0.8946 ; popDist[51] = 0.9194 ; popDist[52] = 0.9338 ; popDist[53] = 0.9401 ; popDist[54] = 0.9574 ; popDist[55] = 0.9687 ; popDist[56] = 0.9785 ; popDist[57] = 0.9910 ; popDist[58] = 0.9966 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 3 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0104 ; popDist[2] = 0.0171 ; popDist[3] = 0.0236 ; popDist[4] = 0.0416 ; popDist[5] = 0.0550 ; popDist[6] = 0.0625 ; popDist[7] = 0.0843 ; popDist[8] = 0.1026 ; popDist[9] = 0.1368 ; popDist[10] = 0.1611 ; popDist[11] = 0.1815 ; popDist[12] = 0.1953 ; popDist[13] = 0.2176 ; popDist[14] = 0.2258 ; popDist[15] = 0.2345 ; popDist[16] = 0.2490 ; popDist[17] = 0.2698 ; popDist[18] = 0.2800 ; popDist[19] = 0.3059 ; popDist[20] = 0.3096 ; popDist[21] = 0.3135 ; popDist[22] = 0.3254 ; popDist[23] = 0.3395 ; popDist[24] = 0.3529 ; popDist[25] = 0.3639 ; popDist[26] = 0.3753 ; popDist[27] = 0.3841 ; popDist[28] = 0.3877 ; popDist[29] = 0.3931 ; popDist[30] = 0.4034 ; popDist[31] = 0.4042 ; popDist[32] = 0.4076 ; popDist[33] = 0.4337 ; popDist[34] = 0.4443 ; popDist[35] = 0.4457 ; popDist[36] = 0.4532 ; popDist[37] = 0.4709 ; popDist[38] = 0.4806 ; popDist[39] = 0.4945 ; popDist[40] = 0.5004 ; popDist[41] = 0.5178 ; popDist[42] = 0.5650 ; popDist[43] = 0.5971 ; popDist[44] = 0.6290 ; popDist[45] = 0.6857 ; popDist[46] = 0.7362 ; popDist[47] = 0.7670 ; popDist[48] = 0.7824 ; popDist[49] = 0.8298 ; popDist[50] = 0.8520 ; popDist[51] = 0.8837 ; popDist[52] = 0.9042 ; popDist[53] = 0.9160 ; popDist[54] = 0.9362 ; popDist[55] = 0.9549 ; popDist[56] = 0.9647 ; popDist[57] = 0.9823 ; popDist[58] = 0.9925 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 3 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0056 ; popDist[2] = 0.0087 ; popDist[3] = 0.0119 ; popDist[4] = 0.0188 ; popDist[5] = 0.0256 ; popDist[6] = 0.0290 ; popDist[7] = 0.0409 ; popDist[8] = 0.0619 ; popDist[9] = 0.0814 ; popDist[10] = 0.1055 ; popDist[11] = 0.1232 ; popDist[12] = 0.1371 ; popDist[13] = 0.1514 ; popDist[14] = 0.1642 ; popDist[15] = 0.1702 ; popDist[16] = 0.1776 ; popDist[17] = 0.1911 ; popDist[18] = 0.2077 ; popDist[19] = 0.2307 ; popDist[20] = 0.2337 ; popDist[21] = 0.2363 ; popDist[22] = 0.2511 ; popDist[23] = 0.2645 ; popDist[24] = 0.2765 ; popDist[25] = 0.2853 ; popDist[26] = 0.2946 ; popDist[27] = 0.3053 ; popDist[28] = 0.3076 ; popDist[29] = 0.3120 ; popDist[30] = 0.3254 ; popDist[31] = 0.3290 ; popDist[32] = 0.3383 ; popDist[33] = 0.3637 ; popDist[34] = 0.3841 ; popDist[35] = 0.3889 ; popDist[36] = 0.4072 ; popDist[37] = 0.4569 ; popDist[38] = 0.4825 ; popDist[39] = 0.4973 ; popDist[40] = 0.5009 ; popDist[41] = 0.5144 ; popDist[42] = 0.5440 ; popDist[43] = 0.5721 ; popDist[44] = 0.5973 ; popDist[45] = 0.6435 ; popDist[46] = 0.6837 ; popDist[47] = 0.7136 ; popDist[48] = 0.7342 ; popDist[49] = 0.7917 ; popDist[50] = 0.8183 ; popDist[51] = 0.8458 ; popDist[52] = 0.8689 ; popDist[53] = 0.8887 ; popDist[54] = 0.9068 ; popDist[55] = 0.9342 ; popDist[56] = 0.9448 ; popDist[57] = 0.9682 ; popDist[58] = 0.9856 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 4 && houseincome == 1 ) { popDist[0] = 0 ; popDist[1] = 0.0343 ; popDist[2] = 0.0502 ; popDist[3] = 0.0694 ; popDist[4] = 0.1087 ; popDist[5] = 0.1431 ; popDist[6] = 0.1647 ; popDist[7] = 0.1953 ; popDist[8] = 0.2056 ; popDist[9] = 0.2443 ; popDist[10] = 0.2523 ; popDist[11] = 0.2657 ; popDist[12] = 0.2792 ; popDist[13] = 0.3119 ; popDist[14] = 0.3190 ; popDist[15] = 0.3373 ; popDist[16] = 0.3710 ; popDist[17] = 0.4088 ; popDist[18] = 0.4142 ; popDist[19] = 0.4382 ; popDist[20] = 0.4447 ; popDist[21] = 0.4511 ; popDist[22] = 0.4606 ; popDist[23] = 0.4736 ; popDist[24] = 0.4916 ; popDist[25] = 0.5076 ; popDist[26] = 0.5213 ; popDist[27] = 0.5282 ; popDist[28] = 0.5381 ; popDist[29] = 0.5464 ; popDist[30] = 0.5515 ; popDist[31] = 0.5521 ; popDist[32] = 0.5542 ; popDist[33] = 0.5835 ; popDist[34] = 0.5899 ; popDist[35] = 0.5910 ; popDist[36] = 0.5932 ; popDist[37] = 0.6019 ; popDist[38] = 0.6053 ; popDist[39] = 0.6312 ; popDist[40] = 0.6460 ; popDist[41] = 0.6796 ; popDist[42] = 0.7450 ; popDist[43] = 0.7757 ; popDist[44] = 0.7926 ; popDist[45] = 0.8202 ; popDist[46] = 0.8525 ; popDist[47] = 0.8681 ; popDist[48] = 0.8735 ; popDist[49] = 0.8957 ; popDist[50] = 0.9064 ; popDist[51] = 0.9293 ; popDist[52] = 0.9460 ; popDist[53] = 0.9491 ; popDist[54] = 0.9676 ; popDist[55] = 0.9746 ; popDist[56] = 0.9859 ; popDist[57] = 0.9964 ; popDist[58] = 0.9993 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 4 && houseincome == 2 ) { popDist[0] = 0 ; popDist[1] = 0.0184 ; popDist[2] = 0.0273 ; popDist[3] = 0.0375 ; popDist[4] = 0.0646 ; popDist[5] = 0.0864 ; popDist[6] = 0.0984 ; popDist[7] = 0.1253 ; popDist[8] = 0.1374 ; popDist[9] = 0.1729 ; popDist[10] = 0.1859 ; popDist[11] = 0.2026 ; popDist[12] = 0.2171 ; popDist[13] = 0.2461 ; popDist[14] = 0.2535 ; popDist[15] = 0.2659 ; popDist[16] = 0.2904 ; popDist[17] = 0.3207 ; popDist[18] = 0.3273 ; popDist[19] = 0.3538 ; popDist[20] = 0.3597 ; popDist[21] = 0.3664 ; popDist[22] = 0.3783 ; popDist[23] = 0.3912 ; popDist[24] = 0.4067 ; popDist[25] = 0.4188 ; popDist[26] = 0.4335 ; popDist[27] = 0.4412 ; popDist[28] = 0.4470 ; popDist[29] = 0.4563 ; popDist[30] = 0.4640 ; popDist[31] = 0.4649 ; popDist[32] = 0.4673 ; popDist[33] = 0.4939 ; popDist[34] = 0.5011 ; popDist[35] = 0.5023 ; popDist[36] = 0.5057 ; popDist[37] = 0.5167 ; popDist[38] = 0.5205 ; popDist[39] = 0.5412 ; popDist[40] = 0.5506 ; popDist[41] = 0.5724 ; popDist[42] = 0.6343 ; popDist[43] = 0.6710 ; popDist[44] = 0.6963 ; popDist[45] = 0.7354 ; popDist[46] = 0.7790 ; popDist[47] = 0.8017 ; popDist[48] = 0.8096 ; popDist[49] = 0.8434 ; popDist[50] = 0.8636 ; popDist[51] = 0.8961 ; popDist[52] = 0.9233 ; popDist[53] = 0.9297 ; popDist[54] = 0.9561 ; popDist[55] = 0.9719 ; popDist[56] = 0.9826 ; popDist[57] = 0.9945 ; popDist[58] = 0.9984 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 4 && houseincome == 3 ) { popDist[0] = 0 ; popDist[1] = 0.0091 ; popDist[2] = 0.0148 ; popDist[3] = 0.0206 ; popDist[4] = 0.0380 ; popDist[5] = 0.0514 ; popDist[6] = 0.0582 ; popDist[7] = 0.0794 ; popDist[8] = 0.0955 ; popDist[9] = 0.1239 ; popDist[10] = 0.1423 ; popDist[11] = 0.1604 ; popDist[12] = 0.1751 ; popDist[13] = 0.1979 ; popDist[14] = 0.2064 ; popDist[15] = 0.2154 ; popDist[16] = 0.2304 ; popDist[17] = 0.2528 ; popDist[18] = 0.2628 ; popDist[19] = 0.2872 ; popDist[20] = 0.2915 ; popDist[21] = 0.2965 ; popDist[22] = 0.3126 ; popDist[23] = 0.3277 ; popDist[24] = 0.3427 ; popDist[25] = 0.3543 ; popDist[26] = 0.3672 ; popDist[27] = 0.3761 ; popDist[28] = 0.3798 ; popDist[29] = 0.3880 ; popDist[30] = 0.3990 ; popDist[31] = 0.3999 ; popDist[32] = 0.4041 ; popDist[33] = 0.4283 ; popDist[34] = 0.4382 ; popDist[35] = 0.4397 ; popDist[36] = 0.4464 ; popDist[37] = 0.4625 ; popDist[38] = 0.4704 ; popDist[39] = 0.4854 ; popDist[40] = 0.4918 ; popDist[41] = 0.5065 ; popDist[42] = 0.5572 ; popDist[43] = 0.5924 ; popDist[44] = 0.6201 ; popDist[45] = 0.6638 ; popDist[46] = 0.7047 ; popDist[47] = 0.7335 ; popDist[48] = 0.7458 ; popDist[49] = 0.7866 ; popDist[50] = 0.8129 ; popDist[51] = 0.8538 ; popDist[52] = 0.8926 ; popDist[53] = 0.9044 ; popDist[54] = 0.9344 ; popDist[55] = 0.9614 ; popDist[56] = 0.9717 ; popDist[57] = 0.9884 ; popDist[58] = 0.9958 ; popDist[59] = 1 ;}
else if (gender == 1 && age >= 55 && age <= 64 && race == 4 && houseincome == 4 ) { popDist[0] = 0 ; popDist[1] = 0.0046 ; popDist[2] = 0.0073 ; popDist[3] = 0.0103 ; popDist[4] = 0.0175 ; popDist[5] = 0.0241 ; popDist[6] = 0.0271 ; popDist[7] = 0.0388 ; popDist[8] = 0.0572 ; popDist[9] = 0.0739 ; popDist[10] = 0.0924 ; popDist[11] = 0.1081 ; popDist[12] = 0.1222 ; popDist[13] = 0.1374 ; popDist[14] = 0.1505 ; popDist[15] = 0.1572 ; popDist[16] = 0.1651 ; popDist[17] = 0.1800 ; popDist[18] = 0.1967 ; popDist[19] = 0.2181 ; popDist[20] = 0.2217 ; popDist[21] = 0.2248 ; popDist[22] = 0.2447 ; popDist[23] = 0.2592 ; popDist[24] = 0.2731 ; popDist[25] = 0.2819 ; popDist[26] = 0.2928 ; popDist[27] = 0.3040 ; popDist[28] = 0.3064 ; popDist[29] = 0.3125 ; popDist[30] = 0.3265 ; popDist[31] = 0.3311 ; popDist[32] = 0.3419 ; popDist[33] = 0.3664 ; popDist[34] = 0.3847 ; popDist[35] = 0.3896 ; popDist[36] = 0.4060 ; popDist[37] = 0.4489 ; popDist[38] = 0.4691 ; popDist[39] = 0.4846 ; popDist[40] = 0.4884 ; popDist[41] = 0.5002 ; popDist[42] = 0.5326 ; popDist[43] = 0.5641 ; popDist[44] = 0.5865 ; popDist[45] = 0.6221 ; popDist[46] = 0.6551 ; popDist[47] = 0.6826 ; popDist[48] = 0.6989 ; popDist[49] = 0.7490 ; popDist[50] = 0.7808 ; popDist[51] = 0.8166 ; popDist[52] = 0.8598 ; popDist[53] = 0.8796 ; popDist[54] = 0.9076 ; popDist[55] = 0.9472 ; popDist[56] = 0.9584 ; popDist[57] = 0.9805 ; popDist[58] = 0.9923 ; popDist[59] = 1 ;}
}