Complement 2: Combinatorics and Probability Distributions
Note
This content was crafted by Ms. Colleen Pfaff.
Combinations
Helpful Tip: If you’re having trouble visualizing a probability problem, draw it as a tree diagram, with each combination forming a different branch.
Example Combinations
Red cards numbered 2–10 and black cards 2–10 are placed in a bag. If 4 cards are selected at random, what is the probability that 2 are red and 2 are black?
Solution
There are ways to choose 2 red cards.
There are
ways to choose 2 black cards.
To calculate the probability, we need the total number of ways to choose 4 cards:
Number of ways to choose 4 cards:
Probability =
Discrete Probability
Example Discrete Probability
Calculate ,
, and
for a coin flip.
Solution
Continuous Probability
and
Independent Variables
Example Independent Variables
Are temperature and the size of a system independent?
Solution
Yes, temperature and system size are independent!
Binomial Distribution
A success has probability , and a failure has probability
. Success typically has a value of 1 and failure a value of –1.
This makes sense since
.
Probability of successes and
failures in
trials:
If we have successes in
trials, then there must be
failures because there are only two possible outcomes.
The average number of successful trials is the probability of success times the number of trials:
Drunkard’s Walk
A man leaves the bar and he is just as likely to step to the left as to the right. What is his average distance after steps, and what is the variance?
Solution
Let’s examine the possible outcomes after 2 steps: LL, RR, LR, RL — and the probability of each of these outcomes is:
This means that after 2 steps, the average distance is 0.
We can extrapolate this behavior to steps — therefore, after
steps the average distance is still 0.
We know that:
Whereas each term like is equally likely to be 1 or –1, and thus averages to 0.
Therefore, for every steps: