Wednesday, 8 July 2009
Lottery
Question:
A local businessman decides to scam his customers and claims that the largest ball is numbered 25 (i.e. customers may only select the numbers from 1 to 25). He reckons that his tickets will win less and he'll have to pay out less money. He states that his customers are only half as likely to win. Is he right?
Which convention?
The image below shows my application's attempt at assigning tags to political parties during the 2008 Democratic and Republican National Conventions.
Tuesday, 7 July 2009
Hill climbing
The old footballing cliché, "You have to go backwards to go forwards", is a fitting analogy for today's topic: local maxima. I must admit that my only exposure to football strategy was by playing FIFA '95 on the Megadrive, however I think I understand the sentiment - by just running towards the opposing goal you make superficial progress (you are closer to the goal), however you will surely be tackled and lose possession of the ball. If you'd passed it backwards and 'built up play' you might have got further.
In this (admittedly ill researched) example by naively running towards the goal after each pace you end up closer to the goal (exactly one pace closer!), but because you've charged on ahead as soon as you meet an opposing player you will probably lose the ball - you've been 'tricked' by a local maximum. If you'd passed backwards to a team mate you might have had more success and found the global maximum: the ball in the back of the net. The graph below makes this a lot clearer; the blue line represents the path of a player who charges ahead and the red line represents a player who 'builds up play' (it's very clear now that I should have used an analogy that I knew something about).

Other examples include dropping out of school and working in a manure factory: you'll be earning far more than your colleagues at university
There is, of course, a cost associated with a more extensive search for cheap sugar: car miles, bus fares, wasted time, opportunity costs etc. My GCSE Economics textbook split products into two categories: comparison and convenience goods. We're happy to shop around for high-price infrequently purchased goods because the cost of the search is only a fraction of the cost of the product whereas for convenience goods, such as the sugar, it's not worth the hassle. So we're willing to accept the local minimum as being 'good enough' (a behaviour known as bounded rationality).
So the conclusion of today's post is that it's ok to accept a local minimum/maximum as long as you remember that there's probably a better solution still to find.
Wednesday, 1 April 2009
The curious incident of the dog in the night-time
Holmes: "To the curious incident of the dog in the night-time."
Detective: "The dog did nothing in the night-time."
Holmes: "That was the curious incident."
Friday, 27 March 2009
United we tag
Thursday, 26 March 2009
Mockneys
- Vernon Kay for his attempts to convince people he really is from Bolton.
- Jamie Oliver for his mockney twitter.
- Russell Brand for his Elizabethan tone which leaves the young women he bogarts* in a dazed and confused state.
- and finally Sir Alan Sugar who is alleged to have use voice enhancing drugs during filming of The Apprentice to ensure his accent is as cockney as the day he first started out selling shoe laces on the streets of Hackney.
Wednesday, 25 March 2009
The Formula Formula
The editor of 'Super News Celebrity Fun' explains: 'picture the scene: it's 11PM on a Monday. The final copy is due in 20 minutes and there's still half a page unfilled because the pullout 'grow your own clothes' ran under-length. Our only recourse is to ring some media-friendly pseudo-scientists for a 'madcap boffin formula' that renders some banal aspect of everyday life in nauseatingly pedantic mathematics. Recent 'successes' include 'duncability analysis' and the 'Brittany Spears Ratio'.
'Duncability' is an approximated count of the number of biscuits that can be 'dunked' into the unit cup of coffee before the unit research group runs out of funding. The formula is complicated but elegant:
Dunkability = mu / gamma + 2 * phi.
Where mu is the number of biscuits in a packet, gamma is the mass of the earth divided by its angular momentum and phi is very complicated, you probably wouldn't understand.
'The problem', sighed the editor, 'is that with this whole credit crunch thing going on it's a lot harder to get enough junk science to fill our pages'. It is for this reason that interest in the 'formula formula' has peaked.
The 'formula formula' is a formula that generates all manner of nonsense formulae (a meta-formula) without the need for a misguided research group. The formula formula is imprecise and is more a recipe for creating further nonsense than an actual formula. The most important aspect of the guide dictates that subject of the research must be able to be prefixed with 'formula for the perfect ...', e.g. 'toast, woman, haircut, etc.'. The second key ingredient is plenty of Greek letters, these summon up images of bearded men (and women) of science in white coats, lending the formula an air of credibility. If this isn't sufficient simply replace every instance of 'scientist' and of 'researcher' with 'boffin'.

The final ingredient is to ensure that you use language that completely alienates the reader from scientific enquiry for themselves. If you are to televise your formula ensure that the narrator is standing in front of a blackboard with as many wave equations as you can muster. For larger 'feature' length articles include a picture like the one to the right.