Bayes' Theorem - How to Think Better

in #bayes7 years ago (edited)

What is the "Bayes' Theorem"?

"Bayes' theorem is a mathematical formula for determining conditional probability named after 18th-century British mathematician Thomas Bayes (1701–1761). The theorem provides a way to revise existing predictions or theories given new or additional evidence. "

It was further developed by Pierre-Simon Laplace, who first published the modern formulation in his 1812 “Théorie analytique des probabilités.” Sir Harold Jeffreys put Bayes’ algorithm and Laplace's formulation on an axiomatic basis. Jeffreys wrote that Bayes’ theorem “is to the theory of probability what the Pythagorean theorem is to geometry.”

Written out the formula looks something like this:

How can we use it?

Let's take a look at some examples of Bayes rule in action.

The Disease Test.

You don't feel so good. After visiting a doctor and taking a test you are diagnosed with a very rare disease that has a likelihood of 1 in 10 000. The test has an accuracy of 98%. So, how probable is it that you have this disease?

It's not 98%.

Let's solve the formula if:

  • prior probability of the disease occuring P(H) = 1/10 000 = 0,0001
  • probability of the test being true if you had the disease P(E/H) = 0,98
  • probability of testing positive both a positive positive and a negative positive

    P(E) = P(H)P(E/H)+P(-H)P(E/-H) = 0,0001 * 0,98 + 0,9999 * 0,02 = 0,020096

  • So the probability of you having the disease after testing positive is actually ~0,5% after crunching the numbers.
    An easier way to see it: If from 10 000 people 1 has the disease and the test picks out 200, the chances of you having the disease is 1/201 = ~0,005 =0,5%

    Let's take another example

    "Imagine there is a drug test that is 98% accurate, meaning 98% of the time it shows a true positive result for someone using the drug and 98% of the time it shows a true negative result for nonusers of the drug. Next, assume 0.5% of people use the drug. If a person selected at random tests positive for the drug, the following calculation can be made to see the probability the person is actually a user of the drug.

    (0.98 * 0.005) / ((0.98 * 0.005) + (0.02 * 0.995)) = 0.0049 / (0.0049 + 0.0199) = 19.76%

    Bayes' theorem shows that even if a person tested positive in this scenario, it is actually much more likely the person is not a user of the drug.

    Changing how we think in everyday life

    Too often do people think they know something 100% or change their minds completely when presented with new evidence.
    Bayes' rule helps us with taking on new information and processing it the right way.
    We don't need to sit down and use the formula in our every-day lives, that would be counterproductive. Instead there are key points to keep in mind. It's all about probabilistic reasoning.

    When you are confronted with new information you need to figure out how much that new evidence will change your current belief. There is no black and white. Your beliefs can change indefinitely.

    But how do you make up the rules of evidence? How will you know the value of any evidence?

    You don't. The rules are ever changing and subjective.
    Let's say you believe morning yoga will make you a happier person. After doing yoga for a while you are feeling happy about 3 days from 7. What if before you did yoga the results were the same? This isn't strong evidence. But for someone that is feeling bad constantly the evidence is very strong that yoga will make you happier.

    If you are presented with new evidence revise your prior evidence. For example if you go home late at night and someone is "apparently" following you. How likely is it that this person is someone with ill intent? While the initial reaction can come off as strong evidence, you'll quickly realize on average there aren't many bad people and it's much more likely he just shares a similar way home.

    Evidence can also be wrong. You should never dismiss evidence nor should you change your belief, but update your amount of belief incrementally.

    People often tend to make wrong assessments. They'll use irrelevant data or start out with a wrong belief.
    Imagine asking your friend for advice on something he has no knowledge in. How common is it for him to still give you advice whether he knows the topic or not? He's advice is irrelevant.

    You should never be 100% certain of anything. It means your beliefs are unchangeable even if presented new evidence. You should however say you think something is extremely likely.

    To sum it up

    ...the most important lesson here is that knowing something for sure is highly unlikely. There are too many variables. You should however keep asking questions, challenging your own beliefs and never believing anything.


    Useful videos:

    Sort:  

    @sulev I think that most people read this had the idea that they can argue a failed drug test using Bayes Theorem. I would love to see the look on the face of the lab technician. "Sorry, your pee tells a different mathematical story. Good luck with HR." lol

    i had many confusions while am studying this in my graduation but now its very easy thank you for the post

    Interesting article! It is so easy to think it's 98% chanse when the test is 98% accurate. Big difference between 98% and 0.5%! I will apply to this the famous words "don't worry be happy!" And try to remember this way of thinking - thank you for making it clear with the example (1 in 201 chanse).

    Once you do another test and it's positive too that's when you should start getting worried :P

    Let us hope we never have to work out the odds after a second test!

    Ha! Let's hope so.

    Great post ! Today i just lost my job...i worked really hard as a waiter for like 10 years in a restaurant...worked night after night shifts but still they decide they don't need my services anymore and that they don't have money to pay me so they just kick me out . It was really hard for me to find this job because i don't have much education....i did't go to college...
    The real problem is that i have a debt of 759 $ to my apartment rent and if i don't pay till the end of the month they gonna kick me out from my own home. I don't have friends and my family won't lend me any money...
    My only hope now to raise this money is steemit...i like it alot here and the community is very nice...

    Please if anybody would like to help me , a upvote would be awesome and would help me tremendously to raise the money i need .

    Thank you very much for your help and i hope you have a great day .

    Holy shiet D:

    Nah, don't read it! It dwarfs beside your masterpiece... now I feel as ashamed... as a mad helicopter.

    And so should you! Why depend on gravity for madness, when you can simply fly? ^_^

    I like this theorem. The guy formulated it just by analyzing common events ad disregarded it's importance. He didn't even published it but I think this is very useful.

    This post has received a 12.16 % upvote from @booster thanks to: @sulev.

    Bayes filter derived from Bayes theorem is currently the underlying, behind-the-scene mathematical tool used in automated driving and object tracking. math was there for more than two centuries

    Coin Marketplace

    STEEM 0.20
    TRX 0.14
    JST 0.030
    BTC 64854.61
    ETH 3478.75
    USDT 1.00
    SBD 2.52