Archive for Applet

Voting Patterns in UN General Assembly

Voting Blocks in the UN General Assembly 2000-2008. CC-BY-SA 3.0 PaBaMapa.com.

The UN’s General Assembly is body where each  UN nation gets one vote. Looking at these votes through the years 2000-2008, we check how often given to countries agree/disagree on a particular issue. The above picture is a so call “spring graph”, where country that vote similarily are shown close to one another, and those who disagree a lot are show far apart.

The colors represent the five regional groups of the UN. You can clearly see some things: The division between the developed/western world and the rest, as well as the relative isolation of USA and Israel in voting in the General Assembly.

Here is an applet where you can draw the countries in question around. If you click on one country and move the mouse over another one you can see their correlation.

Sources

The data of all UN GA votes -2008 can be found here:

Erik Voeten and Adis Merdzanovic, “United Nations General Assembly Voting Data”, hdl:1902.1/12379 UNF:3:Hpf6qOkDdzzvXF9m66yLTg== V1 [Version]

The physics part of the applet was taken and modified from the following example: http://www.openprocessing.org/visuals/?visualID=10349 by Joris Dormans.

 

Share on TwitterSubmit to StumbleUponSubmit to redditShare via email

The Busiest Bus Stops in Reykjavik

Here’s a small applet, which allows you to navigate through Reykjavik Bus data.

Green = people entering the bus.
Red = people leaving the bus.

Press the “+1h” button to advance in time.

UPDATE: I added exectutable versions for Windows, Mac and Linux:
busExplorer.linux32
busExplorer.macosx
busExplorer.windows32 

Share on TwitterSubmit to StumbleUponSubmit to redditShare via email

Voting Patterns in the Constitutional Council of Iceland 2011

Voting Patterns in Icelandic Constitutional Council of Iceland. Those close to one another in views appear close on the map.

The above pictures was made by combining the voting results within the Icelandic Constitutional Council in 2011. Those representatives who voted in similar ways are shown close to one another. Connections symbolize that the representatives in question voted similarly more than 70% of the time. The darker the lines, the larger the conformity.

DISCLAIMER: I, the author of this blog, Pawel Bartoszek, was a member of the Constitutional Council of Iceland. This does kind of disqualify me as an “impartial observer” :) . Keep that in mind.

How the picture was made

I took data from all the voting in the last days of the Council (the 17th and the 18th meeting). This is official data, the file I assembled from different documents can be downloaded here: allvotes.

First, I ignored all unanimous votes. Then I calculated how much each two representatives agreed on average,

  • 0 meaning full agreement in a particular vote
  • 1 meaning that one abstained and the other voted yes/no and
  • 2 meaning that one voted “yes” where the other voted “no”.
This is how I calculated the “distance” between each two representatives, and this was used to draw a so called Spring Graph (The bulk of the code came from this example by Joris Dormans). So, representatives close to one another in views appear close on the graph.
Thus, we get the following applet: (You can drag the circles around. SPACE resets the applet).

In fact the person with whom most representatives agreed was Ástrós Gunnlaugsdóttir. This is (probably) due to the fact that she only took part in the second reading of the proposals (due to maternity leave), where the voting was much more uniform, since most of the “hottest” topics had been agreed upon. If we only take into account the votes during the 1st reading of the final proposals, then the patterns are a bit more clear.

[You can drag the nodes around, and reset by pressing SPACEBAR]

The Constitutional Council was rather special, since the representatives did not run on party labels and did not, at least not formally, organize themselves in party-groups. As one can see though, there were some divisions. The cluster seen on the right in the top picture, consisted mostly of the Board (Chairman and Vice-Chairman of the Council and Chairmen and Vice-Chairmen of the committees), perhaps this being the more “conservative” side, whereas the other visible cluster consisted of more “radical” members of the Council. But, as said before, that judgment should maybe be passed by someone other than myself.

Share on TwitterSubmit to StumbleUponSubmit to redditShare via email

Most Common Soccer Results

The following shows the most common results of matches in the English Premiership during the seasons 1993-2011. The data comes from www.football-data.co.uk.

Home teams are placed first as usual, and one can clearly see the “home advantage” effect: E.g. the result 1-0 is almost twice as likely as the result 0-1. Summing up, the most common results of soccer matches in the English Premiership are.

  1. (1-1) 12.2%
  2. (1-0) 10.9%
  3. (2-1) 9.0%
  4. (0-0) 8.6%
  5. (2-0) 8.6%
  6. (0-1) 7.5%
  7. (1-2) 6.1%
  8. (2-2) 4.9%
  9. (0-2) 4.4%
  10. (3-1) 4.3%
Share on TwitterSubmit to StumbleUponSubmit to redditShare via email