sapor 0.1b1 → 0.2a1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. checksums.yaml +5 -5
  2. data/Example-Catalonia.md +361 -0
  3. data/Example-Flanders.md +486 -0
  4. data/Example-Greece.md +25 -0
  5. data/Example-Oslo.md +678 -0
  6. data/Example-UnitedKingdom-Referendum.md +132 -0
  7. data/Examples.md +9 -355
  8. data/README.md +41 -8
  9. data/bin/create_installation_package.sh +2 -2
  10. data/bin/install.sh +1 -1
  11. data/bin/sapor.rb +4 -2
  12. data/bin/sapor.sh +10 -9
  13. data/data/hu/hungary-2014.txt +1680 -0
  14. data/data/hu/hungary_2014_screen_scraper.rb +48 -0
  15. data/data/hu/hungary_2014_to_psv.rb +80 -0
  16. data/data/hu/index-2014.txt +106 -0
  17. data/data/pl/2015-gl-lis-okr.csv +42 -0
  18. data/data/pl/poland_2015_to_psv.rb +79 -0
  19. data/data/pl/poland_2015_to_psv_with_ko_and_rsw.rb +94 -0
  20. data/data/pl/poland_2015_to_psv_with_ko_konf_kp_l_and_zp.rb +100 -0
  21. data/data/pl/poland_2015_to_psv_with_ko_sld_and_wi.rb +92 -0
  22. data/data/pl/poland_2015_to_psv_with_sld.rb +84 -0
  23. data/data/pl/poland_2015_to_psv_with_sld_and_wi.rb +85 -0
  24. data/data/uk/inject_ukip_2015_as_brexit_2019_in_2017.rb +54 -0
  25. data/data/uk/united_kingdom_2015.txt +651 -0
  26. data/data/uk/united_kingdom_2015_to_psv.rb +104 -0
  27. data/data/uk/united_kingdom_2017.txt +651 -0
  28. data/data/uk/united_kingdom_2017_to_psv.rb +104 -0
  29. data/data/uk/united_kingdom_2017_to_psv_with_brexit_and_chuk.rb +113 -0
  30. data/data/uk/united_kingdom_2017_to_psv_with_tig.rb +111 -0
  31. data/lib/sapor/binomials_cache.rb +1 -1
  32. data/lib/sapor/combinations_distribution.rb +43 -1
  33. data/lib/sapor/denominators.rb +67 -0
  34. data/lib/sapor/dichotomies.rb +41 -1
  35. data/lib/sapor/dichotomy.rb +31 -5
  36. data/lib/sapor/first_past_the_post.rb +6 -2
  37. data/lib/sapor/largest_remainder.rb +118 -0
  38. data/lib/sapor/log4r_logger.rb +1 -1
  39. data/lib/sapor/log_facade.rb +1 -1
  40. data/lib/sapor/{leveled_proportional.rb → multi_district_leveled_proportional.rb} +7 -7
  41. data/lib/sapor/{proportional.rb → multi_district_proportional.rb} +27 -32
  42. data/lib/sapor/multi_district_variable_threshold_proportional.rb +128 -0
  43. data/lib/sapor/number_formatter.rb +1 -1
  44. data/lib/sapor/options.rb +73 -0
  45. data/lib/sapor/poll.rb +178 -29
  46. data/lib/sapor/polychotomy.rb +100 -259
  47. data/lib/sapor/pseudorandom_multirange_enumerator.rb +1 -1
  48. data/lib/sapor/referendum_polychotomy.rb +165 -0
  49. data/lib/sapor/regional_data/area.rb +4 -2
  50. data/lib/sapor/regional_data/austria.rb +84 -0
  51. data/lib/sapor/regional_data/belgium-brussels-2014.psv +46 -0
  52. data/lib/sapor/regional_data/belgium-brussels-20190526.psv +33 -0
  53. data/lib/sapor/regional_data/belgium-flanders-2014.psv +80 -0
  54. data/lib/sapor/regional_data/belgium-flanders-20190526.psv +74 -0
  55. data/lib/sapor/regional_data/belgium-wallonia-2014.psv +114 -0
  56. data/lib/sapor/regional_data/belgium-wallonia-20190526.psv +93 -0
  57. data/lib/sapor/regional_data/belgium.rb +97 -0
  58. data/lib/sapor/regional_data/belgium_brussels.rb +62 -0
  59. data/lib/sapor/regional_data/belgium_flanders.rb +64 -0
  60. data/lib/sapor/regional_data/belgium_wallonia.rb +63 -0
  61. data/lib/sapor/regional_data/catalonia-2012-2015.psv +1 -1
  62. data/lib/sapor/regional_data/catalonia-2012.psv +1 -1
  63. data/lib/sapor/regional_data/catalonia-2015-jxcat.psv +68 -0
  64. data/lib/sapor/regional_data/catalonia-2015-no-jxsi.psv +68 -0
  65. data/lib/sapor/regional_data/catalonia-2015.psv +63 -0
  66. data/lib/sapor/regional_data/catalonia-jxcat.rb +109 -0
  67. data/lib/sapor/regional_data/catalonia-no-jxsi.rb +96 -0
  68. data/lib/sapor/regional_data/catalonia.rb +27 -21
  69. data/lib/sapor/regional_data/denmark-20150618-with-e-and-p.psv +164 -0
  70. data/lib/sapor/regional_data/denmark-20150618-with-e.psv +153 -0
  71. data/lib/sapor/regional_data/denmark-20150618-with-p.psv +153 -0
  72. data/lib/sapor/regional_data/denmark-20150618.psv +142 -0
  73. data/lib/sapor/regional_data/denmark.rb +128 -0
  74. data/lib/sapor/regional_data/denmark_with_e.rb +128 -0
  75. data/lib/sapor/regional_data/denmark_with_e_and_p.rb +128 -0
  76. data/lib/sapor/regional_data/denmark_with_p.rb +128 -0
  77. data/lib/sapor/regional_data/estonia.rb +88 -0
  78. data/lib/sapor/regional_data/european-union-great-britain-20140522-brexit-chuk.psv +172 -0
  79. data/lib/sapor/regional_data/european-union-great-britain-20140522.psv +146 -0
  80. data/lib/sapor/regional_data/european-union-great-britain-20190523.psv +141 -0
  81. data/lib/sapor/regional_data/european-union-ireland-2014-ia-ri-sd.psv +64 -0
  82. data/lib/sapor/regional_data/european-union-ireland-2014-ia-sd.psv +60 -0
  83. data/lib/sapor/regional_data/european-union-ireland-2014-ia.psv +56 -0
  84. data/lib/sapor/regional_data/european-union-ireland-2014-sd.psv +56 -0
  85. data/lib/sapor/regional_data/european-union-ireland-2014.psv +50 -0
  86. data/lib/sapor/regional_data/european-union-ireland-20190524-ia.psv +58 -0
  87. data/lib/sapor/regional_data/european-union-ireland-20190524.psv +52 -0
  88. data/lib/sapor/regional_data/european_union_27_austria.rb +76 -0
  89. data/lib/sapor/regional_data/european_union_27_croatia.rb +81 -0
  90. data/lib/sapor/regional_data/european_union_27_denmark.rb +77 -0
  91. data/lib/sapor/regional_data/european_union_27_estonia.rb +74 -0
  92. data/lib/sapor/regional_data/european_union_27_finland.rb +74 -0
  93. data/lib/sapor/regional_data/european_union_27_ireland.rb +96 -0
  94. data/lib/sapor/regional_data/european_union_27_ireland_with_ia.rb +97 -0
  95. data/lib/sapor/regional_data/european_union_27_italy.rb +83 -0
  96. data/lib/sapor/regional_data/european_union_27_netherlands.rb +81 -0
  97. data/lib/sapor/regional_data/european_union_27_poland.rb +79 -0
  98. data/lib/sapor/regional_data/european_union_27_romania.rb +78 -0
  99. data/lib/sapor/regional_data/european_union_27_slovakia.rb +80 -0
  100. data/lib/sapor/regional_data/european_union_27_spain.rb +82 -0
  101. data/lib/sapor/regional_data/european_union_27_sweden.rb +76 -0
  102. data/lib/sapor/regional_data/european_union_austria.rb +76 -0
  103. data/lib/sapor/regional_data/european_union_bulgaria.rb +81 -0
  104. data/lib/sapor/regional_data/european_union_croatia.rb +81 -0
  105. data/lib/sapor/regional_data/european_union_cyprus.rb +72 -0
  106. data/lib/sapor/regional_data/european_union_czech_republic.rb +82 -0
  107. data/lib/sapor/regional_data/european_union_denmark.rb +77 -0
  108. data/lib/sapor/regional_data/european_union_estonia.rb +74 -0
  109. data/lib/sapor/regional_data/european_union_finland.rb +74 -0
  110. data/lib/sapor/regional_data/european_union_flanders.rb +74 -0
  111. data/lib/sapor/regional_data/european_union_france.rb +84 -0
  112. data/lib/sapor/regional_data/european_union_france_2019.rb +84 -0
  113. data/lib/sapor/regional_data/european_union_french_community_of_belgium.rb +73 -0
  114. data/lib/sapor/regional_data/european_union_germany.rb +86 -0
  115. data/lib/sapor/regional_data/european_union_great_britain.rb +98 -0
  116. data/lib/sapor/regional_data/european_union_greece.rb +77 -0
  117. data/lib/sapor/regional_data/european_union_hungary.rb +76 -0
  118. data/lib/sapor/regional_data/european_union_ireland.rb +96 -0
  119. data/lib/sapor/regional_data/european_union_ireland_with_ia.rb +97 -0
  120. data/lib/sapor/regional_data/european_union_italy.rb +83 -0
  121. data/lib/sapor/regional_data/european_union_latvia.rb +81 -0
  122. data/lib/sapor/regional_data/european_union_lithuania.rb +80 -0
  123. data/lib/sapor/regional_data/european_union_luxembourg.rb +75 -0
  124. data/lib/sapor/regional_data/european_union_malta.rb +71 -0
  125. data/lib/sapor/regional_data/european_union_netherlands.rb +81 -0
  126. data/lib/sapor/regional_data/european_union_northern_ireland.rb +75 -0
  127. data/lib/sapor/regional_data/european_union_poland.rb +79 -0
  128. data/lib/sapor/regional_data/european_union_portugal.rb +75 -0
  129. data/lib/sapor/regional_data/european_union_romania.rb +78 -0
  130. data/lib/sapor/regional_data/european_union_slovakia.rb +81 -0
  131. data/lib/sapor/regional_data/european_union_slovenia.rb +85 -0
  132. data/lib/sapor/regional_data/european_union_spain.rb +82 -0
  133. data/lib/sapor/regional_data/european_union_sweden.rb +76 -0
  134. data/lib/sapor/regional_data/finland-20150419-with-sin.psv +224 -0
  135. data/lib/sapor/regional_data/finland-20150419.psv +212 -0
  136. data/lib/sapor/regional_data/finland.rb +107 -0
  137. data/lib/sapor/regional_data/finland_with_sin.rb +107 -0
  138. data/lib/sapor/regional_data/flanders-2014.psv +96 -0
  139. data/lib/sapor/regional_data/flanders-20190526.psv +87 -0
  140. data/lib/sapor/regional_data/flanders.rb +115 -0
  141. data/lib/sapor/regional_data/france.rb +38 -0
  142. data/lib/sapor/regional_data/greece.rb +92 -0
  143. data/lib/sapor/regional_data/hungary-2014.psv +2104 -0
  144. data/lib/sapor/regional_data/hungary.rb +116 -0
  145. data/lib/sapor/regional_data/iceland-20161029-midflokkurinn.psv +94 -0
  146. data/lib/sapor/regional_data/iceland-20161029.psv +88 -0
  147. data/lib/sapor/regional_data/iceland-20171028.psv +85 -0
  148. data/lib/sapor/regional_data/iceland.rb +133 -0
  149. data/lib/sapor/regional_data/latvia-20141004-kpv-p-par.psv +109 -0
  150. data/lib/sapor/regional_data/latvia-20141004-kpv-par.psv +103 -0
  151. data/lib/sapor/regional_data/latvia-20141004-kpv.psv +97 -0
  152. data/lib/sapor/regional_data/latvia-20141004.psv +89 -0
  153. data/lib/sapor/regional_data/latvia.rb +112 -0
  154. data/lib/sapor/regional_data/latvia_kpv.rb +112 -0
  155. data/lib/sapor/regional_data/latvia_kpv_p_par.rb +112 -0
  156. data/lib/sapor/regional_data/latvia_kpv_par.rb +112 -0
  157. data/lib/sapor/regional_data/luxembourg-20131020.psv +76 -0
  158. data/lib/sapor/regional_data/luxembourg.rb +82 -0
  159. data/lib/sapor/regional_data/netherlands.rb +108 -0
  160. data/lib/sapor/regional_data/norway.rb +85 -68
  161. data/lib/sapor/regional_data/norwegian_municipality.rb +68 -0
  162. data/lib/sapor/regional_data/poland-20151025-with-ko-and-l-without-n-po-r-and-zl.psv +321 -0
  163. data/lib/sapor/regional_data/poland-20151025-with-ko-konf-kp-l-and-zp-without-k-k15-n-pis-po-psl-r-and-zl.psv +280 -0
  164. data/lib/sapor/regional_data/poland-20151025-with-ko-sld-and-wi-without-n-po-and-zl.psv +403 -0
  165. data/lib/sapor/regional_data/poland-20151025-with-sld-and-wi-without-zl.psv +444 -0
  166. data/lib/sapor/regional_data/poland-20151025-with-sld-without-zl.psv +403 -0
  167. data/lib/sapor/regional_data/poland-20151025.psv +403 -0
  168. data/lib/sapor/regional_data/poland.rb +125 -0
  169. data/lib/sapor/regional_data/poland_with_ko_and_l_without_n_po_r_and_zl.rb +122 -0
  170. data/lib/sapor/regional_data/poland_with_ko_konf_kp_l_and_zp_without_k_k15_n_pis_po_psl_r_and_zl.rb +123 -0
  171. data/lib/sapor/regional_data/poland_with_ko_sld_and_wi_without_n_po_and_zl.rb +125 -0
  172. data/lib/sapor/regional_data/poland_with_sld_and_wi_without_zl.rb +126 -0
  173. data/lib/sapor/regional_data/poland_with_sld_without_zl.rb +126 -0
  174. data/lib/sapor/regional_data/portugal-20151004-with-a-and-ch-without-paf.psv +438 -0
  175. data/lib/sapor/regional_data/portugal-20151004-with-a-and-il-without-paf.psv +438 -0
  176. data/lib/sapor/regional_data/portugal-20151004-with-a-ch-and-il-without-paf.psv +461 -0
  177. data/lib/sapor/regional_data/portugal-20151004-with-a-without-paf.psv +415 -0
  178. data/lib/sapor/regional_data/portugal-20151004-with-ch-and-il-without-paf.psv +438 -0
  179. data/lib/sapor/regional_data/portugal-20151004-without-paf.psv +392 -0
  180. data/lib/sapor/regional_data/portugal-20151004.psv +370 -0
  181. data/lib/sapor/regional_data/portugal.rb +101 -0
  182. data/lib/sapor/regional_data/portugal_with_a_and_ch_without_paf.rb +92 -0
  183. data/lib/sapor/regional_data/portugal_with_a_and_il_without_paf.rb +92 -0
  184. data/lib/sapor/regional_data/portugal_with_a_ch_and_il_without_paf.rb +92 -0
  185. data/lib/sapor/regional_data/portugal_with_a_without_paf.rb +92 -0
  186. data/lib/sapor/regional_data/portugal_with_ch_and_il_without_paf.rb +92 -0
  187. data/lib/sapor/regional_data/portugal_without_paf.rb +92 -0
  188. data/lib/sapor/regional_data/slovakia.rb +81 -0
  189. data/lib/sapor/regional_data/slovenia.rb +114 -0
  190. data/lib/sapor/regional_data/spain-20160626.psv +619 -0
  191. data/lib/sapor/regional_data/spain.rb +136 -0
  192. data/lib/sapor/regional_data/sweden.rb +92 -0
  193. data/lib/sapor/regional_data/sweden_20140914.rb +89 -0
  194. data/lib/sapor/regional_data/united_kingdom-2015.psv +4358 -0
  195. data/lib/sapor/regional_data/united_kingdom-20170608-brexit-chuk.psv +5154 -0
  196. data/lib/sapor/regional_data/united_kingdom-20170608-brexit.psv +4521 -0
  197. data/lib/sapor/regional_data/united_kingdom-20170608-tig.psv +4529 -0
  198. data/lib/sapor/regional_data/united_kingdom-20170608.psv +3894 -0
  199. data/lib/sapor/regional_data/united_kingdom.rb +57 -1038
  200. data/lib/sapor/regional_data/united_kingdom_with_brexit.rb +110 -0
  201. data/lib/sapor/regional_data/united_kingdom_with_brexit_and_chuk.rb +111 -0
  202. data/lib/sapor/regional_data/united_kingdom_with_tig.rb +111 -0
  203. data/lib/sapor/regional_data/utopia.rb +2 -2
  204. data/lib/sapor/regional_data/wallonia-2014.psv +101 -0
  205. data/lib/sapor/regional_data/wallonia.rb +97 -0
  206. data/lib/sapor/representatives_polychotomy.rb +338 -0
  207. data/lib/sapor/single_district_proportional.rb +75 -0
  208. data/lib/sapor.rb +112 -6
  209. data/sapor.gemspec +2 -2
  210. data/spec/integration/area_spec.rb +2 -2
  211. data/spec/integration/poll_spec.rb +6 -1
  212. data/spec/integration/sample.poll +2 -1
  213. data/spec/spec_helper.rb +2 -2
  214. data/spec/unit/area_spec.rb +12 -12
  215. data/spec/unit/austria_spec.rb +76 -0
  216. data/spec/unit/belgium_brussels_spec.rb +58 -0
  217. data/spec/unit/belgium_flanders_spec.rb +62 -0
  218. data/spec/unit/belgium_spec.rb +26 -0
  219. data/spec/unit/belgium_wallonia_spec.rb +65 -0
  220. data/spec/unit/binomials_cache_spec.rb +1 -1
  221. data/spec/unit/catalonia_spec.rb +21 -29
  222. data/spec/unit/combinations_distribution_spec.rb +1 -1
  223. data/spec/unit/denmark_spec.rb +56 -0
  224. data/spec/unit/denmark_with_e_and_p_spec.rb +58 -0
  225. data/spec/unit/denmark_with_e_spec.rb +57 -0
  226. data/spec/unit/denmark_with_p_spec.rb +57 -0
  227. data/spec/unit/denominators_spec.rb +8 -2
  228. data/spec/unit/dichotomies_spec.rb +1 -1
  229. data/spec/unit/dichotomy_spec.rb +1 -1
  230. data/spec/unit/estonia_spec.rb +65 -0
  231. data/spec/unit/european_union_27_austria_spec.rb +61 -0
  232. data/spec/unit/european_union_27_croatia_spec.rb +60 -0
  233. data/spec/unit/european_union_27_denmark_spec.rb +62 -0
  234. data/spec/unit/european_union_27_estonia_spec.rb +94 -0
  235. data/spec/unit/european_union_27_finland_spec.rb +75 -0
  236. data/spec/unit/european_union_27_ireland_spec.rb +72 -0
  237. data/spec/unit/european_union_27_ireland_with_ia_spec.rb +74 -0
  238. data/spec/unit/european_union_27_italy_spec.rb +69 -0
  239. data/spec/unit/european_union_27_netherlands_spec.rb +81 -0
  240. data/spec/unit/european_union_27_poland_spec.rb +69 -0
  241. data/spec/unit/european_union_27_romania_spec.rb +67 -0
  242. data/spec/unit/european_union_27_slovakia_spec.rb +111 -0
  243. data/spec/unit/european_union_27_spain_spec.rb +130 -0
  244. data/spec/unit/european_union_27_sweden_spec.rb +89 -0
  245. data/spec/unit/european_union_austria_spec.rb +61 -0
  246. data/spec/unit/european_union_bulgaria_spec.rb +97 -0
  247. data/spec/unit/european_union_croatia_spec.rb +59 -0
  248. data/spec/unit/european_union_cyprus_spec.rb +65 -0
  249. data/spec/unit/european_union_czech_republic_spec.rb +125 -0
  250. data/spec/unit/european_union_denmark_spec.rb +61 -0
  251. data/spec/unit/european_union_estonia_spec.rb +93 -0
  252. data/spec/unit/european_union_finland_spec.rb +75 -0
  253. data/spec/unit/european_union_flanders_spec.rb +56 -0
  254. data/spec/unit/european_union_france_2019_spec.rb +73 -0
  255. data/spec/unit/european_union_france_spec.rb +73 -0
  256. data/spec/unit/european_union_french_community_of_belgium_spec.rb +61 -0
  257. data/spec/unit/european_union_germany_spec.rb +90 -0
  258. data/spec/unit/european_union_great_britain_spec.rb +87 -0
  259. data/spec/unit/european_union_greece_spec.rb +148 -0
  260. data/spec/unit/european_union_hungary_spec.rb +57 -0
  261. data/spec/unit/european_union_ireland_spec.rb +72 -0
  262. data/spec/unit/european_union_ireland_with_ia_spec.rb +74 -0
  263. data/spec/unit/european_union_italy_spec.rb +69 -0
  264. data/spec/unit/european_union_latvia_spec.rb +76 -0
  265. data/spec/unit/european_union_lithuania_spec.rb +68 -0
  266. data/spec/unit/european_union_luxembourg_spec.rb +63 -0
  267. data/spec/unit/european_union_malta_spec.rb +60 -0
  268. data/spec/unit/european_union_netherlands_spec.rb +81 -0
  269. data/spec/unit/european_union_northern_ireland_spec.rb +66 -0
  270. data/spec/unit/european_union_poland_spec.rb +69 -0
  271. data/spec/unit/european_union_portugal_spec.rb +77 -0
  272. data/spec/unit/european_union_romania_spec.rb +67 -0
  273. data/spec/unit/european_union_slovakia_spec.rb +111 -0
  274. data/spec/unit/european_union_slovenia_spec.rb +77 -0
  275. data/spec/unit/european_union_spain_spec.rb +129 -0
  276. data/spec/unit/european_union_sweden_spec.rb +89 -0
  277. data/spec/unit/finland_spec.rb +65 -0
  278. data/spec/unit/finland_with_sin_spec.rb +67 -0
  279. data/spec/unit/first_past_the_post_spec.rb +6 -5
  280. data/spec/unit/flanders_spec.rb +70 -0
  281. data/spec/unit/france_spec.rb +32 -0
  282. data/spec/unit/greece_spec.rb +118 -0
  283. data/spec/unit/hungary_spec.rb +132 -0
  284. data/spec/unit/iceland_spec.rb +57 -0
  285. data/spec/unit/largest_remainder_spec.rb +79 -0
  286. data/spec/unit/latvia_kpv_p_par_spec.rb +38 -0
  287. data/spec/unit/latvia_kpv_par_spec.rb +38 -0
  288. data/spec/unit/latvia_kpv_spec.rb +38 -0
  289. data/spec/unit/latvia_spec.rb +60 -0
  290. data/spec/unit/luxembourg_spec.rb +54 -0
  291. data/spec/unit/{leveled_proportional_spec.rb → multi_district_leveled_proportional_spec.rb} +12 -14
  292. data/spec/unit/{proportional_spec.rb → multi_district_proportional_spec.rb} +11 -16
  293. data/spec/unit/netherlands_spec.rb +107 -0
  294. data/spec/unit/norway_spec.rb +23 -6
  295. data/spec/unit/norwegian_municipality_spec.rb +89 -0
  296. data/spec/unit/number_formatter_spec.rb +1 -1
  297. data/spec/unit/poland_spec.rb +62 -0
  298. data/spec/unit/poland_with_ko_and_l_without_n_po_r_and_zl_spec.rb +60 -0
  299. data/spec/unit/poland_with_ko_konf_kp_l_and_zp_without_k_k15_n_pis_po_psl_r_and_zl_spec.rb +59 -0
  300. data/spec/unit/poland_with_ko_sld_and_wi_without_n_po_and_zl_spec.rb +62 -0
  301. data/spec/unit/poland_with_sld_and_wi_without_zl_spec.rb +63 -0
  302. data/spec/unit/poland_with_sld_without_zl_spec.rb +62 -0
  303. data/spec/unit/poll_spec.rb +8 -3
  304. data/spec/unit/portugal_spec.rb +66 -0
  305. data/spec/unit/portugal_with_a_and_ch_without_paf_spec.rb +68 -0
  306. data/spec/unit/portugal_with_a_and_il_without_paf_spec.rb +68 -0
  307. data/spec/unit/portugal_with_a_ch_and_il_without_paf_spec.rb +69 -0
  308. data/spec/unit/portugal_with_a_without_paf_spec.rb +67 -0
  309. data/spec/unit/portugal_with_ch_and_il_without_paf_spec.rb +68 -0
  310. data/spec/unit/portugal_without_paf_spec.rb +66 -0
  311. data/spec/unit/pseudorandom_multirange_enumerator_spec.rb +1 -1
  312. data/spec/unit/referendum_polychotomy_spec.rb +289 -0
  313. data/spec/unit/{polychotomy_spec.rb → representatives_polychotomy_spec.rb} +26 -26
  314. data/spec/unit/slovakia_spec.rb +99 -0
  315. data/spec/unit/slovenia_spec.rb +80 -0
  316. data/spec/unit/spain_spec.rb +101 -0
  317. data/spec/unit/sweden_20140914_spec.rb +112 -0
  318. data/spec/unit/sweden_spec.rb +113 -0
  319. data/spec/unit/united_kingdom_spec.rb +65 -0
  320. data/spec/unit/united_kingdom_with_brexit_and_chuk_spec.rb +67 -0
  321. data/spec/unit/united_kingdom_with_brexit_spec.rb +66 -0
  322. data/spec/unit/united_kingdom_with_tig_spec.rb +66 -0
  323. data/spec/unit/wallonia_spec.rb +130 -0
  324. metadata +381 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e2de2c113ab0bd3f70e3b3db62aa9d1f2bf65530
4
- data.tar.gz: aa6d848603c5733c7ac7bd105e621fd517433656
2
+ SHA256:
3
+ metadata.gz: 4c4c28f6f1c628c881e70b906ea40a25ef527505ceeaab7b81d5b5f10398e66c
4
+ data.tar.gz: 23e53997152350800d6ce7821a4ceadc7f0088579a4272f19c68bb1180060e12
5
5
  SHA512:
6
- metadata.gz: 45991171803bd5340cb3910f008262eacaca3f5e2237d8ac28d91f84a73373b36f82f52ad77aad02538c2ffca66c4e4c05b733b11c47f12527ba1f8d9f9be9f5
7
- data.tar.gz: 508e93083f807387e4b82e04cc36518a3d348e9007081520be4382ef22e2ebec21345ba34540e432a677ace9e9480557a393eddf734082005d1ddd018a6a43b0
6
+ metadata.gz: 438e63eb23147489b9ffb9be967f5f0233bf076207f4571994fb78c81ba8dd819a2165d08c506429e7dafe600c502632a836d488a71558f63ea5b60fecf72b68
7
+ data.tar.gz: def5ef060931f843022e889fc98d16f5a60963a22417d3388c4da3a9324bf0c46b2580db737e175619c614e905aecb50b40e3440323d1143798ef9c455516cb7
@@ -0,0 +1,361 @@
1
+ Example: Catalonia
2
+ ==================
3
+
4
+ The following file is a valid poll file for a Catalan poll. It is based on
5
+ the results of a poll done from 1–3 July 2015 by GAPS for Òmnium Cultural.
6
+
7
+ Area=ES-CT
8
+ ==
9
+ Junts pel Sí=262
10
+ Catalunya Sí que es Pot=164
11
+ Ciutadans-Partido de la Ciudadanía=131
12
+ Partit dels Socialistes de Catalunya=74
13
+ Partit Popular de Catalunya=74
14
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres=66
15
+ Unió Democràtica de Catalunya=33
16
+ Other=16
17
+
18
+ The following call will use the poll file to run an analysis.
19
+
20
+ sapor analyze ÒmniumCultural-GAPS-20150703.poll
21
+
22
+ For this file, the log will look like below.
23
+
24
+ 2015-08-01 09:32:05 INFO: Analyzing as a set of dichotomies...
25
+ 2015-08-01 09:32:05 INFO: Most probable fractions and 95% confidence intervals:
26
+ Choice MPF CI(95%) P(≥3%)
27
+ Junts pel Sí 50.0% 0.0%– 66.7% 100.0%
28
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 16.7% 0.0%– 33.3% 100.0%
29
+ Catalunya Sí que es Pot 16.7% 0.0%– 33.3% 100.0%
30
+ Ciutadans-Partido de la Ciudadanía 16.7% 0.0%– 33.3% 100.0%
31
+ Partit Popular de Catalunya 16.7% 0.0%– 33.3% 100.0%
32
+ Partit dels Socialistes de Catalunya 16.7% 0.0%– 33.3% 100.0%
33
+ Unió Democràtica de Catalunya 16.7% 0.0%– 33.3% 100.0%
34
+ Other 16.7% 0.0%– 33.3% 100.0%
35
+ 2015-08-01 09:32:05 INFO: Error estimate: ε ≤ 33.3%.
36
+ 2015-08-01 09:32:05 INFO: Number of data points: 3.
37
+ 2015-08-01 09:32:05 INFO: Most probable fractions and 95% confidence intervals:
38
+ Choice MPF CI(95%) P(≥3%)
39
+ Junts pel Sí 27.8% 22.2%– 33.3% 100.0%
40
+ Catalunya Sí que es Pot 16.7% 11.1%– 22.2% 100.0%
41
+ Ciutadans-Partido de la Ciudadanía 16.7% 11.1%– 22.2% 100.0%
42
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 5.6% 0.0%– 11.1% 100.0%
43
+ Partit Popular de Catalunya 5.6% 0.0%– 11.1% 100.0%
44
+ Partit dels Socialistes de Catalunya 5.6% 0.0%– 11.1% 100.0%
45
+ Unió Democràtica de Catalunya 5.6% 0.0%– 11.1% 100.0%
46
+ Other 5.6% 0.0%– 11.1% 100.0%
47
+ 2015-08-01 09:32:05 INFO: Error estimate: ε ≤ 11.1%.
48
+ 2015-08-01 09:32:05 INFO: Number of data points: 9.
49
+ 2015-08-01 09:32:05 INFO: Most probable fractions and 95% confidence intervals:
50
+ Choice MPF CI(95%) P(≥3%)
51
+ Junts pel Sí 31.5% 25.9%– 37.0% 100.0%
52
+ Catalunya Sí que es Pot 20.4% 14.8%– 22.2% 100.0%
53
+ Ciutadans-Partido de la Ciudadanía 16.7% 11.1%– 18.5% 100.0%
54
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 9.3% 3.7%– 11.1% 100.0%
55
+ Partit Popular de Catalunya 9.3% 7.4%– 11.1% 100.0%
56
+ Partit dels Socialistes de Catalunya 9.3% 7.4%– 11.1% 100.0%
57
+ Unió Democràtica de Catalunya 5.6% 3.7%– 7.4% 99.7%
58
+ Other 1.9% 0.0%– 3.7% 0.0%
59
+ 2015-08-01 09:32:05 INFO: Error estimate: ε ≤ 3.70%.
60
+ 2015-08-01 09:32:05 INFO: Number of data points: 27.
61
+ 2015-08-01 09:32:06 INFO: Most probable fractions and 95% confidence intervals:
62
+ Choice MPF CI(95%) P(≥3%)
63
+ Junts pel Sí 31.5% 28.4%– 35.8% 100.0%
64
+ Catalunya Sí que es Pot 20.4% 17.3%– 23.5% 100.0%
65
+ Ciutadans-Partido de la Ciudadanía 15.4% 13.6%– 19.8% 100.0%
66
+ Partit Popular de Catalunya 9.3% 6.2%– 11.1% 100.0%
67
+ Partit dels Socialistes de Catalunya 9.3% 6.2%– 11.1% 100.0%
68
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.2%– 11.1% 100.0%
69
+ Unió Democràtica de Catalunya 4.3% 2.5%– 6.2% 100.0%
70
+ Other 1.9% 1.2%– 3.7% 11.9%
71
+ 2015-08-01 09:32:06 INFO: Error estimate: ε ≤ 1.23%.
72
+ 2015-08-01 09:32:06 INFO: Number of data points: 81.
73
+ 2015-08-01 09:32:07 INFO: Most probable fractions and 95% confidence intervals:
74
+ Choice MPF CI(95%) P(≥3%)
75
+ Junts pel Sí 31.9% 28.8%– 35.4% 100.0%
76
+ Catalunya Sí que es Pot 20.0% 17.3%– 23.0% 100.0%
77
+ Ciutadans-Partido de la Ciudadanía 15.8% 13.6%– 18.9% 100.0%
78
+ Partit Popular de Catalunya 8.8% 7.0%– 11.5% 100.0%
79
+ Partit dels Socialistes de Catalunya 8.8% 7.0%– 11.5% 100.0%
80
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.2%– 10.3% 100.0%
81
+ Unió Democràtica de Catalunya 3.9% 2.9%– 5.8% 97.8%
82
+ Other 1.9% 1.2%– 3.3% 5.8%
83
+ 2015-08-01 09:32:07 INFO: Error estimate: ε ≤ 0.412%.
84
+ 2015-08-01 09:32:07 INFO: Number of data points: 243.
85
+ 2015-08-01 09:32:12 INFO: Most probable fractions and 95% confidence intervals:
86
+ Choice MPF CI(95%) P(≥3%)
87
+ Junts pel Sí 31.9% 28.8%– 35.3% 100.0%
88
+ Catalunya Sí que es Pot 20.0% 17.3%– 22.9% 100.0%
89
+ Ciutadans-Partido de la Ciudadanía 16.0% 13.6%– 18.7% 100.0%
90
+ Partit Popular de Catalunya 9.0% 7.1%– 11.2% 100.0%
91
+ Partit dels Socialistes de Catalunya 9.0% 7.1%– 11.2% 100.0%
92
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.3%– 10.2% 100.0%
93
+ Unió Democràtica de Catalunya 4.0% 2.9%– 5.6% 95.8%
94
+ Other 2.0% 1.1%– 3.2% 3.9%
95
+ 2015-08-01 09:32:12 INFO: Error estimate: ε ≤ 0.137%.
96
+ 2015-08-01 09:32:12 INFO: Number of data points: 729.
97
+ 2015-08-01 09:32:25 INFO: Most probable fractions and 95% confidence intervals:
98
+ Choice MPF CI(95%) P(≥3%)
99
+ Junts pel Sí 31.9% 28.8%– 35.3% 100.0%
100
+ Catalunya Sí que es Pot 20.0% 17.4%– 22.9% 100.0%
101
+ Ciutadans-Partido de la Ciudadanía 16.0% 13.6%– 18.7% 100.0%
102
+ Partit Popular de Catalunya 9.0% 7.2%– 11.2% 100.0%
103
+ Partit dels Socialistes de Catalunya 9.0% 7.2%– 11.2% 100.0%
104
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.1% 6.4%– 10.2% 100.0%
105
+ Unió Democràtica de Catalunya 4.0% 2.9%– 5.6% 95.7%
106
+ Other 1.9% 1.2%– 3.2% 3.9%
107
+ 2015-08-01 09:32:25 INFO: Error estimate: ε ≤ 0.046%.
108
+ 2015-08-01 09:32:25 INFO: Number of data points: 2,187.
109
+ 2015-08-01 09:32:25 INFO: Analyzing as a polychotomy...
110
+ 2015-08-01 09:32:26 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
111
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
112
+ Junts pel Sí 32.0% 12.3% 24.4% 24.4%– 24.5% 100.0% 59– 59
113
+ Catalunya Sí que es Pot 20.0% 7.1% 13.8% 13.8%– 13.9% 100.0% 28– 28
114
+ Ciutadans-Partido de la Ciudadanía 16.0% 5.5% 10.4% 10.4%– 10.5% 100.0% 21– 21
115
+ Partit Popular de Catalunya 9.0% 2.6% 5.0% 5.0%– 5.0% 0.0% 9– 9
116
+ Partit dels Socialistes de Catalunya 9.0% 2.6% 5.0% 5.0%– 5.0% 100.0% 10– 10
117
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 2.3% 4.3% 4.3%– 4.3% 100.0% 8– 8
118
+ Unió Democràtica de Catalunya 4.0% 1.0% 1.6% 1.6%– 1.6% 0– 0
119
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
120
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 50.0% 28.7% 28.7%– 28.7% 0.0% 67– 67 0.0%
121
+ Junts pel Sí 32.0% 50.0% 24.4% 24.4%– 24.4% 0.0% 59– 59 0.0%
122
+ 2015-08-01 09:32:26 INFO: Error estimate: ε ≤ 100%.
123
+ 2015-08-01 09:32:26 INFO: 1 simulations out of 1 data points, 1 / 40,531,767,997,824,000 of search space size (40,531,767,997,824,000).
124
+ 2015-08-01 09:32:26 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
125
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
126
+ Junts pel Sí 32.0% 25.5% 25.5% 25.5%– 25.5% 100.0% 57– 57
127
+ Catalunya Sí que es Pot 20.0% 14.7% 14.7% 14.7%– 14.7% 100.0% 28– 28
128
+ Ciutadans-Partido de la Ciudadanía 16.0% 11.2% 11.2% 11.2%– 11.2% 100.0% 21– 21
129
+ Partit Popular de Catalunya 9.0% 5.6% 5.6% 5.5%– 5.6% 100.0% 11– 11
130
+ Partit dels Socialistes de Catalunya 9.0% 5.5% 5.5% 5.4%– 5.5% 100.0% 10– 10
131
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 4.6% 4.6% 4.6%– 4.6% 100.0% 8– 8
132
+ Unió Democràtica de Catalunya 4.0% 1.6% 1.6% 1.6%– 1.6% 0– 0
133
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
134
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 64.8% 30.1% 29.4%– 30.1% 0.0% 65– 65 0.0%
135
+ Junts pel Sí 32.0% 62.6% 25.5% 25.0%– 25.5% 0.0% 57– 57 0.0%
136
+ 2015-08-01 09:32:26 INFO: Error estimate: ε ≤ 1.05%.
137
+ 2015-08-01 09:32:26 INFO: 2 simulations out of 2 data points, 1 / 20,265,883,998,912,000 of search space size (40,531,767,997,824,000).
138
+ 2015-08-01 09:32:26 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
139
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
140
+ Junts pel Sí 32.0% 27.6% 27.6% 27.6%– 27.6% 100.0% 57– 57
141
+ Catalunya Sí que es Pot 20.0% 16.4% 16.4% 16.4%– 16.5% 100.0% 28– 28
142
+ Ciutadans-Partido de la Ciudadanía 16.0% 12.8% 12.8% 12.8%– 12.8% 100.0% 21– 21
143
+ Partit Popular de Catalunya 9.0% 6.7% 6.7% 6.7%– 6.8% 100.0% 11– 11
144
+ Partit dels Socialistes de Catalunya 9.0% 6.5% 6.5% 6.4%– 6.5% 100.0% 10– 10
145
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 5.2% 5.2% 5.2%– 5.3% 100.0% 8– 8
146
+ Unió Democràtica de Catalunya 4.0% 1.7% 1.7% 1.7%– 1.7% 0– 0
147
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
148
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 66.1% 32.8% 32.1%– 32.8% 0.0% 65– 65 0.0%
149
+ Junts pel Sí 32.0% 63.5% 27.6% 27.1%– 27.6% 0.0% 57– 57 0.0%
150
+ 2015-08-01 09:32:26 INFO: Error estimate: ε ≤ 2.10%.
151
+ 2015-08-01 09:32:26 INFO: 4 simulations out of 4 data points, 1 / 10,132,941,999,456,000 of search space size (40,531,767,997,824,000).
152
+ 2015-08-01 09:32:27 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
153
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
154
+ Junts pel Sí 32.0% 31.8% 31.8% 31.8%– 31.8% 100.0% 54– 54
155
+ Catalunya Sí que es Pot 20.0% 19.9% 19.9% 19.9%– 19.9% 100.0% 29– 29
156
+ Ciutadans-Partido de la Ciudadanía 16.0% 15.9% 15.9% 15.9%– 15.9% 100.0% 21– 21
157
+ Partit Popular de Catalunya 9.0% 9.1% 9.1% 9.1%– 9.1% 100.0% 12– 12
158
+ Partit dels Socialistes de Catalunya 9.0% 8.5% 8.5% 8.5%– 8.5% 100.0% 11– 11
159
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.5% 6.5% 6.5%– 6.5% 100.0% 8– 8
160
+ Unió Democràtica de Catalunya 4.0% 1.9% 1.9% 1.9%– 1.9% 0– 0
161
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
162
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 68.7% 38.3% 37.6%– 38.3% 0.0% 62– 62 0.0%
163
+ Junts pel Sí 32.0% 65.8% 31.8% 31.3%– 31.8% 0.0% 54– 54 0.0%
164
+ 2015-08-01 09:32:27 INFO: Error estimate: ε ≤ 4.21%.
165
+ 2015-08-01 09:32:27 INFO: 8 simulations out of 8 data points, 1 / 5,066,470,999,728,000 of search space size (40,531,767,997,824,000).
166
+ 2015-08-01 09:32:27 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
167
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
168
+ Junts pel Sí 32.0% 32.9% 32.9% 32.8%– 32.9% 100.0% 51– 54
169
+ Catalunya Sí que es Pot 20.0% 20.8% 20.8% 20.2%– 20.8% 100.0% 27– 28
170
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.7% 16.7% 15.8%– 16.7% 100.0% 20– 21
171
+ Partit Popular de Catalunya 9.0% 9.7% 9.7% 8.7%– 9.7% 100.0% 12– 12
172
+ Partit dels Socialistes de Catalunya 9.0% 9.0% 9.0% 6.6%– 9.0% 94.8% 8– 11
173
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.8% 6.8% 6.8%– 11.7% 100.0% 9– 17
174
+ Unió Democràtica de Catalunya 4.0% 1.9% 1.9% 1.9%– 2.7% 0– 0
175
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
176
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.7% 39.7% 39.3%– 44.4% 0.0% 63– 68 5.2%
177
+ Junts pel Sí 32.0% 66.5% 32.9% 32.3%– 32.9% 0.0% 51– 54 0.0%
178
+ 2015-08-01 09:32:27 INFO: Error estimate: ε ≤ 1.05%.
179
+ 2015-08-01 09:32:27 INFO: 16 simulations out of 24 data points, 1 / 1,688,823,666,576,000 of search space size (40,531,767,997,824,000).
180
+ 2015-08-01 09:32:27 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
181
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
182
+ Junts pel Sí 32.0% 32.9% 32.9% 32.8%– 34.9% 100.0% 51– 57
183
+ Catalunya Sí que es Pot 20.0% 20.8% 20.8% 20.2%– 21.4% 100.0% 27– 28
184
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.7% 16.7% 15.8%– 16.7% 100.0% 20– 21
185
+ Partit Popular de Catalunya 9.0% 9.7% 9.7% 8.7%– 9.7% 100.0% 12– 12
186
+ Partit dels Socialistes de Catalunya 9.0% 9.0% 9.0% 5.3%– 9.0% 85.4% 6– 11
187
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.8% 6.8% 6.8%– 11.7% 100.0% 9– 17
188
+ Unió Democràtica de Catalunya 4.0% 1.9% 1.9% 1.9%– 3.4% 0– 1
189
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
190
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.7% 39.7% 39.4%– 44.4% 0.0% 63– 68 4.7%
191
+ Junts pel Sí 32.0% 33.2% 32.9% 32.8%– 34.9% 0.0% 51– 57 0.0%
192
+ 2015-08-01 09:32:27 INFO: Error estimate: ε ≤ 3.66%.
193
+ 2015-08-01 09:32:27 INFO: 32 simulations out of 66 data points, 1 / 614,117,696,936,727 of search space size (40,531,767,997,824,000).
194
+ 2015-08-01 09:32:28 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
195
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
196
+ Junts pel Sí 32.0% 32.9% 32.9% 32.8%– 34.9% 100.0% 51– 57
197
+ Catalunya Sí que es Pot 20.0% 20.8% 20.8% 20.2%– 21.4% 100.0% 27– 28
198
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.7% 16.7% 15.8%– 16.7% 100.0% 20– 21
199
+ Partit Popular de Catalunya 9.0% 9.7% 9.7% 8.7%– 9.7% 98.3% 12– 12
200
+ Partit dels Socialistes de Catalunya 9.0% 9.0% 9.0% 5.3%– 9.0% 85.6% 6– 11
201
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.8% 6.8% 6.8%– 11.7% 100.0% 9– 17
202
+ Unió Democràtica de Catalunya 4.0% 1.9% 1.9% 1.9%– 3.4% 0– 1
203
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
204
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.7% 39.7% 39.5%– 44.8% 0.0% 63– 68 4.6%
205
+ Junts pel Sí 32.0% 32.9% 32.9% 32.8%– 35.3% 0.0% 51– 57 0.0%
206
+ 2015-08-01 09:32:28 INFO: Error estimate: ε ≤ 3.25%.
207
+ 2015-08-01 09:32:28 INFO: 64 simulations out of 179 data points, 1 / 226,434,458,088,402 of search space size (40,531,767,997,824,000).
208
+ 2015-08-01 09:32:28 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
209
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
210
+ Junts pel Sí 32.0% 32.9% 32.9% 32.8%– 34.9% 100.0% 51– 57
211
+ Catalunya Sí que es Pot 20.0% 20.8% 20.8% 20.2%– 21.4% 100.0% 27– 28
212
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.7% 16.7% 15.8%– 16.7% 100.0% 20– 21
213
+ Partit Popular de Catalunya 9.0% 9.7% 9.7% 8.7%– 9.7% 98.2% 12– 12
214
+ Partit dels Socialistes de Catalunya 9.0% 9.0% 9.0% 5.3%– 9.0% 85.7% 6– 11
215
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 6.8% 6.8% 6.8%– 11.7% 100.0% 9– 17
216
+ Unió Democràtica de Catalunya 4.0% 1.9% 1.9% 1.9%– 3.4% 0– 1
217
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
218
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.7% 39.7% 39.5%– 44.6% 0.0% 63– 68 4.6%
219
+ Junts pel Sí 32.0% 32.9% 32.9% 32.8%– 35.1% 0.0% 51– 57 0.0%
220
+ 2015-08-01 09:32:28 INFO: Error estimate: ε ≤ 3.89%.
221
+ 2015-08-01 09:32:28 INFO: 128 simulations out of 341 data points, 1 / 118,861,489,729,689 of search space size (40,531,767,997,824,000).
222
+ 2015-08-01 09:32:29 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
223
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
224
+ Junts pel Sí 32.0% 30.9% 30.9% 28.8%– 34.9% 100.0% 47– 56
225
+ Catalunya Sí que es Pot 20.0% 22.5% 22.5% 18.6%– 22.5% 100.0% 24– 30
226
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.9% 16.9% 16.2%– 17.1% 100.0% 21– 22
227
+ Partit Popular de Catalunya 9.0% 7.9% 7.9% 7.7%– 11.4% 88.1% 11– 15
228
+ Partit dels Socialistes de Catalunya 9.0% 7.5% 7.5% 7.3%– 9.0% 88.4% 10– 11
229
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 7.1% 7.1% 6.6%– 11.0% 100.0% 8– 16
230
+ Unió Democràtica de Catalunya 4.0% 4.0% 4.0% 1.9%– 4.0% 0– 6
231
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
232
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 38.0% 38.0% 37.9%– 42.6% 0.0% 57– 65 0.5%
233
+ Junts pel Sí 32.0% 30.9% 30.9% 28.8%– 34.9% 0.0% 47– 56 0.0%
234
+ 2015-08-01 09:32:29 INFO: Error estimate: ε ≤ 2.06%.
235
+ 2015-08-01 09:32:29 INFO: 256 simulations out of 695 data points, 1 / 58,319,090,644,351 of search space size (40,531,767,997,824,000).
236
+ 2015-08-01 09:32:30 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
237
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
238
+ Junts pel Sí 32.0% 30.6% 30.6% 28.8%– 34.6% 100.0% 47– 56
239
+ Catalunya Sí que es Pot 20.0% 19.1% 19.1% 18.6%– 22.5% 99.8% 24– 30
240
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.7% 16.7% 16.2%– 17.6% 100.0% 21– 22
241
+ Partit Popular de Catalunya 9.0% 10.3% 9.4% 7.7%– 10.3% 93.8% 11– 14
242
+ Partit dels Socialistes de Catalunya 9.0% 9.5% 7.2% 7.1%– 10.1% 54.6% 9– 13
243
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 10.8% 10.8% 6.0%– 11.0% 100.0% 8– 16
244
+ Unió Democràtica de Catalunya 4.0% 4.0% 4.0% 1.9%– 4.8% 0– 6
245
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
246
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 36.6% 41.4% 36.6%– 41.4% 0.0% 57– 64 0.1%
247
+ Junts pel Sí 32.0% 30.6% 30.6% 28.8%– 34.6% 0.0% 47– 56 0.0%
248
+ 2015-08-01 09:32:30 INFO: Error estimate: ε ≤ 3.75%.
249
+ 2015-08-01 09:32:30 INFO: 512 simulations out of 1,419 data points, 1 / 28,563,613,811,010 of search space size (40,531,767,997,824,000).
250
+ 2015-08-01 09:32:33 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
251
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
252
+ Junts pel Sí 32.0% 30.6% 30.6% 28.5%– 34.6% 100.0% 47– 56
253
+ Catalunya Sí que es Pot 20.0% 19.1% 19.1% 16.4%– 22.5% 96.0% 21– 30
254
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.7% 16.7% 12.5%– 17.6% 100.0% 16– 22
255
+ Partit Popular de Catalunya 9.0% 10.3% 9.4% 7.7%– 11.8% 92.5% 11– 17
256
+ Partit dels Socialistes de Catalunya 9.0% 9.5% 7.2% 7.1%– 10.7% 54.2% 9– 14
257
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 10.8% 10.8% 6.0%– 11.0% 100.0% 8– 16
258
+ Unió Democràtica de Catalunya 4.0% 4.0% 4.0% 2.2%– 6.3% 0– 8
259
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
260
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 41.4% 41.4% 36.6%– 41.4% 0.0% 57– 64 0.2%
261
+ Junts pel Sí 32.0% 30.6% 30.6% 28.5%– 34.6% 0.0% 47– 56 0.0%
262
+ 2015-08-01 09:32:33 INFO: Error estimate: ε ≤ 3.29%.
263
+ 2015-08-01 09:32:33 INFO: 1,024 simulations out of 2,830 data points, 1 / 14,322,179,504,531 of search space size (40,531,767,997,824,000).
264
+ 2015-08-01 09:32:36 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
265
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
266
+ Junts pel Sí 32.0% 32.7% 32.7% 28.5%– 34.2% 100.0% 45– 55
267
+ Catalunya Sí que es Pot 20.0% 17.9% 17.9% 17.9%– 22.5% 56.5% 22– 30
268
+ Ciutadans-Partido de la Ciudadanía 16.0% 19.1% 19.1% 12.7%– 19.2% 100.0% 16– 24
269
+ Partit Popular de Catalunya 9.0% 7.7% 7.7% 7.5%– 11.8% 50.7% 9– 17
270
+ Partit dels Socialistes de Catalunya 9.0% 8.8% 8.8% 7.1%– 11.1% 79.2% 9– 14
271
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 7.6% 7.6% 6.0%– 10.8% 100.0% 8– 14
272
+ Unió Democràtica de Catalunya 4.0% 4.0% 4.0% 2.9%– 5.8% 0– 7
273
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
274
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 40.3% 40.3% 36.6%– 43.8% 0.0% 56– 68 2.7%
275
+ Junts pel Sí 32.0% 32.7% 32.7% 28.5%– 34.2% 0.0% 45– 55 0.0%
276
+ 2015-08-01 09:32:36 INFO: Error estimate: ε ≤ 3.20%.
277
+ 2015-08-01 09:32:36 INFO: 2,048 simulations out of 5,727 data points, 1 / 7,077,312,379,574 of search space size (40,531,767,997,824,000).
278
+ 2015-08-01 09:32:41 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
279
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
280
+ Junts pel Sí 32.0% 32.7% 32.7% 27.2%– 34.9% 100.0% 43– 55
281
+ Catalunya Sí que es Pot 20.0% 17.9% 17.9% 17.5%– 23.1% 68.1% 22– 30
282
+ Ciutadans-Partido de la Ciudadanía 16.0% 19.1% 19.1% 12.7%– 19.2% 100.0% 16– 25
283
+ Partit Popular de Catalunya 9.0% 7.7% 7.7% 6.9%– 11.8% 41.7% 9– 17
284
+ Partit dels Socialistes de Catalunya 9.0% 8.8% 8.8% 7.0%– 11.1% 73.4% 9– 14
285
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 7.6% 7.6% 6.0%– 10.8% 99.9% 8– 14
286
+ Unió Democràtica de Catalunya 4.0% 4.0% 4.0% 2.7%– 5.5% 0– 7
287
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
288
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 40.7% 40.3% 36.3%– 43.8% 0.0% 55– 66 1.8%
289
+ Junts pel Sí 32.0% 32.7% 32.7% 27.2%– 34.9% 0.0% 43– 55 0.0%
290
+ 2015-08-01 09:32:41 INFO: Error estimate: ε ≤ 5.26%.
291
+ 2015-08-01 09:32:41 INFO: 4,096 simulations out of 11,469 data points, 1 / 3,534,028,075,492 of search space size (40,531,767,997,824,000).
292
+ 2015-08-01 09:32:53 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
293
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
294
+ Junts pel Sí 32.0% 31.9% 31.9% 28.4%– 35.3% 100.0% 46– 55
295
+ Catalunya Sí que es Pot 20.0% 19.3% 19.3% 16.8%– 23.1% 94.1% 21– 30
296
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.3% 16.3% 13.5%– 19.2% 100.0% 17– 24
297
+ Partit Popular de Catalunya 9.0% 8.5% 8.5% 7.3%– 10.9% 35.8% 9– 13
298
+ Partit dels Socialistes de Catalunya 9.0% 10.2% 10.2% 7.2%– 11.2% 85.8% 9– 14
299
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 7.6% 7.6% 6.6%– 10.0% 100.0% 8– 13
300
+ Unió Democràtica de Catalunya 4.0% 4.8% 4.8% 3.0%– 5.5% 0– 7
301
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
302
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 38.7% 39.5% 36.5%– 44.5% 0.0% 56– 66 0.5%
303
+ Junts pel Sí 32.0% 31.9% 31.9% 28.4%– 35.3% 0.0% 46– 55 0.0%
304
+ 2015-08-01 09:32:53 INFO: Error estimate: ε ≤ 2.79%.
305
+ 2015-08-01 09:32:53 INFO: 8,192 simulations out of 22,965 data points, 1 / 1,764,936,555,533 of search space size (40,531,767,997,824,000).
306
+ 2015-08-01 09:33:22 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
307
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
308
+ Junts pel Sí 32.0% 31.3% 31.3% 28.4%– 35.3% 100.0% 46– 55
309
+ Catalunya Sí que es Pot 20.0% 19.5% 19.5% 17.2%– 22.5% 95.9% 22– 30
310
+ Ciutadans-Partido de la Ciudadanía 16.0% 17.1% 17.1% 13.5%– 18.3% 100.0% 17– 24
311
+ Partit Popular de Catalunya 9.0% 9.3% 9.3% 7.5%– 10.9% 18.1% 9– 13
312
+ Partit dels Socialistes de Catalunya 9.0% 9.4% 9.4% 7.2%– 11.2% 89.8% 9– 14
313
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 8.0% 8.0% 6.4%– 9.6% 100.0% 8– 13
314
+ Unió Democràtica de Catalunya 4.0% 3.5% 3.5% 3.0%– 5.3% 0– 7
315
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
316
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.3% 39.3% 36.5%– 44.3% 0.0% 56– 66 0.2%
317
+ Junts pel Sí 32.0% 31.3% 31.3% 28.4%– 35.3% 0.0% 46– 55 0.0%
318
+ 2015-08-01 09:33:22 INFO: Error estimate: ε ≤ 1.37%.
319
+ 2015-08-01 09:33:22 INFO: 16,384 simulations out of 45,929 data points, 1 / 882,487,491,515 of search space size (40,531,767,997,824,000).
320
+ 2015-08-01 09:34:20 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
321
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
322
+ Junts pel Sí 32.0% 30.9% 30.9% 28.5%– 35.0% 100.0% 46– 55
323
+ Catalunya Sí que es Pot 20.0% 19.9% 19.9% 17.2%– 22.5% 95.7% 22– 30
324
+ Ciutadans-Partido de la Ciudadanía 16.0% 17.1% 16.8% 13.8%– 18.9% 100.0% 18– 24
325
+ Partit Popular de Catalunya 9.0% 9.7% 9.7% 7.3%– 10.9% 42.0% 9– 13
326
+ Partit dels Socialistes de Catalunya 9.0% 9.0% 9.0% 7.4%– 11.2% 90.6% 10– 14
327
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 8.0% 8.1% 6.4%– 9.6% 100.0% 8– 13
328
+ Unió Democràtica de Catalunya 4.0% 3.6% 3.6% 3.0%– 5.3% 0– 7
329
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
330
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.0% 39.0% 36.5%– 43.7% 0.0% 56– 66 0.2%
331
+ Junts pel Sí 32.0% 30.9% 30.9% 28.5%– 35.0% 0.0% 46– 55 0.0%
332
+ 2015-08-01 09:34:20 INFO: Error estimate: ε ≤ 0.412%.
333
+ 2015-08-01 09:34:20 INFO: 32,768 simulations out of 91,962 data points, 1 / 440,744,742,369 of search space size (40,531,767,997,824,000).
334
+ 2015-08-01 09:36:09 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
335
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
336
+ Junts pel Sí 32.0% 30.9% 30.9% 28.7%– 34.7% 100.0% 46– 55
337
+ Catalunya Sí que es Pot 20.0% 19.9% 19.9% 17.2%– 22.5% 96.8% 22– 30
338
+ Ciutadans-Partido de la Ciudadanía 16.0% 17.1% 16.8% 13.5%– 18.7% 100.0% 17– 24
339
+ Partit Popular de Catalunya 9.0% 9.7% 9.3% 7.1%– 10.9% 47.5% 9– 13
340
+ Partit dels Socialistes de Catalunya 9.0% 9.4% 9.4% 7.5%– 11.1% 85.3% 10– 14
341
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 8.1% 8.1% 6.4%– 10.0% 100.0% 8– 13
342
+ Unió Democràtica de Catalunya 4.0% 3.6% 3.6% 3.0%– 5.5% 0– 7
343
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
344
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.0% 39.0% 36.6%– 43.4% 0.0% 56– 66 0.2%
345
+ Junts pel Sí 32.0% 30.9% 30.9% 28.7%– 34.7% 0.0% 46– 55 0.0%
346
+ 2015-08-01 09:36:09 INFO: Error estimate: ε ≤ 0.412%.
347
+ 2015-08-01 09:36:09 INFO: 65,536 simulations out of 183,888 data points, 1 / 220,415,513,779 of search space size (40,531,767,997,824,000).
348
+ 2015-08-01 09:39:49 INFO: Most probable rounded fractions, fractions and 95% confidence intervals:
349
+ Choice Result MPRF MPF CI(95%) P(>↓) Seats
350
+ Junts pel Sí 32.0% 31.8% 30.9% 28.7%– 34.9% 100.0% 46– 55
351
+ Catalunya Sí que es Pot 20.0% 19.8% 19.8% 17.1%– 22.7% 96.6% 22– 30
352
+ Ciutadans-Partido de la Ciudadanía 16.0% 16.5% 16.5% 13.6%– 18.7% 100.0% 17– 24
353
+ Partit Popular de Catalunya 9.0% 9.7% 9.3% 7.1%– 11.2% 43.7% 9– 14
354
+ Partit dels Socialistes de Catalunya 9.0% 9.4% 9.4% 7.1%– 11.2% 81.6% 9– 14
355
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres 8.0% 8.1% 8.1% 6.4%– 10.0% 100.0% 8– 13
356
+ Unió Democràtica de Catalunya 4.0% 3.8% 3.8% 2.9%– 5.5% 0– 7
357
+ Coalition Result MPRF MPF CI(95%) P(>50%) Seats P(>50%)
358
+ Candidatura d'Unitat Popular – Alternativa d'Esquerres + Junts pel Sí 40.0% 39.9% 39.9% 36.5%– 43.1% 0.0% 56– 66 0.6%
359
+ Junts pel Sí 32.0% 31.8% 30.9% 28.7%– 34.9% 0.0% 46– 55 0.0%
360
+ 2015-08-01 09:39:49 INFO: Error estimate: ε ≤ 1.01%.
361
+ 2015-08-01 09:39:49 INFO: 131,072 simulations out of 367,802 data points, 1 / 110,199,966,280 of search space size (40,531,767,997,824,000).