<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Miran T. on Medium]]></title>
        <description><![CDATA[Stories by Miran T. on Medium]]></description>
        <link>https://medium.com/@narimiran?source=rss-8ee238f357d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Wxup9v5IsjYU_va0.</url>
            <title>Stories by Miran T. on Medium</title>
            <link>https://medium.com/@narimiran?source=rss-8ee238f357d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:17:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@narimiran/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[This is how we roll… backgammon dice]]></title>
            <link>https://medium.com/student-voices/this-is-how-we-roll-backgammon-dice-a514ccdb2ada?source=rss-8ee238f357d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a514ccdb2ada</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[board-games]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Miran T.]]></dc:creator>
            <pubDate>Wed, 04 Jan 2017 10:57:44 GMT</pubDate>
            <atom:updated>2018-06-19T10:10:02.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*JQyUIJOduVAgSt_i8e82LA.jpeg" /></figure><p>Backgammon is one of the oldest board games in the world (much older than chess). It is a two-player game, where pieces are moved according to the roll of two dice. If you want to know more about backgammon, <a href="https://en.wikipedia.org/wiki/Backgammon">Wikipedia article</a> might be a good start.</p><p>One of the major questions when playing online backgammon is: <em>Are the dice fair and random?</em> This article will try to answer that question on an example from DailyGammon.</p><p><a href="http://www.dailygammon.com/">Dailygammon</a> (DG) is a free website for online turn-based backgammon playing, or to quote their own words: <em>DailyGammon is postal chess meets backgammon meets the internet</em>.</p><p>Dice rolls on DG are created with a help of famous <a href="https://www.random.org/">random.org</a>, which has been proven to be a <em>true</em> random generator (compared to pseudo-random generators) in various <a href="https://www.random.org/analysis/">statistical analyses</a>. The actual process of creating the dice rolls is explained in <a href="http://www.dailygammon.com/help/#dice">DailyGammon’s help</a>, where you can also find the actual <a href="http://www.dailygammon.com/help/rng.html">Perl script used</a>.</p><p>The test I used for testing the randomness of DG dice was <a href="https://en.wikipedia.org/wiki/Pearson%27s_chi-squared_test">Pearson’s chi-squared test</a>. In short, if the test shows P-value of less than 0.05, that means that dice are not behaving randomly; P-values higher than 0.95 would mean that dice are following <a href="https://en.wikipedia.org/wiki/Discrete_uniform_distribution">uniform distribution</a> <em>a bit too closely</em>; if the P-value falls between 0.05 and 0.95, we can say the dice are indeed random.</p><h3>Data gathering</h3><p>For this analysis I decided to use the data from my DG matches. Since joining DG in the summer of 2009, I’ve played 2138 matches.</p><p>The first step was to write a small script to download match logs for all those matches. The match log looks like this (just a part of it is shown):</p><pre>3 point match</pre><pre>Game 1<br>JHD : 0                             miran : 0<br>1)                                 62: 24/18 13/11<br>2) 42: 8/4 6/4                     61: 11/5 6/5<br>3) 51: 13/8 8/7*                   33: 25/22 13/10 6/3 6/3<br>4) 41: 7/3* 4/3                    51: 25/20 10/9</pre><p>The part shown is a start of a first game of a 3 point match (the match lengths on DG vary from 1 point matches to 25 point matches) between a player called JHD and me. I was first on the roll, rolled 6–2 on the dice and played a 24/18 13/11 move. The next move was from JHD where he rolled 4–2 and played 8/4 6/4. Then I rolled 6–1, he rolled 5–1, etc.</p><p>The next step was to extract the dice info from the match logs. Python script was written, which extracted not only the values on the dice, but also the information if it was the first roll of the game (more about the reasons for that a bit later), and who was on roll — me or my opponent.</p><p>Some basic stats:</p><ul><li>2138 matches played, on average 0.80 matches per day,</li><li>16,294 games, on average 7.62 games per match,</li><li>606,148 moves in total, or 37.20 moves per game, or 283.51 moves per match.</li></ul><p>Data analysis will be divided in two main parts — the analysis of the dice on the first roll of the game, and the analysis of the dice on the other rolls of the game.</p><h3>First roll</h3><p>When backgammon is played over the board, every game starts with each player rolling one die and the player who rolled the higher die starts first and plays numbers on those two dice (his and opponent’s). If both players roll the same number on dice, they re-roll until one player rolls a higher die. (When playing online, re-rolling happens behind the scenes.)</p><p>The important thing to notice here is there are no doubles (the same number on both dice) on the first roll.</p><p>If the dice are fair, each player should be the first on roll 50% of time in the long run. The key words here are <em>the long run</em>, meaning it could happen (and it happens) that one player will start 10 or more times in the row first, but in the long run the things will balance out.</p><p>In Figure 1 we can see the number of times each player has been the first on roll, and the black vertical line is the expected value (theoretical number of times each player should start first):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*WMGdmDm4cZR5FE_nuQoDjQ.png" /><figcaption>Figure 1: Number of times each player started first</figcaption></figure><p>Out of 16 thousand games, I started first 68 times more than my opponents. Does that mean the dice are favouring me? Chi-squared test dismisses that possibility — chi squared value is 0.284, and for one degree of freedom this gives a P-value of 0.594 — meaning this discrepancy in the number of first rolls for each player is quite expected.</p><p>Next thing to check is to see if DG favours some rolls on the first roll over the others. The distribution of the dice combinations on the first roll is shown in Figure 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*rUpPaVyPWUS5VGZsIgrRhQ.png" /><figcaption>Figure 2: Distribution of the dice combinations on the first roll</figcaption></figure><p>We can see that the most rolls containing a 6 appear less frequently than expected, with 6–5 roll appearing 5% less than it should, while the most rolls containing a 3 appear more frequently than expected, with 5–3 roll appearing 4.3% more than it should.</p><p>Chi squared value is 8.734, and for 14 degrees of freedom (15 different rolls, minus one) this gives a P-value of 0.848 — a relatively high value, meaning these kind of differences are quite normal for an uniform distribution and this number of observed rolls. In other words, the long run here isn’t long enough.</p><p>The last thing to check for the first rolls is to see if the dice distribution is different depending on who is on the roll, me or my opponents.</p><p>The distribution of rolls for each player (or to put it more precisely — the difference from the expected number of rolls) is shown in Figure 3, and experienced backgammon players will probably like to check the distribution of the five best opening rolls: 3–1, 4–2, 6–1, 6–5, and 5–3, respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*Cv8x7oQftsKDcXrQyt9Fdg.png" /><figcaption>Figure 3: The difference from the expected number of rolls for each player for every first roll</figcaption></figure><p>5–3 seems to be my favourite first roll, with 6–5 being the least favourite. The largest discrepancies between me and my opponents seem to be with rolls containing a 2, but once again chi squared test dismisses a possibility of some intentional favouritism (P-values of 0.4175 and 0.5367).</p><h3>Other rolls</h3><p>On other rolls doubles (the same value on both dice) are possible, and doubles in backgammon are especially powerful. While the probability of rolling a certain double (let’s say 5–5) is half the probability of rolling a non-double (let’s say 4–3: it can be rolled as 4–3 (four on the first die, three on the second die) and as 3–4 (three on the first die, four on the second die)), doubles in backgammon are played twice — the roll of 5–5 is played like there were four dice with 5’s on them: 5–5–5–5.</p><p>There are six possible doubles (from 1–1 to 6–6) out of 36 different rolls (6x6, two dice with six numbers on each), meaning the doubles should be rolled 1/6 of the time. Figure 4 shows if it is really like that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*v7hNSY5hVp2MfVIC8h15vA.png" /><figcaption>Figure 4: Number of doubles for each player</figcaption></figure><p>While some players are influenced by <a href="https://en.wikipedia.org/wiki/Confirmation_bias">confirmation bias</a> and are <em>sure</em> that doubles come more often than they should (and usually for their opponents, and especially when it is favourable for their opponents), we can see that doubles on DG come less frequently than expected. Is it possible for a random dice generator to be this wrong after around 590,000 rolls? Chi-squared tests finds this is nothing to write home about, with P-value of 0.221.</p><p>I’m getting more doubles than my opponents. Should they worry they’re being cheated? The difference in the number of doubles between us is rather small and the test confirms that: P-value is 0.878.</p><p>Another thing to check is to see if any of six doubles is more (or less) frequent than the other doubles. This is shown in Figure 5:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*g1TF15CDMlC8Xy0g38KNzA.png" /><figcaption>Figure 5: Distribution of doubles</figcaption></figure><p>Double 4’s are the only double coming up more frequently than the expected value of 1/36th of all rolls. The best racing roll, 6–6 (remember, played as four 6’s) is the least common double. These differences seem to be quite common for the expected uniform distribution, with P-value of 0.427.</p><p>We’ve already seen that I’m getting a bit more doubles than my opponents, but how are they distributed between me and them for each double? See Figure 6:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*jUoE67mBOijin3JS9entWw.png" /><figcaption>Figure 6: The difference from the expected number of rolls for each player for every double</figcaption></figure><p>It seems my rolls are responsible for that spike in double 4’s and the lack of double 1’s seen in the previous figure. Should my opponents try to compensate for that “lack of randomness”? Chi-squared test, with P-value of 0.889, thinks this is quite random.</p><h4>Non-doubles</h4><p>The largest analysed group of dice are the non-double rolls on other-than-first roll. There are almost half a million of them. With that large amount of observed samples, we expect to see the distribution that closely follows the expected uniform distribution (every roll is equally likely).</p><p>Comparison between observed and expected rolls can be seen in the <a href="https://en.wikipedia.org/wiki/Heat_map">heatmap</a> in Figure 7:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*_R_7iB5E6s1bQ9m70-9VYA.png" /><figcaption>Figure 7: Distribution of non-doubles</figcaption></figure><p>The largest discrepancy is for 4–2 roll, which happens 0.85% more than expected, followed by 5–3 roll with +0.60%. The least common rolls are 3–1 and 5–4, which happen 0.59% and 0.52% less than expected, respectively.</p><p>Looking at the (colours of the) heatmap, one could say that 3’s are the most common roll, and 1’s are the least common. P-value of 0.870 suggests this is quite ordinary.</p><p>Finally, we’ll compare the non-doubles distribution for each player. See Figure 8:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*AYIep91Bl8KtH0VlC1IgLQ.png" /><figcaption>Figure 8: The difference from the expected number of rolls for each player for every non-double</figcaption></figure><p>In the above figure we can see that my opponents have some rolls (5–2, 5–3, 6–4) which differ more than 1% from the expected values, but the chi-squared test says this is normal (P-value 0.658). More concerning are my close-to-perfect rolls with the P-value of 0.920 — but this is still in the normal territory.</p><h3>Conclusion</h3><p>While it would be more thrilling to have a bombastic title <em>Online backgammon site cheats its players</em> or similar, (un)fortunately the tests performed here have shown the dice on DailyGammon are fair and square (with <a href="http://asl-battleschool.blogspot.hr/2011/06/what-precisely-are-precision-dice.html">rounded corners</a>).</p><p>Now that you know there is no cheating going on, all I can do is to invite you to create an account on <a href="http://www.dailygammon.com/">DailyGammon</a>, and join one of the nicest online communities. If you’re already a member, feel free to invite me for a game or two — my nick is <em>miran</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a514ccdb2ada" width="1" height="1" alt=""><hr><p><a href="https://medium.com/student-voices/this-is-how-we-roll-backgammon-dice-a514ccdb2ada">This is how we roll… backgammon dice</a> was originally published in <a href="https://medium.com/student-voices">Student Voices</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[European Traffic Deaths]]></title>
            <link>https://medium.com/@narimiran/european-traffic-deaths-b2328aff270?source=rss-8ee238f357d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2328aff270</guid>
            <category><![CDATA[cars]]></category>
            <category><![CDATA[european-union]]></category>
            <category><![CDATA[europe]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[traffic]]></category>
            <dc:creator><![CDATA[Miran T.]]></dc:creator>
            <pubDate>Sun, 02 Oct 2016 13:56:50 GMT</pubDate>
            <atom:updated>2016-10-02T13:56:50.201Z</atom:updated>
            <content:encoded><![CDATA[<p>On September 21st 2016, there was a first incarnation of project <a href="http://roadsafetydays.eu/about-project-edward-and-road-safety-days">EDWARD</a> — European Day Without a Road Death. <br>Coincidentally or not, on the next day <a href="http://ec.europa.eu/eurostat/web/main/home">Eurostat</a> released the updated data of persons killed in road accidents.</p><p>In this article, we’ll take a look at the Eurostat data for a ten-year period from 2005 to 2014 (the data for 2015 is incomplete and largely missing), for 24 of the EU-28 countries —the data for Bulgaria, Lithuania, Malta and Slovakia is missing.<br>Data preparation and visualizations were made in Python. Source code is available <a href="https://nbviewer.jupyter.org/github/narimiran/data-notebooks/blob/master/eu-traffic.ipynb">here</a>.</p><h3>Total traffic deaths</h3><p><em>Each dot represents one country, horizontal blue line represents a median value for a given year, and 50% of values closest to median are inside of a box.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*UgxeO1mswAvA5hT0TTpq1Q.png" /></figure><p>On average there were around 100 traffic deaths per 1,000,000 persons in 2005, and that number is constantly on the decline — in the last two years the average number was <strong>below 60 traffic deaths per million people</strong>. 2005’s average value is 2014’s outlier — a big improvement in ten years time.</p><p>If we take a look at data for each country, we can see large differences between them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*LkyyzKF695hj4yqfOsqTMA.png" /></figure><p>Northern countries have much safer road traffic than the rest of the Europe. First three countries on this list (UK, Sweden, Netherlands) have managed to have <strong>less than 30</strong> traffic deaths per million people in the recent years.</p><h3>Deaths by different traffic roles</h3><p>Driver deaths make 64% of all traffic related deaths, passengers make 15%, and pedestrians make 21%. But the distribution is different across Europe:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*2RkCm-V88zc4KQWTALugIA.png" /></figure><p>In Romania there are as many pedestrian deaths as there are driver deaths! For pedestrians it is <strong>4.5 times more dangerous</strong> to be in Romania than in Luxembourg.</p><h4>Pedestrian deaths</h4><p>It is repeatedly said that pedestrians are the most vulnerable group of road users, but we often hear that a lot has been done in the recent years to increase pedestrian safety. Do the numbers confirm that?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Wh8yC8--CVH9fF6JbW3Umw.png" /></figure><p>Looking at this graph, we can see that average number of pedestrian deaths per million people has <strong>decreased by 40%</strong> in 10 years. Impressive number by itself, but does it tell a whole story?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*6gEOoZrpEwkfq-3l_NtdWw.png" /></figure><p>In those 10 years total number of traffic deaths decreased by 43%. On the right graph we see the share of <strong>pedestrian deaths</strong> in all traffic deaths has in fact <strong>increased by 16%</strong> (from 18.7% to 21.7%).</p><p>How is the situation regarding pedestrian safety in different countries?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*qLaa4MnfuNl9rLzCKAXM9A.png" /></figure><p>Romania, Poland, and Latvia have constantly much higher number of pedestrian casualties than the rest of the Europe — they are the only countries which have more than 20 pedestrian deaths per million people in the last four years.</p><h3>Sex and age differences</h3><p>It is known that males have higher traffic death rates than females, but how big is that difference?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*K9Z3iOcHlPHwJ2-cUhzMGw.png" /></figure><p>In northern countries there are less than 3 male deaths for every female death, compared to southern countries where it is not unusual to have more than 4 male deaths per one female death.</p><p>Car insurance is often more expensive for young and inexperienced drivers. Does this translate to more traffic deaths of younger population?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*cIm5HOQ2Wyb81xaQAHDZmw.png" /></figure><p>While traffic deaths of people aged less than 50 years old decreased by 55% in ten years, traffic deaths of <strong>people aged 50 or more</strong> decreased only 24% in the same time — they now <strong>account for 46% of all traffic deaths </strong>— that’s 30% increase from the values of the same age group in 2005.</p><h3>Conclusion</h3><p>Self-driving vehicles might be a future of road transport, but until that time comes, the road safety is in human hands.</p><p>The good news is that in ten-year period from 2005 to 2014 traffic related deaths in Europe have almost halved. The bad news is that despite the measures to increase pedestrian safety, their share in total number of traffic deaths has increased.</p><p>Many questions still remain unanswered because of limited data available. For example:</p><ul><li>males are 3-4 times more likely to be killed in traffic accidents than females, but there’s no information on how many drivers of each sex there are on the roads,</li><li>is the number of traffic accidents on the decline, or are the accidents just getting less fatal,</li><li>what is the distribution of traffic accidents and deaths depending on the age of the vehicles — are the newer vehicles safer,</li><li>older age groups have become more vulnerable than before — did the age distribution of drivers change or are new generations safer drivers than their predecessors?</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2328aff270" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ex-Yugoslavian Countries — 25 Years Later]]></title>
            <link>https://medium.com/@narimiran/ex-yugoslavian-countries-25-years-later-20627af4910b?source=rss-8ee238f357d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/20627af4910b</guid>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[history]]></category>
            <category><![CDATA[economy]]></category>
            <category><![CDATA[europe]]></category>
            <dc:creator><![CDATA[Miran T.]]></dc:creator>
            <pubDate>Mon, 26 Sep 2016 05:58:37 GMT</pubDate>
            <atom:updated>2016-09-26T05:58:37.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNt7h434u_6459gBV7FzIw.png" /></figure><p>Yugoslavia (<a href="https://en.wikipedia.org/wiki/Socialist_Federal_Republic_of_Yugoslavia">SFRY</a>) was a socialist state in south-eastern Europe, founded in 1945. It was a federation made up of six socialist republics, in alphabetical order:</p><ul><li>Bosnia and Herzegovina</li><li>Croatia</li><li>Macedonia</li><li>Montenegro</li><li>Serbia</li><li>Slovenia</li></ul><p>In this article, we’ll take a look at the development statistics of these countries in the last 25 years, after the Yugoslavian dissolution in ‘90s.<br>The database is available from <a href="http://data.worldbank.org/data-catalog/world-development-indicators">The World Bank</a>. This is the updated version of dataset available on <a href="https://www.kaggle.com/worldbank/world-development-indicators">Kaggle</a>.<br>Data preparation and visualizations were made in Python. Source code is available <a href="https://nbviewer.jupyter.org/github/narimiran/data-notebooks/blob/master/ex-yu.ipynb">here</a>.</p><h3>Demography</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*VkNbEQy-x2sI-2jZPOmFMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*0rwNryJ-jSwxL1YvPYFv-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*pLyeUvcvWenvCGE2aJiecw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*YeZigB_lbakLgGp7HQIKvQ.png" /></figure><p>Population density of all countries hasn’t changed much, with the exception of Bosnia in early ’90s, due to <a href="https://en.wikipedia.org/wiki/Bosnian_War">war in Bosnia</a>.</p><p>Bosnia and Slovenia have constantly high percentage of rural population (60 and 50 percent, respectively), while other countries have slightly lower and slowly decreasing values, but still much higher than EU average.</p><p>Last two figures show that all countries are getting older.<br>The situation is the worst in Bosnia, where the number of children aged 14 or less has halved from the value in 1990, while number of people older than 65 more than doubled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*SvmNJmKA8MUv4B42BgqsTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*FXOW57Db-iL099hC0ZpI8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*XUyaE1UHXQcb-05ldSqTrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*N9cqss4FV8dGUX57can6Vg.png" /></figure><p>What a difference 25 years make! Life expectancy in EU for children born today is 6 years more than for children born in 1990, and infant mortality rate is one-third of a 1990’s values.<br>Slovenia has even bigger growth of life expectancy, and today’s value is the same as EU average. On the other hand, Montenegro had the highest life expectancy in 1990 of ex-YU countries, but there’s almost no growth in the last 25 years.</p><p>All countries now have lower birth rates than 25 years ago. Birth rates in Bosnia have halved in only 15 years.</p><p>Slovenia has managed to keep the same, better than EU average, death rate. In the other countries death rates have increased in recent years.</p><p>Today’s infant mortality rate in all ex-YU countries is close to EU average. In 1990 only Croatia and Slovenia had values similar to European. The average infant mortality rate of the other four ex-YU countries in 1990 was around 22 per 1000 live births. Lots of progress has been made!</p><h3>Education</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*1OnTtz_uKoEuQq_uAyKlhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Y6cClwR5ZQeLYae6DCTL3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*2c_vlH5B8rqB65ovD3f6Vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*JMu2SbXbKnvHTCvYGdwgNw.png" /></figure><p>Slovenia is constantly spending on education more than EU average.</p><p>Literacy rates have increased in all countries.</p><p>Pupil-teacher ratios in both primary and secondary education are on the fall (the exception being Slovenian primary education in 2000&#39;s).<br>In Croatia, in mid 90’s there were 50% more pupils per teacher than there are now.</p><h3>Economy</h3><h4>GDP per capita</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*d63-kLZPH6BCFWq3KEjegg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Qlo767WMLTCJOr-ts4qiLg.png" /></figure><p>Slovenia and Croatia stand out when it comes to GDP per capita, but values are still low compared to the EU average. All other countries have GDP per capita around $5000 (constant 2010 US$).</p><p>All countries in early 2000s (before the big economy crisis in 2008) had GDP growth higher than EU average. The negative spike in 1999 of Serbian and Montenegrin values shows the consequences of <a href="https://en.wikipedia.org/wiki/Kosovo_War">Kosovo war</a>.</p><h4>Unemployment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*QpZBepxfHhew-dbw7Yv5nw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*6RM6ChA718jdyGR8iy-aJQ.png" /></figure><p>Slovenia has always had lower unemployment than EU average. <br>Croatia was getting close to EU average in 2009, but after it, as a consequence of the big economy crisis, unemployment rates almost doubled. Slovenian and Serbian post-2008 unemployment rates show similar characteristics as Croatian. Other countries weren’t as affected as those three.</p><p>Youth unemployment follows a similar pattern as general unemployment.</p><h4>Internet usage</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*TZm3rjiRhObrLysReHB_qQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*N4MlCsTs2HbdKyh1Dcq2sQ.png" /></figure><p>Slovenia is way ahead of other ex-YU countries when it comes to Internet users and had (relatively speaking) high Internet adoption rates in the late 90’s. One could say that Slovenia is about five years ahead of Bosnia, Serbia, and Montenegro.</p><p>Macedonia has about the same rate of Internet users as Croatia, but much lower rate of fixed broadband subscriptions.</p><h4>Import-Export</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*KYyDjiJmNd8L_AUsRNfw9A.png" /></figure><p>Slovenian economy took a hit in 2008’s economy crisis, but after it Slovenia managed to have significantly higher export than import — something that other countries struggle to do.</p><h4>Military / research / health</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Qy4tIR_1MK3b1pGzRst8hA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*I9URUsviv8dnCbLDWsgQQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Pbwp3vTzztpJp7aiQMAHkA.png" /></figure><p>The spike in Macedonian military expenditure is due to <a href="https://en.wikipedia.org/wiki/2001_insurgency_in_the_Republic_of_Macedonia">Albanian insurgency</a> in 2001.</p><p>Slovenia from 2007 onward spends more and more on research and development. Other countries spend less than 1% of their GDP on the R&amp;D.</p><p>Health expenditure in all countries is below EU average.</p><h3>Conclusion</h3><p>25 years are a lot in a man’s lifetime, but is it enough time to show changes of slow-living big creatures such as countries?<br>The data shows that even one year (2008) is enough to shake some ground.</p><p>Having that in mind, did six ex-Yugoslavian republics manage to use 25 years constructively?</p><p>The biggest progress was made in lowering infant mortality rate, which is now around EU average of 0.4%. Life expectancy for all countries is now 75+ years (Slovenia 80+ years, EU average), even though health expenditure in all countries is below EU average.<br>Birth rates decreased and all countries got significantly older, both indicators follow trends in the whole Europe.</p><p>Literacy rates have increased in all countries, and pupil-teacher ratios in both primary and secondary education are on the fall.<br>Slovenia is constantly spending on education more than EU average, and in the last five years their expenditure on research and development is also higher than EU average. Other countries don’t follow the Slovenian example, and are also several years behind Slovenia when it comes to number of Internet users.</p><p>Economically, all countries were doing relatively well until 2008.<br>After 2008, unemployment rates got higher than ever in all countries except Macedonia, which seems to be the least affected by 2008 economic crisis.<br>After the crisis Slovenia managed to have significantly higher export than import — something that other countries struggle to do.</p><p>All countries have made some progress, but there is a room for lot more in the years to come.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20627af4910b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hrvatsko stanovništvo — jučer, danas, sutra]]></title>
            <link>https://medium.com/@narimiran/hrvatsko-stanovnistvo-jucer-danas-sutra-591629462fd8?source=rss-8ee238f357d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/591629462fd8</guid>
            <category><![CDATA[demographics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[population]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[croatia]]></category>
            <dc:creator><![CDATA[Miran T.]]></dc:creator>
            <pubDate>Mon, 19 Sep 2016 05:54:32 GMT</pubDate>
            <atom:updated>2016-09-19T05:57:13.081Z</atom:updated>
            <content:encoded><![CDATA[<p>U ovom radu obrađeni su dostupni podatci i predviđanja o kretanju broja stanovnika u Hrvatskoj u razdoblju od 1991. do 2040. godine.</p><p>Podatci su dobiveni iz više izvora: <a href="http://ec.europa.eu/eurostat/web/main/home">Eurostat</a> (popis stanovništva 2011. godine), američki <a href="http://www.census.gov/en.html">Census Bureau</a> (kretanje stanovništva 1991.-2040.), <a href="https://hr.wikipedia.org/wiki/Hrvatske_%C5%BEupanije">Wikipedia</a> (površine županija). <br>Sva obrada podataka i vizualizacije napravljeni su u Pythonu, kod je dostupan <a href="https://nbviewer.jupyter.org/github/narimiran/data-notebooks/blob/master/croatia-demographics.ipynb">ovdje</a>.</p><h3>Kretanje stanovništva 1991. — 2040.</h3><p><a href="https://en.wikipedia.org/wiki/Population_pyramid">Starosne piramide</a> su vrlo efektna grafička ilustracija koja pokazuje dobnu i spolnu distribuciju određenog područja (obično države). Sastoji se od dva histograma koji prikazuju broj muškaraca i žena u određenoj dobnoj skupini.</p><p>U prvoj ilustraciji prikazane su starosne piramide za Republiku Hrvatsku u razdoblju od 50 godina —podatci za prošlih 25 godina te predviđanja za sljedećih 25.<br>Na x-osi je broj ljudi u tisućama. Osim same piramide, označena je i prosječna dob po spolu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*a8hsooD8TpCE5YW4f4mGeg.gif" /></figure><p>Ono što možemo primijetiti iz animacije:</p><ul><li>prosječna dob stanovništva je <strong>u konstantnom rastu</strong>,</li><li><strong>žene žive dulje</strong> od muškaraca (prosječna dob je otprilike 4 godine veća),</li><li>broj novorođene djece <strong>pada otprilike 1% </strong>godišnje.</li></ul><p>Pogledajmo zasebno piramidu za 1991. godinu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*6i6gm7fB0vp9bUafBK3_gA.png" /></figure><p>Ako promatramo samo populaciju od 30 godina i više, možemo vidjeti da je do ‘60-ih godina prošlog stoljeća Hrvatska imala piramidalni oblik tipičan za zemlje s <strong>visokim stopama nataliteta i mortaliteta</strong>.<br>Iako je <strong>Drugi svjetski rat</strong> davno završio, na starosnoj piramidi iz 1991. posljedice su jasno vidljive:</p><ul><li>broj muškaraca starijih od 65 godina (borci u Drugom svjetskom ratu) je mnogo manji od broja žena u istim dobnim skupinama — 1,8 žena na 1 muškarca,</li><li>velika ‘rupa’ u dobnoj skupini od 45–49 godina (smanjeni natalitet za vrijeme rata),</li><li>manjak ljudi u dobnoj skupini 20–24 godine (djeca ljudi iz prethodne točke).</li></ul><p>Usporedimo s piramidom za 2016. godinu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*S_j0n6lwDd39iD0kWK7dkQ.png" /></figure><p>Vidimo da je u 25 godina prosječna dob stanovništva porasla za otprilike 5,5 godina. Najveći broj ljudi nalazi se u dobnoj skupini od 50 do 70 godina, a vidimo i povećanje broja najstarijeg stanovništva.<br>Ovakav oblik piramide je tipičan za <strong>razvijene zemlje prvog svijeta</strong>, s niskim stopama nataliteta (dostupnija kontracepcija) i mortaliteta (bolje zdravstvo).</p><h4>Broj stanovnika kroz godine</h4><p>Ono što iz prve animacije nije lako uočljivo je ukupno kretanje stanovništva kroz godine. Vidimo da se broj ljudi smanjuje, ali o kolikoj promjeni je riječ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Ts_iV_MBm_LpNr8b9Z_Izw.png" /></figure><p>Ako je vjerovati predviđanjima, Hrvatska će 2040. imati oko 3,8 milijuna ljudi, što je <strong>pad od 15%</strong> u odnosu na 1990. godinu.</p><h3>Popis stanovništva 2011. — županije</h3><p>Popisi stanovništva u Republici Hrvatskoj održavaju se svakih 10 godina i posljednji je održan 2011. godine. U nastavku ćemo pogledati sastav stanovništva po županijama po nekoliko parametara.</p><h4>Starosne piramide</h4><p>Postoje li razlike u dobnoj strukturi ovisno o županijama? Pogledajmo starosne piramide za svaku županiju, abecednim redom:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lD25UdTIfCOvKEPNYBXutw.png" /></figure><p>Iako su starosne piramide, kada smo gledali cijelu Hrvatsku kroz godine, jasno prikazivale promijene koje se događaju, ovdje je teško uspoređivati razlike između županija.</p><h4>Prosječna starost</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*OVFuOERsRRKIQgnxkXX7aw.png" /></figure><p>Stanovnici Ličko-senjske županije su u prosjeku čak 5 godina stariji od stanovnika Međimurske županije i 3,5 godina stariji od hrvatskog prosjeka.<br>Osim toga, moglo bi se reći da, uz iznimku Splitsko-dalmatinske županije, <strong>najmlađe stanovništvo živi sjeverno od rijeke Save</strong>.</p><h4>Ukupni broj ljudi po županijama</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*aJ59sv6AN0rLmcbDjc2edw.png" /></figure><p>Čak 15 županija ima <strong>manje od 200 tisuća ljudi</strong>, što je jedna četvrtina populacije Grada Zagreba — u kojem živi isti broj ljudi koliko i u <strong>osam najslabije naseljenih županija ukupno</strong>!</p><h4>Gustoća naseljenosti</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*e1V9qcdefwyV4ccXajP70w.png" /></figure><p>Ovdje su razlike između Grada Zagreba i Ličko-senjske županije još izraženije nego na prethodnom grafu zbog njihovih veličina: Grad Zagreb je površinom najmanja (641 km²), a Ličko-senjska najveća županija (5353 km²).<br>Za ilustraciju: kada bi Ličko-senjska županija imala gustoću naseljenosti Grada Zagreba, u njoj bi živjelo preko <strong>6,5 milijuna ljudi </strong>— jedna i pol Hrvatska!</p><h4>Prosječna dob, gustoća naseljenosti i broj stanovnika</h4><p>Prethodna tri grafa možemo prikazati na zajedničkom grafu, na kojem je x-os gustoća naseljenosti, y-os je prosječna dob stanovništva, a veličina markera je ukupan broj stanovnika županije. (Grad Zagreb nije prikazan jer drastično odskače gustoćom i brojem stanovnika)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*zzHSMlxeZghOeFY3N4a6kQ.png" /></figure><p>Vidimo da se lako razlučuju dvije grupe županija:</p><ul><li>šest županija s prosječnom dobi stanovništva <strong>preko 42 godine</strong> — prosjek: 57,6 st/km² i 43,2 godina (tamnija crvena točka),</li><li>ostale županije, s prosječnom dobi stanovništva <strong>ispod 42 godine </strong>— prosjek: 86,8 st/km² i 40,6 godina (tamnija plava točka).</li></ul><p>Također možemo vidjeti da postoji snažna povezanost (<a href="https://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient">koeficijent korelacije</a>: <em>r = -0.71</em>) između (logaritma) gustoće naseljenosti i starosti stanovništva: <strong>rjeđe naseljene županije imaju starije stanovništvo</strong> od gušće naseljenih županija.</p><h3>Zaključak</h3><p>Promatrajući podatke s posljednjeg popisa stanovništva, vidimo da postoje velike razlike između županija, kako po broju stanovnika, tako i po dobnoj strukturi. <br>U proteklih 25 godina, hrvatsko je stanovništvo ostarilo za 5,5 godina i ukupni broj ljudi se smanjio za 227 tisuća (5%). Trend starenja i smanjenja broja stanovnika nastavit će se i u budućnosti. <br>Jesu li predviđanja točna (odnosno, koliko su pogrešna) moći ćemo provjeriti već za pet godina, na popisu stanovništva 2021. godine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=591629462fd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parlamentarni izbori 2016 or: How I Learned to Stop Worrying and Love D’Hondt]]></title>
            <link>https://medium.com/@narimiran/parlamentarni-izbori-2016-or-how-i-learned-to-stop-worrying-and-love-dhondt-f676d807486b?source=rss-8ee238f357d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f676d807486b</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[croatia]]></category>
            <category><![CDATA[elections]]></category>
            <dc:creator><![CDATA[Miran T.]]></dc:creator>
            <pubDate>Tue, 13 Sep 2016 05:36:10 GMT</pubDate>
            <atom:updated>2016-09-13T05:36:10.128Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Republika Hrvatske podijeljena je u 10 izbornih jedinica. U svakoj izbornoj jedinici bira se po 14 zastupnika. <br>Birači koji nemaju prebivalište u Republici Hrvatskoj, glasuju u 11. izbornoj jedinici za dijasporu i biraju 3 zastupnika. <br>Pripadnici nacionalnih manjina odlučuju hoće li glasati u jednoj od deset izbornih jedinica, ili u 12. izbornoj jedinici za dijasporu, u kojoj se bira 8 zastupnika. <br>Broj zastupnika koji će biti izabrani u pojedinoj izbornoj jedinici određuje se po <a href="https://en.wikipedia.org/wiki/D%27Hondt_method">D’Hondtovoj metodi</a>, a u raspodijeli zastupničkih mjesta sudjeluju sve izborne liste koje osvoje barem 5% važećih glasova.</blockquote><p>Izbori za zastupnike u Hrvatski sabor 2016. održani su 11. rujna 2016. godine.</p><p>U ovom radu prikazat će se rezultati navedenih izbora (za prvih 10 izbornih jedinica — bez manjina i dijaspore) u raznim imaginarnim scenarijima:</p><ul><li>cijela RH je jedna izborna jedinica</li><li>izborni prag je 3%</li><li>cijela RH je jedna izborna jedinica i izborni prag je 3%</li><li>u svakoj izbornoj jedinici bira se 12 zastupnika</li><li>korištenje Websterove metode</li><li>Websterova metoda i izborni prag od 3%</li></ul><p><em>Napomena: naslov je referenca na film “Dr. Strangelove” i njime se ne izražava autorova ljubav prema nijednom izbornom sustavu ili metodi.</em></p><h4>Trenutni izborni sustav</h4><p>Rezultati po izbornim jedinicama i ukupni rezultati dobiveni po trenutno važećim pravilima (D’Hondtova metoda, 5% izborni prag).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*B3HviYdlNbwzLEHOe65OrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*udzimjBX1fkZ_Kc46ZwcaQ.png" /></figure><h4>Cijela Hrvatska je jedna izborna jedinica</h4><p>U ovom scenariju promatramo kako bi izgledala raspodjela mandata u Saboru kada bi cijela Hrvatska bila jedna izborna jedinica u kojoj se bira 140 zastupnika.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*mblqbdzcCzyp1IaJJ2nl5A.png" /></figure><p>Pobjednici ovakvih izbora (u odnosu na trenutne izbore) su MOST i Živi zid, koji osvajaju 25% više zastupničkih mjesta. <br>Gubitnici su, logično, stranke koje su uspjele osvojiti mandate samo u pojedinim izbornim jedinicama: IDS, HDDSB i Bandić.</p><h4>Izborni prag je 3%</h4><p>Često se može čuti kako je hrvatski izborni prag od 5% previsok i da bi ga trebalo sniziti kako bi se dala šansa manjim strankama. <br>Koliko bi se promijenila slika u Saboru da je izborni prag 3% umjesto dosadašnjih 5%?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*_Dx-tczJ9CAIpYFVKPUXvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*DZ1m64ICO528_FAwFfkw_A.png" /></figure><p>Suprotno nagađanjima, vidimo da smanjenjem izbornog praga na 3% ne bi došlo do nikakvih promjena u Saboru: osvojeni mandati u svim izbornim jedinicama ostaju jednaki kao i kod trenutnog sustava. <br>Ono što se može primijetiti (na gornjem grafu) je veliki broj slučajeva u kojima stranke prelaze izborni prag, ali nemaju dovoljan broj glasova za osvajanje mandata: Bandić u čak četiri izborne jedinice, Pametno i Živi zid u dvije izborne jedinice, a HDSSB u jednoj.</p><h4>Cijela Hrvatska je jedna izborna jedinica i izborni prag je 3%</h4><p>Kombinacijom prethodna dva scenarija dobivamo podjelu zastupničkih mjesta kada bi cijela Hrvatska bila jedna izborna jedinica uz izborni prag od 3%, kako bi se povećala šansa strankama koje su nepopularne u nekim izbornim jedinicama.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*8-C-DL7CMNR5iGPvmmQZTA.png" /></figure><p>Za razliku od jedne izborne jedinice uz izborni prag od 5%, kada Bandić ostaje bez ijednog mandata, u ovakvom scenariju postaje relativni pobjednik koji je utrostručio broj zastupničkih mjesta.<br>Lokalnim strankama (IDS, HDSSB), koje sudjeluju u samo dvije izborne jedinice, lokalna popularnost nije dovoljna za sudjelovanje u radu Sabora u ovakvom scenariju.</p><h4>U svakoj izbornoj jedinici bira se 12 zastupnika</h4><p>U sklopu mjera štednje, u ovom scenariju se, umjesto dosadašnjih 14 zastupnika po izbornoj jedinici, bira samo 12 zastupnika u svakoj izbornoj jedinici.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*5er8Tzx3jsQkakFe7IeWJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*xt7ix5NeVej6IwT14D5Jow.png" /></figure><p>Smanjenje broja zastupnika, čak i ako se radi o samo dva zastpunika manje po izbornoj jedinici, najgore pogađa stranke koje su osvojile najviše mandata.<br>Tri stranke s najmanjim brojem mandata zadržale bi sve svoje mandate i tako, relativno gledajući, ojačale svoju poziciju u Saboru.</p><h4>Korištenje Websterove metode</h4><p>Više o Websterovoj metodi <a href="https://en.wikipedia.org/wiki/Webster/Sainte-Lagu%C3%AB_method">ovdje</a>.</p><p>Ukratko:<br>Kod D’Hondt metode kvocijenti kojima se dijele glasovi iznose 1, 2, 3, 4, 5, itd.<br>Kod Webster metode kvocijenti kojima se dijele glasovi iznose 1, 3, 5, 7, 9, itd.</p><p>Neke od zemalja u kojima se koristi Websterova metoda: Norveška, Švedska, Njemačka (za izbor u Bundestag), te susjedna Bosna i Hercegovina.</p><p>U teoriji, zbog većih kvocijenata, ova bi metoda trebala više pogodovati strankama koje su osvojile manji broj glasova.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*XU8uWU2-Ivp--rsJCmrdFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*I9O_rnVA5mNqiquGCpNbNw.png" /></figure><p>Dvije najveće stranke osvajaju ukupno tri mandata manje, što i nije velika razlika u odnosu na sadašnji sustav.</p><h4>Websterova metoda i izborni prag od 3%</h4><p>Iako bi Websterova metoda trebala pogodovati manjim strankama, izborni prag od 5% predstavlja previsoku barijeru za neke od njih.<br>Ranije smo vidjeli da smanjenje izbornog praga na 3% kod D’Hondtove metode ne donosi nikakvu promjenu. <br>Kakvi su rezultati snižavanja izbornog praga na 3% kod Websterove metode?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*H4cywCXwIlFgN-MrIuM_yw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*s_BFLjJ5_Gu_-v7KvyhtKg.png" /></figure><p>Websterova metoda uz izborni prag od 3% ima Robin Hoodovska svojstva: smanjuje razlike u broju mandata između stranaka, pogodujući strankama s manje glasova, istovremeno uzimajući od stranaka s najviše mandata.<br>Jedino u ovom scenariju stranka Pametno uspijeva postati parlamentarna stranka uz dva zastupnika iz 1. i 10. izborne jedinice.</p><h3>Zaključak</h3><p>Koji izborni sustav je najbolji? <br>Jedni će reći: <em>ovisi koju stranku se pita</em>, drugi će dodati: <em>nijedan!</em></p><p>U ovom radu napravljeno je nekoliko imaginarnih scenarija koji prikazuju kako bi izgledao saziv Sabora kada bi birači glasovali isto kao 11. rujna, ali uz promijenjena izborna pravila:</p><ul><li>kada bi se ukinule izborne jedinice, to bi značilo kraj za lokalne stranke koje se inače pojavljuju samo u pojedinim izbornim jedinicama (IDS, HDSSB),</li><li>smanjenje izbornog praga sa 5% na 3% samo po sebi ne bi donijelo nikakvu razliku kada su u pitanju mandati u Saboru,</li><li>ali smanjenje izbornog praga na 3% uz primjenu Websterove metode izračuna mandata donosi dodatne zastupnike za stranke koje u sadašnjem sustavu imaju jednoznamenkasti broj mandata ili ne prelaze izborni prag,</li><li>smanjenje broja saborskih zastupnika, ne mijenjajući ostale parametre, značilo bi značajno smanjenje broja mandata za najveće stranke, što bi dovelo do jačanja stranaka s malim brojem zastupnika.</li></ul><p><em>Obrada podataka i vizualizacije napravljeni su u Pythonu. Kod je dostupan </em><a href="https://nbviewer.jupyter.org/github/narimiran/data-notebooks/blob/master/hr-izbori-2016.ipynb"><em>ovdje</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f676d807486b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>