{"id":1220,"date":"2024-05-03T23:11:22","date_gmt":"2024-05-04T03:11:22","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/?post_type=chapter&#038;p=1220"},"modified":"2024-06-12T14:39:13","modified_gmt":"2024-06-12T18:39:13","slug":"mutually-exclusive-and-independent-events","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/chapter\/mutually-exclusive-and-independent-events\/","title":{"raw":"Mutually Exclusive and Independent Events","rendered":"Mutually Exclusive and Independent Events"},"content":{"raw":"<div class=\"textbox textbox--learning-objectives\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Learning Objectives<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nUnderstand what it means for events to be mutually exclusive or independent.\r\n\r\n<\/div>\r\n<\/div>\r\n<h2>Mutually Exclusive Events<\/h2>\r\n<ul>\r\n \t<li>Two events that cannot occur at the same time are considered to be mutually exclusive<\/li>\r\n \t<li>The probability of both events occurring at once will equal zero<\/li>\r\n<\/ul>\r\n<h2>Independent Events<\/h2>\r\n<ul>\r\n \t<li>Spotting independent events is a little bit more involved<\/li>\r\n \t<li>Remember, P(A|B) = the probability of A occurring given that B has already occurred.<\/li>\r\n \t<li>What happens if B has no effect on A? Then P(A|B) = P(A)<\/li>\r\n \t<li>That also means that P(A and B) = P(A|B)\u00d7P(B) =P(A)\u00d7P(B)<\/li>\r\n<\/ul>\r\n<h1>Testing for Mutually Exclusive Events (Example)<\/h1>\r\n<h2>Example 19.1<\/h2>\r\n<span style=\"color: #003366\"><strong>Problem Setup<\/strong><\/span>: Let us have two possible events, 1 and 2, that can either occur or not occur. See below:\r\n<table class=\"grid aligncenter\">\r\n<tbody>\r\n<tr>\r\n<td style=\"text-align: center\"><\/td>\r\n<th style=\"text-align: center\">Event 1<\/th>\r\n<th style=\"text-align: center\">Not Event 1<\/th>\r\n<th style=\"text-align: center\">Totals<\/th>\r\n<\/tr>\r\n<tr>\r\n<th style=\"text-align: center\">Event 2<\/th>\r\n<td style=\"text-align: center\">0<\/td>\r\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>1<\/sub> and E<sub>2<\/sub>)<\/td>\r\n<td style=\"text-align: center\">P(E<sub>2<\/sub>)<\/td>\r\n<\/tr>\r\n<tr>\r\n<th style=\"text-align: center\">Not Event 2<\/th>\r\n<td style=\"text-align: center\">P(E<sub>1<\/sub> and <em>not<\/em> E<sub>2<\/sub>)<\/td>\r\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>1<\/sub> and <em>not<\/em> E<sub>2<\/sub>)<\/td>\r\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>2<\/sub>)<\/td>\r\n<\/tr>\r\n<tr>\r\n<th style=\"text-align: center\">Totals<\/th>\r\n<td style=\"text-align: center\">P(E<sub>1<\/sub>)<\/td>\r\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>1<\/sub>)<\/td>\r\n<td style=\"text-align: center\">1<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<span style=\"color: #003366\"><strong>Question<\/strong><\/span>: Which events are mutually exclusive based on the above contingency table?\r\n\r\n<span style=\"color: #003366\"><strong>Solutions<\/strong><\/span>:\r\n<ul>\r\n \t<li>Look for any 'zeros' in the table.<\/li>\r\n \t<li>In this case, P(E<sub>1<\/sub> and E<sub>2<\/sub>) = 0<\/li>\r\n \t<li>So, <span style=\"font-size: 20.5333px\">events 1 and 2 are mutually exclusive<\/span><\/li>\r\n<\/ul>\r\n<h1>Testing for Independence (Example)<\/h1>\r\n<ul>\r\n \t<li>\r\n<div>We can test for any events where P(A|B) = P(A)<\/div><\/li>\r\n \t<li>\r\n<div>Or we can test if P(A and B) =P(A)\u00d7P(B)<\/div><\/li>\r\n \t<li>\r\n<div><\/div>\r\n<div>If this is true, then the events (we call them 'A' and 'B' for simplicity here) are independent<\/div><\/li>\r\n \t<li>\r\n<div><span style=\"font-size: 20.5333px\">See the next examples of this testing.<\/span><\/div><\/li>\r\n<\/ul>\r\n<h2>Example 19.2<\/h2>\r\n<span style=\"color: #003366\"><strong>Problem Setup<\/strong><\/span>: Let us take a simple example of coffee and tea drinkers. Let's use the following notation:\r\n<ul>\r\n \t<li>P(T) = probability of drinking tea<\/li>\r\n \t<li>P(C) = probability of drinking coffee<\/li>\r\n<\/ul>\r\nSee the contingency table for coffee and tea drinkers below:\r\n<table class=\"grid aligncenter\">\r\n<tbody>\r\n<tr>\r\n<td style=\"text-align: center\"><\/td>\r\n<th style=\"text-align: center\">Drinks Coffee<\/th>\r\n<th style=\"text-align: center\">Doesn't Drink Coffee<\/th>\r\n<th style=\"text-align: center\">Totals<\/th>\r\n<\/tr>\r\n<tr>\r\n<th style=\"text-align: center\">Drinks Tea<\/th>\r\n<td style=\"text-align: center\">0.6<\/td>\r\n<td style=\"text-align: center\">0.075<\/td>\r\n<td style=\"text-align: center\">0.675<\/td>\r\n<\/tr>\r\n<tr>\r\n<th style=\"text-align: center\">Doesn't Drink Tea<\/th>\r\n<td style=\"text-align: center\">0.2<\/td>\r\n<td style=\"text-align: center\">0.125<\/td>\r\n<td style=\"text-align: center\">0.325<\/td>\r\n<\/tr>\r\n<tr>\r\n<th style=\"text-align: center\">Totals<\/th>\r\n<td style=\"text-align: center\">0.8<\/td>\r\n<td style=\"text-align: center\">0.2<\/td>\r\n<td style=\"text-align: center\">1<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<span style=\"color: #003366\"><strong>Question<\/strong><\/span>: Are drinking coffee and tea independent events?\r\n\r\n<span style=\"color: #003366\"><strong>Solutions<\/strong><\/span>: Let's start by writing out the values we will use from the above table:\r\n<ul>\r\n \t<li>P(Drinks Coffee) = P(C) = 0.8<\/li>\r\n \t<li>P(Drinks Tea) = P(T) = 0.675<\/li>\r\n \t<li>P(Drinks Coffee and Drinks Tea) = P(C and T) = 0.6<\/li>\r\n<\/ul>\r\nLet's test, is P(C and T) = P(C)\u00d7P(T)?\r\n<ul>\r\n \t<li>P(C)\u00d7P(T) = 0.8\u00d70.675 = 0.54<\/li>\r\n \t<li>P(C and T) = 0.6 \u2260 0.54<\/li>\r\n<\/ul>\r\n<span style=\"color: #003366\"><strong>Conclusion<\/strong><\/span>: Because P(C and T) \u2260 P(C)\u00d7P(T), coffee and tea drinking are not independent events. Ie: whether someone drinks coffee has an effect on whether or not they choose to drink tea.\r\n<h1>Key Takeaways (EXERCISE)<\/h1>\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Key Takeaways: Mutually Exclusive and Independent Events<\/p>\r\n&nbsp;\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n[h5p id=\"47\"]\r\n\r\n[h5p id=\"48\"]\r\n\r\n<\/div>\r\n<\/div>\r\n<h1>Your Own Notes (EXERCISE)<\/h1>\r\n<ul>\r\n \t<li>Are there any notes you want to take from this section? Is there anything you'd like to copy and paste below?<\/li>\r\n \t<li>These notes are for you only (they will not be stored anywhere)<\/li>\r\n \t<li>Make sure to download them at the end to use as a reference<\/li>\r\n<\/ul>\r\n[h5p id=\"16\"]","rendered":"<div class=\"textbox textbox--learning-objectives\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Learning Objectives<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Understand what it means for events to be mutually exclusive or independent.<\/p>\n<\/div>\n<\/div>\n<h2>Mutually Exclusive Events<\/h2>\n<ul>\n<li>Two events that cannot occur at the same time are considered to be mutually exclusive<\/li>\n<li>The probability of both events occurring at once will equal zero<\/li>\n<\/ul>\n<h2>Independent Events<\/h2>\n<ul>\n<li>Spotting independent events is a little bit more involved<\/li>\n<li>Remember, P(A|B) = the probability of A occurring given that B has already occurred.<\/li>\n<li>What happens if B has no effect on A? Then P(A|B) = P(A)<\/li>\n<li>That also means that P(A and B) = P(A|B)\u00d7P(B) =P(A)\u00d7P(B)<\/li>\n<\/ul>\n<h1>Testing for Mutually Exclusive Events (Example)<\/h1>\n<h2>Example 19.1<\/h2>\n<p><span style=\"color: #003366\"><strong>Problem Setup<\/strong><\/span>: Let us have two possible events, 1 and 2, that can either occur or not occur. See below:<\/p>\n<table class=\"grid aligncenter\">\n<tbody>\n<tr>\n<td style=\"text-align: center\"><\/td>\n<th style=\"text-align: center\">Event 1<\/th>\n<th style=\"text-align: center\">Not Event 1<\/th>\n<th style=\"text-align: center\">Totals<\/th>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">Event 2<\/th>\n<td style=\"text-align: center\">0<\/td>\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>1<\/sub> and E<sub>2<\/sub>)<\/td>\n<td style=\"text-align: center\">P(E<sub>2<\/sub>)<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">Not Event 2<\/th>\n<td style=\"text-align: center\">P(E<sub>1<\/sub> and <em>not<\/em> E<sub>2<\/sub>)<\/td>\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>1<\/sub> and <em>not<\/em> E<sub>2<\/sub>)<\/td>\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>2<\/sub>)<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">Totals<\/th>\n<td style=\"text-align: center\">P(E<sub>1<\/sub>)<\/td>\n<td style=\"text-align: center\">P(<em>not<\/em> E<sub>1<\/sub>)<\/td>\n<td style=\"text-align: center\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #003366\"><strong>Question<\/strong><\/span>: Which events are mutually exclusive based on the above contingency table?<\/p>\n<p><span style=\"color: #003366\"><strong>Solutions<\/strong><\/span>:<\/p>\n<ul>\n<li>Look for any &#8216;zeros&#8217; in the table.<\/li>\n<li>In this case, P(E<sub>1<\/sub> and E<sub>2<\/sub>) = 0<\/li>\n<li>So, <span style=\"font-size: 20.5333px\">events 1 and 2 are mutually exclusive<\/span><\/li>\n<\/ul>\n<h1>Testing for Independence (Example)<\/h1>\n<ul>\n<li>\n<div>We can test for any events where P(A|B) = P(A)<\/div>\n<\/li>\n<li>\n<div>Or we can test if P(A and B) =P(A)\u00d7P(B)<\/div>\n<\/li>\n<li>\n<div><\/div>\n<div>If this is true, then the events (we call them &#8216;A&#8217; and &#8216;B&#8217; for simplicity here) are independent<\/div>\n<\/li>\n<li>\n<div><span style=\"font-size: 20.5333px\">See the next examples of this testing.<\/span><\/div>\n<\/li>\n<\/ul>\n<h2>Example 19.2<\/h2>\n<p><span style=\"color: #003366\"><strong>Problem Setup<\/strong><\/span>: Let us take a simple example of coffee and tea drinkers. Let&#8217;s use the following notation:<\/p>\n<ul>\n<li>P(T) = probability of drinking tea<\/li>\n<li>P(C) = probability of drinking coffee<\/li>\n<\/ul>\n<p>See the contingency table for coffee and tea drinkers below:<\/p>\n<table class=\"grid aligncenter\">\n<tbody>\n<tr>\n<td style=\"text-align: center\"><\/td>\n<th style=\"text-align: center\">Drinks Coffee<\/th>\n<th style=\"text-align: center\">Doesn&#8217;t Drink Coffee<\/th>\n<th style=\"text-align: center\">Totals<\/th>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">Drinks Tea<\/th>\n<td style=\"text-align: center\">0.6<\/td>\n<td style=\"text-align: center\">0.075<\/td>\n<td style=\"text-align: center\">0.675<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">Doesn&#8217;t Drink Tea<\/th>\n<td style=\"text-align: center\">0.2<\/td>\n<td style=\"text-align: center\">0.125<\/td>\n<td style=\"text-align: center\">0.325<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">Totals<\/th>\n<td style=\"text-align: center\">0.8<\/td>\n<td style=\"text-align: center\">0.2<\/td>\n<td style=\"text-align: center\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #003366\"><strong>Question<\/strong><\/span>: Are drinking coffee and tea independent events?<\/p>\n<p><span style=\"color: #003366\"><strong>Solutions<\/strong><\/span>: Let&#8217;s start by writing out the values we will use from the above table:<\/p>\n<ul>\n<li>P(Drinks Coffee) = P(C) = 0.8<\/li>\n<li>P(Drinks Tea) = P(T) = 0.675<\/li>\n<li>P(Drinks Coffee and Drinks Tea) = P(C and T) = 0.6<\/li>\n<\/ul>\n<p>Let&#8217;s test, is P(C and T) = P(C)\u00d7P(T)?<\/p>\n<ul>\n<li>P(C)\u00d7P(T) = 0.8\u00d70.675 = 0.54<\/li>\n<li>P(C and T) = 0.6 \u2260 0.54<\/li>\n<\/ul>\n<p><span style=\"color: #003366\"><strong>Conclusion<\/strong><\/span>: Because P(C and T) \u2260 P(C)\u00d7P(T), coffee and tea drinking are not independent events. Ie: whether someone drinks coffee has an effect on whether or not they choose to drink tea.<\/p>\n<h1>Key Takeaways (EXERCISE)<\/h1>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Key Takeaways: Mutually Exclusive and Independent Events<\/p>\n<p>&nbsp;<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<div id=\"h5p-47\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-47\" class=\"h5p-iframe\" data-content-id=\"47\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Key Takeaways for Mutually Exclusive and Independent Events\"><\/iframe><\/div>\n<\/div>\n<div id=\"h5p-48\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-48\" class=\"h5p-iframe\" data-content-id=\"48\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Key Takeaways for Mutually Exclusive and Independent Events Solutions\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<\/div>\n<h1>Your Own Notes (EXERCISE)<\/h1>\n<ul>\n<li>Are there any notes you want to take from this section? Is there anything you&#8217;d like to copy and paste below?<\/li>\n<li>These notes are for you only (they will not be stored anywhere)<\/li>\n<li>Make sure to download them at the end to use as a reference<\/li>\n<\/ul>\n<div id=\"h5p-16\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-16\" class=\"h5p-iframe\" data-content-id=\"16\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Key takeaways, notes and comments from this section document tool.\"><\/iframe><\/div>\n<\/div>\n","protected":false},"author":865,"menu_order":6,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1220","chapter","type-chapter","status-publish","hentry"],"part":208,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/pressbooks\/v2\/chapters\/1220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/wp\/v2\/users\/865"}],"version-history":[{"count":12,"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/pressbooks\/v2\/chapters\/1220\/revisions"}],"predecessor-version":[{"id":1950,"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/pressbooks\/v2\/chapters\/1220\/revisions\/1950"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/pressbooks\/v2\/parts\/208"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/pressbooks\/v2\/chapters\/1220\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/pressbooks\/v2\/chapter-type?post=1220"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/wp\/v2\/contributor?post=1220"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/1130sandbox\/wp-json\/wp\/v2\/license?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}