Skip to main content

What are the chances of that?

In the book I'm writing at the moment I'm considering the relationship of the arrow of time to entropy, the measure of the disorder in a system that comes out of the second law of thermodynamics. Entropy can be calculated by looking at the number of different ways to arrange the components that make up a system. The more ways there are to arrange them, the greater the entropy.

As an example of why this is the case, I was talking about the letters that go together to make up that book, and the very specific arrangement of them required to be that actual book. Assuming that there will be about 500,000 characters including spaces in the book by the time it's finished, then there are 500,000! ways of arranging those characters. That's 500,000 factorial, which is 500,000x499,999x499,998x499,997... - rather a big number.

It's not practical to calculate the number exactly, but there are approximation techniques, and if the large factorial online calculator I found is correct, then 500,000! is around  1.022801584 x 102632341 - or to put it another way, around 1 with 2,632,341 zeros after it. That's a big number. By comparison there is just one way to arrange the letters to make my book*. So by producing the book I have vastly reduced the entropy. This seems to run counter to the second law of thermodynamics, which says that entropy in a closed system should stay the same or increase. But the clue is that get out clause, 'closed system'. The book isn't a closed system - the arrangement of the letters has come out of my head as a result of the consumption by my brain of a fair amount of energy. And it's that energy that makes the reduction in entropy possible.

Good stuff, but it shows that we shouldn't expect a room full of monkeys to come up with the complete works of Shakespeare - or my book - any time soon.

* This is only true if you consider each letter 'a' to be different from each other letter 'a' - imagine, for instance, each letter has a serial number. In that case it is literally true. In reality I could make what appears to be exactly the same book but swap all the letter 'a's with other letter 'a's and it would read exactly the same. And of course the same applies to every other letter. But there are still vastly fewer ways to organize those letters to spell out the same book than there are of producing any pattern whatsoever.
 

Comments

Popular posts from this blog

Why I hate opera

If I'm honest, the title of this post is an exaggeration to make a point. I don't really hate opera. There are a couple of operas - notably Monteverdi's Incoranazione di Poppea and Purcell's Dido & Aeneas - that I quite like. But what I do find truly sickening is the reverence with which opera is treated, as if it were some particularly great art form. Nowhere was this more obvious than in ITV's recent gut-wrenchingly awful series Pop Star to Opera Star , where the likes of Alan Tichmarsh treated the real opera singers as if they were fragile pieces on Antiques Roadshow, and the music as if it were a gift of the gods. In my opinion - and I know not everyone agrees - opera is: Mediocre music Melodramatic plots Amateurishly hammy acting A forced and unpleasant singing style Ridiculously over-supported by public funds I won't even bother to go into any detail on the plots and the acting - this is just self-evident. But the other aspects need some ex

Is 5x3 the same as 3x5?

The Internet has gone mildly bonkers over a child in America who was marked down in a test because when asked to work out 5x3 by repeated addition he/she used 5+5+5 instead of 3+3+3+3+3. Those who support the teacher say that 5x3 means 'five lots of 3' where the complainants say that 'times' is commutative (reversible) so the distinction is meaningless as 5x3 and 3x5 are indistinguishable. It's certainly true that not all mathematical operations are commutative. I think we are all comfortable that 5-3 is not the same as 3-5.  However. This not true of multiplication (of numbers). And so if there is to be any distinction, it has to be in the use of English to interpret the 'x' sign. Unfortunately, even here there is no logical way of coming up with a definitive answer. I suspect most primary school teachers would expands 'times' as 'lots of' as mentioned above. So we get 5 x 3 as '5 lots of 3'. Unfortunately that only wor

Which idiot came up with percentage-based gradient signs

Rant warning: the contents of this post could sound like something produced by UKIP. I wish to make it clear that I do not in any way support or endorse that political party. In fact it gives me the creeps. Once upon a time, the signs for a steep hill on British roads displayed the gradient in a simple, easy-to-understand form. If the hill went up, say, one yard for every three yards forward it said '1 in 3'. Then some bureaucrat came along and decided that it would be a good idea to state the slope as a percentage. So now the sign for (say) a 1 in 10 slope says 10% (I think). That 'I think' is because the percentage-based slope is so unnatural. There are two ways we conventionally measure slopes. Either on X/Y coordiates (as in 1 in 4) or using degrees - say at a 15° angle. We don't measure them in percentages. It's easy to visualize a 1 in 3 slope, or a 30 degree angle. Much less obvious what a 33.333 recurring percent slope is. And what's a 100% slope