SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Bayes’ Theorem
Let’s consider an example.  Say you have 31 people who play golf.  One way to divide up the people is to put them in groups based on whether they hit a golf ball from the “right handed” side or the “left handed” side.  Say X1 is group label for the right handed and X2 is for left handed duffers.  Another way to divide them up is if they wear a golf glove or not.  Say Y1 is for those that wear and Y2 is for those that do not wear a golf glove when they play.  Say the following crosstabulation or contingency table results for the 31 people. Y1 Y2 Total X1 5 12 17 X2 10 4 14 Total 15 16 31 From this table we can say something about a variety of probabilities – 20, in fact.
Now, from this table you could very naturally consider the following: 1) Marginal probabilities (using the relative frequency approach to probability – like the prob of X1.) P(X1) = 17/31, P(X2) = 14/17, P(Y1) = 15/31, P(Y2) = 16/31, 2) Conditional probabilities (like probability of X1 given that Y1 has occurred). In columns (like what is prob of being X1 given you have a Y1?) P(X1 | Y1) = 5/15 P(X1 | Y2) = 12/16 P(X2 | Y1) = 10/15 P(X2 | Y2) = 4/16 In rows P(Y1 | X1) = 5/17 P(Y2 | X1) = 12/17 P(Y1 | X2) = 10/14 P(Y2 | X2) = 4/14
3) Intersections (like what is prob of X1 and Y1) P(X1  ⋂  Y1) = 5/31  (which could have been written P(Y1  X1) P(X2  ⋂  Y1) = 10/31  P(X1  ⋂  Y2) = 12/31 P(X2  ⋂  Y2) = 4/31 4) Unions (like what is prob of X1 or Y1) P(X1  ⋃  Y1) = (5 + 12 + 10)/31 = (17 + 15 – 5)/31 = 27/31  P(X2  ⋃  Y1) = (10 + 4 + 5)/31 = (14 + 15 – 10)/31 = 19/31 P(X1  ⋃  Y2) = (5 + 12 + 4)/31 = (17 + 16 – 12)/31 = 21/31 P(X2  ⋃  Y2) = (10 + 4 + 12)/31 = (14 + 16 – 4)/31 = 26/31 This way seems more natural – just add the relevant boxes and divide by the grand total  This way says add the totals and subtract the intersection so you only add the overlap once.
Now, let’s take the crosstabulation and construct the joint probability table by dividing by the grand total of 31. Y1 Y2 Total X1 5/31 12/31 17/31 X2 10/31 4/31 14/31 Total 15/31 16/31 31/31 On the next slide I show what this would be like in general terms.  You will note in the joint probability table we have marginal probabilities and intersections.
Y1 Y2 Totals X1   P(X1 ⋂ Y1)   P(X1 ⋂ Y2) P(X1) X2   P(X2 ⋂ Y1)  P(X2 ⋂ Y2)  P(X2) Totals P(Y1)   P(Y2) 1.00 Again, from the table we have intersections and marginal probabilities already calculated. To get conditional probabilities and unions from this table we just follow the rules. For conditional probabilities, like prob of X1 given Y1 we have P(X1 | Y1) = P(X1  ⋂  Y1)/P(Y1) = (5/31)/(15/31) = 5/15. For unions, like prob of X1 or Y1 we have P(X1  ⋃  Y1) = P(X1) + P(Y1) – P(X1  ⋂  Y1)    = 17/31 + 15/31 – 5/31   = 27/31
Notice on slide 5 that, for example, in the Y2 column  12/31 + 4/31 = 16/31.  On slide 6 this would be seen as P(X1  ⋂  Y2) + P(X2  ⋂  Y2) = P(Y2). In this example we have seen a whole bunch of information.  In fact, you know the raw data and you have seen how we calculate many types of probability.  Bayes’ Theorem is just a statement that if we know only  some  information we can still calculate some of the other parts based on what we know. As an example, say we know P(X1) = 17/31, P(X2) = 14/31, P(Y2 | X1) = 12/17, and P(Y2 | X2) = 4/14.  From this we can calculate P(X1 ⋂ Y2), P(X2 ⋂ Y2), P(Y2), P(X1 | Y2), P(X2 | Y2).
Y1 Y2 Totals X1   P(X1 ⋂ Y1)   P(X1 ⋂ Y2) P(X1) X2   P(X2 ⋂ Y1)  P(X2 ⋂ Y2)  P(X2) Totals P(Y1)   P(Y2) 1.00 So, say we know P(X1), P(X2), P(Y2 | X1), P(Y2 | X2). In this context P(X1) and P(X2) are called prior probabilities.  P(Y2 | X1) and P(Y2 | X2) would be considered additional information that has to be obtained from some source. Note the additional information is about Y2, conditionally. From the definition of conditional probability we can calculate what is under the Y2 column above and then we can calculate the conditional probabilities P(X1 | Y2) and P(X2 | Y2), here called posterior probabilities. Posterior probabilities are just conditional probabilities, but we do not construct them from raw data because we do not have the raw data.  But we have gained enough information to exploit what is known about the relationships that exist in such a table.
Let’s think about an example.  Say that in a group of golfers 17/31 are right handed and 14/31 are left handed.  Also say that of those who are right handed, 12/17 play without a glove, while 4/14 of those who are left handed play without a glove. Of those who play without a glove, what percentage are right handed and what percentage are left handed? So, overall we know P(X1) and P(X2) (the prior probabilities), but we want to know P(X1 | Y2) and P(X2 | Y2) (the posterior probabilities). Now as an intermediate step we have to find from the previous slide what is under column Y2. To do this remember conditional probability is defined as P(B | A) = P(B  ⋂  A)/P(A), so P(A  ⋂  B) = P(B | A)P(A)
From the example,  P(X1) = 17/31, P(X2) = 14/31, P(Y2|X1) = 12/17, and P(Y2|X2) = 4/14.  Thus P(X1 ⋂ Y2) = P(Y2 | X1)P(X1) = (12/17)(17/31) = 12/31, P(X2 ⋂ Y2) = P(Y2 | X2)P(X2) = (4/14)(14/31) = 4/31,  P(Y2) = P(X1 ⋂ Y2) + P(X2 ⋂ Y2)  =  12/31 + 4/31 = 16/31, Thus, P(X1|Y2) = P(X1  ⋂  Y2)/P(Y2) = (12/31)/(16/31) = 12/16, and  P(X2|Y2) = P(X2  ⋂  Y2)P(Y2) = (4/31)/(16/31) = 4/16. WOW, I need to put this away and go get a drink - - of water!
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Now, say that given the part is from supplier 1 the part is good (G) 98 percent of the time and given that it is from supplier 2 the part is good 95 percent of the time. The joint probabilities are (by multiplication) P(A1  ⋂  G) = .65(.98) and P(A2  ⋂  G) = .35(.95), and And the marginal probability is found by adding these two together. So, P(G) = .65(.98) + .35(.95) = .637 + .3325 = .9695. Then get the new conditional probabilities by division P(A1 | G) = .65(.98)/[(.65(.98)) + (.35(.95))] = .637/.9695 = .657, and  P(A2 | G) = .35(.95)/[(.65(.98)) + (.35(.95))] = .343. So, what does this all mean?  We started out knowing that 65% of parts come from supplier 1.  We find that 96.95% of the parts that are received are good.  Of those that are good, 65.7% are from supplier 1 and 34.3% are from supplier 2.

Weitere ähnliche Inhalte

Was ist angesagt?

Hipotesis2 grupos independientes
Hipotesis2 grupos independientesHipotesis2 grupos independientes
Hipotesis2 grupos independientesJorge Obando
 
C2 st lecture 9 probability handout
C2 st lecture 9   probability handoutC2 st lecture 9   probability handout
C2 st lecture 9 probability handoutfatima d
 
Discrete Random Variable (Probability Distribution)
Discrete Random Variable (Probability Distribution)Discrete Random Variable (Probability Distribution)
Discrete Random Variable (Probability Distribution)LeslyAlingay
 
Statistics and Probability-Random Variables and Probability Distribution
Statistics and Probability-Random Variables and Probability DistributionStatistics and Probability-Random Variables and Probability Distribution
Statistics and Probability-Random Variables and Probability DistributionApril Palmes
 
Probability and probability distributions ppt @ bec doms
Probability and probability distributions ppt @ bec domsProbability and probability distributions ppt @ bec doms
Probability and probability distributions ppt @ bec domsBabasab Patil
 
Normal probability distribution
Normal probability distributionNormal probability distribution
Normal probability distributionNadeem Uddin
 
Binomial probability distribution
Binomial probability distributionBinomial probability distribution
Binomial probability distributionNadeem Uddin
 
Probability power point combo from holt ch 10
Probability power point combo from holt ch 10Probability power point combo from holt ch 10
Probability power point combo from holt ch 10lothomas
 

Was ist angesagt? (20)

Hipotesis2 grupos independientes
Hipotesis2 grupos independientesHipotesis2 grupos independientes
Hipotesis2 grupos independientes
 
Semana7 dn
Semana7 dnSemana7 dn
Semana7 dn
 
Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11Econometrics- lecture 10 and 11
Econometrics- lecture 10 and 11
 
Shapiro wilk test
Shapiro wilk testShapiro wilk test
Shapiro wilk test
 
Chapter7
Chapter7Chapter7
Chapter7
 
C2 st lecture 9 probability handout
C2 st lecture 9   probability handoutC2 st lecture 9   probability handout
C2 st lecture 9 probability handout
 
Discrete Random Variable (Probability Distribution)
Discrete Random Variable (Probability Distribution)Discrete Random Variable (Probability Distribution)
Discrete Random Variable (Probability Distribution)
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
U unit7 ssb
U unit7 ssbU unit7 ssb
U unit7 ssb
 
Statistics and Probability-Random Variables and Probability Distribution
Statistics and Probability-Random Variables and Probability DistributionStatistics and Probability-Random Variables and Probability Distribution
Statistics and Probability-Random Variables and Probability Distribution
 
Probability and probability distributions ppt @ bec doms
Probability and probability distributions ppt @ bec domsProbability and probability distributions ppt @ bec doms
Probability and probability distributions ppt @ bec doms
 
Chapter13
Chapter13Chapter13
Chapter13
 
Statistics
StatisticsStatistics
Statistics
 
Discrete and Continuous Random Variables
Discrete and Continuous Random VariablesDiscrete and Continuous Random Variables
Discrete and Continuous Random Variables
 
Normal probability distribution
Normal probability distributionNormal probability distribution
Normal probability distribution
 
Binomial probability distribution
Binomial probability distributionBinomial probability distribution
Binomial probability distribution
 
Z-Scores
Z-ScoresZ-Scores
Z-Scores
 
Direct variation
Direct variationDirect variation
Direct variation
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Probability power point combo from holt ch 10
Probability power point combo from holt ch 10Probability power point combo from holt ch 10
Probability power point combo from holt ch 10
 

Andere mochten auch

Easy explanation of the Bayes theorem
Easy explanation of the Bayes theoremEasy explanation of the Bayes theorem
Easy explanation of the Bayes theoremavturchin
 
Bayes' Theorem for Programmers
Bayes' Theorem for ProgrammersBayes' Theorem for Programmers
Bayes' Theorem for ProgrammersMoshe Zadka
 
A Brief Overview of Bayes Theorem and Bayesian Statistics
A Brief Overview of Bayes Theorem and Bayesian Statistics A Brief Overview of Bayes Theorem and Bayesian Statistics
A Brief Overview of Bayes Theorem and Bayesian Statistics Stephen Shellman
 
Bayesian classification
Bayesian classificationBayesian classification
Bayesian classificationManu Chandel
 
Baye’s Theorem
Baye’s TheoremBaye’s Theorem
Baye’s TheoremDaniel Ross
 
Probability Concept and Bayes Theorem
Probability Concept and Bayes TheoremProbability Concept and Bayes Theorem
Probability Concept and Bayes TheoremCherryBerry2
 
Understanding bayes theorem
Understanding bayes theoremUnderstanding bayes theorem
Understanding bayes theoremDavid Siegel
 

Andere mochten auch (10)

Easy explanation of the Bayes theorem
Easy explanation of the Bayes theoremEasy explanation of the Bayes theorem
Easy explanation of the Bayes theorem
 
MH 370 & the Bayes theory
MH 370 & the Bayes theoryMH 370 & the Bayes theory
MH 370 & the Bayes theory
 
Bayes' Theorem for Programmers
Bayes' Theorem for ProgrammersBayes' Theorem for Programmers
Bayes' Theorem for Programmers
 
A Brief Overview of Bayes Theorem and Bayesian Statistics
A Brief Overview of Bayes Theorem and Bayesian Statistics A Brief Overview of Bayes Theorem and Bayesian Statistics
A Brief Overview of Bayes Theorem and Bayesian Statistics
 
RBI and Bayes' rule
RBI and Bayes' ruleRBI and Bayes' rule
RBI and Bayes' rule
 
Bayesian classification
Bayesian classificationBayesian classification
Bayesian classification
 
Bayes Theorem
Bayes TheoremBayes Theorem
Bayes Theorem
 
Baye’s Theorem
Baye’s TheoremBaye’s Theorem
Baye’s Theorem
 
Probability Concept and Bayes Theorem
Probability Concept and Bayes TheoremProbability Concept and Bayes Theorem
Probability Concept and Bayes Theorem
 
Understanding bayes theorem
Understanding bayes theoremUnderstanding bayes theorem
Understanding bayes theorem
 

Ähnlich wie bayes

11 x1 t15 04 polynomial theorems (2013)
11 x1 t15 04 polynomial theorems (2013)11 x1 t15 04 polynomial theorems (2013)
11 x1 t15 04 polynomial theorems (2013)Nigel Simmons
 
Qt random variables notes
Qt random variables notesQt random variables notes
Qt random variables notesRohan Bhatkar
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheetSuvrat Mishra
 
Finance Enginering from Columbia.pdf
Finance Enginering from Columbia.pdfFinance Enginering from Columbia.pdf
Finance Enginering from Columbia.pdfCarlosLazo45
 
Logit model testing and interpretation
Logit model testing and interpretationLogit model testing and interpretation
Logit model testing and interpretationFelipe Affonso
 
Jointly Distributed Random Variaables.ppt
Jointly Distributed Random Variaables.pptJointly Distributed Random Variaables.ppt
Jointly Distributed Random Variaables.pptRohitKumar639388
 
Function of a random variable lect5a.ppt
Function of a random variable lect5a.pptFunction of a random variable lect5a.ppt
Function of a random variable lect5a.pptsadafshahbaz7777
 
2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdf2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdfRajuSingh806014
 
Expectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptExpectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptAlyasarJabbarli
 
Probability and Random Variables
Probability and Random VariablesProbability and Random Variables
Probability and Random VariablesSubhobrata Banerjee
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variablesRohan Bhatkar
 

Ähnlich wie bayes (20)

11 x1 t15 04 polynomial theorems (2013)
11 x1 t15 04 polynomial theorems (2013)11 x1 t15 04 polynomial theorems (2013)
11 x1 t15 04 polynomial theorems (2013)
 
Qt random variables notes
Qt random variables notesQt random variables notes
Qt random variables notes
 
El6303 solu 3 f15 1
El6303 solu 3 f15  1 El6303 solu 3 f15  1
El6303 solu 3 f15 1
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheet
 
Probability Cheatsheet.pdf
Probability Cheatsheet.pdfProbability Cheatsheet.pdf
Probability Cheatsheet.pdf
 
Finance Enginering from Columbia.pdf
Finance Enginering from Columbia.pdfFinance Enginering from Columbia.pdf
Finance Enginering from Columbia.pdf
 
Problems and solutions_4
Problems and solutions_4Problems and solutions_4
Problems and solutions_4
 
Logit model testing and interpretation
Logit model testing and interpretationLogit model testing and interpretation
Logit model testing and interpretation
 
Prob review
Prob reviewProb review
Prob review
 
Probability +2
Probability +2Probability +2
Probability +2
 
Jointly Distributed Random Variaables.ppt
Jointly Distributed Random Variaables.pptJointly Distributed Random Variaables.ppt
Jointly Distributed Random Variaables.ppt
 
Function of a random variable lect5a.ppt
Function of a random variable lect5a.pptFunction of a random variable lect5a.ppt
Function of a random variable lect5a.ppt
 
2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdf2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdf
 
Expectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptExpectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.ppt
 
Unit II PPT.pptx
Unit II PPT.pptxUnit II PPT.pptx
Unit II PPT.pptx
 
Course material mca
Course material   mcaCourse material   mca
Course material mca
 
Probability and Random Variables
Probability and Random VariablesProbability and Random Variables
Probability and Random Variables
 
Chapter 04 answers
Chapter 04 answersChapter 04 answers
Chapter 04 answers
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
 
b
bb
b
 

Kürzlich hochgeladen

𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...
𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...
𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...rahim quresi
 
Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...
Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...
Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...mriyagarg453
 
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment BookingKanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment BookingNitya salvi
 
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Call Girls in Nagpur High Profile
 
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna... Shivani Pandey
 
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...SUHANI PANDEY
 
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...ritikasharma
 
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...ritikasharma
 
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...ritikasharma
 
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...ritikasharma
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...ritikasharma
 
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...aamir
 
Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...
Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...
Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...rajveermohali2022
 
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...Riya Pathan
 
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...ritikasharma
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...rahim quresi
 
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser... Shivani Pandey
 

Kürzlich hochgeladen (20)

𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...
𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...
𓀤Call On 6297143586 𓀤 Park Street Call Girls In All Kolkata 24/7 Provide Call...
 
Chat 9316020077💋 Call Girls Agency In Goa By Goa Call Girls Agency 💋
Chat 9316020077💋 Call Girls  Agency In Goa  By Goa  Call Girls  Agency 💋Chat 9316020077💋 Call Girls  Agency In Goa  By Goa  Call Girls  Agency 💋
Chat 9316020077💋 Call Girls Agency In Goa By Goa Call Girls Agency 💋
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...
Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...
Navsari Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girl...
 
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment BookingKanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
 
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
 
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
 
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
 
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
 
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
 
Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...
Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...
Zirakpur Call Girls👧 Book Now📱8146719683 📞👉Mohali Call Girl Service No Advanc...
 
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
 
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort GoaDesi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
 
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
 
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
 

bayes

  • 2. Let’s consider an example. Say you have 31 people who play golf. One way to divide up the people is to put them in groups based on whether they hit a golf ball from the “right handed” side or the “left handed” side. Say X1 is group label for the right handed and X2 is for left handed duffers. Another way to divide them up is if they wear a golf glove or not. Say Y1 is for those that wear and Y2 is for those that do not wear a golf glove when they play. Say the following crosstabulation or contingency table results for the 31 people. Y1 Y2 Total X1 5 12 17 X2 10 4 14 Total 15 16 31 From this table we can say something about a variety of probabilities – 20, in fact.
  • 3. Now, from this table you could very naturally consider the following: 1) Marginal probabilities (using the relative frequency approach to probability – like the prob of X1.) P(X1) = 17/31, P(X2) = 14/17, P(Y1) = 15/31, P(Y2) = 16/31, 2) Conditional probabilities (like probability of X1 given that Y1 has occurred). In columns (like what is prob of being X1 given you have a Y1?) P(X1 | Y1) = 5/15 P(X1 | Y2) = 12/16 P(X2 | Y1) = 10/15 P(X2 | Y2) = 4/16 In rows P(Y1 | X1) = 5/17 P(Y2 | X1) = 12/17 P(Y1 | X2) = 10/14 P(Y2 | X2) = 4/14
  • 4. 3) Intersections (like what is prob of X1 and Y1) P(X1 ⋂ Y1) = 5/31 (which could have been written P(Y1 X1) P(X2 ⋂ Y1) = 10/31 P(X1 ⋂ Y2) = 12/31 P(X2 ⋂ Y2) = 4/31 4) Unions (like what is prob of X1 or Y1) P(X1 ⋃ Y1) = (5 + 12 + 10)/31 = (17 + 15 – 5)/31 = 27/31 P(X2 ⋃ Y1) = (10 + 4 + 5)/31 = (14 + 15 – 10)/31 = 19/31 P(X1 ⋃ Y2) = (5 + 12 + 4)/31 = (17 + 16 – 12)/31 = 21/31 P(X2 ⋃ Y2) = (10 + 4 + 12)/31 = (14 + 16 – 4)/31 = 26/31 This way seems more natural – just add the relevant boxes and divide by the grand total This way says add the totals and subtract the intersection so you only add the overlap once.
  • 5. Now, let’s take the crosstabulation and construct the joint probability table by dividing by the grand total of 31. Y1 Y2 Total X1 5/31 12/31 17/31 X2 10/31 4/31 14/31 Total 15/31 16/31 31/31 On the next slide I show what this would be like in general terms. You will note in the joint probability table we have marginal probabilities and intersections.
  • 6. Y1 Y2 Totals X1 P(X1 ⋂ Y1) P(X1 ⋂ Y2) P(X1) X2 P(X2 ⋂ Y1) P(X2 ⋂ Y2) P(X2) Totals P(Y1) P(Y2) 1.00 Again, from the table we have intersections and marginal probabilities already calculated. To get conditional probabilities and unions from this table we just follow the rules. For conditional probabilities, like prob of X1 given Y1 we have P(X1 | Y1) = P(X1 ⋂ Y1)/P(Y1) = (5/31)/(15/31) = 5/15. For unions, like prob of X1 or Y1 we have P(X1 ⋃ Y1) = P(X1) + P(Y1) – P(X1 ⋂ Y1) = 17/31 + 15/31 – 5/31 = 27/31
  • 7. Notice on slide 5 that, for example, in the Y2 column 12/31 + 4/31 = 16/31. On slide 6 this would be seen as P(X1 ⋂ Y2) + P(X2 ⋂ Y2) = P(Y2). In this example we have seen a whole bunch of information. In fact, you know the raw data and you have seen how we calculate many types of probability. Bayes’ Theorem is just a statement that if we know only some information we can still calculate some of the other parts based on what we know. As an example, say we know P(X1) = 17/31, P(X2) = 14/31, P(Y2 | X1) = 12/17, and P(Y2 | X2) = 4/14. From this we can calculate P(X1 ⋂ Y2), P(X2 ⋂ Y2), P(Y2), P(X1 | Y2), P(X2 | Y2).
  • 8. Y1 Y2 Totals X1 P(X1 ⋂ Y1) P(X1 ⋂ Y2) P(X1) X2 P(X2 ⋂ Y1) P(X2 ⋂ Y2) P(X2) Totals P(Y1) P(Y2) 1.00 So, say we know P(X1), P(X2), P(Y2 | X1), P(Y2 | X2). In this context P(X1) and P(X2) are called prior probabilities. P(Y2 | X1) and P(Y2 | X2) would be considered additional information that has to be obtained from some source. Note the additional information is about Y2, conditionally. From the definition of conditional probability we can calculate what is under the Y2 column above and then we can calculate the conditional probabilities P(X1 | Y2) and P(X2 | Y2), here called posterior probabilities. Posterior probabilities are just conditional probabilities, but we do not construct them from raw data because we do not have the raw data. But we have gained enough information to exploit what is known about the relationships that exist in such a table.
  • 9. Let’s think about an example. Say that in a group of golfers 17/31 are right handed and 14/31 are left handed. Also say that of those who are right handed, 12/17 play without a glove, while 4/14 of those who are left handed play without a glove. Of those who play without a glove, what percentage are right handed and what percentage are left handed? So, overall we know P(X1) and P(X2) (the prior probabilities), but we want to know P(X1 | Y2) and P(X2 | Y2) (the posterior probabilities). Now as an intermediate step we have to find from the previous slide what is under column Y2. To do this remember conditional probability is defined as P(B | A) = P(B ⋂ A)/P(A), so P(A ⋂ B) = P(B | A)P(A)
  • 10. From the example, P(X1) = 17/31, P(X2) = 14/31, P(Y2|X1) = 12/17, and P(Y2|X2) = 4/14. Thus P(X1 ⋂ Y2) = P(Y2 | X1)P(X1) = (12/17)(17/31) = 12/31, P(X2 ⋂ Y2) = P(Y2 | X2)P(X2) = (4/14)(14/31) = 4/31, P(Y2) = P(X1 ⋂ Y2) + P(X2 ⋂ Y2) = 12/31 + 4/31 = 16/31, Thus, P(X1|Y2) = P(X1 ⋂ Y2)/P(Y2) = (12/31)/(16/31) = 12/16, and P(X2|Y2) = P(X2 ⋂ Y2)P(Y2) = (4/31)/(16/31) = 4/16. WOW, I need to put this away and go get a drink - - of water!
  • 11.
  • 12. Now, say that given the part is from supplier 1 the part is good (G) 98 percent of the time and given that it is from supplier 2 the part is good 95 percent of the time. The joint probabilities are (by multiplication) P(A1 ⋂ G) = .65(.98) and P(A2 ⋂ G) = .35(.95), and And the marginal probability is found by adding these two together. So, P(G) = .65(.98) + .35(.95) = .637 + .3325 = .9695. Then get the new conditional probabilities by division P(A1 | G) = .65(.98)/[(.65(.98)) + (.35(.95))] = .637/.9695 = .657, and P(A2 | G) = .35(.95)/[(.65(.98)) + (.35(.95))] = .343. So, what does this all mean? We started out knowing that 65% of parts come from supplier 1. We find that 96.95% of the parts that are received are good. Of those that are good, 65.7% are from supplier 1 and 34.3% are from supplier 2.