Discrete Probability II
Random Variables
- A random variable is a function , where is the sample space.
- It assigns a real number to each outcome in the sample space.
- The randomness comes from the initial random selection of from .
- Denoted by capital letters such as , , or .
Probability Distributions
- A probability distribution is a function that assigns a probability to each member of a set, such that the probabilities add up to 1.
- For a random variable , each possible value has a probability, written as .
- The probabilities of the values of constitute the probability distribution of .
- Events have probabilities, while random variables have probability distributions.
- Two random variables and are independent if .
Expectation
- Expectation of a random variable is a representative value, also called the expected value or mean.
- , where the sum is over all possible values of .
- if is a constant.
- if is a constant.
Linearity of Expectation
- For any random variables and , .
- If and are independent, then .
Median
- The median of a random variable is a real number such that and .
Mode
- The mode of a random variable is the value for which is greatest.
Variance
- Variance of a random variable measures how far its values tend to be from its expected value .
- Standard deviation of .
- If and are independent, then .
Chebyshev’s Inequality
- For any random variable with expectation and variance , and any , the probability that is at least standard deviations away from its mean is at most : .
Uniform Distribution
- Each integer between and inclusive has the same probability, and all other integers have zero probability.
- Pr(X = x) = {\begin{array}{ll} \frac{1}{b-a+1}, & \text{if } a \le x \le b; \ 0, & \text{otherwise.} \end{array}
Binomial Distribution
- A Bernoulli trial is a random experiment with two possible outcomes: success (probability ) and failure (probability ).
- X = {\begin{array}{ll} 1, & \text{with probability } p; \ 0, & \text{with probability } 1-p. \end{array}
- The binomial distribution gives the probability of successes in Bernoulli trials: .
Poisson Distribution
- , for all .
- The Poisson distribution is often used as an approximation to the Binomial distribution when is large and is small.
Geometric Distribution
- , for every .
- The geometric distribution has the memoryless property.
- If and , then the distribution of given that is also geometric with probability .
Coupon Collector's Problem
- Let random variable be the number of trials until we have seen each possible outcome at least once.
- , where is the -th harmonic number.
- , where is the Euler-Mascheroni constant.