Experiment: Process that results in one or many observations.
Outcome: Observations of an experiment.
Sample Space (S): Set of all possible outcomes.
Event(s): Any subset of the sample space.
Example: Experiment: Toss a coin once.
- S = { Heads, Tails }
Example: Experiment: Toss a coin twice.
- S = { HH, HT, TH, TT }
- E = { Heads on the first flip }
- This is true for { HH, HT }
Complement: A^c or \bar{A}
Union: A \cup B
Intersection: A \cap B
Disjoint Events: A \cap B = \emptyset
Q: Given
S = \{ 1, 2, 3, 4, 5, 6 \}
A = \{ 2, 4, 6 \}
B = \{ 3, 6 \}
Find:
A:
Related Notes: Operations on Sets - CS1300
- Note: Probability can be represented with Venn diagrams.
\boxed{ P(E) = \frac{\text{\# of outcomes in $E$ occured}}{\text{\# of outcomes in $S$ occured}} } \\~\\ \small\textit{Given that all outcomes in $S$ are equally likely}
More Rules:
Let A, B, and C be events.
A and B are disjoint (mutually exclusive) if and only if P(A \cap B) = 0
There’s a box containing 1 white ball and 3 black balls.
A = { The first ball is white } B = { The second ball is white }
Exp 1: Select two balls at random in a row with replacement.
Exp 2: Select two balls at random in a row without replacement.
Marginal Probability: Probability of a single event without considering any other events.
Joint Probability: Probability of two events occurring simultaneously.
Note: Both probabilities are out of n.
Ex: Select one employee at random out of 100 employees.
| Smoke | Not Smoke | ||
|---|---|---|---|
| Male | 45 | 15 | 60 |
| Female | 10 | 30 | 40 |
| 55 | 45 | 100 |
Conditional Probability: P(A|B): Probability of A given B
\boxed{ P(A|B) = \frac{ P(A \cap B) }{ P(B) } }
Q: Construct the probability table from the following information
There are 30 students in class, 10 students are female and 12 students are from LA county. There are 3 female students from LA county.
| Female | Male | |
|---|---|---|
| LA County | ||
| Other Counties |
A:
| Female | Male | ||
|---|---|---|---|
| LA County | 3 | 12 | |
| Other Counties | |||
| 10 | 30 |
| Female | Male | ||
|---|---|---|---|
| LA County | 3 | 12 | |
| Other Counties | 18 | ||
| 10 | 20 | 30 |
| Female | Male | ||
|---|---|---|---|
| LA County | 3 | 9 | 12 |
| Other Counties | 7 | 11 | 18 |
| 10 | 20 | 30 |
Q: One student will be selected at random, what is the probability that the selected student is:
A:
If A and B are independent, then P(A|B) = P(A) and P(B|A) = P(B), furthermore:
\boxed{ \text{If A and B are independent: } P(A) = P(A|B) = P(A | B^c ) }
\boxed{ P(A \cap B) = P(A|B) P(B) \lor P(B|A) P(A) }
Q: There are 10 students and 6 of them are women.
We take a sample of two students (w/out replacement), find the probability that both students are women.
A:
\begin{aligned} P(W_1 \cap W_2) &= P(W_1) P(W_2 | W_1) \\ &= \frac{6}{10} \times \frac{5}{9} \\ &= \frac{1}{3} \end{aligned}
Q: Find the probability that the first student is a woman and the second student is a man.
A:
\begin{aligned} P(W_1 \cap M_2) &= P(W_1) P(M_2 | W_1) \\ &= \frac{6}{10} \times \frac{4}{9} \\ &= \frac{4}{15} \end{aligned}Q: Let P(A)=0.7 and P(B|A)=0.4, find P(A \cap B)
A:
\begin{aligned} P(A \cap B) &= P(B|A)P(A) \\ &= 0.4 \times 0.7 \\ &= 0.28 \end{aligned}Q: 70% of a population are male. 40% of males smoke.
When a person is chosen at random from this population, find the probability that the person is a male smoke.
A:
Let A = Male and B = Smoker
We have been told that P(A)=0.7 and P(B|A)=0.4, so:
P(A \cap B) = P(B|A) P(A) = 0.4 \times 0.7 = 0.28Rule of Total Probability:
\boxed{ \text{Rule of Total Probability: } P(A) = P(A|B)P(B) + P(A|B^c) P(B^c) }
Q: There are 10 students and 6 of them are women.
Suppose we take a sample of two students (w/o replacement). Find the probability that the second student is a woman.
A:
We will consider two cases:
Q: There is an urn containing three white balls and four black. One ball will be drawn at random and put back into the urn with another of a kind. Another ball will be drawn at random after adding another ball of the same color into the urn.
What is the probability the second ball is black?
A:
We will consider two cases:
P(B|A) = \frac{P(B \cap A)}{P(A)} = \frac{P(A|B)P(B)}{P(A|B)P(B) + P(A|B^c)P(B^c)}
Q:
\begin{aligned} P(W_1 | W_2) &= \frac{P(W_1 \cap W_2)}{P(W_2)} \\ &= \frac{P(W_2|W_1) P(W_1)}{P(W_2|W_1)P(W_1) + P(W_2|M_1)P(M_1)} \\ &= \frac{ \frac{5}{9} \times \frac{6}{10} }{ \frac{3}{5} } \\ &= \frac{5}{9} \end{aligned}