Probability Foundations

STAT 20: Introduction to Probability and Statistics

Warmup Questions
10:00

If I roll a fair six-sided die, what is the chance that I will roll a multiple of 3 OR a multiple of 4?

Multiples of 3 in \(\{1, \ldots, 6\}\) are \(\{3, 6\}\), and the only multiple of 4 is \(\{4\}\). These two events don’t overlap (they are mutually exclusive), so by the addition rule, \(P(\text{multiple of 3 } OR \text{ multiple of 4}) = \frac{2}{6} + \frac{1}{6} = \frac{3}{6} = \frac{1}{2}\).

We have two events \(A\) and \(B\) in an outcome space \(\Omega\). If \(P(A) = 0.7\) and \(P(B) = 0.5\), can \(A\) and \(B\) be mutually exclusive? Draw a Venn diagram and say what is the biggest the intersection of \(A\) and \(B\) can be (an upper bound on \(P(A \cap B)\)), and what is the smallest it can be.

  • No. If \(A\) and \(B\) were mutually exclusive, \(P(A \cup B) = P(A) + P(B) = 1.2\).
  • We know that \(P(A \cup B) \le 1\). This means that \(A\) and \(B\) must overlap.
  • The intersection is largest when one of the events is wholly inside the other.
  • Here, \(P(B) < P(A)\), so we must have that \(B\) sits inside \(A\) (\(B \subset A\)).
  • Therefore, \(A \cap B = B\) and \(P(A \cap B) = P(B) = 0.5\).
  • We saw that \(P(A) + P(B) = 1.2\), but the biggest the union can be is 1.
  • This means that the sets have to overlap enough to make their union 1.
  • The smallest intersection has to be the amount greater than 1, which is \(0.2\).

Do you share a birthday with someone in the room? We have roughly 80 people in the classroom. Do you think the chance that you share a birthday with someone is more than 50% (just the day, for example, February 22)? How many people would you need in the room before the chance that two people have the same birthday is more than 50%? How would you even begin to think about this chance?

Concept review: Axioms

Axioms (rules) of probability

Let \(\Omega\) be the outcome space, and let \(P(A)\) denote the probability of the event \(A\). Then we have:

  1. \(P(A) \ge 0\)
  1. \(P(\Omega) = 1\)
  1. If \(A\) and \(B\) are mutually exclusive (\(A \cap B = \{\}\)), then \(P(A \cup B) = P(A) + P(B)\)

Concept Questions

Using Venn diagrams to compute probability

00:30

Consider the Venn diagram below, which has 20 possible outcomes in \(\Omega\), depicted by the purple dots. Suppose the dots represent equally likely outcomes. What is the probability of \(A\) or \(B\) or \(C\)? That is, what is \(P(A \cup B \cup C)\)?

Probability of two events…

xkcd comic showing two people discussing what it means to have a 50-50 chance

https://imgs.xkcd.com/comics/prediction.png

Box model

Suppose we toss a pair of fair six-sided dice, and sum the spots (such as when we play Monopoly). We want to model this using a box of tickets. Will the box shown here work? If so, how many times should we draw, and if not, why not?

Tossing a fair coin: how many heads do you expect?

Coin tosses: 10 times

set.seed(12345)

coin <- c("Heads", "Tails")
tosses <- sample(coin, 10, replace = TRUE)
data.frame(tosses) |>
  group_by(tosses) |> 
  summarise(n = n())
# A tibble: 2 × 2
  tosses     n
  <chr>  <int>
1 Heads      3
2 Tails      7

Coin tosses: 50 times

set.seed(12345)

tosses <- sample(coin, 50, replace = TRUE)
data.frame(tosses) |>
  group_by(tosses) |> 
  summarise(n = n())
# A tibble: 2 × 2
  tosses     n
  <chr>  <int>
1 Heads     15
2 Tails     35

Coin tosses: 500 times

set.seed(12345)

tosses <- sample(coin, 500, replace = TRUE)
data.frame(tosses) |>
  group_by(tosses) |> 
  summarise(n = n())
# A tibble: 2 × 2
  tosses     n
  <chr>  <int>
1 Heads    251
2 Tails    249

We see that as the number of tosses increases, the split of heads and tails begins to look closer to 50-50.

Looking at the proportion of tosses that land heads:

Here is a plot of the proportion of tosses that land heads when we toss a coin \(n\) times, where \(n\) varies from \(1\) to \(1000\).

How many tosses?

00:30

Suppose Ali and Bettina are playing a game, in which Ali tosses a fair coin \(n\) times, and Bettina wins one dollar from Ali if the proportion of heads is less than 0.4. Ali lets Bettina decide if \(n\) is 10 or 100.

Which \(n\) should Bettina choose?

Coin tossing game: You vs the prof!

  • Make groups of about 6-8 students each.
  • Each group should divide its members into two subgroups (who should not communicate)
  • Prof leaves the classroom, and tutors supervise.
  • In each group, one of the subgroups will flip a quarter 100 times and record the results as a sequence of 0’s and 1’s, with 1 representing the coin landing heads and 0 representing the coin landing tails.
  • The other subgroup will *make up * a sequence of length 100 0’s and 1’s which is supposed to represent the result of 100 coin flips and write this on a sheet of paper - but they mustn’t actually flip a coin, or use their phone, or use their computer etc. They also mustn’t talk to the other subgroup.
  • Now have someone from each of the subgroup go to the board and write their sequences. Each group therefore puts up a pair of sequences, one truly obtained by flipping coins and the other a fake one.
  • When all the groups are done, call the prof. back in and have them guess, for each group, which sequence is real and which is fake.

Worksheet: Probability Foundations
20:00

Lab 5: Probability
25:00