SlideShare une entreprise Scribd logo
1  sur  37
How is Bayesian Statistics 
Different? 
by Wayne Tai Lee
Goal 
● Clarify the difference between “classical and 
Bayesian Statistics 
● Lay out the pro/con with this “attitude”
One sentence definition 
Bayesian statistics is a mathematical 
framework to update beliefs as you observe 
more data.
Bayesian Update in Movies 
Recall movies where a female character 
realizes her period is late?
Movie cliché: Am I pregnant? 
● What did I do in the past month?
Movie cliché: Am I pregnant? 
● What did I do in the past month? 
– Forms a prior belief of whether I am pregnant
Movie cliché: Am I pregnant? 
● What did I do in the past month? 
– Forms a prior belief of whether I am pregnant 
● The missing period 
– Data!
Movie cliché: Am I pregnant? 
● What did I do in the past month? 
– Forms a prior belief of whether I am pregnant 
● The missing period 
– Data! 
● Belief is updated as more data is observed!
Bayesian terminology 
● Prior: your belief about pregnancy before 
seeing new data 
● Data: missing period 
● Posterior: your belief that is updated after 
seeing the data
How do we formalize this update? 
● Pregnant is a uncertain event with two 
outcomes: Yes or No
How do we formalize this update? 
● Pregnant is a uncertain event with two 
outcomes: Yes or No 
● “Days delayed of period” is a data point 
– If (Pregnant = Yes), delayed ~ 30*9 days 
– If (Pregnant = No), it might come sooner
Mathematical framework 
● “Pregnant” is a random variable: 
– P(Pregnant = Yes) = X 
– P(Pregnant = No) = (1 - X)
Mathematical framework 
● “Pregnant” is a random variable: 
– P(Pregnant = Yes) = X 
– P(Pregnant = No) = (1 - X) 
● “Days delayed of period” is another random 
variable! 
– P(days delay >= 7 days | Pregnant) = 1 
– P(days delay >= 7 days | Not Pregnant) = Y
Simplify 
● Start with the objective: 
Am I pregnant? 
i.e. P(Pregnant | Data)?
Simplify 
● Start with the objective: 
Am I pregnant? 
i.e. P(Pregnant | Data)? 
● Note all the numbers we know are the form of 
P( **** | Pregnant)
Conditional Probability! 
P(Pregnant | Data) 
= P(Data | Pregnant) P(Pregnant) / P(Data)
Conditional Probability! 
P(Pregnant | Data) 
= P(Data | Pregnant) P(Pregnant) / P(Data) 
Immediate implication: 
● If your prior says you cannot be pregnant, 
your belief cannot be changed!
“Bayes Rule” 
P(Pregnant | Data) 
= P(Data | Pregnant) P(Pregnant) / P(Data) 
= P(Data | Pregnant) P(Pregnant) / 
[ P(Data | Pregnant) P(Pregnant) + 
P(Data | Not Pregnant) P(Not Pregnant) ]
“Bayes Rule” 
P(Pregnant | Data) 
= P(Data | Pregnant) P(Pregnant) / P(Data) 
= P(Data | Pregnant) P(Pregnant) / 
[ P(Data | Pregnant) P(Pregnant) + 
P(Data | Not Pregnant) P(Not Pregnant) ] 
Why add more numbers? 
P(Data) was hard to compute, so chop it into 
pieces we know!
P(Data): Big Issue for Bayesians 
● Pregnant is binary which made this realllllly 
easy 
● In general, a lot of “tricks” are trying to 
– solve for P(Data) 
● Belief propagation in graphical models 
– getting around it 
● Sampling: MCMC 
● Approximation: Variational Bayes
Back to the key question: 
P(Pregnant | Data) 
= P(Data | Pregnant) P(Pregnant) / 
[ P(Data | Pregnant) P(Pregnant) + 
P(Data | Not Pregnant) P(Not Pregnant) ] 
= 1 * X / [ 1 * X + Y * (1 - X) ]
Back to the key question:
Can add more data 
….....almost for free! 
● Notice “Data” is quite general: 
– Can add pregnancy strips data to further 
update beliefs! 
– Treat previous outputs as priors then update 
similarly!
So.....what's the big deal? 
● Your belief matters a lot! 
– Your prior changes the outcome 
● Your prior and my prior may be different
What “could” a bad Frequentist 
Do? 
● Calculate the p-value for you, i.e. 
P(Late period | Not Pregnant) 
● Declare that you're Pregnant if this is <= 5%
What “could” a bad Frequentist 
Do? 
● Calculate the p-value for you, i.e. 
P(Late period | Not Pregnant) 
● Declare that you're Pregnant if this is <= 5% 
● Declaration has 5% false positive and a 
certain false negative rates
What “could” a bad Frequentist 
Do? 
● Calculate the p-value for you, i.e. 
P(Late period | Not Pregnant) 
● Declare that you're Pregnant if this is <= 5% 
● Declaration has 5% false positive and a 
certain false negative rates 
● Issue: Not as relevant to you! Rates are for all 
the people using this procedure...not specific 
to your case!
“not as relevant”? 
● There's no consideration of your specific case 
– There was no P(Pregnant) in the p-value 
calculation 
– You could be really sure that you're not 
pregnant....doesn't change the calculation!
What would a Frequentist say? 
● P(Pregnant) = 100% or 0% 
– Fixed but unknown 
– NOT uncertain 
● …Not actually interested in a single event 
– Probabilities are defined for repeated events 
– Will not write down P(Pregnant | Data) 
– For your one case, anything could be true
What would a Frequentist say? 
● P(Pregnant) = 100% or 0% 
– Fixed but unknown 
– NOT uncertain 
● …Not actually interested in a single event 
– Probabilities are defined for repeated events 
– Will not write down P(Pregnant | Data) 
– For your one case, anything could be true 
● Would say “Go talk to a doctor”
Key difference 
● “Attitude” 
– What can be a random variable? 
● Bayesian: Uncertain events 
● Frequentist: Repeatable events
Implications of this attitude 
● Bayesian: 
– Can incorporate prior knowledge easily 
– Can update beliefs easily 
– Can tackle a wider class of problems since 
probabilities are “beliefs”
Implications of this attitude 
● Bayesian: 
– Can incorporate prior knowledge easily 
– Can update beliefs easily 
– Can tackle a wider class of problems since 
probabilities are “beliefs” 
– Must specify a model 
– Your belief can be different from mine 
● Our answers will be different!
Implications of this attitude 
● Frequentist: 
– Probabilities are more objective 
– Harder to cheat 
– Has non-parametric methods
Implications of this attitude 
● Frequentist: 
– Probabilities are more objective 
– Harder to cheat 
– Has non-parametric methods 
– Focused on repeatable events 
– Prior knowledge is introduced in an ad hoc 
format 
– Usually need lots of data
In the end... 
● Frequentist and Bayesian use the same rules 
of probabilities 
● Difference exists in set-up: “What is random?” 
– Bayesians: uncertainty in knowledge 
– Frequentist: intrinsic randomness
Take Home 
● Different problems should use different 
approaches! 
– Both schools are awesome!~ 
● Be aware of what you're using and be 
consistent!

Contenu connexe

Tendances

Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysisNimrita Koul
 
Factor analysis (fa)
Factor analysis (fa)Factor analysis (fa)
Factor analysis (fa)Rajdeep Raut
 
Bayesian statistics for biologists and ecologists
Bayesian statistics for biologists and ecologistsBayesian statistics for biologists and ecologists
Bayesian statistics for biologists and ecologistsMasahiro Ryo. Ph.D.
 
hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testingzoheb khan
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regressionA M
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IJames Neill
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionDrZahid Khan
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statisticsewhite00
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsBabasab Patil
 
Introduction to Bayesian Inference
Introduction to Bayesian InferenceIntroduction to Bayesian Inference
Introduction to Bayesian InferenceSteven Scott
 

Tendances (20)

Bayesian statistics
Bayesian  statisticsBayesian  statistics
Bayesian statistics
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
Bayesian statistics
Bayesian statisticsBayesian statistics
Bayesian statistics
 
Factor analysis (fa)
Factor analysis (fa)Factor analysis (fa)
Factor analysis (fa)
 
Exploratory factor analysis
Exploratory factor analysisExploratory factor analysis
Exploratory factor analysis
 
Bayesian statistics for biologists and ecologists
Bayesian statistics for biologists and ecologistsBayesian statistics for biologists and ecologists
Bayesian statistics for biologists and ecologists
 
hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testing
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regression
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
 
Poisson regression models for count data
Poisson regression models for count dataPoisson regression models for count data
Poisson regression models for count data
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Bayes Theorem
Bayes TheoremBayes Theorem
Bayes Theorem
 
Pca
PcaPca
Pca
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec doms
 
Simple linear regressionn and Correlation
Simple linear regressionn and CorrelationSimple linear regressionn and Correlation
Simple linear regressionn and Correlation
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Introduction to Bayesian Inference
Introduction to Bayesian InferenceIntroduction to Bayesian Inference
Introduction to Bayesian Inference
 
Bayesian inference
Bayesian inferenceBayesian inference
Bayesian inference
 

En vedette

Bayesian statistical concepts
Bayesian statistical conceptsBayesian statistical concepts
Bayesian statistical conceptsAlexander Etz
 
Bayesian statistics using r intro
Bayesian statistics using r   introBayesian statistics using r   intro
Bayesian statistics using r introBayesLaplace1
 
An introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using PythonAn introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using Pythonfreshdatabos
 
Bayes theorem explained
Bayes theorem explainedBayes theorem explained
Bayes theorem explainedDaniel Ross
 
Mardi 15h05 stat et securite routiere_saint_pierre
Mardi 15h05 stat et securite routiere_saint_pierreMardi 15h05 stat et securite routiere_saint_pierre
Mardi 15h05 stat et securite routiere_saint_pierreGuillaumeSaintPierre
 
Crash Course in A/B testing
Crash Course in A/B testingCrash Course in A/B testing
Crash Course in A/B testingWayne Lee
 
Feature selection can hurt model inference
Feature selection can hurt model inferenceFeature selection can hurt model inference
Feature selection can hurt model inferenceWayne Lee
 
Chapter 3 maximum likelihood and bayesian estimation-fix
Chapter 3   maximum likelihood and bayesian estimation-fixChapter 3   maximum likelihood and bayesian estimation-fix
Chapter 3 maximum likelihood and bayesian estimation-fixjelli123
 
3 recursive bayesian estimation
3  recursive bayesian estimation3  recursive bayesian estimation
3 recursive bayesian estimationSolo Hermelin
 
Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...
Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...
Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...PyData
 
Contingency approach
Contingency approachContingency approach
Contingency approachLee Morley
 

En vedette (18)

Bayesian statistical concepts
Bayesian statistical conceptsBayesian statistical concepts
Bayesian statistical concepts
 
Bayesian statistics using r intro
Bayesian statistics using r   introBayesian statistics using r   intro
Bayesian statistics using r intro
 
An introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using PythonAn introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using Python
 
Bayesian intro
Bayesian introBayesian intro
Bayesian intro
 
Bayes theorem explained
Bayes theorem explainedBayes theorem explained
Bayes theorem explained
 
Mardi 15h05 stat et securite routiere_saint_pierre
Mardi 15h05 stat et securite routiere_saint_pierreMardi 15h05 stat et securite routiere_saint_pierre
Mardi 15h05 stat et securite routiere_saint_pierre
 
ma12012id536
ma12012id536ma12012id536
ma12012id536
 
Crash Course in A/B testing
Crash Course in A/B testingCrash Course in A/B testing
Crash Course in A/B testing
 
Feature selection can hurt model inference
Feature selection can hurt model inferenceFeature selection can hurt model inference
Feature selection can hurt model inference
 
Chapter 3 maximum likelihood and bayesian estimation-fix
Chapter 3   maximum likelihood and bayesian estimation-fixChapter 3   maximum likelihood and bayesian estimation-fix
Chapter 3 maximum likelihood and bayesian estimation-fix
 
3 recursive bayesian estimation
3  recursive bayesian estimation3  recursive bayesian estimation
3 recursive bayesian estimation
 
Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...
Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...
Understanding your data with Bayesian networks (in Python) by Bartek Wilczyns...
 
factor analysis
factor analysisfactor analysis
factor analysis
 
Contingency approach
Contingency approachContingency approach
Contingency approach
 
陳宜欣/大數據下的情緒分析
陳宜欣/大數據下的情緒分析陳宜欣/大數據下的情緒分析
陳宜欣/大數據下的情緒分析
 
Tout sur les p values
Tout sur les p valuesTout sur les p values
Tout sur les p values
 
Evaluation du risque routier 2013
Evaluation du risque routier 2013Evaluation du risque routier 2013
Evaluation du risque routier 2013
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similaire à What is bayesian statistics and how is it different?

Department of Physics, University of Colorado at Denver Phy.docx
Department of Physics, University of Colorado at Denver  Phy.docxDepartment of Physics, University of Colorado at Denver  Phy.docx
Department of Physics, University of Colorado at Denver Phy.docxrichardnorman90310
 
Nursing care plan ppt final draft
Nursing care plan ppt final draftNursing care plan ppt final draft
Nursing care plan ppt final draftgntc
 
Discrepancy in uterine size
Discrepancy in uterine sizeDiscrepancy in uterine size
Discrepancy in uterine sizeHanifullah Khan
 
NRG5000 Theoretical Foundations of NursingDr. Lisa Capps, Facult
NRG5000 Theoretical Foundations of NursingDr. Lisa Capps, FacultNRG5000 Theoretical Foundations of NursingDr. Lisa Capps, Facult
NRG5000 Theoretical Foundations of NursingDr. Lisa Capps, Facultsimisterchristen
 
Pregnancy-assessment-NCM-107-2022-Copy (1).pptx
Pregnancy-assessment-NCM-107-2022-Copy (1).pptxPregnancy-assessment-NCM-107-2022-Copy (1).pptx
Pregnancy-assessment-NCM-107-2022-Copy (1).pptxlolipop17
 
Informational interview
Informational interviewInformational interview
Informational interviewAlexis Georgia
 
Maternal Mental Health What All Employers Should Know
Maternal Mental Health What All Employers Should Know Maternal Mental Health What All Employers Should Know
Maternal Mental Health What All Employers Should Know Joy Burkhard
 
Causality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAELCausality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAELHanan Shteingart
 
Statistical Models Explored and Explained
Statistical Models Explored and ExplainedStatistical Models Explored and Explained
Statistical Models Explored and ExplainedOptimizely
 
Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...
Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...
Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...Amanda Rostic, MPH
 
Webinar - how can employers advance high value maternity care?
Webinar - how can employers advance high value maternity care?Webinar - how can employers advance high value maternity care?
Webinar - how can employers advance high value maternity care?Pacific Business Group on Health
 
1-24 Program Overview.pptx
1-24 Program Overview.pptx1-24 Program Overview.pptx
1-24 Program Overview.pptxLisa Duke
 
Grit study pbl summit presentation public
Grit study pbl summit presentation publicGrit study pbl summit presentation public
Grit study pbl summit presentation publicCarmel Schettino
 

Similaire à What is bayesian statistics and how is it different? (16)

Department of Physics, University of Colorado at Denver Phy.docx
Department of Physics, University of Colorado at Denver  Phy.docxDepartment of Physics, University of Colorado at Denver  Phy.docx
Department of Physics, University of Colorado at Denver Phy.docx
 
Nursing care plan ppt final draft
Nursing care plan ppt final draftNursing care plan ppt final draft
Nursing care plan ppt final draft
 
Discrepancy in uterine size
Discrepancy in uterine sizeDiscrepancy in uterine size
Discrepancy in uterine size
 
NRG5000 Theoretical Foundations of NursingDr. Lisa Capps, Facult
NRG5000 Theoretical Foundations of NursingDr. Lisa Capps, FacultNRG5000 Theoretical Foundations of NursingDr. Lisa Capps, Facult
NRG5000 Theoretical Foundations of NursingDr. Lisa Capps, Facult
 
Pregnancy-assessment-NCM-107-2022-Copy (1).pptx
Pregnancy-assessment-NCM-107-2022-Copy (1).pptxPregnancy-assessment-NCM-107-2022-Copy (1).pptx
Pregnancy-assessment-NCM-107-2022-Copy (1).pptx
 
Informational interview
Informational interviewInformational interview
Informational interview
 
The 2020 John R Lutzker Lecture featuring Dr. V. Mark Durand
The 2020 John R Lutzker Lecture featuring Dr. V. Mark DurandThe 2020 John R Lutzker Lecture featuring Dr. V. Mark Durand
The 2020 John R Lutzker Lecture featuring Dr. V. Mark Durand
 
Maternal Mental Health What All Employers Should Know
Maternal Mental Health What All Employers Should Know Maternal Mental Health What All Employers Should Know
Maternal Mental Health What All Employers Should Know
 
Causality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAELCausality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAEL
 
Introduction to PPDAC cycle
Introduction to PPDAC cycleIntroduction to PPDAC cycle
Introduction to PPDAC cycle
 
To p or not to p
To p or not to pTo p or not to p
To p or not to p
 
Statistical Models Explored and Explained
Statistical Models Explored and ExplainedStatistical Models Explored and Explained
Statistical Models Explored and Explained
 
Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...
Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...
Motherly Joy: The Impact of Maternal Psychological Well-Being on Infant Birth...
 
Webinar - how can employers advance high value maternity care?
Webinar - how can employers advance high value maternity care?Webinar - how can employers advance high value maternity care?
Webinar - how can employers advance high value maternity care?
 
1-24 Program Overview.pptx
1-24 Program Overview.pptx1-24 Program Overview.pptx
1-24 Program Overview.pptx
 
Grit study pbl summit presentation public
Grit study pbl summit presentation publicGrit study pbl summit presentation public
Grit study pbl summit presentation public
 

Dernier

Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 

Dernier (20)

Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

What is bayesian statistics and how is it different?

  • 1. How is Bayesian Statistics Different? by Wayne Tai Lee
  • 2. Goal ● Clarify the difference between “classical and Bayesian Statistics ● Lay out the pro/con with this “attitude”
  • 3. One sentence definition Bayesian statistics is a mathematical framework to update beliefs as you observe more data.
  • 4. Bayesian Update in Movies Recall movies where a female character realizes her period is late?
  • 5. Movie cliché: Am I pregnant? ● What did I do in the past month?
  • 6. Movie cliché: Am I pregnant? ● What did I do in the past month? – Forms a prior belief of whether I am pregnant
  • 7. Movie cliché: Am I pregnant? ● What did I do in the past month? – Forms a prior belief of whether I am pregnant ● The missing period – Data!
  • 8. Movie cliché: Am I pregnant? ● What did I do in the past month? – Forms a prior belief of whether I am pregnant ● The missing period – Data! ● Belief is updated as more data is observed!
  • 9. Bayesian terminology ● Prior: your belief about pregnancy before seeing new data ● Data: missing period ● Posterior: your belief that is updated after seeing the data
  • 10. How do we formalize this update? ● Pregnant is a uncertain event with two outcomes: Yes or No
  • 11. How do we formalize this update? ● Pregnant is a uncertain event with two outcomes: Yes or No ● “Days delayed of period” is a data point – If (Pregnant = Yes), delayed ~ 30*9 days – If (Pregnant = No), it might come sooner
  • 12. Mathematical framework ● “Pregnant” is a random variable: – P(Pregnant = Yes) = X – P(Pregnant = No) = (1 - X)
  • 13. Mathematical framework ● “Pregnant” is a random variable: – P(Pregnant = Yes) = X – P(Pregnant = No) = (1 - X) ● “Days delayed of period” is another random variable! – P(days delay >= 7 days | Pregnant) = 1 – P(days delay >= 7 days | Not Pregnant) = Y
  • 14. Simplify ● Start with the objective: Am I pregnant? i.e. P(Pregnant | Data)?
  • 15. Simplify ● Start with the objective: Am I pregnant? i.e. P(Pregnant | Data)? ● Note all the numbers we know are the form of P( **** | Pregnant)
  • 16. Conditional Probability! P(Pregnant | Data) = P(Data | Pregnant) P(Pregnant) / P(Data)
  • 17. Conditional Probability! P(Pregnant | Data) = P(Data | Pregnant) P(Pregnant) / P(Data) Immediate implication: ● If your prior says you cannot be pregnant, your belief cannot be changed!
  • 18. “Bayes Rule” P(Pregnant | Data) = P(Data | Pregnant) P(Pregnant) / P(Data) = P(Data | Pregnant) P(Pregnant) / [ P(Data | Pregnant) P(Pregnant) + P(Data | Not Pregnant) P(Not Pregnant) ]
  • 19. “Bayes Rule” P(Pregnant | Data) = P(Data | Pregnant) P(Pregnant) / P(Data) = P(Data | Pregnant) P(Pregnant) / [ P(Data | Pregnant) P(Pregnant) + P(Data | Not Pregnant) P(Not Pregnant) ] Why add more numbers? P(Data) was hard to compute, so chop it into pieces we know!
  • 20. P(Data): Big Issue for Bayesians ● Pregnant is binary which made this realllllly easy ● In general, a lot of “tricks” are trying to – solve for P(Data) ● Belief propagation in graphical models – getting around it ● Sampling: MCMC ● Approximation: Variational Bayes
  • 21. Back to the key question: P(Pregnant | Data) = P(Data | Pregnant) P(Pregnant) / [ P(Data | Pregnant) P(Pregnant) + P(Data | Not Pregnant) P(Not Pregnant) ] = 1 * X / [ 1 * X + Y * (1 - X) ]
  • 22. Back to the key question:
  • 23. Can add more data ….....almost for free! ● Notice “Data” is quite general: – Can add pregnancy strips data to further update beliefs! – Treat previous outputs as priors then update similarly!
  • 24. So.....what's the big deal? ● Your belief matters a lot! – Your prior changes the outcome ● Your prior and my prior may be different
  • 25. What “could” a bad Frequentist Do? ● Calculate the p-value for you, i.e. P(Late period | Not Pregnant) ● Declare that you're Pregnant if this is <= 5%
  • 26. What “could” a bad Frequentist Do? ● Calculate the p-value for you, i.e. P(Late period | Not Pregnant) ● Declare that you're Pregnant if this is <= 5% ● Declaration has 5% false positive and a certain false negative rates
  • 27. What “could” a bad Frequentist Do? ● Calculate the p-value for you, i.e. P(Late period | Not Pregnant) ● Declare that you're Pregnant if this is <= 5% ● Declaration has 5% false positive and a certain false negative rates ● Issue: Not as relevant to you! Rates are for all the people using this procedure...not specific to your case!
  • 28. “not as relevant”? ● There's no consideration of your specific case – There was no P(Pregnant) in the p-value calculation – You could be really sure that you're not pregnant....doesn't change the calculation!
  • 29. What would a Frequentist say? ● P(Pregnant) = 100% or 0% – Fixed but unknown – NOT uncertain ● …Not actually interested in a single event – Probabilities are defined for repeated events – Will not write down P(Pregnant | Data) – For your one case, anything could be true
  • 30. What would a Frequentist say? ● P(Pregnant) = 100% or 0% – Fixed but unknown – NOT uncertain ● …Not actually interested in a single event – Probabilities are defined for repeated events – Will not write down P(Pregnant | Data) – For your one case, anything could be true ● Would say “Go talk to a doctor”
  • 31. Key difference ● “Attitude” – What can be a random variable? ● Bayesian: Uncertain events ● Frequentist: Repeatable events
  • 32. Implications of this attitude ● Bayesian: – Can incorporate prior knowledge easily – Can update beliefs easily – Can tackle a wider class of problems since probabilities are “beliefs”
  • 33. Implications of this attitude ● Bayesian: – Can incorporate prior knowledge easily – Can update beliefs easily – Can tackle a wider class of problems since probabilities are “beliefs” – Must specify a model – Your belief can be different from mine ● Our answers will be different!
  • 34. Implications of this attitude ● Frequentist: – Probabilities are more objective – Harder to cheat – Has non-parametric methods
  • 35. Implications of this attitude ● Frequentist: – Probabilities are more objective – Harder to cheat – Has non-parametric methods – Focused on repeatable events – Prior knowledge is introduced in an ad hoc format – Usually need lots of data
  • 36. In the end... ● Frequentist and Bayesian use the same rules of probabilities ● Difference exists in set-up: “What is random?” – Bayesians: uncertainty in knowledge – Frequentist: intrinsic randomness
  • 37. Take Home ● Different problems should use different approaches! – Both schools are awesome!~ ● Be aware of what you're using and be consistent!