infundibulum

Heads and Tails

November 30th, 2006

Interesting talk on statistics (no, really) from TED:

TED Blog: Statistics

Peter Donnelly gives some evidence that people are bad at estimating probabilities. One example he gives is the following:

Given a fair coin, how many times do you need to flip the coin to produce the pattern HTH? How many times to produce HTT?

Seems like they should be equal, right?

They’re not.

from random import choice

"""
I watched this guy's talk:
http://tedblog.typepad.com/tedblog/statistics/index.html
And didn't believe him.
Now I believe him.
"""

def avg(seq): return float(sum(seq)) / len(seq)

def game(pattern):
"""count number of flips required to produce pattern"""
s = ''
i = 0
while not s.endswith(pattern):
i += 1
s += choice(['h', 't'])
return i

def tournament(pattern, numgames):
"""average many games"""
return pattern, avg([game(pattern) for i in range(numgames)])

for pattern in ['hth', 'htt']: print tournament(pattern, 100000)

Here’s the output:

$ python coins.py
('hth', 10.009219999999999)
('htt', 7.99892)

The explanation in the video is pretty good, but it still makes my eyes cross because for some reason I want ‘htt’ to be less common than ‘hth’, which is exactly wrong.

wtf?

November 30th, 2006

This is hilarious ☺

November 30th, 2006

DeVito’s Not So Sobering View

“I knew it was the last seven limoncellos that was going to get me,” a disheveled DeVito said as he plunked himself down on the View sofa.

Oh whatever.

November 23rd, 2006

NOW Magazine - Movies in Toronto, NOVEMBER 23 - 29, 2006

Cruz’s Spanish performances are quicksilver and funny, ever since her first major role in Bigas Luna’s Jam&oactue;n (1992), as a rural girl involved in a passionate affair with Javier Bardem.

After her sojourn in America, it’s a relief to see Cruz back where she belongs. More importantly, it’s a relief to hear her back where she belongs, not trying to wrap her Castilian consonants around English words.

That’s a pretty lame thing to say.

Penelope Cruz can speak in whateeeeeever language she wants, as far as I’m concerned.

Preferably to me.

Oh, and guys? It’s “oacute.”

Kthx.

Two columns of text is not for teh intartubes. No, rly.

November 22nd, 2006

Look!

A brainy article about brainy stuff!

Put into a design made by morons!

Genetic breakthrough that reveals the differences between humans

Seriously, somebody please tell me how it makes sense to force readers on the internet to scroll back up to see a second column of text?

It’s bonkers.

Even the International Herald Tribune has switched to a single column format, after long using the weird three-column thing as a default (which at least doesn’t force you to needlessly scroll).

Emily Oster on death, etc.

November 21st, 2006

The Freakonomics Blog is always worth a read. I’m not really qualified to put their claims into a broad enough context to decide to believe them, but they sure as hell make you think.

A recent post on economist Emily Oster is a good example of the stories they tend to pick up.

Here are her main ideas:

Three Things You Don’t Know About Aids In Africa

  1. It’s the wrong disease to attack.
  2. It won’t disappear until poverty does.
  3. There is less of it than we thought, but it’s spreading as fast as ever.

I find the second reason to be the most compelling. Oster argues that different reactions to dealing with AIDs in Africa as compared to those in places such as the US are a function of how people in Africa estimate the quality of their future lives (with or without AIDs). In other words, if you you think your life is going to suck anyway, you just can’t work up the motivation to take care of yourself enough to prolong that life.

It’s a harsh assessment, but it seems to be that it’s not all remote from my own experience. Think about young people and drugs: why did people mostly think that Nancy Reagan’s “Just Say No” campaign was so laughable?

Take the typical example of someone who’s strung out: they’re depressed. Their life sucks. They can imagine no way that it could improve. So, when someone in a frilly outfit comes along and says “just say no,” the rational replay is to say “what the fuck should I do that for?”

Of course, this is just me speculating, and I’m no economist. Good thing people like the Freakonomics twins and Oster are out there pushing buttons.

Left Navigation Sidebars… endangered species?

November 14th, 2006

When I can’t think of something to work on, sometimes I will try cloning the broad outlines of the designs of random websites (without looking at the css), just to see how quickly I can hackup n-column layouts, headers, blah blah blah.

In just such a mood the other night, I asked myself what the average width of left navigation bars is across a variety of sites. 100px? 15%? What?

So, by coincidence I happened to have recently read Dave Sifry’s latest State of the Blogosphere and he has a chart of some very popular websites. So, I decided to do a little survey.

Using my handly ruler bookmarklet from centricle.com, I went through all the sites (yes, I’m obsessive) on Sifry’s list and measured how wide their left sidebars were in pixels.

The results surprised me: about half of them didn’t have left sidebars at all.

Here’s my table. The rows with a light red background don’t have a left sidebar at all. As you can see, it’s about 50/50.

px site
90 www.nytimes.com
150 www.yahoo.com
0 www.cnn.com
130 www.msnbc.com
0 www.washingtonpost.com
275 www.bbc.co.uk
140 www.news.google.com
130 www.usatoday.com
0 www.wired.com
124 www.sfgate.com
127 www.guardian.com
134 www.latimes.com
137 www.abcnews.com
0 www.asahi.com
0 www.engadget.com
0 www.nhk.or.jp
128 www.timesonline.co.uk/global
0 www.boston.com/news/globe
153 www.reuters.com
0 www.news.com.com
0 www.forbes.com
0 www.foxnews.com
180 www.c-news.jp
125 www.npr.org
175 www.cbsnews.com
0 www.money.cnn.com
138 www.slate.com
245 www.finance.yahoo.com
175 www.boingboing.net
0 www.businessweek.com
88 www.time.com
0 www.yomiuri.co.jp
0 www.espn.go.com
140 www.mercurynews.com
190 www.pbs.org
215 www.blog.sina.com.cn/m/xujinglei
154 www.telegraph.co.uk
0 www.topix.net
150 www.canada.com/vancouversun
120 www.seattlepi.nwsource.com
0 www.iht.com
0 www.smh.com.au
0 www.canada.com
0 www.chron.com
70 www.wsj.com
127 www.seattletimes.nwsource.com
0 www.sanspo.com
0 www.townhall.com
0 www.nikkansports.com
0 www.bloomberg.com

What seems to be the trend (especially among news sites) is to put the navigation stuff in a horizontal nav bar across the top, and a large feature story (often with an image) flush left. Perhaps this trend has to do with generally increasing screen width?

Things Lakota/Dakota/Sioux. And copyright.

November 14th, 2006

I spent a few hours tonight poking around in the American University library tonight, and as usual I headed for the “P” section… “PM,” as it happened.

That would be languages… Hyperborean, Indian and artificial languages, according to the ever-aleatoric Library of Congress classification. (Ugh, Shirky was right; ontology is overrated.)

The one I ended up reading was Dakota Grammar: With Texts and Ethnography. I didn’t dig too deeply but it looked like a nice, competent, descriptive piece of work. There a text of a related language (Omaha) at Project Gutenberg with the interlinear text and everything, from an edition recorded by the same anthropologist: Illustration Of The Method Of Recording Indian Languages by James Owen Dorsey.

Now, here’s an honest question, one to which I don’t know the answer: that book is listed as having been published in 2004. But it was actually first published by the Government Printing Office in 1893. Now, doesn’t that mean that the book is in the public domain? Could I go and scan the whole thing and put it on the web, or would that be (by some reasoning unbeknownst to me) a violation of the Minnesota Historical Society edition?

Also interesting: Tampa, Follow the Stories: Lakota Dictionary

Ads in Bengali, Police work in Portuguese, and Medicine in Spanish

November 12th, 2006

Here are some language- and translation-related stories for your perusal.

The Telegraph - Calcutta : Metro “The mosquito coil brand being advertised is Maxo, marketed by Jyothi laboratories. It is a national brand and therefore must be having campaigns running in areas other than Bengal. This ad is in Bengali and from all indications it is not a translation of the national campaign. It is an ad conceived and created in the local language.”

The Enquirer - Translator helps patients overcome language barrier “”When you have a child dying, you can barely remember your own language,” Morales said.”

MetroWestDailyNews.com - News & Opinion: Police who speak the language “Just two hours into his shift for the night, Milford Police Officer Carlos Sousa encountered three drivers who spoke little or no English.
Sousa slipped easily into Portuguese to talk with a Brazilian teen whose car was towed from East Main Street because he had no valid license. After pulling over a pickup truck, Sousa broke into Spanish to explain a traffic ticket.
In a town with growing Ecuadorian and Brazilian immigrant populations, Sousa’s fluency in three languages is a valuable skill on the force.”

Physics for President

November 9th, 2006

Via the always-worth-a-read Open the Future: PffP syllabus, a whole course online. Good stuff.

Jamais Cascio suggests that the author, who wrote a good course, after all, might have benefitted from something along the lines of Googling for Future Physics Professors.

I’d humbly add a suggestion for Web Design for Future Physics Professors Because Let’s Just Go Ahead and Admit It, Nobody Should have to be Seen in Public inside a Frameset Anymore.

Pick nits? Who, me?