I think my head is full of ants

Posted in Science, Video on January 11th, 2008

As many of my students can attest, I’ve always loved emergent behavior where you have a whole bunch of “stupid” agents working with simple rules, but the end result is amazingly complex and wondrous. There are termites, for example, that by following simple rules (and with no “leader” in charge) manage to build large mounds with extraordinarily precise climate control in certain chambers where they farm special fungi. If you held a gun to my head and told me to use dirt, sticks, and other bits lying around to build a chamber that would be nearly constant temperature day and night, winter and summer, I’d have to tell you to pull the trigger. Yet these insects, with no blueprint or foreman, pull it off over and over again across thousands of years. (Doesn’t evolution just rock!)

No surprise, then, that I was smitten with this recent TED video (of a talk from four years ago) where Deborah Gordon talks about her research into how ants figure out how to allocate tasks (i.e., who does what when).

If you want to play with this sort of thing, I recommend both NetLogo and Breve, as well as this cool Breve-based screensaver, which evolves walking creatures while you’re momentarily distracted from your random web surfing. Both NetLogo and Breve can happily suck up way too much of your life (there are literally days to be spent playing with all the canned models in NetLogo), but it’s great fun, and working with tools like this can really help build your intuition for how complex systems of agents can work.

Below the fold I list some of my favorite NetLogo simulations that I often use in demos.

Read the rest of this entry »

Tags: , , , , , , ,

Related posts

A serious case of misplaced priorities

Posted in Environment, Politics on December 3rd, 2007

Alert! One of our eagle-eyed readers (Lambo) pointed out in the comments that the details of this chart are almost certainly broken, and that the PCRM may not be quite the upstanding source that we might have hoped for. I think the larger point probably still holds, but this graph needs to be taken with more salt than is dietarily good for you. See the comments for more.

Chart showing how messed up our food subsidies are

We are what we eat, and (all too often) we eat what’s cheap, and what’s cheap is what we subsidize.

Or, turning the thing around…

We subsidize unhealthy, environmentally irresponsible foods, so it’s hardly a surprise that, as a nation, we eat tons of the stuff.

To cleanse your pallet, I’ll leave you with a delicious organic mushroom from River Nene Farms

To become a gorgeous soup

Tags: , , ,

Related posts

The power of good visualization

Posted in Computing, Education, Environment, Politics, Science on November 16th, 2007

Drop in life expectancy in Botswana visualized with Gapminder

I just discovered The Gapminder, a very cool visualization tool created by Hans Rosling and others. It gives you the ability to visualize changes in a variety of socio-economic indicators across both space and time, with particularly effective use of simple animations across the time dimension.

It’s really cool to play with, and there are a lot of things you can change that aren’t immediately obvious (I found the short demo in the on-line help quite helpful). You can certainly learn a lot by goofing around with it (as well as generate a lot of meaningless visual noise). The screenshot above is from a plot of life expectancy vs. per capita income over time (the default plot you get when you start it up). I had to watch it a few times to sift out some trends, but after getting past the obvious “generally, more money means longer life” I realized that lots of blue bubbles (i.e., African countries) were “falling” out of the cloud at the end like particulates settling out of a liquid. This indicates that their life expectancy has plummeted in the last few years, which is obviously not the right direction. Why? Almost certainly the continuing AIDS crisis in large parts of Africa, and visualizations like this make it painfully (literally) obvious that this must be cause for serious concern.

In the graph above, I’ve highlighted Botswana,which shows a particularly depressing case. Both their life expectancy and per capita incomes were moving in a happy direction until the early 90’s when, despite continued gains in per capita income (which I’d like to know more about), their life expectancy flew the wrong direction.

Take a second to think about the enormous human suffering a change like that implies.

Thanks to John Hawks for the pointer. Hawks points out that the use of circles of different areas probably isn’t a great way to visualize quantitative differences (a general point Tufte raised years ago), but Rosling’s going for quick impact rather than quantitative precision:

So far, we have had a major hit with two target groups: children under 12 and heads of state. What they have in common is that you have only 5 to 10 seconds to impress them.

(You just have to love the reality that you need the same tools to communicate with little kids and world leaders. Maybe we should just put the little kids in charge? They might have more empathy.)

One thing that really annoyed me when I wrote this post was the fact that you can’t easily embed these graphs in a web page. I don’t think I’d really appreciated how used I’d grown to being able to embed images, video, maps, slideshows, and the like in blog posts. I think embedding has become absolutely key to the success and mass propagation on the web, and people designing new tools (or updating existing ones) better keep that in mind.

Tags: , , , , , , ,

Related posts

Hitting yourself in the face with a hammer

Posted in Family, General, Politics, Science on December 12th, 2006



Impact

Originally uploaded by darkmatter.

Those wild and crazy people at WalkingTimeBomb.com have a whole host of ads aimed at college students who blithely assume (despite all the evidence to the contrary) that they’ll quit smoking after they graduate. Some of them are pretty strange and don’t make a lot of sense, but some are real winners:

Hitting yourself in the face with a hammer is not harmful as long as you only do it socially.

When I’m at the bar I like to smack myself in the face a few times with a good claw hammer. So what? Who am I hurting? Or the other day I was walking along with Joe and he pulled out a shiny ball-peen model. Man, we just went to town with that baby. But what of it? I don’t plan on being one of those life-long hammerers. I’ll just quit after I graduate by tapering off with some of those small rubber mallets.

Generally I’m a pretty libertarian kind of guy, and I rarely give students grief about their smoking even though they bloody well ought to know better. Going through this cancer fight with Dad, though, makes it tough not to run around shouting at students that I see smoking.

The problem is that the claim that smoking (or not wearing a seatbelt or a bicycle helmet or whatever) only hurts the fool is based on a sad and ultimately unacceptable assumption that there is and will be no love in that person’s world when the odds come for their due. To watch my mother hold Dad while he’s vomiting again in the middle of the night, to hear her voice break on the phone after spending another all-nighter with him at the hospital, all this shatters any arguments that the impact of these choices is limited.

We are people, and that has implications.

When my father started smoking in the early 40’s, there was no broad understanding of the horrible risks involved, and as that data became clearer the tobacco industry spent millions to confuse and obfuscate the issues. At some point when I was a kid (late 60’s, early 70’s) Dad became convinced and stopped cold, an action I have always admired.

Today’s students can’t claim ignorance, and I sure as hell hope they don’t plan on lonely, loveless lives. I know that I have higher aspirations for them…

Tags: , , , ,

Related posts