Tech support cheat sheet

August 24, 2009 at 9:16 am (Humour) (, , )

Hey Megan, it's your father. How do I print out a flowchart?

Ahhh…. a return to form for XKCD!  This is right on the money.

Permalink Leave a Comment

Sheeple

July 15, 2009 at 10:27 am (Uncategorized) (, , , )

Xkcd does it again…

Hey, what are the odds -- five Ayn Rand fans on the same train!  Must be going to a convention.

Hey, what are the odds -- five Ayn Rand fans on the same train! Must be going to a convention.

Permalink Leave a Comment

Meet the micromort

June 15, 2009 at 11:01 pm (science) (, , , , , , , , )

Don’t drink red wine! You’ll increase your risk of colon cancer!

But wait, it also lowers the risk of lung cancer.  Cheers!  Mine’s a large.

The nutritional science media splits things up into those that will kill you and those that will save you.  Sometimes they are the same thing.  How are we to figure out what we should actually eat?

The first thing is that you need to know the absolute magnitude of the affects.  It doesn’t matter if the chance of death is increased by 500% if there was only a one in a million chance of getting it anyway.  Conversely, a modest increase of 20% could be important if your basic risk is high.

David Spiegelhalter of Cambridge University is advocating a new unit of measurement for risk – the micromort. This is a one-in-a-million chance of dying in a day.  We are all exposed in everyday life to a background 50 micromorts of danger – i.e. 50 out of every million people die of normal (but non-natural) causes per day.  Additional activities we do can increase our risk relative to this average.  You need to clock up a further 50 in order to double your chances of dying.

So how can we “spend” our micromorts?  Well, we can travel – 200 miles by car costs 1 micromort, as does 20 miles by bike or a paltry 6 by motorcycle.  However, to measure the real value in doing something you need to allow for all the benefits and dangers.  Its well known that cycling brings health benefits that outweigh the risks when compared to driving, so we must “gain” some morts in fitness benefits. But at least we can compare the risks.

For example, Equasy (addiction to horse riding) is as dangerous as Ecstasy. The risk of dying (in micromorts) for taking a pill of ecstasy is roughly the same (or less) than taking a ride on a horse – both around 1.  Now of course there are other factors – long-term problems associated with addiction to an illegal drug – but the point remains that drug laws cannot be justified on the basis of absolute risks alone.  Some things we think of as dangerous, well, aren’t.  And other things really are.

Returning to the wine, often you don’t get the information needed to calculate risk in a media article.  I couldn’t obviously see the relative risks associated with the wine in the top two articles, for example.  But these numbers are definitely out there, and they can be measured in a simple and clear way.  Why not tell us that, so that we can make an informed decision?

Permalink Leave a Comment

Diary entries for the bus

May 21, 2009 at 9:44 pm (Humour, poem) (, , , )

MONDAY

This morning I went to work on the bus;
It really was a terrible fuss.
The driver wanted exact cash
- And I had exhausted my stash -
So to the cashpoint I had to go
And then the newsagents; yet though
I had the fare, I didn’t know
It went up just yesterday.
A full five pounds I had to pay.

TUESDAY

This morning I went to work on the bus;
It really was a terrible fuss.
I was running things a little tight
And fate grinned down upon my plight.
Clogged up the roads into one jammed up mess
- after one car moved one speed, the one in front less -
So caught in the gridlock I have to confess
I pressed the alarm bell. Ran off in a state!
Yet of course I was still plenty too late.

WEDNESDAY

This morning I went to work on the bus;
It really was a terrible fuss.
A drunk came and sat on the seat next to me
And put his hand down roughly upon my knee
He leaned in close and looked deep in my eyes
Hiccuped once! twice! and then cries
“What I got’a shaay will shurely surprishe…”
Yet he then fell quite soundly to sleep!
And so for the journey not a sound dared I peep.

THURSDAY

This morning I went to work on the bus;
It really was a terrible fuss.
We waited for an eternity…
…and of course came not one bus but three.
I stood in the gangway for hours on end
- Gripping yet slipping around every bend -
Some guys umbrella “becoming my friend”.
Which after the bus stopped rather too fast
Left me feeling somewhat trespassed.

FRIDAY

This morning I went to work on my bike;
It was lovely.

Dan Lawson.

Notes: This was inspired by recently reading A. A. Milne, and everyone who has written in his style.

Permalink Leave a Comment

You Are What Those Around You Eat

May 7, 2009 at 11:03 pm (Articles, science) (, , , , , )

When I step on my Wii Fit and it tells me I’ve gained 2lb, how worried should I be? Well, that depends on how variable my weight is, day to day. Anna and I have done a simple study, and found that each others weight accounts for 50% of the variation in our own weight. And large variation occurs over the scale of days – meaning that it is all water. Our weights are (on a day to day basis) determined by the things we share in common – food and drink intake.

Weight against time for (black) Dan, and (red) Anna

Dan's (black line) and Anna's (red line) weights over time, plotted in normalised units (*see below) making both weights 1 on average. These were recorded over a period of 56 days from July to September 2007.

There are some surprising results here. The range of values is 5% of the average – meaning that if I weighed 10 stone, I could measure myself twice in a month and differ by half a stone! the standard deviation is 1%, meaning that though I weigh on average 10 stone I would on an average day be 1.4lbs away from it. And daily we vary by 0.8%, so I’d differ by just over a pound on average. So for every day with no change, there is a day with 2lbs difference.

The numbers become more meaningful when our weights are compared. My weight and Anna’s correlate at 49%, meaning that half of our variation is explained by a common factor. During the months of note taking, I was cycling to work and Anna was exercising at home. We were getting exercise together only really at weekends. But we ate dinner together every evening, and we drank beer and wine at the same times. That is what is controlling that 50%. And because it comes off so quickly, its can only be weight stored as water – we vary this much simply by varying how much water we are retaining in our bodies.

Dan and Anna's weight plotted against each other. The correlation line is a least-squares fit with correlation 0.5 and p-value 0.003, meaning that there is only a 0.3% chance that such srtrong correlation could be spurious.

Most trends in weight are gone in 4 days, but there is strong evidence (p<0.001) for a (weak) trend over the study period. Yet our weights now match the mean of the data, so this trend is also variation – its just happening over very long times. In other words, we vary day-to-day, and we vary month-to-month, yet we don’t vary year-to-year.

Problems with the study

To start with, the data isn’t taken over a very long time (or for enough people). It would be interesting to see if there were weekend effects or monthly effects. Secondly, we didn’t record any useful information about food intake, exercise levels, etc, so we can’t examine where the correlation really does come from and what other factors help to explain it. Additionally, like all long-term measurements, the conditions aren’t always identical. The readings are all in the mornings but sometimes before, sometimes after breakfast.

However, the weights recorded here are statistically identical to our recent weights so they were taken from our average variation – there were no long term trends that could have effected them.

Conclusions

Don’t fret small changes in weight! It takes a long time to lose fat, and small changes in water retention can mask it all. What we eat clearly does matter a lot, but over the long term it comes down to the simple equation:

Weight gained (energy units) = energy consumed – energy used

Over the short term, all diets will simply change water retention, so keep an eye on your weight over months to be sure that the trend is real! Even if weight is gained or lost for a month it would return to where it was if there are no lifestyle changes. Simply put: lifestyle determines weight, and that is a very difficult thing to modify.

And don’t let Wii Fit tell you off for a couple of extra lbs :)

* Units of measurement

In order to protect Anna’s and my own privacy on the web, the results have been presented in convenient units. Anna’s weight is measured in “Metric Anna’s”, so the average weight is one. Dan’s weight is measured in “Imperial Stormtroopers”, since he is one (in his head at least) and therefore his weight also averages to 1.

Interestingly, the “Imperial Stormtrooper” is also the traditional unit of measurement for ineffectiveness – 1 Stormtrooper achieves exactly nothing, although it can shoot wildly and miss. However, this causes problems in this study when Dan measures more than 1 Stormtrooper, as he becomes negatively effective. This is sometimes apparent when he washes up, as plates can mysteriously get dirtier with washing. The measurement for Annas used to be Imperial as well, but they declared themselves Queen and insisted the servants had to do the washing up (clearly a bad idea with only Stormtroopers around). Hence the need for a more modern measurement that neatly averaged to 1 as well as tidying up after themselves in the kitchen.

Permalink Leave a Comment

March 30, 2009 at 8:12 pm (cartoon) (, , , )

Police reported three dozen cheerful bystanders, yet no one claims to have seen who did it.

Police reported three dozen cheerful bystanders, yet no one claims to have seen who did it.

This is today’s XKCD comic :)

Permalink Leave a Comment

Are the Oscars getting snootier?

February 26, 2009 at 6:06 pm (film) ()

I enjoyed this analysis at OverThinkingit.com of trends in the Oscars – in terms of how popular films compared to how likely they are to win, or be nominated.  There is a very clear change around 2004 when the popularity of Oscar films fell through the floor.

It good to see someone getting out the figures instead of just winging for a change.  Note that the figures can’t distinguish between whether the Oscars are snootier – or whether its movie-goers that are not going to the best films…

Permalink Leave a Comment

Nothing in Biology Makes Sense…

February 21, 2009 at 3:40 pm (Articles, religion) (, , , , , , , , )

Nothing in Biology Makes Sense Except in the Light of Evolution.

These are the words of Theodosius Dobzhansky, one of the founding fathers of the quantitative study of evolution. He wrote an essay about why evolution is so important, and also discussed how he reconciled his Christian faith and the scientific theory of evolution.

The evidence for evolution is overwhelming, if you accept scientific reasoning. There is mathematically no way that evolution could not occur if just three things are true: more creatures are born than get to reproduce; they can vary in new ways; and that these variations are inherited. The first is trivially true as any look in the garden will show, as is the third: for example people take after their parents. The second is more difficult because although all individuals do vary, they mostly do so in an uncreative way by mixing up the traits of their parents. But it does occur: mutations are the source of these creative changes and it has been demonstrated many times that novel abilities (at the microscopic level) can arise.

There is a resurgence recently, particularly in America, to doubt evolution for religious reasons. However, this doesn’t have anything to do with the religion per se, but is a cultural phenomenon. Dobzhansky quite powerfully argues that to deny evolution on religious grounds is verging on blasphemous: it implies that the creator deliberately set out to deceive us. We have the ability to reason about the origins of fossils, or of finches in the Galapogos, and explain why they are there. There is no hole in the theory that has yet been found. To believe that this is some elaborate charade is absurd.

Dobzhansky believed in creation: that god created the world such that we would be here today.  It is a matter of philosophy whether this happened by divine will or by chance.  It is beyond science to answer the question of whether we were “created” in this way, or arose by chance, because there is only one universe from which to draw evidence. But in this Universe, we have surely evolved, and this is not evidencef or or against God in the slightest.

Check out his essay for details of the above discussion.

Permalink 2 Comments

The mad meta-poet

February 17, 2009 at 9:29 pm (Humour) (, , )

One day,
A mad meta-poet
With nothing to say
Wrote a mad meta-poem
That started: “One day,
A mad meta-poet
With nothing to say
Wrote a mad meta-poem
That started: “One day,
[...]
sort of close”,
Were the words that the poet
Finally chose
To bring his mad poem
To some sort of close”,
Were the words that the poet
Finally chose
To bring his mad poem
To some sort of close”.

Reference: feldgendler, with a google search indicating that this goes back to before 2007, origins unknown (to me).

Permalink Leave a Comment

Study hard, young space warrior

February 7, 2009 at 6:44 pm (Humour) (, , , , )

Yes, it has finally happened: you can take a course in Starcraft at University, for credit. And the best bit? Its not as ridiculous as it sounds.

There are some simple rules guiding computer games and these also apply in real life. For example, the ability to obtain resources is related to power, which is in turn related to how much resource you currently have. So the “rich get richer”. How this happens, and how this affects competition between warring sides, can be modelled mathematically using differential equations. Additionally, you can understand the “best” decision to make with mathematics. Since Starcraft has simpler rules than the real world, you can get fairly good answers – and test them against other strategies.

And you get to blow stuff up. At University. For credit.

In other awesome academic news, you can also take a course in pornography.

Permalink Leave a Comment

Next page »