TL;DR Science: Exploration of Probability, Part 3

By Thomas P.

Jun 30, 2023 · 3 min read

This week's article is a continuation of our Probability series!

two-way table, expresses data based on two variables which often form categories. The coincidence of these two categories forms a conditional event.

Ex. 

The following table includes the coincidence of two categories: grade level (9th, 10th, 11th, or 12th grade) and pet preference (dog, cat, bird)

A survey was taken at your high school from the student population, which asked them about pet preferences. The two way table shows the findings.

Referring to the table, a conditional event in this case could be P(Prefers Dogs given is in 9th grade) or P(Dog | 9th grader). That means, from a pool of freshmen, what is the probability that one is likely to prefer dogs?

We can determine that the probability of P(Dog | 9th grader) is 1021 by referring to the table using the following system:

  1. Refer to the specific row of 9th graders, since we are taking from a pool of 9th graders

  2. Refer to the specific cell which gives the number of 9th graders who prefer dogs.

Since the probability of an event is defined by:

probability = (number of possible successful outcomes)/(number of possible outcomes)

Since the number of possible successes is 10 (9th grade ⋂ Prefers Dogs) (refers to orange highlighted number) and the number of possible outcomes is 21 (9th grade)(refers to green highlighted number), P(Dog | Freshman) = 10/21.

This examples leads us to the law of conditional probabilities:

P(A | B) = P(A ∩ B)/P(B)

“The probability of event A given event B is equal to the probability of event A and B divided by the probability of event B”.

This law is evidenced in the formula for dependent events: P(A ∩ B) =P(A) • P(B|A) (if you recall from the last article) or P(A ∩ B) =P(B) • P(A|B) (if you merely switch up the letters). Let’s take P(A ∩ B) =P(B) • P(A|B) for the sake of simplicity. If you divide both sides by P(B), you get the rule of P(A|B) from above.

We can also demonstrate the use of this formula through the two way table example above.

From the rule above, we can prove that P(Dog | 9th grader) =  1021  by dividing P(Dog ∩ 9th grader) by P(9th grade). Let me demonstrate:

P(A | B) = P(A ∩ B)/P(B)    (given)

P(Dog | 9th grader) = P(Dog ∩ 9th grader)/P(9th grader) = (10/88*)/(21/88**)(refer to table)

Highlighted in orange (also starred *) is P(Dog ∩ 9th grader), while what is highlighted in green (also starred **) is P(9th grader) both are in terms of the total number of students, which is 88. So, the probability that a student prefers a dog AND is a 9th grader is 10 students out of 88 in total while the probability that a student is 9th grader is 21/88.

(10/88*)/(21/88**) = (10/88)*(88/21) (separate into two fractions - keep, change flip)

=(10/21) (simplify)

So, P(A | B) = P(A ∩ B)/P(B) as evidenced above. An extension of this law can be taken from the law of dependent events: P(A ∩ B) =P(A) • P(B|A) in order to get rid of the P(A ∩ B) and break down the the formula all the way to events A, B, and B|A. This is called “Bayes’ Theorem”:

P(A | B) = P(A) • P(B|A)P(B)

Unfortunately, we don’t have time left in this story to discuss Bayes’ Theorem, but if you are interested here is some further reading: https://www.investopedia.com/terms/b/bayes-theorem.asp

About The Author

Thomas is a student at Eastside High School.

Did you enjoy this article?

Want to submit your own article? Reach out!

Discussion

More on this topic

TL;DR Science: Exploration of Probability, Part 2

Check out the next part of our probability series!

By Thomas P. · May 12, 2023

TL;DR Math: Probability Pt. 1

Have you ever heard someone say “There’s a 50/50 chance that ___ will occur”. Well what does that actually mean, and how can you apply the principles of probability to combine probabilities of…

By Thomas P. · Mar 3, 2023

TL;DR Calculus: The key to understanding science

Calculus is widely considered an intimidating subject that you shouldn’t take if you are not a maths person. At first, calculus can appear quite intimidating and abstract. But, this is greatly based…

By Philip A. · Feb 10, 2023

TL;DR Science SI Units of Measure and the metric system

You may be familiar with many of the measures called the metric system, customary system, but what do you know about the inner workings of the measures used by the scientific community? Check out…

By Thomas P. · Feb 23, 2022

TL;DR Science: Currency Inflation

Ever wonder about the ins and outs of currency inflation? Find out more in this week's article!

By Thomas P. · Oct 27, 2021