{"id":3314,"date":"2017-05-23T18:18:27","date_gmt":"2017-05-23T16:18:27","guid":{"rendered":"https:\/\/geekosas.com\/?p=3314"},"modified":"2026-05-23T18:19:01","modified_gmt":"2026-05-23T16:19:01","slug":"estimation-of-vote-distribution-in-the-second-round-of-the-chilean-presidential-elections-2017","status":"publish","type":"post","link":"https:\/\/geekosas.com\/index.php\/2017\/05\/23\/estimation-of-vote-distribution-in-the-second-round-of-the-chilean-presidential-elections-2017\/","title":{"rendered":"Estimation of vote distribution in the second round of the Chilean presidential elections 2017"},"content":{"rendered":"<p>This article was made in a hurry and with little data; the definitive one is at <a href=\"http:\/\/www.geekosas.com\/index.php\/2017\/12\/23\/quien-voto-por-cada-candidato\/\">Who voted for each candidate?<\/a><\/p>\n<p>After the first round of the Chilean presidential elections, it is traditional for each candidate to begin &quot;auctioning off&quot; the votes of their followers to the candidate they feel most aligned with. In reality, votes cannot be &quot;transferred&quot; and since the vote is secret, no one knows who everyone voted for. That is why I decided to use data science to decipher how the votes from the first round were distributed to the second round.<\/p>\n<p>As with any model, assumptions must be made, and in this case the key assumption we will make is that the votes from the first round were distributed in the same way across all regions in the second round (I should possibly do it by polling station or commune, but the complete database is not yet available).<\/p>\n<p>What we will do is perform a linear regression with constraints of the type beta*X = y, where:<\/p>\n<ul>\n<li>X: are the votes per region for each candidate in the first round and the number of extra votes in the second round.<\/li>\n<li>beta: are the parameters to be estimated, which represent the percentage of votes from each of the X that went to Pi\u00f1era. These values can be between 0 and 1.<\/li>\n<li>y: The votes that Pi\u00f1era obtained in the second round.<\/li>\n<\/ul>\n<p>When running the model, we obtain an R^2 of 0.99 with the following betas (which represent percentages transferred from the first round to Pi\u00f1era in the second round):<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2273\" data-permalink=\"https:\/\/geekosas.com\/index.php\/es\/2017\/12\/18\/estimacion-repartija-de-votos-segunda-vuelta-presidenciales-chile-2017\/betas\/\" data-orig-file=\"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/betas.png?fit=685%2C549&amp;ssl=1\" data-orig-size=\"685,549\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"betas\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/betas.png?fit=685%2C549&amp;ssl=1\" class=\"alignnone size-full wp-image-2273\" src=\"https:\/\/i0.wp.com\/www.geekosas.com\/wp-content\/uploads\/2017\/12\/betas.png?resize=685%2C549\" alt=\"\" width=\"685\" height=\"549\" srcset=\"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/betas.png?w=685&amp;ssl=1 685w, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/betas.png?resize=300%2C240&amp;ssl=1 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/p>\n<p>We can see that, as expected, all those who voted for Kast and Pi\u00f1era in the first round voted for Pi\u00f1era in the second round; also, 75% of new voters voted for Pi\u00f1era. Among other analyses, Guillier transferred 6% of his votes to Pi\u00f1era, while voters for Artes and Goic did not transfer any. EDIT: I consider Navarro an error because he had very few votes.<\/p>\n<p>In the following graph we present the votes transferred by candidates to Pi\u00f1era in the second round:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2274\" data-permalink=\"https:\/\/geekosas.com\/index.php\/es\/2017\/12\/18\/estimacion-repartija-de-votos-segunda-vuelta-presidenciales-chile-2017\/votos\/\" data-orig-file=\"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/votos.png?fit=685%2C549&amp;ssl=1\" data-orig-size=\"685,549\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"votos\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/votos.png?fit=685%2C549&amp;ssl=1\" class=\"alignnone size-full wp-image-2274\" src=\"https:\/\/i0.wp.com\/www.geekosas.com\/wp-content\/uploads\/2017\/12\/votos.png?resize=685%2C549\" alt=\"\" width=\"685\" height=\"549\" srcset=\"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/votos.png?w=685&amp;ssl=1 685w, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/votos.png?resize=300%2C240&amp;ssl=1 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/p>\n<p>Let us remember that the advantage Pi\u00f1era had over Guillier was 635,671 votes. Therefore, if the voters of S\u00e1nchez and MEO had not supported him, Pi\u00f1era would have lost the election. Now, why people who voted for them in the first round voted for Pi\u00f1era in the second, only the voter knows.<\/p>\n<p>ADDED: I think the assumption that votes move homogeneously could be better fulfilled by table at each polling station. I&#8217;ll see if I can get the complete database.<\/p>\n<p>I would like to receive comments on this article to get ideas for making a better estimate when the database by polling station is released.<\/p>\n<p>Thank you very much!<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>This article was made in a hurry and with little data; the definitive one is at Who voted for each candidate? After the first round <a class=\"mh-excerpt-more\" href=\"https:\/\/geekosas.com\/index.php\/2017\/05\/23\/estimation-of-vote-distribution-in-the-second-round-of-the-chilean-presidential-elections-2017\/\" title=\"Estimation of vote distribution in the second round of the Chilean presidential elections 2017\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":2271,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-3314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sin-categoria"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/segunda-vuelta.jpg?fit=710%2C399&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8vjqF-Rs","jetpack-related-posts":[{"id":3317,"url":"https:\/\/geekosas.com\/index.php\/2017\/05\/23\/who-voted-for-each-candidate-chilean-elections-2017\/","url_meta":{"origin":3314,"position":0},"title":"Who voted for each candidate? (Chilean Elections 2017)","author":"Daniel Fischer","date":"2017-05-23","format":false,"excerpt":"Last Sunday, the president of Chile was elected, so many pundits tried to explain how the votes from the first round were distributed to the second round. Since the vote is secret, no one can be wrong. That is why I decided to take a different approach from the standard\u2026","rel":"","context":"In &quot;Sin categor\u00eda&quot;","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/geekosas.com\/index.php\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/1511132848-untitled-collage-3.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/1511132848-untitled-collage-3.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/1511132848-untitled-collage-3.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/1511132848-untitled-collage-3.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/12\/1511132848-untitled-collage-3.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3227,"url":"https:\/\/geekosas.com\/index.php\/2026\/05\/13\/como-se-repartieron-los-votos-en-la-segunda-vuelta-en-chile\/","url_meta":{"origin":3314,"position":1},"title":"How were the votes distributed in the runoff election in Chile?","author":"Daniel Fischer","date":"2026-05-13","format":false,"excerpt":"Acknowledgments: I would like to begin this article by thanking Hernan Aburto (huaburto@gmail.com) for his assistance. We worked together to refine the model and polish the conclusions. His version of the article on his blog: https:\/\/www.grialprofano.cl\/flyto\/97\/que-paso-con-los-votos-de-la-primera-vuelta-en-el-balotaje\/ How were the votes distributed? In the most recent elections held on Sunday, December\u2026","rel":"","context":"In &quot;Sin categor\u00eda&quot;","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/geekosas.com\/index.php\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2021\/12\/FRCN3F5FY6BYLWSLIY4NSVWH5E.jpg?fit=900%2C600&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2021\/12\/FRCN3F5FY6BYLWSLIY4NSVWH5E.jpg?fit=900%2C600&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2021\/12\/FRCN3F5FY6BYLWSLIY4NSVWH5E.jpg?fit=900%2C600&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2021\/12\/FRCN3F5FY6BYLWSLIY4NSVWH5E.jpg?fit=900%2C600&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3288,"url":"https:\/\/geekosas.com\/index.php\/2017\/05\/23\/parking-law\/","url_meta":{"origin":3314,"position":2},"title":"Parking Law","author":"Daniel Fischer","date":"2017-05-23","format":false,"excerpt":"In Chile, on February 15 (correct me if I'm wrong), the parking law was enacted, which among other things requires parking companies to: Compensate customers who are victims of theft. Prohibit fines for lost tickets. Choose one of the following two pricing methods: Charge per minute actually used. Charge per\u2026","rel":"","context":"In &quot;Sin categor\u00eda&quot;","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/geekosas.com\/index.php\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/02\/1487175020-auno760729.jpg?fit=799%2C533&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/02\/1487175020-auno760729.jpg?fit=799%2C533&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/02\/1487175020-auno760729.jpg?fit=799%2C533&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2017\/02\/1487175020-auno760729.jpg?fit=799%2C533&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3285,"url":"https:\/\/geekosas.com\/index.php\/2017\/05\/23\/video-games-and-statistics\/","url_meta":{"origin":3314,"position":3},"title":"Video Games and Statistics","author":"Daniel Fischer","date":"2017-05-23","format":false,"excerpt":"The video game industry has grown exponentially. New game genres, new business models, new types of gamers, and new devices for playing have been created, but what hasn't changed is that so\u2011called triple\u2011A games still exist. Triple\u2011A games are characterized by belonging to companies with a large budget to invest\u2026","rel":"","context":"In &quot;Sin categor\u00eda&quot;","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/geekosas.com\/index.php\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.geekosas.com\/wp-content\/uploads\/2017\/02\/fifa-300x121.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.geekosas.com\/wp-content\/uploads\/2017\/02\/fifa-300x121.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.geekosas.com\/wp-content\/uploads\/2017\/02\/fifa-300x121.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.geekosas.com\/wp-content\/uploads\/2017\/02\/fifa-300x121.jpg?resize=700%2C400 2x"},"classes":[]},{"id":3308,"url":"https:\/\/geekosas.com\/index.php\/2017\/05\/23\/linux-course\/","url_meta":{"origin":3314,"position":4},"title":"Linux Course","author":"Daniel Fischer","date":"2017-05-23","format":false,"excerpt":"I will be giving a Linux Course on Friday 2017-12-01 organized by MetricArts and Microsoft. We will have a Linux course in which we will interactively cover the following topics: What is Linux History of Linux and Family Tree The Linux Ecosystem Different Distributions Differences Between Distributions Linux Graphical Environments\u2026","rel":"","context":"In &quot;Sin categor\u00eda&quot;","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/geekosas.com\/index.php\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2016\/04\/linux.png?fit=387%2C442&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3281,"url":"https:\/\/geekosas.com\/index.php\/2016\/05\/23\/multi-core-performance-in-r\/","url_meta":{"origin":3314,"position":5},"title":"Multi-Core Performance in R","author":"Daniel Fischer","date":"2016-05-23","format":false,"excerpt":"Introduction A few days ago, while walking around, I saw that they were selling a used HP Proliant DL360 G6. For those who don't know, it's a high\u2011performance server from 2010. Due to my interest in Data Science and BIG DATA, this toy will be useful for a diploma course\u2026","rel":"","context":"In &quot;Sin categor\u00eda&quot;","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/geekosas.com\/index.php\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2016\/11\/RStudio-Ball.png?fit=1000%2C1000&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2016\/11\/RStudio-Ball.png?fit=1000%2C1000&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2016\/11\/RStudio-Ball.png?fit=1000%2C1000&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/geekosas.com\/wp-content\/uploads\/2016\/11\/RStudio-Ball.png?fit=1000%2C1000&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/posts\/3314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/comments?post=3314"}],"version-history":[{"count":1,"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/posts\/3314\/revisions"}],"predecessor-version":[{"id":3315,"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/posts\/3314\/revisions\/3315"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/media\/2271"}],"wp:attachment":[{"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/media?parent=3314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/categories?post=3314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekosas.com\/index.php\/wp-json\/wp\/v2\/tags?post=3314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}