martedì 21 febbraio 2017

An Intuitive Explanation of Bayes' Theorem Elizer Yudkowsky

Notebook per
***An Intuitive Explanation of Bayes' Theorem
Elizer Yudkowsky
Citation (APA): Yudkowsky, E. (2017). ***An Intuitive Explanation of Bayes' Theorem [Kindle Android version]. Retrieved from Amazon.com

Parte introduttiva
Evidenzia (giallo) - Posizione 2
An Intuitive Explanation of Bayes' Theorem By Elizer Yudkowsky
Evidenzia (giallo) - Posizione 8
"Bayes' Theorem"
Evidenzia (giallo) - Posizione 8
Bayesian reasoning.
Evidenzia (giallo) - Posizione 10
Just one equation.
Evidenzia (giallo) - Posizione 10
why your friends would be interested in it.
Evidenzia (giallo) - Posizione 12
Maybe you understand it in theory,
Evidenzia (giallo) - Posizione 12
in practice you get mixed up
Evidenzia (giallo) - Posizione 14
you can't understand why your friends and/ or research colleagues seem to think it's the secret of the universe.
Evidenzia (giallo) - Posizione 17
Why does a mathematical concept generate this strange enthusiasm in its students?
Evidenzia (giallo) - Posizione 18
What is the so-called Bayesian Revolution
Evidenzia (giallo) - Posizione 18
subsume even the experimental method itself as a special case?
Evidenzia (giallo) - Posizione 21
Bayesian reasoning is very counterintuitive.
Evidenzia (giallo) - Posizione 22
People do not employ Bayesian reasoning intuitively,
Evidenzia (giallo) - Posizione 22
rapidly forget Bayesian methods
Evidenzia (giallo) - Posizione 24
like quantum mechanics
Nota - Posizione 24
...
Evidenzia (giallo) - Posizione 24
is inherently difficult
Nota - Posizione 24
c
Evidenzia (giallo) - Posizione 29
Here's a story
Nota - Posizione 29
t
Evidenzia (giallo) - Posizione 29
1% of women at age forty who participate in routine screening have breast cancer. 80% of women with breast cancer will get positive mammographies. 9.6% of women without breast cancer will also get positive mammographies. A woman in this age group had a positive mammography in a routine screening. What is the probability that she actually has breast cancer?
Nota - Posizione 32
x PROBLEMA DEL CANCRO
Evidenzia (giallo) - Posizione 33
come up with your own answer before continuing.
Evidenzia (giallo) - Posizione 33
most doctors get the same wrong answer
Evidenzia (giallo) - Posizione 34
around 15% of doctors get it right.
Evidenzia (giallo) - Posizione 35
See Casscells, Schoenberger, and Grayboys 1978; Eddy 1982; Gigerenzer and Hoffrage 1995;
Nota - Posizione 36
x TEST SUI DOTTORI
Evidenzia (giallo) - Posizione 36
result which is easy to replicate,
Evidenzia (giallo) - Posizione 38
most doctors estimate the probability to be between 70% and 80%,
Evidenzia (giallo) - Posizione 39
alternate version of the problem
Evidenzia (giallo) - Posizione 40
10 out of 1000 women at age forty who participate in routine screening have breast cancer. 800 out of 1000 women with breast cancer will get positive mammographies. 96 out of 1000 women without breast cancer will also get positive mammographies. If 1000 women in this age group undergo a routine screening, about what fraction of women with positive mammographies will actually have breast cancer?
Nota - Posizione 43
x ALTRO ES
Evidenzia (giallo) - Posizione 43
here's the problem on which doctors fare best of all,
Evidenzia (giallo) - Posizione 43
46%
Evidenzia (giallo) - Posizione 44
100 out of 10,000 women at age forty who participate in routine screening have breast cancer. 80 of every 100 women with breast cancer will get a positive mammography. 950 out of 9,900 women without breast cancer will also get a positive mammography. If 10,000 women in this age group undergo a routine screening, about what fraction of women with positive mammographies will actually have breast cancer?
Nota - Posizione 47
x TERZO FRAMING
Evidenzia (giallo) - Posizione 47
The correct answer is 7.8%,
Evidenzia (giallo) - Posizione 47
Out of 10,000 women, 100 have breast cancer; 80 of those 100 have positive mammographies. From the same 10,000 women, 9,900 will not have breast cancer and of those 9,900 women, 950 will also get positive mammographies. This makes the total number of women with positive mammographies 950 + 80 or 1,030. Of those 1,030 women with positive mammographies, 80 will have cancer. Expressed as a proportion, this is 80/ 1,030 or 0.07767 or 7.8%.
Nota - Posizione 50
x IL RAGIONAMENTO X LA RISPOSTA CORRETTA
Nota - Posizione 52
x DUE GRUPPI
Nota - Posizione 57
x 4 GRUPPI
Evidenzia (giallo) - Posizione 62
If you administer a mammography to 10,000 patients, then out of the 1030 with positive mammographies, 80 of those positive-mammography patients will have cancer.
Evidenzia (giallo) - Posizione 65
1 out of those 13 will have cancer.
Evidenzia (giallo) - Posizione 65
The most common mistake is to ignore the original fraction of women with breast cancer, and the fraction of women without breast cancer who receive false positives, and focus only on the fraction of women with breast cancer who get positive results. For example, the vast majority of doctors in these studies seem to have thought that if around 80% of women with breast cancer have positive mammographies, then the probability of a women with a positive mammography having breast cancer must be around 80%.
Nota - Posizione 67
x L ERRORE PIÙ COMUNE
Evidenzia (giallo) - Posizione 69
three pieces of information
Evidenzia (giallo) - Posizione 71
the final answer always depends on the original fraction of women with breast cancer,
Evidenzia (giallo) - Posizione 71
consider an alternate universe in which only one woman out of a million has breast cancer.
Evidenzia (giallo) - Posizione 75
the probability goes from 1: 1,000,000 to 1: 100,000.
Nota - Posizione 76
AUMENTO TRASCURABILE
Evidenzia (giallo) - Posizione 83
the mammography result doesn't replace your old information
Evidenzia (giallo) - Posizione 84
the mammography slides the estimated probability in the direction of the result.
Evidenzia (giallo) - Posizione 86
a positive result on the mammography slides the 1% chance upward to 7.8%.
Nota - Posizione 87
L AGGIORNAMENTO
Evidenzia (giallo) - Posizione 88
replacing the original 1% probability with the 80% probability
Nota - Posizione 88
L ERRORE COMUNE
Evidenzia (giallo) - Posizione 89
It may seem like a good idea, but it just doesn't work.
Evidenzia (giallo) - Posizione 89
"The probability that a woman with a positive mammography has breast cancer" is not at all the same thing as "the probability that a woman with breast cancer has a positive mammography"; they are as unlike as apples and cheese.
Nota - Posizione 91
x DUE PROBLEMI DIFFERENTI
Evidenzia (giallo) - Posizione 91
uses all three pieces of problem information
Evidenzia (giallo) - Posizione 92
"the prior probability that a woman has breast cancer",
Evidenzia (giallo) - Posizione 92
"the probability that a woman with breast cancer gets a positive mammography",
Evidenzia (giallo) - Posizione 93
"the probability that a woman without breast cancer gets a positive mammography".
Evidenzia (giallo) - Posizione 100
consider an alternate test, mammography +. Like the original test, mammography + returns positive for 80% of women with breast cancer. However, mammography + returns a positive result for only one out of a million women without breast cancer - mammography + has the same rate of false negatives, but a vastly lower rate of false positives. Suppose a patient receives a positive mammography +. What is the chance that this patient has breast cancer?
Nota - Posizione 103
x ALTRA VERSIONE: FALSI NEGATIVI BASSISSIMI
Evidenzia (giallo) - Posizione 103
99.988%,
Evidenzia (giallo) - Posizione 113
Mammography + is thus a better test in terms of its total emotional impact
Evidenzia (giallo) - Posizione 117
if you have a positive mammography +, your chance of having cancer is a virtual certainty.
Evidenzia (giallo) - Posizione 117
mammography + does not generate as many false positives
Evidenzia (giallo) - Posizione 137
case where the chance of a true positive and the chance of a false positive are the same,
Nota - Posizione 137
NO INFO
Evidenzia (giallo) - Posizione 155
Take, for example, the "test" of flipping a coin;
Evidenzia (giallo) - Posizione 164
The original proportion of patients with breast cancer is known as the prior probability.
Evidenzia (giallo) - Posizione 165
The chance that a patient with breast cancer gets a positive mammography, and the chance that a patient without breast cancer gets a positive mammography, are known as the two conditional probabilities.
Nota - Posizione 166
CONDITIONAL
Evidenzia (giallo) - Posizione 166
Collectively, this initial information is known as the priors.
Evidenzia (giallo) - Posizione 168
revised probability or the posterior probability.
Evidenzia (giallo) - Posizione 169
if the two conditional probabilities are equal, the posterior probability equals the prior probability.
Evidenzia (giallo) - Posizione 171
How can I find the priors for a problem? A. Many commonly used priors are listed in the Handbook of Chemistry and Physics.
Evidenzia (giallo) - Posizione 172
Where do priors originally come from? A. Never ask that question.
Nota - Posizione 173
SOGGETTO
Evidenzia (giallo) - Posizione 174
Priors for scientific problems are established by annual vote of the AAAS.
Evidenzia (giallo) - Posizione 238
I suggest visualizing Bayesian evidence as sliding the probability
Evidenzia (giallo) - Posizione 240
Gigerenzer and Hoffrage
Evidenzia (giallo) - Posizione 241
some ways of phrasing story problems are much more evocative of correct Bayesian reasoning.
Evidenzia (giallo) - Posizione 241
The least evocative phrasing used probabilities.
Evidenzia (giallo) - Posizione 242
A slightly more evocative phrasing used frequencies
Evidenzia (giallo) - Posizione 243
instead of saying that 1%
Evidenzia (giallo) - Posizione 243
one would say that 1 out of 100
Evidenzia (giallo) - Posizione 245
saying "1 out of 100 women" encourages you to concretely visualize X women with cancer,
Evidenzia (giallo) - Posizione 246
most effective presentation found so far is what's known as natural frequencies
Evidenzia (giallo) - Posizione 248
A natural frequencies presentation is one in which the information about the prior probability is included in presenting the conditional probabilities.
Nota - Posizione 249
x NATURAL FREQUENCY
Evidenzia (giallo) - Posizione 256
When problems are presented in natural frequences, the proportion of people using Bayesian reasoning rises to around half.
Evidenzia (giallo) - Posizione 259
visualization,
Evidenzia (giallo) - Posizione 355
p( A& B) is the same as p( B& A), but p( A | B) is not the same thing as p( B | A), and p( A& B) is completely different from p( A | B).
Nota - Posizione 356
x CONFUSIONE
Evidenzia (giallo) - Posizione 457
The probability that a test gives a true positive divided by the probability that a test gives a false positive is known as the likelihood ratio of that test.
Nota - Posizione 458
x ATTENDIBILITÀ DEL TEST
Evidenzia (giallo) - Posizione 459
The likelihood ratio sums up everything there is to know about the meaning of a positive result
Evidenzia (giallo) - Posizione 461
but the meaning of a negative result on the test is not specified,
Evidenzia (giallo) - Posizione 487
If the prior probability is 1%, then knowing only the likelihood ratio is enough to determine the posterior probability after a positive result.
Nota - Posizione 487
X È SUFFICIENTE
Evidenzia (giallo) - Posizione 574
The Reverend Thomas Bayes, by far the most enigmatic figure in mathematical history. Almost nothing is known of Bayes's life, and very few of his manuscripts survived. Thomas Bayes was born in 1701 or 1702 to Joshua Bayes and Ann Carpenter, and his date of death is listed as 1761. The exact date of Thomas Bayes's birth is not known for certain because Joshua Bayes, though a surprisingly wealthy man, was a member of an unusual, esoteric, and even heretical religious sect, the "Nonconformists". The Nonconformists kept their birth registers secret, supposedly from fear of religious discrimination; whatever the reason, no true record exists of Thomas Bayes's birth. Thomas Bayes was raised a Nonconformist and was soon promoted into the higher ranks of the Nonconformist theosophers, whence comes the "Reverend" in his name. In 1742 Bayes was elected a Fellow of the Royal Society of London, the most prestigious scientific body of its day, despite Bayes having published no scientific or mathematical works at that time. Bayes's nomination certificate was signed by sponsors including the President and the Secretary of the Society, making his election almost certain. Even today, however, it remains a mystery why such weighty names sponsored an unknown into the Royal Society. Bayes's sole publication during his known lifetime was allegedly a mystical book entitled Divine Benevolence, laying forth the original causation and ultimate purpose of the universe. The book is commonly attributed to Bayes, though it is said that no author appeared on the title page, and the entire work is sometimes considered to be of dubious provenance. Most mysterious of all, Bayes' Theorem itself appears in a Bayes manuscript presented to the Royal Society of London in 1764, three years after Bayes's supposed death in 1761! Despite the shocking circumstances of its presentation, Bayes' Theorem was soon forgotten, and was popularized within the scientific community only by the later efforts of the great mathematician Pierre-Simon Laplace. Laplace himself is almost as enigmatic as Bayes; we don't even know whether it was "Pierre" or "Simon" that was his actual first name. Laplace's papers are said to have contained a design for an AI capable of predicting all future events, the so-called "Laplacian superintelligence". While it is generally believed that Laplace never tried to implement his design, there remains the fact that Laplace presciently fled the guillotine that claimed many of his colleagues during the Reign of Terror. Even today, physicists sometimes attribute unusual effects to a "Laplacian Operator" intervening in their experiments. In summary, we do not know the real circumstances of Bayes's birth, the ultimate origins of Bayes' Theorem, Bayes's actual year of death, or even whether Bayes ever really died. Nonetheless "Reverend Thomas Bayes", whatever his true identity, has the greatest fondness and gratitude of Earth's scientific community.
Evidenzia (giallo) - Posizione 596
why is it that some people are so excited about Bayes' Theorem?
Evidenzia (giallo) - Posizione 596
"Do you believe that a nuclear war will occur in the next 20 years? If no, why not?"
Nota - Posizione 597
UNA DOMANDA
Evidenzia (giallo) - Posizione 598
I went ahead and asked the above question in an IRC channel, #philosophy on EFNet.
Evidenzia (giallo) - Posizione 598
One EFNetter who answered replied "No" to the above question, but added that he believed biological warfare would wipe out "99.4%" of humanity within the next ten years. I then asked whether he believed 100% was a possibility. "No," he said. "Why not?", I asked. "Because I'm an optimist,"
Nota - Posizione 600
x UNA RISPOSTA
Evidenzia (giallo) - Posizione 602
Another person who answered the above question said that he didn't expect a nuclear war for 100 years, because "All of the players involved in decisions regarding nuclear war are not interested right now." "But why extend that out for 100 years?", I asked. "Pure hope," was his reply.
Nota - Posizione 604
x UN ALTRA
Evidenzia (giallo) - Posizione 604
What is it exactly that makes these thoughts "irrational"
Nota - Posizione 604
DOMANDA
Evidenzia (giallo) - Posizione 605
"It is not rational to believe things only because they are comforting."
Evidenzia (giallo) - Posizione 606
is equally irrational to believe things only because they are discomforting;
Evidenzia (giallo) - Posizione 607
to be an optimist has nothing to do with
Evidenzia (giallo) - Posizione 609
There is also a mathematical reply
Evidenzia (giallo) - Posizione 609
This mathematical reply is known as Bayes' Theorem.
Evidenzia (giallo) - Posizione 613
as we have earlier seen, when the two conditional probabilities are equal, the revised probability equals the prior probability.
Evidenzia (giallo) - Posizione 616
But suppose you are arguing with someone who is verbally clever
Evidenzia (giallo) - Posizione 616
"Ah, but since I'm an optimist, I'll have renewed hope for tomorrow, work a little harder at my dead-end job, pump up the global economy a little, eventually, through the trickle-down effect, sending a few dollars into the pocket of the researcher who ultimately finds a way to stop biological warfare - so you see, the two events are related after all, and I can use one as valid evidence about the other." In one sense, this is correct - any correlation, no matter how weak, is fair prey for Bayes' Theorem;
Nota - Posizione 620
X TUTTO CONTA
Evidenzia (giallo) - Posizione 622
Bayes' Theorem not only tells us when to revise our probabilities, but how much to revise
Evidenzia (giallo) - Posizione 634
In cognitive science, Bayesian reasoner is the technically precise codeword that we use to mean rational mind.
Evidenzia (giallo) - Posizione 636
you may hear cognitive psychologists saying that people do not take prior frequencies sufficiently into account,
Evidenzia (giallo) - Posizione 642
A related error is to pay too much attention to p( X | A) and not enough to p( X | ~ A)
Nota - Posizione 643
x ALTRO ERRORE
Evidenzia (giallo) - Posizione 645
For example, if it is raining, this very strongly implies the grass is wet - p( wetgrass | rain) ~ 1 - but seeing that the grass is wet doesn't necessarily mean that it has just rained; perhaps the sprinkler was turned on,
Nota - Posizione 646
x ERBA BAGNATA
Evidenzia (giallo) - Posizione 655
science itself is a special case of Bayes' Theorem;
Evidenzia (giallo) - Posizione 655
experimental evidence is Bayesian evidence.
Evidenzia (giallo) - Posizione 656
when you perform an experiment and get evidence that "confirms" or "disconfirms" your theory, this confirmation and disconfirmation is governed by the Bayesian rules. For example, you have to take into account, not only whether your theory predicts the phenomenon, but whether other possible explanations also predict the phenomenon.
Nota - Posizione 658
x LA SCIENA È BAYESIANA
Evidenzia (giallo) - Posizione 658
Karl Popper's falsificationism
Evidenzia (giallo) - Posizione 659
the old philosophy that the Bayesian revolution is currently dethroning.
Evidenzia (giallo) - Posizione 659
Karl Popper's idea that theories can be definitely falsified, but never definitely confirmed, is yet another special case of the Bayesian rules; if p( X | A) ~ 1 - if the theory makes a definite prediction - then observing ~ X very strongly falsifies A. On the other hand, if p( X | A) ~ 1, and we observe X, this doesn't definitely confirm the theory; there might be some other condition B such that p( X | B) ~ 1, in which case observing X doesn't favor A over B. For observing X to definitely confirm A, we would have to know, not that p( X | A) ~ 1, but that p( X | ~ A) ~ 0, which is something that we can't know because we can't range over all possible alternative explanations.
Nota - Posizione 664
x POPPER UN CASO SPECIALE DI BAYES
Evidenzia (giallo) - Posizione 664
For example, when Einstein's theory of General Relativity toppled Newton's incredibly well-confirmed theory of gravity, it turned out that all of Newton's predictions were just a special case of Einstein's predictions.
Nota - Posizione 666
x BAYES POPPER... NEWTON E EINSTEIN
Evidenzia (giallo) - Posizione 677
Falsification is much stronger than confirmation.
Evidenzia (giallo) - Posizione 685
Popper's idea that there is only falsification and no such thing as confirmation turns out to be incorrect.
Evidenzia (giallo) - Posizione 686
Bayes' Theorem shows that falsification is very strong evidence compared to confirmation, but falsification is still probabilistic in nature;
Nota - Posizione 687
x TUTTO È PROBAB
Evidenzia (giallo) - Posizione 687
not governed by fundamentally different rules from confirmation, as Popper argued.
Evidenzia (giallo) - Posizione 689
Hence the Bayesian revolution.
Evidenzia (giallo) - Posizione 715
A is the thing we want to know about. X is how we're observing it;
Evidenzia (giallo) - Posizione 715
X is the evidence
Evidenzia (giallo) - Posizione 729
In a sense, p( Q | P) really means p( Q& P | P), but
Evidenzia (giallo) - Posizione 735
p( Q), the frequency of "things that have property Q within the entire sample",
Evidenzia (giallo) - Posizione 805
Bayes' Theorem binds reasoning into the physical universe.
Nota - Posizione 806
MENTE&MONDO. RAZIONALITÀ APPLICATA