Complement 2: Combinatorics and Probability Distribution
Note
This content was crafted by Ms. Colleen Pfaff.
Combinations
Helpful Tip: If you are having trouble visualizing a probability problem draw it as a tree with each combination being a different branch.
Example Combinations
Red cars 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 chose 2 red cards
There are
ways to chose 2 black cards
In order to calculate probability need to find out the total number of possible ways to choose 4 cards.
Number of ways to chose 4 cards
Probability =
Discrete Probability
Example Discrete Probability
Calculate and
and
for a coin flip
Solution
Continuous Probability
and
Independent Variables
Example Independent Variables
Are temperature and size of a system independent
Solution
Yes temperature and size of system are independent!
Binomial Distribution
Success has probability p and failure has probability 1-p. Success typically has a value of 1 and failure a value of -1. These values for probability make sense because p + 1 - p = 1. Probability of k success(es) and n-k failures on n trials:
If we have k success on n trials then there must be n-k failures because there are only two possible outcomes. The average number of successful trials is the probability of success times the number of trials.
Drunk’s Walk
A man leaves the bar and he is just as likely to step to the left as he is the right. What is his average distance after n steps and what is the variance?
Solution
Let’s see what the possibilities are after 2 steps: LL, RR, LR, RL and the probability of each of these results is
And this means that after 2 steps the average distance is 0 We can extrapolate this to N steps because this behavior won’t change, therefore after N steps the average distance is 0.
So the value of . Whereas the value of
or any other combination can take a couple of forms: (1)(1), (-1)(1), (1)(-1), (1)(1)
Since or
is equally likely to be either 1 or -1 so like in the first step this will be 0
Therefore we have
for every N step