Stung Eye

The eye of the bee holder.

Reading and Listening in 2013

I read nineteen books this past year, one more than in 2012, and three more than 2011. Only one of the books was read on my Kobo, the rest were deadtree.

Books Read in 2013

Read in this order. The only dud was Piers Anthony’s Split Infinity. The best of the lot were the three Stephenson novels (fan boy alert!) and Viktor Frankl’s search for meaning. Adams and Vonnegut provided the laughs. Following Snow Crash with Virtual Light highlighted the shared themes of corporate/religious nation-states, virtual worlds, and oddly, messenger culture. Zen and Lila remain fascinating fourteen years later, although I’ve switched which of the two I prefer.

Incomplete Reads

I’ll attempt The Annotated Turing again. I might have enjoyed The Unconsoled in a different time and place, but I filled yearly postmodern-dream-world quota with Travels in the Scriptorium.

Audio Lectures

In 2013 I listened to sixty hours of lectures across five courses. Most of these lectures were heard while running outside in both summer and winter months.

A New Year

This year I’ll read the thirty-six short stories featured in A Day’s Read, an audio course from The Great Courses. I also hope to read more non-fiction than in past years.

Currently Reading and Listening


Stuff Dutch People Like

My sister Colleen wrote a book. Her book, Stuff Dutch People Like, is an exploration of the quirky culture of her adopted homeland the Netherlands. It’s based on her blog of the same name. The book is already selling very well in the Netherlands. I am incredibly proud of my little sister!

Although she lives in Amsterdam (and has for the past decade) she’s having a book launch here in Winnipeg this Wednesday, January 8th at 7 p.m. at McNally Robinson (Grant Park Mall). You should come, especially if you are Dutch, are of Dutch ancestry, or are married to a Dutch expat. I can’t promise you any stroopwafles, liquorice, or hagelslag, but I assure you it will be gezellig. I may even wear my red pants.


Check out the Stuff Dutch People Like blog or buy a copy of the book.

Check out the Stuff Dutch People Like blog or buy a copy of the book.


Discovered on January 4, 2014

My daughter and I found a new favourite video. We love it.


Discovered on December 24, 2013

I’m taking a social media vacation until Jan 6. Peace and love friends.

I’m taking a social media vacation until Jan 6. Peace and love friends.


Probability of Dice Rolls in Settlers of Catan

Settlers of Catan Board

A few weeks back I played a game of Settlers of Catan where an 8 was only rolled once. This is a pretty big deal if you know how the game is played.

In Catan, each turn begins with a player rolling two 6-sided dice. The sum of this roll determines the game play. The full rules of the game aren’t important for this post, just the fact that players hedge their play based on the probabilities of specific sums occurring. According to these probabilities an 8 should roll, on average, every 7.2 turns. In our game it took 72 turns to roll an 8! For the players who had hedged their fortunes on 8s, this was a crushing blow.

After the game, we spent some time discussing the rarity of a game such as this. Many felt that only rolling one 8 in 72 turns was incredibly rare. I argued that it wasn’t as rare as we might think. I then took the position that we couldn’t have a logical discussion about these kinds of games since randomness was involved. I was wrong, we have probability theory.

Let’s explore probability theory to learn how rare this game really was.

Single Die Probabilities

When rolling a single 6-sided die, the chance of rolling any side is equal. Since there are six sides to the die, each side has a 1 out of 6 chance of rolling. If, say, we were to roll a single die 600 times, each side would appear on average 100 times.

In probability theory terms this is called a uniform distribution.

Dice Sum Probabilities

Things get more interesting when pairs of dice are thrown and summed, as in Catan. In this situation certain sums are more likely to appear than others. This is because there are more possible die-side combinations for certain sums.

The following chart shows this distribution of sums. Notice that the sum of two uniform distributions (each die) makes a triangular distribution.

All possible combos when summing two six-sided dice.

Shown in this image are the 36 possible outcomes of rolling 2 dice. Six of these combos sum to a 7 while only one of them sums to a 2. It should therefore be apparent that in a game of Catan, 7s are rolled more often than 2s. If you don’t believe me, grab a pair of dice and start rolling while keeping track of the sums.

Looking at this chart we see that 5 of the 36 possible combinations sum to an 8. As such, an 8 should roll on average 5 times every 36 rolls, or as I stated earlier, once every 7.2 rolls (5/36).

Simulating Dice Rolls

I coded the following visualization to demonstrate these dice-sum probabilities. In this program virtual 6-sided dice-throws are simulated using a pseudorandom number generator. In total over 3000 virtual dice are thrown before the program resets.

The left-hand graph above shows how often each virtual die lands on a specific side, 1 through 6. Since there is an equal probability of each side appearing, the columns in this graph should all be approximately the same height. This is the uniform distribution I mentioned earlier.

The right-hand graph above shows these same dice-rolls grouped in pairs and summed, just like in a game of Settlers. As the number of rolls increases, this graph of sum-occurrences begins to resemble the triangular distribution shown in the picture of the dice sum combos above.

Randomness is Tricky

Based on these dice-sum probabilities, how often should an 8 roll in 72 turns? Well, if the chance of rolling an 8 is 5 out of 36 (or 13.9%) then in 72 turns an eight should roll on average 10 times. Why? Because 13.9% of 72 is 10.

Notice that throughout this post I’ve been using the phrase “on average” when talking about expected dice rolls? That’s the key to our mystery. Yes, based on the probabilities, an 8 should be rolled 13.9% of the time. However, each roll is random and independent from all previous rolls. So with enough rolls the results will settle close to these probabilities (this is the law of large numbers), but for a small sampling of rolls they may not. Grab two dice and roll them 36 times, a sum of 8 will show up exactly 5 times only about 19% of the time. Such is chaos.

The next visualization demonstrates just this effect. Each refresh of the graphs represents another possible 72-roll game of Settlers. With a sample size of 72 pairs of dice the graphs are often far from ideal. In some games dice-sides are far from uniform, and the dice sums do not always follow the expected triangular probability distribution.

Our Crazy Game

So how rare was our game? I used the AnyDice programming language (which is an amazing tool btw) to find out.

output 72d (2d6 = 8)

This program calculates the odds of rolling any number of 8s in a game of 72 rolls of 2 six-sided dice. Based on the output of this program the chance of rolling exactly one 8 in a 72 turn game of Settlers is 0.0245%. In other words, a game like this could be expected, on average, once every 4,081 games.

Truthfully, since our game went to 79 rolls it was more like a 1 out of 10,595 game. Had no eights rolled in the entire 79 roll game, it would have been a 1 out of 135,000 game. Counting both cases together (one 8 or fewer in 79 rolls), a game at least as extreme as ours comes along about once every 9,824 games. Rare, but still possible. Such is chaos.

UPDATE (18/12/2013): What About The Sequence of No-8 Rolls?

After reading this post, a friend who was at the game suggested that the odds were actually far worse than I calculated, if you take the order of the rolls into account. His argument being that going the first 71 rolls without an 8 is a 1 in 40,813 event. See calculation below*.

While this is true, it’s important to note that we are now talking about two different probabilities.

  1. Probability of no 8s in the first 71 rolls: 1 in 40,813
  2. Probability of rolling only one 8 anywhere in 79 rolls: 1 in 10,595

The first is less likely because it describes a narrower event, one picked after we’d seen how the game played out. A run of 71 or more no-8 rolls anywhere in a 79 roll game is about a 1 in 19,332 event.

Resources and Further Reading

Before I started writing this blog post I wrote a Ruby program to simulate the roll of dice in Settlers using the truly random data from Random.org.

I referenced the following sites while writing this post:

*Example Probability Calculation: The odds of rolling no 8s in a game of 71 turns.

The probability of not rolling an 8 is 1 minus the probability of rolling an 8.

1 - 5/36 = 31/36

We multiply the probability of not rolling an 8 with itself 71 times (31/36 to the power of 71) to find our answer.

The odds are 0.00245% which is 1 out of 40,813.

Attributions: The header image for this post was found on enjoyneer.blogspot.com. The dice-sum probability image was found on rosalind.info. I wrote the two programs in this post using the Processing language and they are hosted on OpenProcessing.org.


Discovered on December 15, 2013


Discovered on December 6, 2013

Over the years my dad has found a number of older intaglio copperplates in various Dutch markets. Once back home, he cleans them up and prints them at his studio in the Artspace building. This is a print of his latest find, a copperplate etching printed on rag paper. Related: Etching for Artists and Hackers - The slides from a 2011 presentation I gave at Skullspace.

Over the years my dad has found a number of older intaglio copperplates in various Dutch markets. Once back home, he cleans them up and prints them at his studio in the Artspace building.

This is a print of his latest find, a copperplate etching printed on rag paper.

Related: Etching for Artists and Hackers - The slides from a 2011 presentation I gave at Skullspace.


Discovered on November 24, 2013

I met a robot at a ballet once by Isabela Dos Santos.

Ever felt the urge to play Settlers of Catan, but the game itself was not close at hand? Follow these Instructable on Pen and Paper Catan.

I am eagerly awaiting the arrival of three copies of Robot Turtle.

Lastly, for BIT students who wonder why they take a stats course:

Also:


Discovered on November 8, 2013

About ten years back, I lost my job and spent a bunch of time planting wonder sparks around the city. For one of these projects I took 50+ homemade frames to the U of M and framed things (top left). Today I came across Real Life Instagram (top right) which is pure wonder spark goodness. I still occasionally plant arts and crafts around town. Im now left feeling like I should ramp up my efforts. Fun! From my June 2003 blog post: What are wonder sparks, you may ask? Well thats the best part The answer is: anything. Anything that will stimulate the sense of wonder of your fellow man. Paint pictures on the sides of garbage cans, plant trees in strange urban locations, leave poems on the tables in the lunch room, ponder strange philosophical concepts with the other people in the checkout line at the grocery store. You get the picture. Now get out there and create some sparks!

About ten years back, I lost my job and spent a bunch of time planting wonder sparks around the city. For one of these projects I took 50+ homemade frames to the U of M and framed things (top left).

Today I came across Real Life Instagram (top right) which is pure wonder spark goodness.

I still occasionally plant arts and crafts around town. I’m now left feeling like I should ramp up my efforts. Fun!

From my June 2003 blog post:

What are wonder sparks, you may ask? Well that’s the best part… The answer is: “anything”. Anything that will stimulate the sense of wonder of your fellow man. Paint pictures on the sides of garbage cans, plant trees in strange urban locations, leave poems on the tables in the lunch room, ponder strange philosophical concepts with the other people in the checkout line at the grocery store. You get the picture. Now get out there and create some sparks!


Discovered on October 30, 2013

An MRI scan of a banana flower. More MRI scans of fruit can be found at Inside Insides.