
Understand and be able to work with basic rules of probability.
Understand and be able to work with probability distributions in R.
Needed for:
Maximum Likelihood and Bayes Theorem; the latter is fundamental to Bayesian statistics.
Formulating models using different probability distributions.

(probability of “A given B”)

You are analyzing scat samples from a population of black bears to understand their seasonal diet.
If you randomly select a scat sample that contains Berries, what is the probability that it also contains Fish?
Want to find: P(F \(|\) B)
= P(F and B)/P(B)
= 0.37/0.50 = 0.74
You are an observer on a commercial vessel targeting Yellowfin Tuna. You are monitoring hauls for the presence of Tuna and protected Sea Turtles.
Based on your observer logs:
What percent of the hauls include neither Tuna nor a Sea Turtle?
P(not(T or S))
= 1 – P(T or S)
= 1 – [P(T) + P(S) – P(T and S)]
= 1 – [0.2 + 0.05 – 0.01] = 0.76
A wildlife biologist surveys 100 different plots, looking for pheasants. Suppose:
30% of the plots contain pheasants.
The biologist has a 60% chance of detecting pheasants when they are present.
On what percentage of the plots should we expect the wildlife biologist to see a pheasant.
P(present and seen) = P(Seen \(|\) present)P(present)
= 0.3 x 0.6 = 0.18
Two events are mutually exclusive if they cannot both be true: P(A and B) = 0.
Sample Space
What about1:
P(A or B) = P(A) + P(B) for mutually exclusive events.
You are tracking radio-collared elk calves in Yellowstone to determine what is driving population declines. You classify the primary cause of death for each calf.
Let’s assume the probabilities for a specific season are:
What is the probability that a calf is killed by any predator? (i.e., Wolf OR Bear OR Cougar).
P(W or B or C) = P(W) + P(B) + P(C) = 0.30
Events A and B are independent if \(P(A \mid B) = P(A)\)
Intuitively, knowing that event B happened does not change the probability that event A happened.
If A and B are independent then:
\(P(A \mbox{ and } B) = P(A)P(B \mid A) = P(A)P(B)\)
We will use this rule to construct Likelihoods!
If events A and B are mutually exclusive:
If events A and B are independent:
If events \(B_1, B_2, \ldots, B_k\) are mutually exclusive and together make up all possibilities, then:
\(P(A) = \sum_iP(A|B_i)P(B_i)\)
Special Case: \(P(A) = P(A | B)P(B) + P(A | \mbox{not } B)P(\mbox{not } B)\)
Females can manipulate sex of the eggs they lay
Suppose:
Use the total law of probability to determine the probability(sex of new egg is male).
\(P(A) = \sum_iP(A|B_i)P(B_i)\)
Hint: let A = {male}, B = {previously parasitized, not previously parasitized}
Probability(sex of new egg is male)
= P(male & previously parasitized) + P(male & not previously parasitized)
= P(male | previously parasitized)P(previously parasitized) + P(male | not previously parasitized)*P(not previously parasitized)
= 0.2 x 0.9 + 0.05 x 0.8 = 0.22
Let \(\bar{A}\) = not(A)
\(P(A \mid B)\) = \(\frac{P(A \normalsize \mbox{ and } B)}{P(B)}\)
\(= \frac{P(B \mid A)P(A)}{P(B \mbox{ and } A) + P(B \mbox{ and } \bar{A}) }\)
\(= \frac{P(B \mid A)P(A)}{P(B \mid A)P(A) + P(B \mid \bar{A})P(\bar{A}) }\)
The last two expressions can be extended to more than 2 groups using the total law of probability
Caused by an extra copy of chromosome 21.
Given that one tests positive, what is the probability that the fetus has Down Syndrome? \(P(D | +)\)
Use Bayes rule: \(= P(A|B) = \frac{P(B \mid A)P(A)}{P(B \mid A)P(A) + P(B \mid \bar{A})P(\bar{A}) }\). It might also help to draw a probability tree.
\(P(D \mid +) = P(D \mbox{ and } +)/P(+)\)
= 0.0010125/[0.0010125 + 0.0499375] = 0.02
4 options, determined by 2 decisions
Step 1:
Step 2:
P(Win \(|\) Switch) = 0 + 2/3
P(Win \(|\) do not Switch) = 1/3 + 0 = 1/3
P(win \(|\) switch) = P(win & switch \(|\) car first)P(car first) + P(win & switch \(|\) goat first)P(goat first) = 0 + 2/3
P(win \(|\) stay put) = P(win & stay put \(|\) car first)P(car first) + P(win & stay put \(|\) goat first)P(goat first) = 1/3 + 0
For some interesting comments on the problem, see this website