Friday 13 September 2013

Why I oppose gambling - A humanist perspective

I don't like gambling.  Many people don't like gambling, some for religious reasons.  But I'm a humanist, so I have no religious reasons.  So why do I oppose it?

We all live under the illusion that what we see is real, and what we think is true.  These illusions are so compelling that many people refuse to believe that our awareness is an illusion, but neuroscience and the study of the paranormal prove that the images in our minds are not accurate pictures of the real world.

Some of the differences between human perception and reality are classified under the title 'cognitive biases'.  These include the perception that 'I' am more important to the world around me than is justified.  Another key human bias is that we have a tendency to overestimate the chance of good things happening to us, and underestimate the chance of bad things happening, even in the face of compelling evidence to the contrary.

Because we are alive, we are descended from ancestors who won through tough times and out-competed their peers in the struggle for survival and reproduction.  And we inherited the traits which helped make that difference, for example the tendency to persevere in the face of adversity, and not the abilities accurately to assess probabilities of success versus failure.  Indeed, we are spectacularly maladapted for mathematics, which is why so many of us find it hard.  We have to defeat our in-built biases and become disciplined in following rules of logic which are as unnatural as they are successful.

Just how bad we are at intuitive math, particularly when it comes to assessing risk and probability, is shown by the following BBC video.  When I first saw this kind of demonstration I was utterly convinced that the probability of winning remained 50:50, (you'll see what I mean when you watch it).  Even Professor of Mathematics Marcus du Sautoy was convinced.  He worked it out mathematically, I modelled the game in Excel, (independently of course, I don't move in such noble circles), and the correct answer really is 1 in 3 if you keep to your original guess.

BBC News Magazine - Monty Hall problem: The probability puzzle that makes your head melt

So what has this to do with gambling?  Well we're programmed to assess risk and probability incorrectly.  We inherently overestimate our chance of winning compared to losing.  If Alan had been tempted to bet on the game, Marcus could've cleaned him out.  Alan is inherently no worse at this than you, me or anyone else.  And when we use intuition and common sense about gambling, we make decisiona as rational as a child playing on a railway track.

The only gambling I entertain is the English Grand National, (an annual horse race over jumps, on which many people make a token bet).  But I take the role of family bookmaker and stakes each person can afford to lose.  I've come away on top every year except one.  Even when my wife got third place this year, I paid out less in winnings than I made in stakes on her other bets.  And that's how gambling works - it's always rigged against the punter, it's just that we're all programmed to ignore that fact.

This makes gambling as much a vice as addiction to narcotics.  And the bookmaker is the pusher.  Both vices involve bypassing reasoned choice.  Both involve someone making money by exploiting other people whose decision making is compromised.  Both ruin lives.  And in my opinion, both should be outlawed.

Sunday 14 July 2013

Winchester Science Festival 2013

While planning my visit to the Winchester Science Festival next weekend, I was looking for a programme laid out as a timetable, so my family and I could mark sessions of interest then plan what we were going to see when.  I couldn't find one, so I decided to compile one.  My OCD compelled me to make a reasonable job of it, so I now have a printable PDF which can be printed on one double-sided page per day, (one side per morning or afternoon).

If you're thinking of going, feel free to download it here: WinSciFest2013.pdf

Otherwise, for a quick summary, see the table below (without photos and session descriptions).

SATURDAY MORNING
Performance Hall
SATURDAY MORNING
Learning Room
Sat 10:00
DR HELEN CZERSKI
A WORLD OF SCIENCE TOYS

Sat 10:00
DR JEN GUPTA
STARGAZING TBC

Sat 11:00
DR ADAM RUTHERFORD
CREATION: THE ORIGIN AND
THE FUTURE OF LIFE

Sat 11:00
DR SIMON WATT
SPERM WARFARE

Sat 12:00
PROF DEBRA SKENE
HOW YOUR BODY TELLS THE TIME

Sat 12:00
PROF BOB NICHOL
SETI: THE SEARCH FOR
EXTRATERRESTRIAL LIFE

SATURDAY AFTERNOON
Performance Hall
SATURDAY AFTERNOON
Learning Room
Sat 14:00
PROF MARK MIODOWNIK
STUFF MATTERS

Sat 14:00
ALAN LAWRIE
SECRETS OF THE SATURN V

Sat 15:00
ROBERT LLEWELLYN
ELECTRIC CARS ARE RUBBISH,
AREN'T THEY?

Sat 15:00
BEN LITTLEFIELD
STRONGER, GREENER, FASTER

Sat 16:00
PROFESSOR BRUCE HOOD
THE SELF ILLUSION

Sat 16:00
DR ED WAUGH
DRILLING IN ANTARCTICA:
THE LAKE ELLSWORTH PROJECT

Sat 17:00
MAGGIE PHILBIN
TEENTECH

SUNDAY MORNING
Performance Hall
SUNDAY MORNING
Learning Room
Sun 10:00
DR TOM CRICK
COMPUTING: THE SCIENCE OF
NEARLY EVERYTHING

Sun 11:00
DR DEAN BURNETT
BRAINS, I AM IN YOU!

Sun 12:00
DR LISA MCNEILL
NO MARGIN FOR ERROR

SUNDAY AFTERNOON
Performance Hall
SUNDAY AFTERNOON
Learning Room
Sun 14:00
PROF COLM MULCAHY
MATHEMAGIC WITH
A DECK OF CARDS

Sun 14:00
MEGAN WHEWELL
HOW DO WE KNOW
WE LANDED ON THE MOON

Sun 15:00
PROF DOROTHY BISHOP
THE REF, IMPACT FACTORS,
AND OTHER DAMAGING TRENDS: THOUGHTS FROM
A GRUMPY OLD SCIENTIST

Sun 15:00
DR MATTHEW WRIGHT
HOW SCIENCE SHAPED MUSIC

Sun 16:00
DR SIMON WATT
WHY WE DIE...,

Sun 17:00
PROF JON BUTTERWORTH
ATLAS SHRUGGED;
OUR NEW BOSON

MONDAY MORNING
Performance Hall
MONDAY MORNING
Learning Room
Mon 10:00
DR KAREN MASTERS
A RAINBOW VIEW OF
THE ANDROMEDA GALAXY

Mon 10:00
NICOLE SLAVIN
FUN WITH BRAINS AND BEYOND
(FOR AGES 7+)

Mon 11:00
DR HEATHER WILLIAMS
PHYSICS GETS TO
THE HEART OF THE MATTER

Mon 11:00
DAVID GREEN
ECOISLAND; THE HARDWARE AND SOFTWARE FIX FOR PLANET EARTH

Mon 12:00
PROF DAME WENDY HALL
NO WOMAN, NO RASPBERRY PI

MONDAY AFTERNOON
Performance Hall
MONDAY AFTERNOON
Learning Room
Mon 14:00
PROF SOPHIE SCOTT
LAUGHTERLAB

Mon 14:00
PROF JAMES SMITH
FROM CHERNOBYL TO FUKUSHIMA: PREDICTING THE CONSEQUENCES OF NUCLEAR ACCIDENTS 

Mon 15:00
DR FRAN SCOTT
SCIENCE MISADVENTURES

Mon 15:00
DR SIMON WATT
DR DEATH AND THE MEDI-EVIL MEDICINE SHOW

Mon 16:00
GRRLSCIENTIST
ENDANGERED SPECIES

Mon 17:00
DR KAREN JAMES
DARWIN, THE BEAGLE PROJECT AND GALAPAGOS NOW

The Atheist's Tale


Who has the burden of proof for an extraordinary claim?  Those who make the claim or those who challenge the claim?

At first, it is quite reasonable to give benefit of the doubt to a man who makes a claim, such as "I have a unicorn in my garden". After all, we have not searched his garden and have no proof that he has no unicorn, and it seems reasonable to take the word of a man who has not been shown to lie. So reasonably, we take his word at face value and allow that he may indeed have a unicorn in his garden.

When we visit his home, we are interested to see the unicorn, but when asked the man says he has a big garden and the unicorn isn't around the house at the moment, but it is there nonetheless. We're disappointed, of course, but we have no reason to disbelieve him.

Later the man makes a moral judgement about our behaviour, such as "it is wrong to eat wheat on a Wednesday", and when asked why this is so, the man replies that his unicorn told him so. We are irritated by such judgement, and surprised that not only this man claims to have a unicorn, but that it can speak also. So we ask to see this unicorn and ask why it is wrong to eat wheat on a Wednesday. We search the garden with the man and find no unicorn, but have no proof that none exists. When challenged to produce the unicorn, the man now claims that the unicorn is invisible, and is in all parts of the garden at the same time.

Now the man's claim is looking extraordinary for a number of reasons:
1. We have never seen a unicorn, and they are popularly believed to be fictional;
2. We have never heard an animal speak, and most people accept that only humans speak;
3. The man changed his story to suit his needs as we enquired further about his talking unicorn;
4. We have never had experience of invisible animals, and invisibility has never been demonstrated; and
5. The concept of something being everywhere at once appears contradictory.

So we conclude that on the balance of probability, the man's claim is bogus and put the onus on him to prove the existence of his unicorn.

We tell the man not to be so silly and judgemental about our wheat eating habits, and go about our business, trying to avoid aggravating someone who appears not to have a firm grasp on reality.

Then we find that the man is a teacher is our children's school and is telling them that his unicorn is real, that they should not eat wheat on Wednesdays and other rules about how to live their lives which he cannot substantiate, other than by claiming his invisible unicorn told him so, and the children must believe him.

So now we are angry that our children are being indoctrinated and ask the school to stop him. When we find that the school governors are unicorn believers too, that none of them can prove the existence of unicorns either, but fully support the indoctrination of our children, we are outraged. We speak to local politicians and media, and mount a campaign to stop this silliness. But then the government, many members of whom turn out to believe in pixies or leprechauns, equally without foundation, object that we are trying to restrict people's right to believe what they choose to believe, and criticise us for being arrogant and intolerant.

We hold our heads in our hands, wondering how these people can be so deluded, and how we can have our children taught math, English and science, without all this mumbo-jumbo. We realise that it is we who are in the minority, and the world deluded.

What should we do?

Monday 1 July 2013

Does a computer use more electricity when charging USB devices?

I was introduced to this fascinating question, and its intriguing proposed answer, by David Bradley.

It was suggested that because the efficiency of a power supply increases as it is loaded to its design output power, it is possible to draw 5W of power to charge a USB device, while taking less than 5W of extra power from the wall outlet.  While that sounded reasonable on the face of it, I wondered if the idea represented better use of existing power, or actually getting something for nothing.  So as an electronics engineer with an interest in physics, I did some calculations to find out. Here is the response I posted:


Short Answer:

YES; you'll always pay for the USB power with at least that much more power from the wall. Not only is this required by the laws of thermodynamics, it's also inherent in the way power supplies work.

Longer Answer:

We'll take the whole system of the computer, its internal power supply, its operating circuits and the USB port circuitry to be one big, black box called the Supply. For the purposes of this illustration, the whole computer is one oversized USB charger, with two outputs: the computer operating power, which we will call Pc, and the output USB power, which we will call Pu.
Converting power from one form, (voltage, current, frequency), to another, and conducting power from one part of a circuit to another, are all physical processes which are less than perfect. Even in an ideal world, with superconductors and yet-to-be-invented components, the circuit can be no better than perfect. (The importance of this subtle message will turn out to be the key to this answer). If you want 1W out of a circuit, you must put in at least 1W, and in all practical cases a bit more than 1W. That bit moreis the power lost in the conversion and is called loss. We will call the loss power Pl, and it is directly related to the amount of power delivered by the supply. Loss is almost always evident as heat, and is why electronic circuits which carry large power levels must be ventilated.
There is some mathematical function, (an equation), which describes how the loss varies with output power. This function will involve the square of output voltage or current where power is lost in resistance, a frequency multiplied by output voltage or current where power is lost in switching. But we don't need to dwell on that, we can wrap all that irrelevant detail into one symbol, which we will call f(Po), where Po is the total output power, and is used to relate output power to loss by the equation Pl = f(Pc+Pu).
A power supply is a circuit which requires power to operate, even if it is delivering no output power at all. Electronics engineers call this the quiescent power, and we'll refer to it as Pq. Quiescent power is constant, and is absolutely unaffected by how hard the power supply is working to deliver the output power. In this example, where the computer is performing other functions besides powering the USB charger, we include the operating power of the other computer functions in Pq.
All this power comes from the wall outlet, and we will call the input power, Pw, (Pi looks confusingly likePl, so I switched to Pw for wall-power).
So now we are ready to put the above together and get a description of how these power contributions are related. Well firstly we know that every microwatt of power output, or loss, comes from the wall. So:
Pw = Pq + Pl + Pc + Pu
And we know that Pl = f(Pc+Pu), so:
Pw = Pq + f(Pc+Pu) + Pc + Pu
Now we can test the hypothesis that taking power from the USB output increases then wall power by less than the USB power. We can formalise this hypothesis, see where it leads, and see whether it predicts something absurd, (in which case the hypothesis is false), or predicts something realistic, (in which case the hypotheses remains plausible).
We can write the hypothesis first as:
(Wall power with USB load) - (Wall power without USB load) < (USB power)
and mathematically as:
[ Pq + f(Pc+Pu) + Pc + Pu ] - [ Pq + f(Pc) + Pc ] < Pu
Now we can simplify this by eliminating the same terms on both sides of the minus sign and removing the brackets:
f(Pc+Pu) + Pu - f(Pc) < Pu
then by subtracting Pu from both sides of the inequality (< sign):
f(Pc+Pu) - f(Pc) < 0
Here is our absurdity. What this result means in plain English is:
The extra loss involved in taking more power from the supply is negative
This means negative resistors, negative voltages dropped across semiconductor junctions, or power magically appearing from the cores of inductors. All of this is nonsense, fairy tales, wishful thinking of perpetual-motion machines, and is absolutely impossible.

Conclusion:

It is not physically possibly, theoretically or otherwise, to get power out of a computer USB port, with less than the same amount of extra power coming from the wall outlet.

What did @zakinster miss?

With the greatest respect to @zakinster, he has misunderstood the nature of efficiency. Efficiency is aconsequence of the relationship between input power, loss and output power, and not a physical quantity for which input power, loss and output power are consequences.
To illustrate, let's take the case of a power supply with a maximum output power of 900W, losses given by Pl = APo² + BPo where A = 10^-4 and B = 10^-2, and Pq = 30W. Modelling the efficiency (Po/Pi) of such a power supply in Excel and graphing it on a scale similar to the Anand Tech curve, gives:
enter image description here
This model has a very steep initial curve, like the Anand Tech supply, but is modelled entirely according to the analysis above which makes free power absurd.
Let's take this model and look at the examples @zakinster gives in Case 2 and Case 3. If we change Pq to 50W, and make the supply perfect, with zero loss, then we can get 80% efficiency at 200W load. But even in this perfect situation, the best we can get at 205W is 80.39% efficiency. To reach the 80.5% @zakinster suggests is a practical possibility requires a negative loss function, which is impossible. And achieving 82% efficiency is still more impossible.
For summary, please refer to Short Answer above.