Wednesday, 28 September 2016

open the box

I briefly mentioned the Monty Hall problem in an earlier discussion of probability, but because so many people cannot accept the problem’s conclusion, I thought that it might be worth taking a closer look.

In fact, the Monty Hall problem is a variant of Bertrand’s box paradox, which was first proposed by Joseph Bertrand in his 1889 book Calcul des probabilités. Imagine that you have three boxes, one of which contains two gold coins and one of which holds two silver coins. The third box contains one of each type of coin. You reach into one of the boxes, selected at random, and without looking inside, take out a gold coin. What is the probability that the remaining coin in the box you selected is also gold? The answer is not 1/2.

This is my analysis: the gold coin that is withdrawn is one of three possible gold coins. One of these possible gold coins will be from the box where the other coin is silver, while with the other two possibilities, the second coin in the box is also gold. In other words, the probability that the second, unseen, coin is also gold is 2/3.

This fact makes for an interesting, if dishonest, game, especially if played against people who have a poor understanding of probability. The ideal environment is a bar or pub. Take three beermats, which must be identically printed on both sides. Use a marker pen to draw an X on each side of the first beermat and an O on each side of the second. The third beermat should be marked with an X on one side and an O on the other.

Now shuffle the three beermats behind your back or under the table. Then place the three beermats on top of each other on the table. If you plan to play this game for money, it is probably a good idea to get someone else to do the shuffling. At this point, you announce that you can predict whether the mark on the other side of the top beermat is an X or an O.

Of course, you cannot do this every time, but if you say that the hidden mark is the same as the mark you can see, you have a 2/3 chance of being correct. In total, there are six marks, three X’s and three O’s. If the visible mark is an X, it will be one of three X’s. But two of those X’s are on a beermat where the other mark is also an X, and only one is on a beermat where the other mark is an O. Hence the probability of being correct of 2/3.

If you do plan to play this game for money, you may like to know that if you play a ‘best of three’ series, you are twice as likely to get it right twice as you are to get it wrong twice, and you are eight times more likely to make three correct guesses as you are to be wrong three times. In fact, the longer you play, the more the odds that you will come out ahead increase in your favour. Even with a best of three, those odds are already 20/27, which is more than 74 percent, although with a longer sequence you’re likely to be accused of cheating, especially if your victim thinks that it’s a straight 50/50 choice.

I will now return to the Monty Hall problem, which is named after a US gameshow host of the 1950s. Imagine that you are a contestant on a gameshow. There are three boxes, one of which contains £10,000. The other two are empty. You are asked to choose one of the boxes, and if you select the box with the money, the money’s yours. However, before you are allowed to open your chosen box, the host, who knows which box contains the money, steps forward and opens one of the other boxes to show that it is empty. Now comes the question: do you want to stick with your original choice? Or would you prefer to switch your choice to the other unopened box? You’d be foolish not to. There is a probability of two-thirds that you will be wrong with your first choice, and when you are wrong, the host has only one box that he can open to reveal its emptiness because the other one contains the money, as he well knows.

This marks the end of the serious stuff, but I did write a comic fantasy novel about 15 years ago that features an eccentric version of the Monty Hall problem. If you plan to read on, I should warn you that it is extremely silly.
As the evening drifted aimlessly onwards, the levels of hilarity, jollity and merriment rose and rose. There was only one possible cure. A late friend of the fat one used to say, disapprovingly, whenever the level of seriousness in a conversation looked likely to become dangerously high, that there are three subjects you should never discuss at parties: science, politics and religion, although it is difficult to see what the problem is. After all, scientists know the truth, priests tell the truth, and politicians hide the truth. Everyone knows that, but only Qumfl’quelunx himself could contrive to fashion all three into a perplexing, party-pooping pronouncement.

“I have a poseur!” he announced loudly, and then repeated himself, even louder, just in case anyone hadn’t heard him the first time.

No wonder his friend was always late. Word must have passed around. There was a stunned silence, in various combinations of shock and disbelief, topped off with a liberal sprinkling of horror. But Qumfl’quelunx had reached a bizarre conclusion. He had decided that there must be some question that the Grandmaster couldn’t answer. However, it couldn’t be something that he, Qumfl’quelunx, already knew the answer to, because then he’d know something that the Grandmaster didn’t know, which didn’t seem likely, so it would have to be something that he didn’t already know. And for that he interrupted his own party?

Anyway, the fat one has clearly been taking lessons in show business presentation (and bare-faced impudence) in his spare time from Dweebl’gulja, because this is what he announced to the less than expectant throng.

“A scientist offers you a wallet that, he says, he has proved contains one thousand pounds,” he began. “A priest offers you a wallet that, he says, contains one thousand pounds, but only if you have enough faith to believe that it does. A politician promises that he will show you a wallet at some unspecified date in the future, but he never mentions specific sums of money.”

“Now, here’s the difficulty,” continued His Plumpness majestically. “Only one wallet actually contains one thousand pounds. The other two are empty, which means that only one of the three actors is actually telling the truth. The problem is to choose the right wallet.”

“Excellent!” exclaimed Dweebl’gulja, although having made major inroads into his fifth glass of firewater could well have had some hand in the making of this serious error of judgement. “Party games? Now this is what I call a party!”

At any rate, this was the sort of perplexing poser that the Grandmaster usually dreams up, and it did not seem to be too difficult. But before Dweebl’gulja could offer his valuable opinion on this monetary mystery, Shunshelstinx insisted on pointing out that the politician’s promise was empty, as you would expect, because he had seen it being manipulated from behind a curtain.

Sneedl’bodja was even more peremptory, because he could follow the logic of the situation and the truth of the logic. He could? Must have been the firewater. He selected the scientist’s wallet.

It took Qumfl’quelunx to demonstrate the necessary leap of faith by selecting the priest’s wallet, but then he realized that he had posed the question and was thus not required to provide an answer. Never give an answer to a question that you’re never asked, he said to himself, in the process misremembering one of Dweebl’gulja’s favourite saws. So he waited for his guest to make a suggestion, which was the best the Grandmaster could do. Guess, in other words. And guess what? He also chose the priest’s wallet. If in doubt, he may have suggested, always take the priest’s wallet.

It was now time for His Plumpness to challenge the perspicacity of this pre-eminent pranking master, to assess the appropriateness of his analyses, to evaluate the exactitude of his estimates, to induce the incisiveness of his intuitive insights, to measure the magnitude of his mental machinations, to rule on the rectitude of his reasoning, to triangulate the thoroughness of his thinking. Or bemuse, baffle and bamboozle him with bullshit, more like.

“Now!” he announced with a flamboyant flourish, anxious to move on quickly before he could be overwhelmed by another avalanche of alliterative allusions. “Before you open your chosen wallet, I happen to know which wallet contains the money and which two are empty, so I’ll just open one of the empty wallets.”

With these words, he plucked a virtual wallet from the air, the one belonging to the scientist, and demonstrated that it contained nothing. No money. Not even enough for the bus fare home. And not even an explanation for why it had been wasting everyone’s time. But, then, that’s science for you.

“Now!” said Qumfl’quelunx, beginning to like the sound of sounding important. “Do you want to keep the priest’s wallet? Or would you rather believe the politician’s promise?” Now, presumably, you will know that in ordinary circumstances (no lying, in other words) the correct strategy if you want to maximize your chances of pocketing the money is to believe the politician’s promise and switch your allegiance. It is clearly to your advantage to change. If you cling on to the priest’s call to have faith, and to his wallet, your chance of being correct remains at a paltry one-third, not the half that you may have been led to believe by Shunshelstinx is the new probability. However, the probability is that you will have spotted his weakness in matters mathematical by now.

“Is it a trick question?” he asked for the twenty-seventh time.

But by exposing the obvious limitations of science, Qumfl’quelunx had somehow allowed the probability of a politician keeping a promise to surge to two-thirds, which isn’t very likely, as Dweebl’gulja was quick to point out. Unfortunately, the only explanation being offered is that the politician changed the rules halfway through, claiming despite damning evidence that no promises had been made in the first place, and that if promises had been made, it was all the fault of the previous party, which, we have been assured, did finish before midnight. But as a result of this perfidy, the politician’s party never recovered.

And neither did Qumfl’quelunx’s, although it does leave one small mystery unexplained. Just how did His Plumpness manage to evict his erstwhile ersatz erudition and replace it with the sort of cerebral conundrum that you would be more likely to associate with Dweebl’gulja? To avoid having to incorporate another coincidence into the already interplanetary preposterousness of the story, the management has decided that this curious oddity will have to remain unexplained, although if you must know, it has been rumoured, on very good authority, that Qumfl’quelunx has been up to his old tricks. Well, you wouldn’t expect him to be trying new tricks, he being like an old dog in that regard. And if he really has been meddling with the story again, it is certainly up to his usual standards of unsubtlety and very much of a piece with his lurid fashion sense. In keeping with his over-the-top style, he wouldn’t have been satisfied with the label ‘not stupid’, which even he could have been expected to carry off if he really tried, even though the only thing he can carry off with anything approaching panache is food. No, he would have to choose to masquerade as an ‘intellectual’. But perhaps the really odd thing is that he thinks nobody notices.
If, in spite of my prior warning, you have reached this point, you may possibly also enjoy A Problem with Hats from the same novel. It incorporates a well-known logic puzzle.

Monday, 19 September 2016

new red sandstone

My home town of Penrith is a small, unremarkable market town, save for one notable feature: the stone used in the construction of both public and residential buildings, especially during the nineteenth century. This is Penrith sandstone, a desert sandstone laid down during the Permian period of Earth’s history (299 to 251 million years ago), when much of what is now Western Europe was covered by deserts. This formation is known to geologists as the New Red Sandstone, in contrast to the Old Red Sandstone of the earlier Devonian period (416 to 358 million years ago).

The rounded shape of individual quartz (silica) grains in the rock indicates that they had originally been blown around by the wind, which confirms it as a desert sandstone. The cement that now holds the grains of sand together is also silica, deposited from solution in groundwater, and it is likely that the softer sandstones are deficient in this cement.

The prominent hill to the east of the town (‘the Beacon’) is part of a narrow sandstone ridge that runs approximately north–south. Several long-disused quarries can be found around this hill, but the sandstone here is quite soft, and it is likely that the sandstone used for building in Penrith came from quarries further east, where the rock is much harder.

The following photograph shows a typical street scene in one of the town’s nineteenth-century residential areas, although the main thrust of this post is to highlight some of the more interesting public buildings.


There are several grand nineteenth-century mansions in the so-called ‘new streets’ area of Penrith, although I would be surprised if any have not now been converted into flats. The next two photographs are of Fernleigh at the bottom of Lowther Street. Although it isn’t strictly speaking a public building, I’ve included it because it was built by master builder Alf Grisenthwaite, who happens to have been my great great grandfather.



Note that the stone blocks along the street frontage have been cut by machine (‘dressed stone’), which means that the surface of the wall is smooth, but as the second photo shows, the side walls are conventional masonry in which individual blocks were hewn by hand and are of varying sizes.

Although all of Penrith’s extant churches are sandstone, I made a deliberate decision not to include any of them here, although Christ Church is featured in Mythical Kings. However, the next photograph is of the former Congregational Church in Duke Street, which was rebuilt by Alf Grisenthwaite in 1865 on the site of the old Beckside Chapel. It was closed in 1990 because of dwindling congregations and has since been converted into flats.


Another former public building that is now flats is shown in the next photograph. It is the former Church of England girls’ primary school on Drovers Lane, which closed in the 1970s. It was built in 1858. The equivalent boys’ school, further along the same road, was demolished in the 1970s.


Moving into the centre of town, the next two photographs show the former Bank of Liverpool building in Market Square. Despite it’s quasi-mediæval appearance, it was built in 1912 and is now occupied by Barclays. The first photo shows the front elevation, while the second is a view of the rear of the building. The first two floors are occupied by the bank, but the top floor is residential.



The next photograph shows the former National Westminster Bank building in King Street. When NatWest moved a few metres up the street, the Trustee Savings Bank (TSB) took over. However, the TSB moved out when it amalgamated with Lloyds Bank, and the building currently appears to be empty. The upper floors were formerly offices, but they may originally have been residential premises, judging by the balconies on the first floor.


Regular readers of this blog will know that I like puzzles, so I’ve decided not to identify the building in the next photograph because I think that it should be possible to guess its purpose without further clues.


Finally, I couldn’t compile a list of the most interesting sandstone buildings in Penrith without including a picture of Penrith Castle, which was built in the fourteenth century and is now a ruin (it was used as a convenient source of building stone for many years). A lot of the sandstone used for the main walls is quite soft, leading me to conjecture that it was sourced from quarries on the Beacon.


The castle’s most famous occupant was the Duke of Gloucester, a decade or so before he became King Richard III. Richard also had a house in the mediæval town centre, which gave rise in later years to one of Penrith’s most enduring legends: that there is a secret passage between the castle and the house. Needless to say, the existence of this passage has never been proved.

Monday, 22 August 2016

a bridge too far

“I want to go somewhere!” exclaimed Paula early one morning recently.

I thought for a few moments before coming up with an idea. Chester. I’d never visited the city, but I was aware of its history, which dates back to Roman times, and I’d seen plenty of photographs. It looked interesting. And it wasn’t too far away.

Within the hour, we were on the next train south, and three hours later we’d arrived in Chester. The city’s railway station is some distance from the city centre, but the route between the two is well signposted, so we decided to have a look round before finding somewhere to stay for the night. The obvious place to start was a walk along the city walls, which are almost intact and which provide excellent views of the city’s other attractions:


This is a picture of Bridge Gate, which leads to a fourteenth-century bridge over the River Dee. Unfortunately, I didn’t take any photos of this bridge, for reasons that will be explained later. Anyway, having circumnavigated the city walls, we walked back towards the station to look for overnight accommodation. I’d noticed, as we walked between the station and the city centre, that we passed over a canal—the Shropshire Union Canal—and, having found somewhere to stay, I thought that a walk along the canal towpath might prove interesting. And I assumed that we’d eventually reach the river.

However, I’d begun to have doubts about this assumption by the time we’d reached the third lock on the canal. Surely, I thought, we shouldn’t be going uphill to reach the river. This is a picture of one of these locks, looking back the way we’d come. The white house on the right is the lock-keeper’s cottage (operating locks on England’s canal system is a full-time job):


Nevertheless, we continued along the towpath because it was quiet and peaceful, and there was quite a lot to see, including this moorhen:


The next three photos are of successive bridges over the canal. In each case, we climbed up onto the bridge to see where, if anywhere, it might lead. The answer, in each case, was nowhere, but I did note that there was a road sign at the entrance to each bridge advising motorists who aspired to cross that this was a ‘weak bridge’. Indeed, the hump on one bridge was so pronounced that deep grooves had been gouged out of the crest of the hump by vehicles that didn’t have sufficient clearance to negotiate the bridge safely.




We eventually returned the way we’d come. Had we gone the other way at the beginning, we would have passed directly below the city walls:


When we did finally reach the river, I took these two photos of Grosvenor Bridge, which at the time of its completion in 1832 was the longest masonry arch in the world. It remains the longest masonry arch in Britain:



Having mentioned my failure to take a photo of the Old Dee Bridge earlier, I can now reflect on the reason. It’s easy to throw a few things into a bag at short notice, but it isn’t possible to ensure that one’s camera is fully charged. Having taken a few photos of Grosvenor Bridge, we continued upstream towards the Old Dee Bridge, but my camera battery was by then completely flat.

Thursday, 7 July 2016

goodbye-ee!

The British Labour Party is facing a serious existential crisis following the referendum on EU membership and its acrimonious aftermath. I am reminded immediately of the strife unleashed in the party by its drift leftwards in the late 1970s and early 1980s, which led to the formation of the breakaway Social Democratic Party (SDP) by the so-called ‘gang of four’ in 1981. These four leading members of the party were especially angered by the decision to include unilateral nuclear disarmament and a desire to leave the European Economic Community (forerunner of the European Union (EU)) in the party’s manifesto for the next general election, which was described at the time as ‘the longest suicide note in history’.

Another similarity with the current situation is that both leaders emerged from the left wing of the party. But Michael Foot was trounced in the general election of 1983, and, based on what I’ve seen, I believe that a party led by Jeremy Corbyn has absolutely no chance of winning the next general election, whenever it is held. Despite having massive support among the party’s grassroots members, Corbyn has no obvious leadership qualities, and I’ve never known a political leader who was so utterly devoid of charisma.

Corbyn is clearly a man of principle—before becoming leader, he voted against the party line in the House of Commons hundreds of times—but I base my assessment of the man not on what he does but on what he says. For example, in November last year, he described the attacks in Paris by members of Daesh as ‘immoral’. He wasn’t wrong, of course, but I couldn’t help but wonder why he chose to use such an insipid adjective when many stronger words were available to him (e.g. barbaric, heinous, horrendous). He was at it again in the recent referendum campaign, in which the only thing I heard him say in favour of remaining in the EU related to ‘protecting workers’ rights’. And his refusal to share a platform with Remain campaigners from other parties did not mark him as a man of principle; it merely made him look like an idiot. Overall, his contribution to the debate was decidedly wishy-washy, and his apparent lack of enthusiasm was a serious error of judgement.

He failed to grasp that the principal area of concern for most traditional Labour voters was immigration from other EU countries. And he appears not to have been aware that in neglecting this concern, he was effectively surrendering at least part of this vote to another party, one that was geared-up and ready to step in as the party of choice for working-class voters: the United Kingdom Independence Party (UKIP). Had Corbyn been prepared to make an effort to reassure such voters, it is likely that the UK, as a whole, would have voted to remain in the EU.

At first glance, it would appear that a right-wing party representing the working class is an anomaly, but there is a lesson from history here: Oswald Mosley’s Blackshirts (i.e. Fascists) enjoyed considerable support in the East End of London—and probably in the poorer areas of other major cities—during the depression of the 1930s. UKIP may not be as overtly racist as the Blackshirts, who were, after all, modelled on the Blackshirts of Benito Mussolini’s Italy, but a strain of xenophobia is an integral part of the party’s ethos.

On the day following the referendum, I listened to Any Questions on BBC Radio 4. For anyone not familiar with this program, which has been running since 1948, it involves four leading politicians, who have been invited onto the show to answer questions from the audience while a chairman tries to maintain order. On this occasion, there was only ever going to be one topic of conversation: the result of the referendum. Naturally, two members of the panel had advocated remaining in the EU in the referendum campaign, while two had campaigned to leave. One of the latter was MEP Steven Woolfe, and from his very first contribution I thought I was listening to a member of the British National Party, a fringe organization that would have been better named the British Nazi Party. Woolfe continually hurled class-based insults at the other members of the panel, whom he characterized as middle-class and out of touch with the electorate. That would chime strongly with the attitudes of many of his target voters.

Yesterday, I listened to an interview with Paul Nuttall, deputy leader of UKIP. At one point, after Nuttall had talked about targeting traditional Labour voters, the interviewer asked whether this meant moving the party to the left. Nuttall’s response was succinct—and disarmingly honest.

“Not at all,” he said.

So could it happen? Is the Labour Party on the point of fading into obscurity? There is historical precedent. In the latter part of the nineteenth century, the old Liberal Party was the party of choice for working-class voters. And this continued into the twentieth century, but it was then slowly supplanted by the Labour Party, which had been formed in 1900. The last wholly Liberal government came to an end in 1915, although the last Liberal prime minister, David Lloyd-George, continued in office until 1922 as head of a wartime coalition. The party then faded into obscurity, returning only a handful of MPs in the second half of the twentieth century until its fortunes revived slightly following merger with the SDP in 1988.

There is another parallel with the present from the early days of the Labour Party. Its founder, Keir Hardy, suggested that Lithuanian migrant workers in Scottish coal mines had filthy habits, they ate garlic that they fried in oil filched from streetlamps, and they were carriers of the Black Death, comments that would have been more likely to chime with working-class voters of the time than visions of a socialist utopia, as it also seems to have done in the recent referendum.

The Labour Party formed a short-lived minority government in 1924 and another from 1929 to 1931, although it had to wait until 1945 to form a majority government. It last won a general election in 2005. However, the party does not have an automatic right to be either in government or the main opposition party. UKIP may have seemed like a single-issue party that has now achieved its raison d’être, but it is highly unlikely to disband, and I suspect that it is already drawing up its manifesto for the next general election, one that will appeal to working-class voters. It received around 4,000,000 votes in elections for the European Parliament in 2013, and it could easily double that total in the next general election if Jeremy Corbin remains leader of the Labour Party. These are worrying times.