Probability - Fundamentals
Frequency and Probability
- The frequency is the measured amount. For example, if you roll a six sided dice 60 times, you might find you get a six 9 times.
- As you increase the number of throws to infinite, you get closer to the true probability of 1/6
Random variable
We use the Greek letter xi
Example: Mutually exclusive events
If we make some categories: small numbers are 1 and 2 and large are 5 and 6.
However, in this case:
We can't just add
Certain and impossible events
- Even if the probability is 1 or zero, that doesn't always mean that it is certain or impossible. We say "almost certain"
Example: Testing a sports team for blood doping
A sports team has 11 members. Two of them are blood doping. What is the probability that you test three of them and find no doping?
Since each time you test one member, there are less remaining to test.
Example: Sampling a large population to find a rare mutant.
In a very large wild population of plants, 1% have a rare mutation. What's the probability of finding at least one mutant in the population based on a sample size of
It's difficult to find at least one. Since we would need to account for lots of situations: The first one sampled is a mutant, or the first one isn't but the second is, or the first two are mutants, etc...
It's easier to find the probability that there are no mutants. Then
Note that unlike the previous example, this time we do not change the probability after sampling each individual. This is because we are looking at a very large population and we assume that removing 1 individual doesn't affect the overall frequency of this mutation in the population.
Therefore:
If we are designing an experiment where we need to capture some of these mutants, what sample size would we need to be 95% confident that we catch at least one?
Solve for
So in practice we would use a sample size of 300.
Conditional Probability
In the UK, 10% of males are left handed but only 8% of females.
There is a 50% probability that someone is male or female.
The probablility someone is male and left handed:
Same for female. So overall
This continues in the next lecture Conditional Probability