Archive for May, 2009

Pseudo-Random Musings

May 31st, 2009

I’ve just read about a thing called the Dice-O-Matic. The gist is that the operator of GamesByEmail.com requires a lot of random numbers between one and six inclusive to feed his collection of online dice-games. And inevitably, people have complained that the numbers he’s used are insufficiently random.

And maybe they were, once. Originally, GamesByEmail used the pseudo-random number generator built into whatever the games are written in. Once ’seeded’ with a starting number, such an algorithm will spit out a string of numbers which will have all the same properties as random numbers, except that if you know the seed, they’re totally reproducible (although still essentially unpredictable, much like the digits of π). They’re generally seeded from a high-resolution timer, so this should never be a problem. They also repeat if you run it for long enough, so you should re-seed periodically. In theory, this should be fine, but you have to be very careful not to accidentally bias the selection.

Unfortunately, it’s very difficult to tell if your numbers are random enough or not. For example, some episodes of the dreary logical fallacy roadshow that is Deal Or No Deal used an Excel spreadsheet to randomise the assignment of 22 sums of money to 22 boxes — for which there are probably more sequences than there are grains of sand in the world — and the seeding was bad enough that only twelve of them arose in over forty shows. You can experience this for yourself: whether by accident or design, the Concentration mini-game in Super Mario Brothers III only ever shows players eight out of a possible 58 billion permutations of cards. The producers of Deal or No Deal switched over to drawing lots by hand.


xkcd’s ‘Random’ comic, which illustrates the difference between actual randomness and unpredictability, which is far more useful.

So (I infer) GamesByEmail switched to using random.org for their random numbers. Random.org link to their own story of a quiz show failing to randomise, this time costing them $100,000 in prize money (not that it brought anyone any happiness), and solve the problem of generating random numbers by means of four cheap radio antennae in Dublin, tuned into nothing in particular. The waveform of the white noise between radio stations is recorded, and the least significant bit (the last digit in binary; 0 for even numbers and 1 for odd) is recorded. Then, the stream of numbers are chunked into pairs, so 01001101 would become 01 00 11 01. 00 and 11 would be discarded as insufficiently random, and the first digits of the remaining pairs would be kept, so 01001101 gives two zeros. They throw away about 97% of the radio data, keeping only the most unpredictable bits possible. Your TV does a similar thing in reverse, when it blocks out random data and replaces it with a blue screen, while foolishly allowing Deal Or No Deal through unimpeded. It’s as near to pure randomness as you’ll get without invoking quantum theory (which states that some events in the universe are totally random, and indeed you can buy modules for your computer to generate random numbers in this way).

Of course, people still complain about the numbers from random.org. Of course they do. Random numbers, by their very nature, don’t look random. People believe in winning streaks, lucky socks, and prayer for exactly this reason. If I recall correctly, ball 44 was well known for a time in the National Lottery because it came up more than the others in the first few weeks, even though actually there were several sets of balls in use. Partly this is because humans have evolved to be shit-hot at spotting patterns, because in the wild that can stop us being killed. Natural selection favours the caveman who won’t eat the same berries that Ug, Thag and Og ate right before they died. In fact, generally people will eschew the berries after just one person dies. That’s a good plan for surviving in the wild, but it does make us spot patterns where none exist. Try it. Have random.org roll 16 virtual dice for you. I did it, and the sequence started 1155. That doesn’t look random. It had a 123 in it too. And there was only one 4. People tend to think numbers are random if they’re uniform: if I shuffled the numbers 1–6 into a random order (say, 341625), people would rather believe that was the result of six dice rolls than 115561, the first six that random.org gave me — but really the odds of getting one of every number are less than 2%.

If you encourage people to spot patterns, they can be relied upon to do so, regardless of whether the patterns exist. B F Skinner demonstrated this in pigeons in 1947. Pigeons were put in cages and fed periodically, “with no reference whatsoever to the bird’s behaviour”. At least six out of eight of them became totally convinced that they could cause food to be delivered by repeating some arbitrary motion such as turning anticlockwise. This has been replicated with humans, perhaps most famously by Derren Brown in Trick Or Treat, proving that Channel Four cater for both ends of the intellectual spectrum. Five guests were put in a room full of toys and instructed to accumulate 100 points to win a prize. In fact the points counter was controlled by two fish swimming around at random in another room (i.e., a poisson distribution). At the end of the game, four of the five guests were totally convinced they’d figured out a sure-fire way to score points. The other guest was Doctor Who. This may or may not be significant.

Random.org solved this problem by running constant statistical tests on their numbers. The numbers are expected to pass these tests most of the time — but not too often, or else that would be suspicious. GamesByEmail.com felt they needed something a bit more accessible to the kind of person who plays dice-games on the internet, so they built the brilliantly terrifying “Dice-O-Matic Mark II”. It is, in their words, “a 7 foot tall, 104 pound, dice-eating monster, capable of generating 1.3 million rolls a day”. It is literally a massive machine full of dice, which scoops them up, flashes them past a camera which notes down what numbers they show, and then flings them onto a ramp, whence they bounce back into the “pure seething violence” of the hopper full of dice ready to go round again. It runs about 90 minutes a day, and you can tell when it’s running from two rooms away. (It also uses some image processing which I found interesting because that’s what I do. If you want to read about it, visit GamesByEmail’s page.)

Ironically, I suppose, it’s technically less random than the random.org numbers were (since dice and coins never have an exactly even chance of landing on any given side — coins in particular are usually biased — but you can correct for this by taking pairs of tosses, just as random.org do with their binary data). It’s a great PR move, though. After all, nobody can say it’s not a realistic simulation of dice: it is dice. But it neatly demonstrates the problem faced by people like lottery organisers: their job is to provide people with something people are practically designed not to be able to see. This may be why GamesByEmail add:

There is no doubt that I will still receive complaints about the rolls, but now I can honestly say I have done all that I can possibly do: the rolls you get are exactly as random as those you would get throwing by hand. As I promised earlier, if you donate to the site and are unhappy about the rolls, let me know and I will pull a die out of the machine, melt it flat and mail it to you, as an object lesson to the other dice.


*Probably. It has never been proven that π behaves in this way.

[?]

What with being away, I’ve only just this minute seen the BNP Party Political Broadcast.

At least, I thought I had. Now I’m fairly convinced what I saw was a brilliant satire. I tend to ignore the BNP, so I wouldn’t know Nick Griffin from Peter Serafinowicz in a fatsuit. I’m given to understand that the BNP are trying to claim popularity on the back of the MPs’ expenses scandal, presumably on the grounds that MPs are unpopular and they’re the only party who don’t have any. If this video is real, they’re actually going more for a kind of pity-vote. It’s so adorable. Here, have a look:

My favourite part is the woman who stands in front of bemused-looking houses presenting a bizarre kind of plumbing forecast. I love that she stumbles repeatedly on the word ‘hip’, and yet nobody thought to try anything as reckless as a second take. But my favourite part of this, my favourite part, is when it cuts from there to another, nearly identical scene, with about half a nanosecond’s pause between the sentences. It looks like a Mitchell and Webb sketch that would start with ‘hello and welcome to Coverage Of People Asking For Security Lighting And Getting It. We’re here with this elderly couple who want a downstairs shower and we’ll be catching up with them when it’s been installed which is now’.

I also liked the bit where Nick Griffin brilliantly promises ‘no Big Brother spychips, inyerbins’, as if that had ever been a major concern. You can’t just make up policies and then promise not to enact them. ‘No spy chips in your bins, no compulsory gay sex for children, and we won’t nail a railway sleeper to your dog.’ Thanks. I think I’m going to go vote for the man from the Nationwide adverts.

And just when you think it might actually be real, it cuts to hopeless graphic of the website, with a voiceover that sounds like it was recorded in a toilet cubicle. And then the phone number appears behind the on-screen graphic! That’s the final brilliant touch that lifts this video out of Slightly Naff and into the realm of Satirical Genius.

And the whole way through the video, everyone is trying very hard to squeeze everything in. There are almost no pauses between sentences, even where you really need one. And yet, most of the time they’ve used is wasted on fluffing lines and the huge pause at the end while clipart shuffles ponderously around the screen.

It can’t be real — nobody would sign off on it as anything other than parody.

Tags for this article: ,

[?]

You probably already know this, but the science writer Simon Singh is currently being sued by the British Chiropractic Association for referring to chiropractic treatments of some conditions as ‘bogus’. You probably know that British libel law perversely assumes guilt until innocence is proven. (Sign this petition to change that.) You probably know that Judge Eady ruled in a preliminary hearing that ‘bogus’ means ‘deliberately fraudulent’, even though this is not what Singh meant, and that unless he can get this changed on appeal he has little hope of winning the case. This is, of course, roughly the same as if someone sued you for calling them a bitch and the judge ruled that you had to pay £100,000 if you couldn’t prove the plaintiff was of the genus canis.

I assume that you know all this because you are reading a blog, and at that a blog which frequently mentions science and political issues. You are exactly the kind of person I would expect to know exactly this kind of thing. Let’s take a step back and see what you’d know if you got your news from newspapers and TV.

The Guardian, whose paper carried the in-no-way-offending comment in the first place, have published precisely one follow-up that I have found:

Singh said he would like to fight it, because he is unhappy about the interpretation put on his words. “But there is a bigger issue about the state of our libel laws and how easy it is to be a science journalist or any journalist,” he said.

They elected not to mention what that wider issue is or that the interpretation put on Singh’s words was totally unreasonable, although they did mention that they bankrolled his legal defence (as they did for Ben Goldacre when Matthias Rath sued him) – frankly if newspapers do stop being able to make money then the Guardian should consider applying for charitable status. They do more good than many groups that have it.

The Times has published, as far as I can find, exactly one sentence on the subject, which was totally uncritical of the case and which they used to make Singh sound like a bad person and to put words in his mouth:

On Thursday the [Edinburgh Skeptics] society is addressed by Dr Simon Singh, the author who is being sued by the British Chiropractic Association for his dismissals of the efficacy of chiropractise.

The Telegraph have not mentioned it, nor have the Independent. BBC.co.uk has nothing on it, as does channel4.com. Bizarrely, Sky News can’t sort search results by date so I have no idea whether they’ve deigned to mention it. (The above searches were performed with the sites’ own search functions, so they’ve only themselves to blame if I’ve missed anything.)

That’s a bit crap, considering this is a story about newspapers. The Telegraph, having exhausted all the abuses of the Parliamentary expenses (which a Guardian journalist did all the legwork for), have set about listing everything else MPs have claimed for and trying to insinuate a scandal around each one where generally none exists, and yet don’t apparently have room for even one article about a genuine scandal that is representative of a massive and unwarranted threat of litigation that hangs over them every time they publish any kind of comment piece.

I’ve said before that I get my news from blogs, Twitter, friends and the Internet. I said at the time that newspapers were still a vital primary source, but they’re just not. We know about this from Nature, NewScientist, nerds on Twitter, blogs and so forth, not from newspapers — despite it being about them. The same was true of the planned law to exempt MPs’ expenses from the Freedom of Information Act — despite their willingness to cash in on the fruits of that victory.

We don’t need the newspapers any more. Clearly we can do this on our own.

[?]

Theos, the self-appointed ‘public theology think-tank’, whatever precisely a ‘think-tank’ actually is, have done another survey. Their last one, you may recall, reached such eminently plausible conclusions as ‘38% of Jews believe in the virgin birth of Christ’ and ‘36% of people of no religion celebrate Christmas as a religious festival’. This one says that 39% of Britons (including 50% of Londoners) believe in ghosts. The margins of error aren’t quoted, but you can work them out and they’re about 39%±2% and 50%±5%. It also says that 22% (±2%) of Britons believe in astrology.

Seriously? You want me to believe that half the population of London actually think that see-through dead people float through the city rattling people’s drawers? I’m sorry, but that simply isn’t plausible to me. I know people are easily led and a bit gullible. I accept that. But I thought Theos said that 34% of people believe in Jesus and 33% say they’re not sure. You can’t simultaneously accept Christianity and believe in ghosts, and that only leaves 32%. Okay, so there are error margins on this but I don’t for a second accept that all atheists believe in ghosts — because I’m one and I don’t. Someone would have taken a photograph by now. I don’t think there’s anything that exists that hasn’t been photographed, aside perhaps from the Higgs Boson.

The director of Theos, Paul Wooley, said

The extent of belief will probably surprise people, but the finding is consistent with other research we have undertaken.

It’s consistent in that they all report implausibly high belief in ridiculous ideas, yes. Then he said

The results indicate that people have a very diverse and unorthodox set of beliefs.

…which I thought very charitable to the respondents.

I think what Theos are increasingly discovering is that surveys can’t be trusted. They are repeatedly finding that a sizable fraction of the population will say yes to anything you care to ask them. I’m quite prepared to believe that London is an unusually credulous city, but given that the 2001 survey tells me that 1.4% of its population is Jedi, I’m tempted to think it might also be a city that doesn’t poll well.

And astrology? Really? Surely by now everyone in the world knows that astrology columns are just written by whoever happens to be passing at the time, with no thought or reference to any source of knowledge, just like the science reporting. I don’t believe that 22% of the population think that the stars and planets control their lives. I don’t accept that a fifth of the people I see in the street really believe that the arbitrary shapes drawn in the sky by convention dictate their fortune.

Are they counting ‘I suppose there might be something in it’ as a yes? Are they excluding ‘I don’t know’ responses from the results? Did they phone round houses in the middle of the day? We don’t know, because Theos’ press release doesn’t say. But any of those seems more likely than 4 million Londoners believing in ghosts. Nobody believes in ghosts. It’s a lunatic fringe belief, like crop circles or fairies.

Tags for this article: ,

[?]

This is a long rambling post dissecting the arguments of one Tom Vizzini with regards to swine flu. It may or may not be of interest to you, but I had to get this out of my head so that I can sleep, and to that end I’ve put it here. Read it if you want.

Andrew,

I have implied nothing. You just don’t seem to be able to read.

Nice. That’s class, right there, isn’t it? That was the response when I accused Vizzini of “[implying] that swine flu is a media-invented scare story like wifi or MMR or whatever”. Now obviously there are two sides to every story, and where one person reads clear implication another might read baseless inference, so I shall paste in the opening of Vizzini’s blogpost and let you be the judge:

Hi folks,

I am sick….sick of the swine flu. I have never seen so much hype over something so stupid.

Now I’d have said that that fairly clearly implies that swine flu is ’stupid’. A stupid thing to worry about. A silly little disease that poses no threat. Obviously I’m reading between the lines somewhat here, and you can’t really get all that from those two and a half sentences, so here’s a bit more:

The excuses have already begun. “Even if the swine virus doesn’t prove as potent as authorities first feared, that doesn’t mean the U.S. and World Health Organization overreacted in racing to prevent a pandemic, or worldwide spread, of a virus never before seen.”

Uh….yes it does. All these ‘experts’ are going to have egg on their face and now they are trying to justify scaring the crap out of your for no good reason.

Cubreboca
Creative Commons License photo credit: â–  Guerry

You see? His point, so he claims, is that people who wear facemasks because they’re scared of swine flu are stupid. I’ll come to that in a minute, but those people are not the same people as work for the WHO or the CDC. He’s veered off onto a tangent here and is mocking the epidemiology experts who have been working to prevent a H1N1 pandemic. That, to me, is not the action of a man who believes there is a risk of widespread infection. That is the action of a man who thinks we should let it run its course and see how many people die. He’s clearly betting on ‘not many’, and deriding people who disagree. That is an attempt to entirely debunk swine flu as a potential pandemic, and it’s simply too early to do that. Ben Goldacre refused to debunk it three times in the time it took him to write an article about how often he’s been asked to debunk it.

He may or may not have meant to imply it, but I think that he did. And given that Vizzini’s post and comments are riddled with non-standard punctuation and typos (to the point where he misspells ‘IQ’), and give the general impression that they were rushed off just as fast as he can type, it seems likely that I’ve read it more carefully than he wrote it and therefore probably the failure is on his end. Certainly he doesn’t use language in the most nuanced way I’ve ever seen. Here, for example, is a selection of his ripostes to my criticism (my emphasis):

You mean someone was so stupid that the nest [sic] they could do was make fun of a typo? Bet they were wearing a mask! … You just don’t seem to be able to read. … Run around terrified if you want to. … A mask is a very visible IQ test at this point. To me it is very much the same as people who pick a typo out of an article and use it to invalidate the article. Andrew….you failed that test. When you have to use a typo to make a point then you have run out of anything intelligent to offer. … Frankly Andrew you suck at debate. If points such as spelling are not relevant then don’t mention them. It makes you appear desperate and ill informed. … Just another example of your tendency to not be able to focus on the topic. I always find it funny that someone like you tosses out insults but then is so fragile when they get tossed back at you. Your mentioning a typo was arrogant and….stupid. If you can’t handle it then learn how to have civil disagreements without acting like a twit. … Stupid people tend not to be able to think for themselves. You have said nothing to contradict that assertion.

That’s right, he acts as if I’m wearing a mask. He literally cannot distinguish ‘I consider there is a chance of a pandemic in the future’ from ‘OH GOD OH GOD I’M GOING TO DIE WHERE IS MY FACEMASK?’. I have, for the record, never insulted him. I have criticised his arguments, and he seems incapable of distinguishing that from mindlessly abusing him, which, if I’m generous, explains his argument style. (Okay, maybe now I’ve insulted him.) For the record, here is my first comment:

That guy’s massively missed the point. Sure, wearing masks now is dumb, but the fact that 1000 people are sick is a worry because the disease might BECOME pandemic. He conflates the media whipping up a profitable panic with the WHO giving out expert advice, then has a go at them for taking measures to prevent a pandemic because they might work and then he can say ‘look, see, there was nothing to worry about’.

Also, he misspelt ‘IQ’.

You can see how I clearly relied on that one typo to invalidate his argument. Clearly there’s no way that could be a throwaway comment, a joke if you will, finding humour in an unfortunately placed transposition error.

But enough of such frivolity. The main thrust of his argument, he tells me, is this:

If you own a business and someone shows up with a mask on….fire them. They are too dumb to work for you. They have no common sense. In a way this is an QI test [see?] for your company.

It is stupid. The people in masks are stupid. … The masks are a visible sign of how stupid they are. … If you own a business and one of your employees shows up in a mask…find a reason to get rid of them. They are too stupid for whatever job you hired them for.

You see how he doesn’t toss out insults or come across as arrogant at all. But still, is he right? Certainly with the number of cases of swine flu so much lower than the number of cases of regular seasonal flu, and given that facemasks don’t actually work all that well, wearing them is a bit stupid. (Well, unless you wore them before swine flu. That’s fair enough. The tube is gross.) But his claim is not ‘it is a stupid thing to do’. It is ‘the people who do it are stupid’. As I said to him,

The media, the tabloids particularly, love to scare people, because scared people buy tabloid newspapers — and they’ve got very good at it, largely by refusing to be hampered by inconvenient details such as facts. I know that. You know that. Not everyone knows that. I mean, I think it’s stupid to use Microsoft Word as an HTML editor, but I appreciate that some people don’t know better and that doesn’t make them stupid. I think it’s pretty stupid to imagine that God exists, but I certainly don’t think all religious people are stupid.

For the record, his response to this was the phrase ‘just another excuse for stupid people’ followed by the last six sentences of the torrent of abuse I quoted earlier. You see how I’m ‘[tossing] out insults’ there, using inflammatory phrases like ‘that doesn’t make them stupid’ and ‘I certainly don’t think [they're] stupid’.

I just think that if you say ‘people are stupid’ and leave it at that, it’s defeatist and misanthropic, condescending and unhelpful. If you engage with them you can change their minds. If you see the bigger picture you can see where the weaknesses are that we can fix and improve matters. If you just write off humanity as too thick to survive then you become a small part of the problem. His solution is to make them all unemployed. That’s what we need, a lot of uneducated people with no money. That will definitely solve both swine flu and the credit crunch. I want to think it’s meant in jest and he’s actually more progressive than that, but I’m really not convinced.

I’ll be interested to see if Vizzini replies to this.

Tags for this article:

[?]

SpringBiscuit

May 5th, 2009

Another batch of NewsBiscuit submissions. As ever, one above the fold, rest below it. These are rather old, so the topical ones obviously no longer qualify as such. I think they’re all from March: I’ve not been writing much of this stuff for weeks now, mostly due to business, not being in the mood, and various other distractions. (And let’s face it: nobody ever won a mug by writing two items a month.)

Microsoft running ’secret database program’ on millions of computers

There were fresh fears raised this week about online safety and privacy, as it emerged that software giant Microsoft had secretly installed a database program on millions of computers across the world, many in homes and businesses. The mysterious program, known only as ‘Access.exe’ is installed when the user first uses Microsoft Office, and hides among the regular components of Office. Although the program only came to light recently, it is thought that it may have been present on even early versions.

The program was found when Sarah Armstrong, a teacher in London, asked a friend for help with Excel and was shown the extra software hiding in the start menu. Immediately, she called other friends, who confirmed that they had ‘the Access program’ installed. Fearing the worst, she contacted Microsoft technical support and demanded to know why the program had been secretly installed on her computer. According to Armstrong, the support representative candidly told her ‘That’s our database program.’ Armstrong then asked ‘could you use Access to store people’s personal details and track their behaviour?’ and the representative said ‘yes’.

The Daily Express described the revelation as ‘just more evidence of what life is really like in Database Britain’. Microsoft has insisted that the public should not worry about Access, and that the program exists to help users control their own data, however when Armstrong contacted Microsoft demanding to see the information Access databases had about her, she was told that this was ‘impossible’.

Read the rest of this entry »

Tags for this article: , ,

[?]

[?]

New Website Theme

May 3rd, 2009

I’ve redone the look for my website. Less colourful, less cluttered. No serif fonts if I can help it. It’s at least Web 9.2. Anyhow, I’ve gone for Readable over Link Saturation, and I think the whole thing is more appealing and more widely compatible.

Let me know if there are any compatability issues, rendering glitches, or comments you have.

Also let me know which sidebar features you want back. Tell me in a comment, or if I’ve accidentally broken comments, let me know that by email (taylor.andrew@gmail.com) or Twitter (@Andrew_Taylor).

[?]

The Swine Flu Joke Grid

May 1st, 2009

Here is a useful table to aid your satirical endeavours. Just pick your topic and your aspect of pigginess, and look up the appropriate dismal pun.

Pigs Etc. Bacon Ham Pork Pig Anatomy
Pandemic Sow-tbreak Frying Pan-demic Hamdemic; Conthamination Infec-chop Snoutbreak
End of The World Farmergeddon Judgement Bay-con Parmageddon Aporkalypse Atrotterlypse
Mass Death Swine Eleven Hi-Rasher-ma Hamocaust We’re All For The Chop! Trotterclysm
Existing Diseases Mad Sow Disease; Gloucester Old Spots I’ve Come Out In A Rasher Hamthrax; Brain Hamorrhage Chicken Porks Athlete’s Trotter

I feel good that I can contribute so much to this situation, with the unwitting help of everyone on Twitter. I forget exactly who, but since it’s pig/disease puns, it seems reasonable to blame @bengoldacre, @krypto, @ArianeSherine and whichever lunatic that started #NameThatFlu hashtag.

Tags for this article:

[?]

 

Search


Blog Pages

Other Pages

Cartoons

Other Sites

Me Elsewhere