Example In a box there are three balls: red, green and blue. We - - PowerPoint PPT Presentation

example
SMART_READER_LITE
LIVE PREVIEW

Example In a box there are three balls: red, green and blue. We - - PowerPoint PPT Presentation

Example In a box there are three balls: red, green and blue. We draw one ball at random, replace it and draw a second ball. Describe the sample space for this experiment. How does the sample space change if we do not replace the first ball


slide-1
SLIDE 1

Example

In a box there are three balls: red, green and

  • blue. We draw one ball at random, replace it

and draw a second ball. Describe the sample space for this experiment. How does the sample space change if we do not replace the first ball before drawing the second one?

slide-2
SLIDE 2

Solution

Define the following: R = draw a red ball G = draw a green ball B = draw a blue ball Ω = { (R,R), (R,G), (R,B), (G,G), (G,R), (G,B), (B,B), (B,R), (B,G) } (with replacement) Ω = { (R,G), (R,B), (G,R), (G,B), (B,R), (B,G) } (without replacement)

slide-3
SLIDE 3

Example

We toss the same coin three times. Calculate probabilities of the following events: A = „we get exactly two heads” B = „we do not get two tails in a row” C = „we get at least one tails” D = „we get heads on the second throw”

slide-4
SLIDE 4

Solution

Possible results of throwing a coin three times: TTT HHH THT HHT TTH HTH THH HTT

slide-5
SLIDE 5

Solution

P(A) = 3/8 TTT HHH THT HHT TTH HTH THH HTT A = „we get exactly two heads”

slide-6
SLIDE 6

Solution

P(B) = 5/8 TTT HHH THT HHT TTH HTH THH HTT B = „we do not get two tails in a row”

slide-7
SLIDE 7

Solution

P(C) = 7/8 TTT HHH THT HHT TTH HTH THH HTT C = „we get at least one tails”

slide-8
SLIDE 8

Solution

P(D) = 4/8 = 1/2 TTT HHH THT HHT TTH HTH THH HTT

D = „we get heads on the second throw”

slide-9
SLIDE 9

Example

  • In a certain region weather on any day can be

classified as „good”, „moderate” and „bad”. Probability of each type of weather occuring on any day is 0.2, 0.5 and 0.3 respectively.

  • If the weather is good, probability of rain is 0.3. If

the weather is moderate, probability of rain is 0.5. If the weather is bad probability of rain is 0.9.

  • What is the probability that it will rain on any

day?

slide-10
SLIDE 10

Solution

𝑄 𝑕𝑝𝑝𝑒 𝑥𝑓𝑏𝑢ℎ𝑓𝑠 = 𝑄 𝐶1 = 0.2 𝑄 𝑛𝑝𝑒𝑓𝑠𝑏𝑢𝑓 𝑥𝑓𝑏𝑢ℎ𝑓𝑠 = 𝑄 𝐶2 = 0.5 𝑄 𝑐𝑏𝑒 𝑥𝑓𝑏𝑢ℎ𝑓𝑠 = 𝑄 𝐶3 = 0.3 𝑄 𝑠𝑏𝑗𝑜 𝑕𝑗𝑤𝑓𝑜 𝑕𝑝𝑝𝑒 𝑥𝑓𝑏𝑢ℎ𝑓𝑠 = 𝑄 𝐵|𝐶1 = 0.3 𝑄 𝑠𝑏𝑗𝑜 𝑕𝑗𝑤𝑓𝑜 𝑛𝑝𝑒𝑓𝑠𝑏𝑢𝑓 𝑥𝑓𝑏𝑢ℎ𝑓𝑠 = 𝑄 𝐵|𝐶2 = 0.5 𝑄 𝑠𝑏𝑗𝑜 𝑕𝑗𝑤𝑓𝑜 𝑐𝑏𝑒 𝑥𝑓𝑏𝑢ℎ𝑓𝑠 = 𝑄 𝐵|𝐶3 = 0.9 𝑄 𝑠𝑏𝑗𝑜 = 𝑄 𝐵 = 𝑄 𝐵|𝐶1 𝑄 𝐶1 + 𝑄 𝐵|𝐶2 𝑄 𝐶2 + 𝑄 𝐵|𝐶3 𝑄(𝐶3) = = 0.3 × 0.2 + 0.5 × 0.5 + 0.9 × 0.3 = 0.58

slide-11
SLIDE 11

Solution

good moderate bad 0.5 0.2 0.3 rain rain rain dry dry dry 0.3 0.5 0.9 0.7 0.5 0.1

slide-12
SLIDE 12

Solution

good moderate bad 0.5 0.2 0.3 rain rain rain dry dry dry 0.3 0.5 0.9 P(rain) = 0.3 × 0.2 + 0.5 × 0.5 + 0.9 × 0.3 = 0.58 0.7 0.5 0.1

slide-13
SLIDE 13

Example

In a company there are three categories of employees: admin (30% of employees), specialist (55% of employees) and executive (15% of employees). Probability of an employee receiving a bonus is equal to 0.2 for admin, 0.4 for specialist and 0.6 for executive. An employee was chosen at random. If we know that this employee has received a bonus, what is the probability that they belong to each of the three categories?

slide-14
SLIDE 14

Solution

𝑄 𝑏𝑒𝑛𝑗𝑜 = 𝑄 𝐶1 = 0.3 𝑄 𝑡𝑞𝑓𝑑𝑗𝑏𝑚𝑗𝑡𝑢 = 𝑄 𝐶2 = 0.55 𝑄 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑤𝑓 = 𝑄 𝐶3 = 0.15 𝑄 𝑐𝑝𝑜𝑣𝑡 𝑕𝑗𝑤𝑓𝑜 𝑏𝑒𝑛𝑗𝑜 = 𝑄 𝐵|𝐶1 = 0.2 𝑄 𝑐𝑝𝑜𝑣𝑡 𝑕𝑗𝑤𝑓𝑜 𝑡𝑞𝑓𝑑𝑗𝑏𝑚𝑗𝑡𝑢 = 𝑄 𝐵|𝐶2 = 0.4 𝑄 𝑐𝑝𝑜𝑣𝑡 𝑕𝑗𝑤𝑓𝑜 𝑓𝑦𝑓𝑑𝑣𝑢𝑗𝑤𝑓 = 𝑄 𝐵|𝐶3 = 0.6

𝑄 𝐵 = 0.3 × 0.2 + 0.55 × 0.4 + 0.15 × 0.6 = 0.37

slide-15
SLIDE 15

Solution

𝑄 𝐶1|𝐵 = 𝑄(𝐵|𝐶1) × 𝑄(𝐶1) 𝑄(𝐵) = 0.2 × 0.3 0.37 = 0.162 𝑄 𝐶2|𝐵 = 𝑄(𝐵|𝐶2) × 𝑄(𝐶2) 𝑄(𝐵) = 0.4 × 0.55 0.37 = 0.595 𝑄 𝐶3|𝐵 = 𝑄(𝐵|𝐶3) × 𝑄(𝐶3) 𝑄(𝐵) = 0.6 × 0.15 0.37 = 0.243