SlideShare a Scribd company logo
1 of 12
Download to read offline
Bayes Rule
Belief + Evidence -> Revise your Belief
Why should you care?
- Become smart(er)
- It was used for Treasure Hunt of $800Mn
- Know: How good is your manager, How bug free is ur code...
- Interpret a diagnosis test with 99% TP and 99% FP (Eg: Covid RT-PCR)
- Understand our scientific method (philosophy)
- Understand Monty Hall problem
- Use fancy phrases: Extraordinary claims require extraordinary evidence
Bayes Rule (the abstract math symbols)
P(H | E) = P(E | H) * P(H) / P(E)
We can make it more complex to confuse/scare...
P(H | E) = P(E | H) * P(H) / P(E | H) * P(H) + P(E | !H) * P(!H)
H:Hypothesis; E: Evidence
Lets do better by stating it in plain english...
When you see evidence;
Update your belief
This is sthg you should; Tatoo it in your brain - 3Blue1Brown
Sidenote: Levels of understanding:
- What is it?
- Why is it true?
- When is it useful?
Simplified (and useful) version
Odds * Strength of evidence = new Odds
Technically,
Prior Odds * Relative likelihoods = Posterior Odds
Why is it so hard to apply? Becoz its simple :)
How good are interviews?
Let us assume that 1 out 10 developers are good
and some observation on interviews:
● How many good developers clear interviews? (8 out of 10)
● Also ask: How many bad developers clear interviews? (1 out of 50)
New Belief: 1:10 * (8/10 : 1/50) = 1:10 * 40:1 = 4:1
i.e., 4/(4+1) is the probability you found a good candidate, post interview
Insight: Its very hard to improve ur process, instead filter/screen better
How good is the manager?
Let us assume that 1 out 10 managers are bad
and some observations: he does bad code reviews, is micromanaging you
● How many bad managers do this? (8 out of 10)
● Also ask: How many good managers do this? (1 out of 20)
New Belief: 1:10 * (8/10 : 1/20) = 1:10 * 16:1 = 16:10
i.e., 16/(16+10) is probability of your manager is bad
Monty hall
You select Door 1, Monty chooses Door 3
Prior = 1:1:1
Relative Likelihood = ½:1:0
Posterior = ½ :1:0 = 1:2:0
so, Switch -- probability is ⅔ vs ⅓
Note: Bayes rule in this form is superior to P(E|H)*P(H)/P(E)
What the heck is Likelihood?
Credits/Links
https://arbital.com/p/bayes_rule/
Betterexplained
3blue1brown https://www.youtube.com/watch?v=HZGCoVF3YvM&t=620s

More Related Content

Similar to Bayes rule

Giving Technical Presentations
Giving Technical PresentationsGiving Technical Presentations
Giving Technical PresentationsMikeKSmith
 
Room to Breathe: The BA's role in project estimation
Room to Breathe: The BA's role in project estimationRoom to Breathe: The BA's role in project estimation
Room to Breathe: The BA's role in project estimationufunctional
 
Chi square test
Chi square testChi square test
Chi square testsbarkanic
 
Optimal Learning for Fun and Profit with MOE
Optimal Learning for Fun and Profit with MOEOptimal Learning for Fun and Profit with MOE
Optimal Learning for Fun and Profit with MOEYelp Engineering
 
Prompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineeringPrompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineeringSaweraKhadium
 
Culture First 2019: Day 2, Making remote work work
Culture First 2019: Day 2, Making remote work work Culture First 2019: Day 2, Making remote work work
Culture First 2019: Day 2, Making remote work work Culture Amp
 
Passionate Dating for Testers (and Vice Versa)
Passionate Dating for Testers (and Vice Versa)Passionate Dating for Testers (and Vice Versa)
Passionate Dating for Testers (and Vice Versa)TEST Huddle
 
With 4 sentences 75% of the people will hear and understand you with 8 - 10...
With 4 sentences 75% of the people will hear and understand you   with 8 - 10...With 4 sentences 75% of the people will hear and understand you   with 8 - 10...
With 4 sentences 75% of the people will hear and understand you with 8 - 10...Steve Sulkowski
 
Multiple intelligences approach to Number Systems
Multiple intelligences approach to  Number SystemsMultiple intelligences approach to  Number Systems
Multiple intelligences approach to Number SystemsKatrin Becker
 
Opticon 2015-Statistics in 40 minutes
Opticon 2015-Statistics in 40 minutesOpticon 2015-Statistics in 40 minutes
Opticon 2015-Statistics in 40 minutesOptimizely
 
Managing your tech career
Managing your tech careerManaging your tech career
Managing your tech careerGreg Jensen
 
Programed instructional material: Rational Numbers
Programed instructional material: Rational NumbersProgramed instructional material: Rational Numbers
Programed instructional material: Rational NumbersAtul Thakur
 
Object Calisthenics for Magento - Meet Magento New York 2017
Object Calisthenics for Magento - Meet Magento New York 2017Object Calisthenics for Magento - Meet Magento New York 2017
Object Calisthenics for Magento - Meet Magento New York 2017Matheus Gontijo, MBA
 
Pmp Lessons Learned Older Pp
Pmp Lessons Learned Older PpPmp Lessons Learned Older Pp
Pmp Lessons Learned Older Pphfundor1
 
Statistics for linguistics
Statistics for linguisticsStatistics for linguistics
Statistics for linguisticsaiaioo
 
Management Consulting Approach to Problem Solving
Management Consulting Approach to Problem SolvingManagement Consulting Approach to Problem Solving
Management Consulting Approach to Problem SolvingAsen Gyczew
 

Similar to Bayes rule (20)

Giving Technical Presentations
Giving Technical PresentationsGiving Technical Presentations
Giving Technical Presentations
 
Room to Breathe: The BA's role in project estimation
Room to Breathe: The BA's role in project estimationRoom to Breathe: The BA's role in project estimation
Room to Breathe: The BA's role in project estimation
 
Chi square test
Chi square testChi square test
Chi square test
 
Optimal Learning for Fun and Profit with MOE
Optimal Learning for Fun and Profit with MOEOptimal Learning for Fun and Profit with MOE
Optimal Learning for Fun and Profit with MOE
 
Sentiment Analysis in Machine Learning
Sentiment Analysis in  Machine LearningSentiment Analysis in  Machine Learning
Sentiment Analysis in Machine Learning
 
Prompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineeringPrompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineering
 
Culture First 2019: Day 2, Making remote work work
Culture First 2019: Day 2, Making remote work work Culture First 2019: Day 2, Making remote work work
Culture First 2019: Day 2, Making remote work work
 
Passionate Dating for Testers (and Vice Versa)
Passionate Dating for Testers (and Vice Versa)Passionate Dating for Testers (and Vice Versa)
Passionate Dating for Testers (and Vice Versa)
 
SoC Resume2009
SoC Resume2009SoC Resume2009
SoC Resume2009
 
With 4 sentences 75% of the people will hear and understand you with 8 - 10...
With 4 sentences 75% of the people will hear and understand you   with 8 - 10...With 4 sentences 75% of the people will hear and understand you   with 8 - 10...
With 4 sentences 75% of the people will hear and understand you with 8 - 10...
 
Multiple intelligences approach to Number Systems
Multiple intelligences approach to  Number SystemsMultiple intelligences approach to  Number Systems
Multiple intelligences approach to Number Systems
 
S10
S10S10
S10
 
S10
S10S10
S10
 
Opticon 2015-Statistics in 40 minutes
Opticon 2015-Statistics in 40 minutesOpticon 2015-Statistics in 40 minutes
Opticon 2015-Statistics in 40 minutes
 
Managing your tech career
Managing your tech careerManaging your tech career
Managing your tech career
 
Programed instructional material: Rational Numbers
Programed instructional material: Rational NumbersProgramed instructional material: Rational Numbers
Programed instructional material: Rational Numbers
 
Object Calisthenics for Magento - Meet Magento New York 2017
Object Calisthenics for Magento - Meet Magento New York 2017Object Calisthenics for Magento - Meet Magento New York 2017
Object Calisthenics for Magento - Meet Magento New York 2017
 
Pmp Lessons Learned Older Pp
Pmp Lessons Learned Older PpPmp Lessons Learned Older Pp
Pmp Lessons Learned Older Pp
 
Statistics for linguistics
Statistics for linguisticsStatistics for linguistics
Statistics for linguistics
 
Management Consulting Approach to Problem Solving
Management Consulting Approach to Problem SolvingManagement Consulting Approach to Problem Solving
Management Consulting Approach to Problem Solving
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 

Bayes rule

  • 1. Bayes Rule Belief + Evidence -> Revise your Belief
  • 2. Why should you care? - Become smart(er) - It was used for Treasure Hunt of $800Mn - Know: How good is your manager, How bug free is ur code... - Interpret a diagnosis test with 99% TP and 99% FP (Eg: Covid RT-PCR) - Understand our scientific method (philosophy) - Understand Monty Hall problem - Use fancy phrases: Extraordinary claims require extraordinary evidence
  • 3. Bayes Rule (the abstract math symbols) P(H | E) = P(E | H) * P(H) / P(E) We can make it more complex to confuse/scare... P(H | E) = P(E | H) * P(H) / P(E | H) * P(H) + P(E | !H) * P(!H) H:Hypothesis; E: Evidence
  • 4. Lets do better by stating it in plain english... When you see evidence; Update your belief This is sthg you should; Tatoo it in your brain - 3Blue1Brown Sidenote: Levels of understanding: - What is it? - Why is it true? - When is it useful?
  • 5. Simplified (and useful) version Odds * Strength of evidence = new Odds Technically, Prior Odds * Relative likelihoods = Posterior Odds
  • 6.
  • 7. Why is it so hard to apply? Becoz its simple :)
  • 8. How good are interviews? Let us assume that 1 out 10 developers are good and some observation on interviews: ● How many good developers clear interviews? (8 out of 10) ● Also ask: How many bad developers clear interviews? (1 out of 50) New Belief: 1:10 * (8/10 : 1/50) = 1:10 * 40:1 = 4:1 i.e., 4/(4+1) is the probability you found a good candidate, post interview Insight: Its very hard to improve ur process, instead filter/screen better
  • 9. How good is the manager? Let us assume that 1 out 10 managers are bad and some observations: he does bad code reviews, is micromanaging you ● How many bad managers do this? (8 out of 10) ● Also ask: How many good managers do this? (1 out of 20) New Belief: 1:10 * (8/10 : 1/20) = 1:10 * 16:1 = 16:10 i.e., 16/(16+10) is probability of your manager is bad
  • 10. Monty hall You select Door 1, Monty chooses Door 3 Prior = 1:1:1 Relative Likelihood = ½:1:0 Posterior = ½ :1:0 = 1:2:0 so, Switch -- probability is ⅔ vs ⅓ Note: Bayes rule in this form is superior to P(E|H)*P(H)/P(E)
  • 11. What the heck is Likelihood?