<< Chapter < Page Chapter >> Page >

We will soon discover that this is a statement of Bayes' formula .

Let us first visualize the problem.

We are given a sample space S size 12{S} {} and two mutually exclusive events J I size 12{J`I} {} and J II size 12{J` ital "II"} {} . That is, the two events, J I size 12{J`I} {} and J II size 12{J` ital "II"} {} , divide the sample space into two parts such that J I J II = S size 12{J`I union J` ital "II"=S} {} . Furthermore, we are given an event B size 12{B} {} that has elements in both J I size 12{J`I} {} and J II size 12{J` ital "II"} {} , as shown in the Venn diagram below.

The figure shows another possible way of visualizing the probability of choosing a black or white marble from Jar I or Jar 2.

From the Venn diagram, we can see that

B = B J I B J II size 12{B= left (B intersection J`I right ) union left (B intersection J` ital "II" right )} {}

and

P B = P B J I + P B J II size 12{P left (B right )=P left (B intersection J`I right )+P left (B intersection J` ital "II" right )} {}

But the product rule in [link] gives us

P B J I = P J I P B J I size 12{P left (B intersection J`I right )=P left (J`I right ) cdot P left (B \lline J`I right )} {}       P B J II = P J II P B J II size 12{P left (B intersection J` ital "II" right )=P left (J` ital "II" right ) cdot P left (B \lline J` ital "II" right )} {}

Substituting in [link] , we get

P B = P J I P B J I + P J II P B J II size 12{P left (B right )=P left (J`I right ) cdot P left (B \lline J`I right )+P left (J` ital "II" right ) cdot P left (B \lline J` ital "II" right )} {}

The conditional probability formula gives us

P J I B = P J I B P B size 12{P left (J`I \lline B right )= { {P left (J`I intersection B right )} over {P left (B right )} } } {}

Therefore,

P J I B = P J I P B J I P B size 12{P left (J`I \lline B right )= { {P left (J`I cdot P left (B \lline J`I right ) right )} over {P left (B right )} } } {}

or,

P J I B = P J I P B J I P J I P B J I + P J II P B J II size 12{P left (J`I \lline B right )= { {P left (J`I right ) cdot P left (B \lline J`I right )} over {P left (J`I right ) cdot P left (B \lline J`I right )+P left (J` ital "II" right ) cdot P left (B \lline J` ital "II" right )} } } {}

The last statement is Bayes' Formula for the case where the sample space is divided into two partitions. The following is the generalization of this formula for n partitions.

Let S size 12{S} {} be a sample space that is divided into n size 12{n} {} partitions, A 1 size 12{A rSub { size 8{1} } } {} , A 2 size 12{A rSub { size 8{2} } } {} , . . . A n size 12{A rSub { size 8{n} } } {} . If E size 12{E} {} is any event in S size 12{S} {} , then

P A i E = P A i P E A i P A 1 P E A 1 + P A 2 P E A 2 + + P A n P E A n size 12{P left (A rSub { size 8{i} } \lline E right )= { {P left (A rSub { size 8{i} } right )P left (E \lline A rSub { size 8{i} } right )} over {P left (A rSub { size 8{1} } right )P left (E \lline A rSub { size 8{1} } right )+P left (A rSub { size 8{2} } right )P left (E \lline A rSub { size 8{2} } right )+ dotsaxis +P left (A rSub { size 8{n} } right )P left (E \lline A rSub { size 8{n} } right )} } } {}
Got questions? Get instant answers now!

We begin with the following example.

A department store buys 50% of its appliances from Manufacturer A, 30% from Manufacturer B, and 20% from Manufacturer C. It is estimated that 6% of Manufacturer A's appliances, 5% of Manufacturer B's appliances, and 4% of Manufacturer C's appliances need repair before the warranty expires. An appliance is chosen at random. If the appliance chosen needed repair before the warranty expired, what is the probability that the appliance was manufactured by Manufacturer A? Manufacturer B? Manufacturer C?

Let events A size 12{A} {} , B size 12{B} {} and C size 12{C} {} be the events that the appliance is manufactured by Manufacturer A, Manufacturer B, and Manufacturer C, respectively. Further, suppose that the event R size 12{R} {} denotes that the appliance needs repair before the warranty expires.

We need to find P A R size 12{P left (A \lline R right )} {} , P B R size 12{P left (B \lline R right )} {} and P C R size 12{P left (C \lline R right )} {} .

We will do this problem both by using a tree diagram and by using Bayes' formula.

We draw a tree diagram.

This Tree diagram depicts the probability that an appliance will need to be repaired before the warranty expires.

The probability P A R size 12{P left (A \lline R right )} {} , for example, is a fraction whose denominator is the sum of all probabilities of all branches of the tree that result in an appliance that needs repair before the warranty expires, and the numerator is the branch that is associated with Manufacturer A. P B R size 12{P left (B \lline R right )} {} and P C R size 12{P left (C \lline R right )} {} are found in the same way. We list both as follows:

P A R = . 030 . 030 + . 015 + . 008 = . 030 . 053 = . 566 size 12{P left (A \lline R right )= { { "." "030"} over { left ( "." "030" right )+ left ( "." "015" right )+ left ( "." "008" right )} } = { { "." "030"} over { "." "053"} } = "." "566"} {}

P B R = . 015 . 053 = . 283 size 12{P left (B \lline R right )= { { "." "015"} over { "." "053"} } = "." "283"} {} and P C R = . 008 . 053 = . 151 size 12{P left (C \lline R right )= { { "." "008"} over { "." "053"} } = "." "151"} {} .

Alternatively, using Bayes' formula,

P A R = P A P R A P A P R A + P B P R B + P C P R C = . 030 . 030 + . 015 + . 008 = . 030 . 053 = . 566 size 12{ matrix { P left (A \lline R right )= { {P left (A right )P left (R \lline A right )} over {P left (A right )P left (R \lline A right )+P left (B right )P left (R \lline B right )+P left (C right )P left (R \lline C right )} } {} ##= { { "." "030"} over { left ( "." "030" right )+ left ( "." "015" right )+ left ( "." "008" right )} } = { { "." "030"} over { "." "053"} } = "." "566" } } {}

P B R size 12{P left (B \lline R right )} {} and P C R size 12{P left (C \lline R right )} {} can be determined in the same manner.

Got questions? Get instant answers now!
Got questions? Get instant answers now!

There are five Jacy's department stores in San Jose. The distribution of number of employees by gender is given in the table below.

Store Number Number of Employees Percent of Women Employees
1 300 .40
2 150 .65
3 200 .60
4 250 .50
5 100 .70
Total=1000

If an employee chosen at random is a woman, what is the probability that the employee works at store III?

Let k = 1,2, ... , 5 size 12{k=1,2, dotslow ,5} {} be the event that the employee worked at store k size 12{k} {} , and W size 12{W} {} be the event that the employee is a woman. Since there are a total of 1000 employees at the five stores,

P 1 = . 30    size 12{P left (1 right )= "." "30"} {} P 2 = . 15    size 12{P left (2 right )= "." "15"} {} P 3 = . 20    size 12{P left (3 right )= "." "20"} {} P 4 = . 25    size 12{P left (4 right )= "." "25"} {} P 5 = . 10 size 12{P left (5 right )= "." "10"} {}

Using Bayes' formula,

P 3 W = P 3 P W 3 P 1 P W 1 + P 2 P W 2 + P 3 P W 3 + P 4 P W 4 + P 5 P W 5 = . 20 . 60 . 30 . 40 + . 15 . 65 + . 20 . 60 + . 25 . 50 + . 10 . 70 = . 2254 size 12{ matrix { P left (3 \lline W right )= { {P left (3 right )P left (W \lline 3 right )} over {P left (1 right )P left (W \lline 1 right )+P left (2 right )P left (W \lline 2 right )+P left (3 right )P left (W \lline 3 right )+P left (4 right )P left (W \lline 4 right )+P left (5 right )P left (W \lline 5 right )} } {} ##= { { left ( "." "20" right ) left ( "." "60" right )} over { left ( "." "30" right ) left ( "." "40" right )+ left ( "." "15" right ) left ( "." "65" right )+ left ( "." "20" right ) left ( "." "60" right )+ left ( "." "25" right ) left ( "." "50" right )+ left ( "." "10" right ) left ( "." "70" right )} } {} ## = "." "2254"} } {}
Got questions? Get instant answers now!
Got questions? Get instant answers now!

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Applied finite mathematics. OpenStax CNX. Jul 16, 2011 Download for free at http://cnx.org/content/col10613/1.5
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied finite mathematics' conversation and receive update notifications?

Ask