SlideShare ist ein Scribd-Unternehmen logo
1 von 59
Conditional Probability And the odds ratio and risk ratio as conditional probability
Today’s lecture ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Probability example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Note: mutually exclusive, exhaustive probabilities sum to 1.
U sing a probability tree Rule of thumb: in probability, “and” means multiply, “or” means add  Mendel example:  What’s the chance of having a heterozygote child (Dd) if both parents are heterozygote (Dd)? P( ♀ D=.5) P( ♀ d=.5) Mother’s allele P( ♂ D=.5) P( ♂ d=.5) P( ♂ D=.5) P( ♂ d=.5) Father’s allele ______________ 1.0 P(DD)=.5*.5=.25 P(Dd)=.5*.5=.25 P(dD)=.5*.5=.25 P(dd)=.5*.5=.25 Child’s outcome
Independence ,[object Object],[object Object],[object Object],What father’s gamete looks like is not dependent on the mother’s –doesn’t depend which branch you start on!  Formally, P(DD)=.25=P(D♂)*P(D♀) Conditional Probability:  Read as “the probability that the father passes a D allele  given that  the mother passes a d allele.” Joint Probability:   The probability of two events happening simultaneously. Marginal probability:   This is the probability that an event happens at all, ignoring all other outcomes.
On the tree P( ♂ D/  ♀ D )=.5 P( ♂ d=.5) P( ♂ D=.5) P( ♂ d=.5) Father’s allele P( ♀ D=.5) P( ♀ d=.5) Mother’s allele ______________ 1.0 P(DD)=.5*.5=.25 P(Dd)=.5*.5=.25 P(dD)=.5*.5=.25 P(dd)=.5*.5=.25 Child’s outcome Conditional probability Marginal probability: mother Joint probability Marginal probability: father
Conditional, marginal, joint ,[object Object],[object Object],[object Object],[object Object],[object Object]
Test of independence ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Independent    mutually exclusive ,[object Object],[object Object],[object Object],[object Object]
Practice problem ,[object Object]
Answer ______________ 1.0 P (+, test +)=.0297 P(+, test -)=.003 P(-, test +)=.00097 P(-, test -) = .96903  P(test +)=.0297+.00097=.03067 P(+&test+)  P(+)*P(test+) .0297   .03*.03067 (=.00092)    Dependent! Marginal probability of carrying the virus. Joint probability of being + and testing + Marginal probability of testing positive Conditional probability: the probability of testing + given that a person is + P(+)=.03 P(-)=.97 P(test +)=.99 P(test - )= .01 P(test +) = .001 P(test -) = .999
Law of total probability One of these has to be true (mutually exclusive, collectively exhaustive).  They sum to 1.0.
Law of total probability ,[object Object],[object Object],B 2 B 3 B 1 A
Example 2 ,[object Object]
Example: Mammography P(BC/test+)=.0027/(.0027+.10967)=2.4% ______________ 1.0 P(test +)=.90 P(BC+)=.003 P(BC-)=.997 P(test -) = .10 P(test +) = .11 P (+, test +)=.0027 P(+, test -)=.0003 P(-, test +)=.10967 P(-, test -) = .88733 P(test -) = .89 Marginal probabilities of breast cancer….(prevalence among all 54-year olds) sensitivity specificity
Bayes’ rule
Bayes’ Rule: derivation ,[object Object],[object Object],The idea: if we are given that the event B occurred, the relevant sample space is reduced to B {P(B)=1 because we know B is true} and conditional probability becomes a probability measure on B.
Bayes’ Rule: derivation ,[object Object],and, since also:
Bayes’ Rule: OR From the “Law of Total Probability”
Bayes’ Rule: ,[object Object],[object Object],[object Object]
In-Class Exercise ,[object Object]
Answer: using probability tree A positive test places one on either of the two “test +” branches.  But only the top branch also fulfills the event “true infection.”  Therefore, the probability of being infected is the probability of being on the top branch given that you are on one of the two circled branches above.           ______________ 1.0 P(test +)=.99 P(+)=.03 P(-)=.97 P(test - = .01) P(test +) = .001 P (+, test +)=.0297 P(+, test -)=.003 P(-, test +)=.00097 P(-, test -) = .96903 P(test -) = .999
Answer: using Bayes’ rule          
Practice problem ,[object Object],[object Object],[object Object]
Answer to (a) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Answer to (b) ,[object Object],[object Object],[object Object],[object Object],[object Object],P(high risk/accident)=.08/.16=50% P(accident/LR)=.1 ______________ 1.0 P( no acc/HR)=.6 P(accident/HR)=.4 P(high risk)=.20 P(accident, high risk)=.08 P(no accident, high risk)=.12) P(accident, low risk)=.08 P(low risk)=.80 P( no accident/LR)=.9 P(no accident, low risk)=.72
Fun example/bad investment ,[object Object]
Conditional Probability for Epidemiology: The odds ratio and risk ratio as conditional probability
The Risk Ratio and the Odds Ratio as conditional probability ,[object Object],[object Object]
Odds and Risk (probability) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Odds vs. Risk=probability Note:  An odds is always higher than its corresponding probability, unless the probability is 100%. 1:1 3:1 1:9 1:99 1/100 (1%) 1/10 (10%) ¾ (75%) ½ (50%) Then the odds are… If the risk is…
Cohort Studies (risk ratio) Target population Disease Disease-free Disease Disease-free TIME Exposed Not Exposed Disease-free cohort
The Risk Ratio   Exposure (E) No Exposure (~E)   Disease (D) a b No Disease (~D) c d   a+c b+d risk to the exposed risk to the unexposed
Hypothetical Data 400 400 1100 2600   Normal BP Congestive Heart Failure No CHF 1500 3000 High Systolic BP
Case-Control Studies (odds ratio) ,[object Object],[object Object],Target population Exposed in past Not exposed Exposed Not Exposed No Disease (Controls)
Case-control study example: ,[object Object]
Hypothetical results:   Smoker (E) Non-smoker (~E)   Stroke (D) 15 35 No Stroke (~D) 8 42   50 50
What’s the risk ratio here? Tricky: There is no risk ratio, because we cannot calculate the risk of disease!! 50 50   Smoker (E) Non-smoker (~E)   Stroke (D) 15 35 No Stroke (~D) 8 42  
The odds ratio… ,[object Object],[object Object]
The Odds Ratio (OR) Luckily, you can flip the conditional probabilities using Bayes’ Rule: 50 50 These data give: P(E/D) and P(E/~D).   Smoker (E) Smoker (~E)   Stroke (D) 15 35 No Stroke (~D) 8 42   Unfortunately, our sampling scheme precludes calculation of the marginals: P(E) and P(D), but turns out we don’t need these if we use an odds ratio because the marginals cancel out!
The Odds Ratio (OR)   Exposure (E) No Exposure (~E)   Disease (D) a  b No Disease (~D) c d   Odds of exposure in the cases Odds of exposure in the controls
The Odds Ratio (OR) But, this expression is mathematically equivalent to: Backward from what we want… The direction of interest! Odds of disease in the exposed Odds of disease in the unexposed Odds of exposure in the cases Odds of exposure in the controls
= Proof via Bayes’ Rule Odds of exposure in the controls Odds of exposure in the cases Bayes’ Rule Odds of disease in the unexposed Odds of disease in the exposed What we want!
The odds ratio here: ,[object Object],  Smoker (E) Non-smoker (~E)   Stroke (D) 15 35 No Stroke (~D) 8 42   50 50
Interpretation of the odds ratio: ,[object Object],[object Object]
The rare disease assumption 1 1 When a disease is rare:  P(~D) = 1 - P(D)    1
The odds ratio vs. the risk ratio 1.0 (null) Rare Outcome Common Outcome 1.0 (null) Odds  ratio Risk ratio Risk ratio Odds  ratio Odds  ratio Risk ratio Risk ratio Odds  ratio
Odds ratios in cross-sectional and cohort studies… ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example, wrinkle study… ,[object Object],[object Object],[object Object],[object Object],Raduan et al.  J Eur Acad Dermatol Venereol . 2008 Jul 3.
Interpreting ORs when the outcome is common… ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Interpreting ORs when the outcome is common… Formula from: Zhang J. What's the Relative Risk? A Method of Correcting the Odds Ratio in Cohort Studies of Common Outcomes  JAMA.  1998;280:1690-1691.  Where: OR = odds ratio from logistic regression (e.g., 3.92) P 0  = P(D/~E) = probability/prevalence of the outcome in the unexposed/reference group (e.g. ~45%) If data are from a cross-sectional or cohort study, then you can convert ORs (from logistic regression) back to RRs with a simple formula:
For wrinkle study… Zhang J. What's the Relative Risk? A Method of Correcting the Odds Ratio in Cohort Studies of Common Outcomes  JAMA.  1998;280:1690-1691.  So, the risk (prevalence) of wrinkles is increased by 69%, not 292%.
Sleep and hypertension study… ,[object Object],[object Object],[object Object],[object Object],[object Object],-Sainani KL, Schmajuk G, Liu V. A Caution on Interpreting Odds Ratios.  SLEEP, Vol. 32, No. 8, 2009  . -Vgontzas AN, Liao D, Bixler EO, Chrousos GP, Vela-Bueno A. Insomnia with objective short sleep duration is associated with a high risk for hypertension. Sleep 2009;32:491-7.
Practice problem: ,[object Object],[object Object],69 22 Don’t own a cell phone 209 143 Own a cell phone No Neck Pain Neck pain
Answer ,[object Object],[object Object],69 22 Don’t own a cell phone 209 143 Own a cell phone No Neck Pain Neck pain
Practice problem: ,[object Object],Calculate the odds ratio and risk ratio for the association between cell phone usage and brain tumor (rare outcome). 88 3 Don’t own a cell phone 347 5 Own a cell phone No brain tumor Brain tumor
Answer ,[object Object],[object Object],88 3 Don’t own a cell phone 347 5 Own a cell phone No brain tumor Brain tumor
Thought problem…  ,[object Object]
Some Monty Hall links… ,[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

Measures of association
Measures of associationMeasures of association
Measures of associationIAU Dent
 
Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance  Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance Long Beach City College
 
Concepts of disease causation
Concepts of disease causationConcepts of disease causation
Concepts of disease causationBhoj Raj Singh
 
Association vs causation
Association vs causationAssociation vs causation
Association vs causationRupesh Sahu
 
Mortality and mobidity indicators
Mortality and mobidity indicatorsMortality and mobidity indicators
Mortality and mobidity indicatorsPriyamadhaba Behera
 
Chapter 2.2 screening test
Chapter 2.2 screening testChapter 2.2 screening test
Chapter 2.2 screening testNilesh Kucha
 
Prevention primary, secondary, tertiary
Prevention  primary, secondary, tertiary Prevention  primary, secondary, tertiary
Prevention primary, secondary, tertiary ANCYBS
 
Field trials and clinical trials
Field trials and clinical trialsField trials and clinical trials
Field trials and clinical trialsBhoj Raj Singh
 
Introduction to epidemiology
Introduction to epidemiologyIntroduction to epidemiology
Introduction to epidemiologyPradhuman Yadav
 
Random variable,Discrete and Continuous
Random variable,Discrete and ContinuousRandom variable,Discrete and Continuous
Random variable,Discrete and ContinuousBharath kumar Karanam
 
Polynomials And Linear Equation of Two Variables
Polynomials And Linear Equation of Two VariablesPolynomials And Linear Equation of Two Variables
Polynomials And Linear Equation of Two VariablesAnkur Patel
 
Understanding Herd immunity
Understanding Herd immunityUnderstanding Herd immunity
Understanding Herd immunitydipesh125
 
Comprehensive National Nutrition Survey 2016 18
Comprehensive National Nutrition Survey 2016 18Comprehensive National Nutrition Survey 2016 18
Comprehensive National Nutrition Survey 2016 18Dipayan Banerjee
 
Ecological study design multiple group study and statistical analysis
Ecological study design multiple group study and statistical analysisEcological study design multiple group study and statistical analysis
Ecological study design multiple group study and statistical analysissirjana Tiwari
 
Measurement of disease frequency
Measurement of disease frequencyMeasurement of disease frequency
Measurement of disease frequencyEhealthMoHS
 
Descriptive Epidemiology (including Measurement in epidemiology)
Descriptive Epidemiology (including Measurement in epidemiology)Descriptive Epidemiology (including Measurement in epidemiology)
Descriptive Epidemiology (including Measurement in epidemiology)Dr. Animesh Gupta
 

Was ist angesagt? (20)

Measures of association
Measures of associationMeasures of association
Measures of association
 
Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance  Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance
 
Concepts of disease causation
Concepts of disease causationConcepts of disease causation
Concepts of disease causation
 
Rate, ratio, proportion
Rate, ratio, proportionRate, ratio, proportion
Rate, ratio, proportion
 
Association vs causation
Association vs causationAssociation vs causation
Association vs causation
 
Mortality and mobidity indicators
Mortality and mobidity indicatorsMortality and mobidity indicators
Mortality and mobidity indicators
 
Chapter 2.2 screening test
Chapter 2.2 screening testChapter 2.2 screening test
Chapter 2.2 screening test
 
Prevention primary, secondary, tertiary
Prevention  primary, secondary, tertiary Prevention  primary, secondary, tertiary
Prevention primary, secondary, tertiary
 
Field trials and clinical trials
Field trials and clinical trialsField trials and clinical trials
Field trials and clinical trials
 
Introduction to epidemiology
Introduction to epidemiologyIntroduction to epidemiology
Introduction to epidemiology
 
Random variable,Discrete and Continuous
Random variable,Discrete and ContinuousRandom variable,Discrete and Continuous
Random variable,Discrete and Continuous
 
6. point and interval estimation
6. point and interval estimation6. point and interval estimation
6. point and interval estimation
 
Screening tests
Screening  testsScreening  tests
Screening tests
 
Polynomials And Linear Equation of Two Variables
Polynomials And Linear Equation of Two VariablesPolynomials And Linear Equation of Two Variables
Polynomials And Linear Equation of Two Variables
 
Understanding Herd immunity
Understanding Herd immunityUnderstanding Herd immunity
Understanding Herd immunity
 
Comprehensive National Nutrition Survey 2016 18
Comprehensive National Nutrition Survey 2016 18Comprehensive National Nutrition Survey 2016 18
Comprehensive National Nutrition Survey 2016 18
 
Ecological study design multiple group study and statistical analysis
Ecological study design multiple group study and statistical analysisEcological study design multiple group study and statistical analysis
Ecological study design multiple group study and statistical analysis
 
Measurement of disease frequency
Measurement of disease frequencyMeasurement of disease frequency
Measurement of disease frequency
 
Descriptive Epidemiology (including Measurement in epidemiology)
Descriptive Epidemiology (including Measurement in epidemiology)Descriptive Epidemiology (including Measurement in epidemiology)
Descriptive Epidemiology (including Measurement in epidemiology)
 
Field and Community Trials
Field and Community Trials Field and Community Trials
Field and Community Trials
 

Ähnlich wie Lecture3

Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theoremBalaji P
 
1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilities1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilitiesDr Fereidoun Dejahang
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' TheoremLong Beach City College
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptxvietnam5hayday
 
basic probability Lecture 9.pptx
basic probability Lecture 9.pptxbasic probability Lecture 9.pptx
basic probability Lecture 9.pptxSabirinINahassan
 
Chapter 05
Chapter 05Chapter 05
Chapter 05bmcfad01
 
Health probabilities & estimation of parameters
Health probabilities & estimation of parameters Health probabilities & estimation of parameters
Health probabilities & estimation of parameters KwambokaLeonidah
 
Introduction to probability.pdf
Introduction to probability.pdfIntroduction to probability.pdf
Introduction to probability.pdfYonasTsagaye
 
2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptxImpanaR2
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data AnalyticsSSaudia
 
1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docxaryan532920
 
2014 lab slides_mo_a
2014 lab slides_mo_a2014 lab slides_mo_a
2014 lab slides_mo_aA M
 
Bayes Classification
Bayes ClassificationBayes Classification
Bayes Classificationsathish sak
 

Ähnlich wie Lecture3 (20)

Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theorem
 
1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilities1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilities
 
34301
3430134301
34301
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' Theorem
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptx
 
basic probability Lecture 9.pptx
basic probability Lecture 9.pptxbasic probability Lecture 9.pptx
basic probability Lecture 9.pptx
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Laws of probability
Laws of probabilityLaws of probability
Laws of probability
 
Probability concept and Probability distribution
Probability concept and Probability distributionProbability concept and Probability distribution
Probability concept and Probability distribution
 
03 Probability.pdf
03 Probability.pdf03 Probability.pdf
03 Probability.pdf
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
 
Health probabilities & estimation of parameters
Health probabilities & estimation of parameters Health probabilities & estimation of parameters
Health probabilities & estimation of parameters
 
Basic concepts of probability
Basic concepts of probabilityBasic concepts of probability
Basic concepts of probability
 
Introduction to probability.pdf
Introduction to probability.pdfIntroduction to probability.pdf
Introduction to probability.pdf
 
Probability Concepts
Probability ConceptsProbability Concepts
Probability Concepts
 
2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
 
1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docx
 
2014 lab slides_mo_a
2014 lab slides_mo_a2014 lab slides_mo_a
2014 lab slides_mo_a
 
Bayes Classification
Bayes ClassificationBayes Classification
Bayes Classification
 

Kürzlich hochgeladen

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 

Kürzlich hochgeladen (20)

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 

Lecture3

  • 1. Conditional Probability And the odds ratio and risk ratio as conditional probability
  • 2.
  • 3.
  • 4. U sing a probability tree Rule of thumb: in probability, “and” means multiply, “or” means add Mendel example: What’s the chance of having a heterozygote child (Dd) if both parents are heterozygote (Dd)? P( ♀ D=.5) P( ♀ d=.5) Mother’s allele P( ♂ D=.5) P( ♂ d=.5) P( ♂ D=.5) P( ♂ d=.5) Father’s allele ______________ 1.0 P(DD)=.5*.5=.25 P(Dd)=.5*.5=.25 P(dD)=.5*.5=.25 P(dd)=.5*.5=.25 Child’s outcome
  • 5.
  • 6. On the tree P( ♂ D/ ♀ D )=.5 P( ♂ d=.5) P( ♂ D=.5) P( ♂ d=.5) Father’s allele P( ♀ D=.5) P( ♀ d=.5) Mother’s allele ______________ 1.0 P(DD)=.5*.5=.25 P(Dd)=.5*.5=.25 P(dD)=.5*.5=.25 P(dd)=.5*.5=.25 Child’s outcome Conditional probability Marginal probability: mother Joint probability Marginal probability: father
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. Answer ______________ 1.0 P (+, test +)=.0297 P(+, test -)=.003 P(-, test +)=.00097 P(-, test -) = .96903  P(test +)=.0297+.00097=.03067 P(+&test+)  P(+)*P(test+) .0297  .03*.03067 (=.00092)  Dependent! Marginal probability of carrying the virus. Joint probability of being + and testing + Marginal probability of testing positive Conditional probability: the probability of testing + given that a person is + P(+)=.03 P(-)=.97 P(test +)=.99 P(test - )= .01 P(test +) = .001 P(test -) = .999
  • 12. Law of total probability One of these has to be true (mutually exclusive, collectively exhaustive). They sum to 1.0.
  • 13.
  • 14.
  • 15. Example: Mammography P(BC/test+)=.0027/(.0027+.10967)=2.4% ______________ 1.0 P(test +)=.90 P(BC+)=.003 P(BC-)=.997 P(test -) = .10 P(test +) = .11 P (+, test +)=.0027 P(+, test -)=.0003 P(-, test +)=.10967 P(-, test -) = .88733 P(test -) = .89 Marginal probabilities of breast cancer….(prevalence among all 54-year olds) sensitivity specificity
  • 17.
  • 18.
  • 19. Bayes’ Rule: OR From the “Law of Total Probability”
  • 20.
  • 21.
  • 22. Answer: using probability tree A positive test places one on either of the two “test +” branches. But only the top branch also fulfills the event “true infection.” Therefore, the probability of being infected is the probability of being on the top branch given that you are on one of the two circled branches above.           ______________ 1.0 P(test +)=.99 P(+)=.03 P(-)=.97 P(test - = .01) P(test +) = .001 P (+, test +)=.0297 P(+, test -)=.003 P(-, test +)=.00097 P(-, test -) = .96903 P(test -) = .999
  • 23. Answer: using Bayes’ rule          
  • 24.
  • 25.
  • 26.
  • 27.
  • 28. Conditional Probability for Epidemiology: The odds ratio and risk ratio as conditional probability
  • 29.
  • 30.
  • 31. Odds vs. Risk=probability Note: An odds is always higher than its corresponding probability, unless the probability is 100%. 1:1 3:1 1:9 1:99 1/100 (1%) 1/10 (10%) ¾ (75%) ½ (50%) Then the odds are… If the risk is…
  • 32. Cohort Studies (risk ratio) Target population Disease Disease-free Disease Disease-free TIME Exposed Not Exposed Disease-free cohort
  • 33. The Risk Ratio   Exposure (E) No Exposure (~E)   Disease (D) a b No Disease (~D) c d   a+c b+d risk to the exposed risk to the unexposed
  • 34. Hypothetical Data 400 400 1100 2600   Normal BP Congestive Heart Failure No CHF 1500 3000 High Systolic BP
  • 35.
  • 36.
  • 37. Hypothetical results:   Smoker (E) Non-smoker (~E)   Stroke (D) 15 35 No Stroke (~D) 8 42   50 50
  • 38. What’s the risk ratio here? Tricky: There is no risk ratio, because we cannot calculate the risk of disease!! 50 50   Smoker (E) Non-smoker (~E)   Stroke (D) 15 35 No Stroke (~D) 8 42  
  • 39.
  • 40. The Odds Ratio (OR) Luckily, you can flip the conditional probabilities using Bayes’ Rule: 50 50 These data give: P(E/D) and P(E/~D).   Smoker (E) Smoker (~E)   Stroke (D) 15 35 No Stroke (~D) 8 42   Unfortunately, our sampling scheme precludes calculation of the marginals: P(E) and P(D), but turns out we don’t need these if we use an odds ratio because the marginals cancel out!
  • 41. The Odds Ratio (OR)   Exposure (E) No Exposure (~E)   Disease (D) a b No Disease (~D) c d   Odds of exposure in the cases Odds of exposure in the controls
  • 42. The Odds Ratio (OR) But, this expression is mathematically equivalent to: Backward from what we want… The direction of interest! Odds of disease in the exposed Odds of disease in the unexposed Odds of exposure in the cases Odds of exposure in the controls
  • 43. = Proof via Bayes’ Rule Odds of exposure in the controls Odds of exposure in the cases Bayes’ Rule Odds of disease in the unexposed Odds of disease in the exposed What we want!
  • 44.
  • 45.
  • 46. The rare disease assumption 1 1 When a disease is rare: P(~D) = 1 - P(D)  1
  • 47. The odds ratio vs. the risk ratio 1.0 (null) Rare Outcome Common Outcome 1.0 (null) Odds ratio Risk ratio Risk ratio Odds ratio Odds ratio Risk ratio Risk ratio Odds ratio
  • 48.
  • 49.
  • 50.
  • 51. Interpreting ORs when the outcome is common… Formula from: Zhang J. What's the Relative Risk? A Method of Correcting the Odds Ratio in Cohort Studies of Common Outcomes JAMA.  1998;280:1690-1691. Where: OR = odds ratio from logistic regression (e.g., 3.92) P 0 = P(D/~E) = probability/prevalence of the outcome in the unexposed/reference group (e.g. ~45%) If data are from a cross-sectional or cohort study, then you can convert ORs (from logistic regression) back to RRs with a simple formula:
  • 52. For wrinkle study… Zhang J. What's the Relative Risk? A Method of Correcting the Odds Ratio in Cohort Studies of Common Outcomes JAMA.  1998;280:1690-1691. So, the risk (prevalence) of wrinkles is increased by 69%, not 292%.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.