Kasus dan hukum probabilitas total

Interactive · 6 questions

The Law of Total Probability

Before diving into this topic, consider the following scenario.

There is a nation called ExpiiLand this country is made up of four provinces.

  • ExLand --> Exland is 3838 miles wide and 2020 miles long.
  • Xorland --> XORland is 2222 miles wide and 2929 miles long.
  • PoLandia --> PoLandia is 3636 miles by 1818 miles.
  • Infinite Isle --> Infinite Isle is 3939 miles by 4242 miles.

What is the total area of ExpiiLand?

Choose one answer

Read · 3 min

Casework

Casework is the method of solving probability problems by considering the different cases of a particular problem and adding them together. Casework is not the most glamorous of methods in solving problems, but it is a brute force way if you do not know any other ways to solve the problem. Let's do an example where the casework method is used, then you will see how much time it may consume.

Example of Casework

Question: How many three-digit numbers satisfy the property that the middle digit is the average of the first and last digits?

This may be a lot to process. But let's break it down. Let's say that we have three-digit number ABCABC. The question is asking how many three-digit numbers satisfy B=(A+C)/2B = (A+C)/2? Let's do some casework.

We notice that if the middle digit is the average of the first and last digits, then that means that: 2B=A+C2B = A + C, or twice the middle digit is equal to the summation of the first and last digit. Let's also denote a variable nn that is equal to the summation of all possible numbers that satisfy the given conditions.

If the middle digit is 11, possible numbers that satisfy this case are 111111 and 210210. Therefore n1=2n_1 = 2

If the middle digit is 22, possible numbers that satisfy this case are 123123, 222222, 321321, and 420420. Therefore n2=4n_2 = 4

If the middle digit is 33, possible numbers that satisfy this case are 135135, 234234, 333333, 432432, 531531, and 630630. Therefore n3=6n_3 = 6

If the middle digit is 44, possible numbers that satisfy this case are 147147, 246246, 345345, 444444, 543543, 642642, 741741, and 840840. Therefore n4=8n_4 = 8

If the middle digit is 55, possible numbers that satisfy this case are 159159, 258258, 357357, 456456, 555555, 654654, 753753, 852852, and 951951. Therefore n5=9n_5 = 9

If the middle digit is 66, possible numbers that satisfy this case are 369369, 468468, 567567, 666666, 765765, 864864, and 963963. Therefore n6=7n_6 = 7

If the middle digit is 77, possible numbers that satisfy this case are 579579, 678678, 777777, 876876, and 975975. Therefore n7=5n_7 = 5

If the middle digit is 88, possible numbers that satisfy this case are 789789, 888888, and 987987. Therefore n8=3n_8 = 3

If the middle digit is 99, possible numbers that satisfy this case are 999999. Therefore n9=1n_9 = 1

So our total nn value will be n=n1+n2+n3...+n8+n9n = n_1 + n_2 + n_3...+n_8+n_9 which is: n=2+4+6+8+9+7+5+3+1=45n = 2 + 4 + 6 +8 + 9 + 7 + 5 + 3 + 1 = 45

Therefore, there are 4545 combinations that will satisfy our prompt. Now, that took quite a while to analyze. You may not have that much time on a test. Let's look at the law of total probability to give you another tool to use so you can save some time!

The Law of Total Probability

The Law of Total Probability is a rule that makes it easier to find the probability of an outcome which has multiple parts to it, also known as events.

If B1,B2,B3,⋯B_1, B_2, B_3,\cdots is a partition, or part, of the sample space SS, then for any event in the same sample space, AA, we have P(A)=∑iP(A∩Bi)=∑iP(A∣Bi)P(Bi).P(A)=\sum_{i} P(A \cap B_i)=\sum_{i} P(A | B_i) P(B_i).

This can be read as "The probability of AA happening is equal to the probability of AA, given that BB happens multiplied with the probability of BB happening."

We can use a form of casework with these problems, where we will find values for each event, then add them at the end to find the total probability. Here is an example.

Example of the Law of Total Probability

Let's say that we have 3 boxes of crayons, each box contains a certain number of Frankenstein green, Pumpkin orange, or Witchy purple crayons (spooky colors for Halloween). The three boxes contain the following crayons:

Box 1: 3 Frankenstein green, 1 Pumpkin orange, 4 Witchy purple

Box 2: 1 Frankenstein green, 5 Pumpkin orange, 2 Witchy purple

Box 3: 4 Frankenstein green, 3 Pumpkin orange, 1 Witchy purple

Now, I select a box by drawing a stick out of a bag. Each stick has a number, 00 through 44. If I draw 00, I pick Box 11. If I draw an otherwise even number (2,4),(2, 4), I pick Box 22; otherwise I pick Box 33.

If I want to use a Pumpkin orange crayon, what is the probability that I get a Pumpkin orange crayon from one of the boxes? Let's elaborate.

The probability that I select a Pumpkin orange crayon from Box 1 is: 15×18\frac{1}{5} \times \frac{1}{8}. Since I can pick 11 out of 55 sticks that allow me to pick Box 11, then from Box 11, I can pick 11 out of 88 crayons that are Pumpkin orange. Therefore, my total probability of getting a Pumpkin orange crayon from Box 1 is: 15×18=140\frac{1}{5} \times \frac{1}{8} = \frac{1}{40}

The probability that I select a Pumpkin orange crayon from Box 2 is: 25×58=1040=14\frac{2}{5} \times \frac{5}{8} = \frac{10}{40} = \frac{1}{4}

The probability that I select a Pumpkin orange crayon from Box 3 is: 25×38=640=320\frac{2}{5} \times \frac{3}{8} = \frac{6}{40} = \frac{3}{20}

Now, we need to add each probability together to get the total probability. This looks like: 140+14+320=1740\frac{1}{40} + \frac{1}{4} + \frac{3}{20} = \frac{17}{40}

Therefore, out of the 4040 ways I can get a crayon, there are 1717 instances in which I can get a specifically Pumpkin orange crayon.

Read · 1 min

The law of total probability is a rule allowing us to compute the probability of an outcome that can be achieved through multiple different events.

For example, suppose we have a three bags containing the following marbles:

  • Bag A: 1010 red marbles, 55 blue marbles
  • Bag B: 55 red marbles, 77 blue marbles
  • Bag C: 77 red marbles, 1313 blue marbles

Now, I select a bag by rolling a standard 66-sided die. If the die shows 11, I draw a random marble from Bag A; if the die shows 22 or 3,3, I draw a random marble from Bag B; otherwise, I draw a random marble from Bag C.

What is the probability that I draw a red marble?

Here, there are three ways I could have drawn a red marble: I have drawn it from each of Bags A, B, and C. Let's do some casework!

The probability that I selected Bag A and drew a red marble is 16×1015\frac16 \times \frac{10}{15}.

The probability that I selected Bag B and drew a red marble is 26×512\frac26 \times \frac{5}{12}.

The probability that I selected Bag C and drew a red marble is 36×720\frac36 \times \frac{7}{20}.

So hence, the total probability that I drew a red marble is 16×1015+26×512+36×720=1740.\frac16 \times \frac{10}{15} + \frac26 \times \frac{5}{12} + \frac36 \times \frac{7}{20} = \boxed{\frac{17}{40}}.

Video

(Video) Law of Total Probability Problem 1

by Tutorials Point

In this video, we walkthrough a problem involving the law of total probability.

Summary\large{\text{Summary}}

Bag 11: Has 44 red, and 33 blue balls. Bag 22: Has 44 blue and 22 red balls. One bag is selected at random, find probability drawn ball is red.

Bag 11 is Event 11. Bag 22 is Event 22. Probability of event 11 happens which leads to p(A∣E1)p(A|E_1). Probability of event 22 happens which leads to p(A∣E2)p(A|E_2).

Law of probability states: p(A)=p(E1)⋅p(A∣E1)+p(E2)⋅p(A∣E2)p(A) = p(E_1)\cdot{p(A|E_1)} + p(E_2)\cdot{p(A|E_2)}

The probability of choosing the first bag: p(E1)p(E_1). This is 12\frac{1}{2} since there are 22 bags.

The probability the ball picked from the first bag is red: p(A∣E1)p(A|E_1). This is 47\frac{4}{7} since there are 77 balls total and 44 are red.

The probability of choosing the second bag: p(E2)p(E_2). This is 12\frac{1}{2} since there are 22 bags.

The probability the ball picked from the second bag is red: p(A∣E2)p(A|E_2). This is 26\frac{2}{6} since there are 66 balls total and 22 are red.

Now, p(A)=p(E1)⋅p(A∣E1)+p(E2)⋅p(A∣E2)=12⋅47+12⋅26=12⋅427+12⋅26=27+16=27⋅66+16⋅77=1242+742=1942\begin{align} p(A) &= p(E_1)\cdot{p(A|E_1)} + p(E_2)\cdot{p(A|E_2)}\\ &= \frac{1}{2}\cdot{\frac{4}{7}} + \frac{1}{2}\cdot{\frac{2}{6}}\\ &= \frac{1}{\cancel{2}}\cdot{\frac{\cancel{4}^2}{7}} + \frac{1}{\cancel{2}}\cdot{\frac{\cancel{2}}{6}}\\ &={\frac{2}{7}} + \frac{1}{6}\\ &={\frac{2}{7}}\cdot{\frac{6}{6}} + \frac{1}{6}\cdot{\frac{7}{7}}\\ &={\frac{12}{42}}+ \frac{7}{42}\\ &={\frac{19}{42}} \end{align}

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems