[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-763269-105":59,"doc-detail-763269-en":129,"doc-similar-763269":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","chapter-4-conditional-probability-41-definition-bayes-rule-and-examples","CHAPTER 4 - Conditional probability - 4.1 Definition, Bayes Rule and examples","","Chapter 4 introduces conditional probability, starting with the definition of P(E|F) and its relationship to joint probability. The chapter develops multiple worked examples using dice, colored marbles, family gender scenarios, and medical testing to compute probabilities under given conditions. It also derives Bayes’ rule from the definition of conditional probability and the law of total probability, then briefly motivates its usefulness through further conditional-probability reasoning such as the Monty Hall problem.",{"@graph":69,"@context":121},[70,84,104],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":20,"@type":76,"position":81},"https://docshare.wps.com/document/exam/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/chapter-4-conditional-probability-41-definition-bayes-rule-and-examples/763269/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/chapter-4-conditional-probability-41-definition-bayes-rule-and-examples/763269.png","ImageObject",300,407,{"name":92,"@type":93},"Mary Man","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30",true,{"@type":101,"interactionType":102,"userInteractionCount":14},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"How is conditional probability P(E|F) defined?","Question",{"text":111,"@type":112},"If P(F)>0, conditional probability is defined as P(E|F)=P(E∩F)/P(F). It links joint and conditional probabilities directly.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"How do you use Bayes’ rule to compute P(F|E)?",{"text":116,"@type":112},"Bayes’ rule expresses P(F|E)=P(E|F)P(F)/[P(E|F)P(F)+P(E|F^c)P(F^c)]. It relies on conditional probability and total probability.",{"name":118,"@type":109,"acceptedAnswer":119},"Why does the HIV test example produce a counterintuitive result?",{"text":120,"@type":112},"Because the prevalence of HIV in the population is very small compared with the test’s error rates. Even with high accuracy, false positives can dominate the number of positive tests.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},763269,1796011442,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":128,"read_time":143,"preview_page_count":19,"preview_urls":144},7421720224475,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","CHAPTER 4  \nConditional probability  \n4.1. De✜nition, Bayes✬ Rule and examples  \nSuppose there are 200 men, of which 100 are smokers, and 100 women, of which 20 are smokers. What is the probability that a person chosen at random will be a smoker? The answer is 120=300 . Now, let us ask, what is the probability that a person chosen at random is a smoker given that the person is a women? One would expect the answer to be 20=100 and it is.  \nWhat we have computed is  \nnumber of women smokers number of women smokers =300 ~~ ~~ = ~~ ~~  \nnumber of women number of women =300 ;  \nwhich is the same as the probability that a person chosen at random is a woman and a smoker divided by the probability that a person chosen at random is a woman.  \nWith this in mind, we give the following de✜nition.  \nDe✜nition 4.1 (Conditional probability)  \nIf P(F ) > 0 , we de✜ne the probability of E given F as  \nP (E \\ F )  \nP (E j F ) := :  \nP (F )  \nNote P(E \\ F ) = P(E j F )P (F ) .  \nExample 4.1 . Suppose you roll two dice. What is the probability the sum is 8?  \nSolution: there are ✜ve ways this can happen f(2 ; 6) ; (3 ; 5) ; (4 ; 4) ; (5 ; 3) ; (6 ; 2)g, so the probability is 5=36 . Let us call this event A. What is the probability that the sum is 8 given that the ✜rst die shows a 3? Let B be the event that the ✜rst die shows a 3 . Then P(A \\ B) is the probability that the ✜rst die shows a 3 and the sum is 8, or 1=36 . P (B) = 1=6, so P (A j B) = 1 = 1=6 .  \nExample 4.2 . Suppose a box has 3 red marbles and 2 black ones. We select 2 marbles. What is the probability that second marble is red given that the ✜rst one is red?  \n42 4. CONDITIONAL PROBABILITY  \nSolution: Let A be the event the second marble is red, and B the event that the ✜rst one is red. P (B) = 3=5, while P (A \\ B) is the probability both are red, or is the probability that we chose 2 red out of 3 and 0 black out of 2 . Then P (A \\ B) = 􀀀 32􀀁􀀀 20􀀁= 􀀀52􀀁 , and so P (A j B) =  = 1=2 .  \nExample 4.3 . A family has 2 children. Given that one of the children is a boy, what is the probability that the other child is also a boy?  \nSolution: Let B be the event that one child is a boy, and A the event that both children are boys. The possibilities are bb; bg; gb; gg , each with probability 1=4 . P (A \\ B) = P(bb) = 1=4 and P(B) = P(bb; bg; gb) = 3=4 . So the answer is 1344 = 1=3 .  \nExample 4.4 . Suppose the test for HIV is 99% accurate in both directions and 0 .3% of the population is HIV positive. If someone tests positive, what is the probability they actually are HIV positive?  \nSolution: Let D is the event that a person is HIV positive, and T is the event that the person tests positive.  \nP (D \\ T )  (0:99)(0:003)   \nP (D j T ) = = 􀀙 23% :  \nP (T ) (0:99)(0:003) + (0:01)(0:997)  \nA short reason why this surprising result holds is that the error in the test is much greater than the percentage of people with HIV. A little longer answer is to suppose that we have 1000 people. On average, 3 of them will be HIV positive and 10 will test positive. So the chances that someone has HIV given that the person tests positive is approximately 3=10 . The reason that it is not exactly 0:3 is that there is some chance someone who is positive will test negative.  \nSuppose you know P(E j F ) and you want to ✜nd P(F j E) . Recall that  \nP (E \\ F ) = P(E j F )P (F ) ;  \nand so  \nP (F j E) = P~~ ~~(FP(\\EE)) = P~~ ~~(EPj~~ ~~F(E)P)~~ ~~(F~~ ~~)  \nExample 4.5 . Suppose 36% of families own a dog, 30% of families own a cat, and 22% of the families that have a dog also have a cat. A family is chosen at random and found to have a cat. What is the probability they also own a dog?  \nSolution: Let D be the families that own a dog, and C the families that own a cat. We are given P (D) = 0:36 ; P (C) = 0:30 ; P (C j D) = 0:22 We want to know P (D j C) . We know  \n4.1. DEFINITION, BAYES✬ RULE AND EXAMPLES 43  \nP (D j C) = P (D \\ C)=P(C) . To ✜nd the numerator, we use P (D \\ C) = P (C j D)P (D) =(0:22)(0:36) = 0:0792 . S","cbCaie1SP4UaxC0u","https://ap.wps.com/l/cbCaie1SP4UaxC0u","pdf",297478,17,"English","# 4.1 Definition, Bayes Rule and examples\n## Conditional probability definition\n## Bayes' rule and proposition\n## Worked examples","[{\"question\":\"How is conditional probability P(E|F) defined?\",\"answer\":\"If P(F)\\u003e0, conditional probability is defined as P(E|F)=P(E∩F)/P(F). It links joint and conditional probabilities directly.\"},{\"question\":\"How do you use Bayes’ rule to compute P(F|E)?\",\"answer\":\"Bayes’ rule expresses P(F|E)=P(E|F)P(F)/[P(E|F)P(F)+P(E|F^c)P(F^c)]. It relies on conditional probability and total probability.\"},{\"question\":\"Why does the HIV test example produce a counterintuitive result?\",\"answer\":\"Because the prevalence of HIV in the population is very small compared with the test’s error rates. Even with high accuracy, false positives can dominate the number of positive tests.\"}]","CHAPTER 4 - Conditional probability - 4.1 Definition, Bayes Rule and examples | PDF",43,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/147d29da12f116b3cf9dd8861ab92d25.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/d2444da5b2170697be064da5e38e954a.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/bf95941232c364a81268ca688e9430fa.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/3c3d9aadc3f0608fb7440a2aec8d5915.webp",980,1268,{"list":162,"token":66},[163,170,176,183,189,196,203,210,216,222],{"doc_id":164,"doc_title":165,"file_type":136,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":20,"create_tm":169},523566,"Independent and Dependent Events - Worksheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229939764425/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=NHiZvP8w%2FGYq2ZWMS9eZmQIJCEE%3D","independent-and-dependent-events-worksheet",16,1791427026,{"doc_id":171,"doc_title":172,"file_type":136,"home_preview_img_url":173,"slug":174,"view_count":44,"category_name":20,"create_tm":175},657341,"Probability Trees - Practice Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975425033/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=WS9KLxqg07KTiYqKDZoe0LmaZQI%3D","probability-trees-practice-questions",1792977577,{"doc_id":177,"doc_title":178,"file_type":136,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":20,"create_tm":182},265389,"GED Math - Probability Problems - quick review and practice","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229898383202/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=3c3emOVWdqKa8uCLqr1KIcM0p30%3D","ged-math-probability-problems-quick-review-and-practice",46,1789395185,{"doc_id":184,"doc_title":185,"file_type":136,"home_preview_img_url":186,"slug":187,"view_count":8,"category_name":20,"create_tm":188},763264,"PROBABILITY-PRACTICE QUESTIONS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230046229721/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=RejsiOe2JeGtPBOIbq2AzCu3cpk%3D","probability-practice-questions-763264",1796011433,{"doc_id":190,"doc_title":191,"file_type":136,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":20,"create_tm":195},522688,"Independent and Dependent Events - Determine whether scenarios involve independent or dependent events","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229939978072/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=dypuQyAw%2BJGMt3eql7H0xgnNxik%3D","independent-and-dependent-events-determine-whether-scenarios-involve-independent-or-dependent-events",13,1791426061,{"doc_id":197,"doc_title":198,"file_type":136,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":20,"create_tm":202},523005,"Independent and Dependent Events","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229939755395/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=iTLpLHui%2FP0xW8VgJQN3QQuAgdk%3D","independent-and-dependent-events",12,1791426399,{"doc_id":204,"doc_title":205,"file_type":136,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":20,"create_tm":209},473287,"Math 30-2 Probability Lesson 4 - Practice Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926383138/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=XkyTFDISotsVq%2BunAtw1aH3fsNU%3D","math-30-2-probability-lesson-4-practice-questions",18,1790782213,{"doc_id":211,"doc_title":212,"file_type":136,"home_preview_img_url":213,"slug":214,"view_count":52,"category_name":20,"create_tm":215},479597,"Showing Probability on a Continuum - Write the letter of the point that shows the probability","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926446985/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=lAQVC6yE6oPiTi2sDMAeZ09niZE%3D","showing-probability-on-a-continuum-write-the-letter-of-the-point-that-shows-the-probability",1790793564,{"doc_id":217,"doc_title":218,"file_type":136,"home_preview_img_url":219,"slug":220,"view_count":46,"category_name":20,"create_tm":221},398917,"SOCEITY OF ACTUARIES - EXAM P PROBABILITY - EXAM P SAMPLE SOLUTIONS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919321315/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=fW6pqIC%2FwXH7H4cf%2FcAOAXqAbo4%3D","soceity-of-actuaries-exam-p-probability-exam-p-sample-solutions",1790490062,{"doc_id":223,"doc_title":224,"file_type":136,"home_preview_img_url":225,"slug":226,"view_count":46,"category_name":20,"create_tm":227},394200,"MATH4510 - Statistics Review - Exam Practice Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918000447/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796517899&Signature=oY4AFve5i65HOBEu6XRq0Io49pw%3D","math4510-statistics-review-exam-practice-questions",1790400007]