A discrete random variable is a variable whose value can only take on a finite or countably infinite number of values. Examples include the number of heads when flipping a coin a fixed number of times, or the number of defective items in a batch.
The probability distribution of a discrete random variable specifies the probability of each possible value of the variable.
Example:
Consider a random variable \(X\) representing the number of heads when flipping a fair coin twice. The possible values are 0, 1, and 2. The probability distribution can be specified as follows:
| x (Number of Heads) | p(x) |
|---|---|
| 0 | 0.25 |
| 1 | 0.50 |
| 2 | 0.25 |
The PMF can be written as:
\(p(x) = \begin{cases} 0.25, & x = 0 \\ 0.50, & x = 1 \\ 0.25, & x = 2 \\ 0, & \text{otherwise} \end{cases}\)
The mean (or expected value), denoted by \(\mu\) or \(E(X)\), represents the average value of the random variable. It is calculated as:
The variance, denoted by \(\sigma^2\) or \(Var(X)\), measures the spread of the distribution around the mean. It is calculated as:
An alternative (computational) formula for variance is:
The standard deviation, denoted by \(\sigma\) or \(SD(X)\), is the square root of the variance and provides a measure of the spread in the same units as the random variable.
Example:
Using the previous example of flipping a fair coin twice:
\(\mu = (0 \times 0.25) + (1 \times 0.50) + (2 \times 0.25) = 1\)
\(\sigma^2 = (0-1)^2 \times 0.25 + (1-1)^2 \times 0.50 + (2-1)^2 \times 0.25 = 0.5\)
\(\sigma = \sqrt{0.5} \approx 0.707\)
A Bernoulli trial is a random experiment with only two possible outcomes: success (S) or failure (F). The probability of success is denoted by \(p\), and the probability of failure is \(1-p\).
The binomial distribution, denoted by \(Bi(n, p)\), models the number of successes in \(n\) independent Bernoulli trials, where each trial has a probability of success \(p\).
The PMF of the binomial distribution is given by:
where \(k\) is the number of successes (0, 1, 2, …, n) and \({n \choose k} = \frac{n!}{k!(n-k)!}\) is the binomial coefficient.
For a binomial distribution \(Bi(n, p)\):
Example:
Suppose we flip a fair coin 5 times. Let \(X\) be the number of heads. Then \(X \sim Bi(5, 0.5)\).
\(P(X = 2) = {5 \choose 2} (0.5)^2 (0.5)^3 = 10 \times 0.25 \times 0.125 = 0.3125\)
\(\mu = 5 \times 0.5 = 2.5\)
\(\sigma^2 = 5 \times 0.5 \times 0.5 = 1.25\)
\(\sigma = \sqrt{1.25} \approx 1.118\)
For the binomial distribution \(Bi(n, p)\):
Diagrams would visually show how changes in n and p affect the shape and position of the binomial distribution’s PMF. Specifically, histograms showing distributions with different n and p values. Describing these diagrams in detail is key if the diagrams cannot be included.
Probabilities for specific values or intervals can be calculated using the PMF.
The conditional probability of event A given event B is defined as:
where \(P(A \cap B)\) is the probability of both A and B occurring, and \(P(B)\) is the probability of B occurring.
Example:
Consider rolling a fair six-sided die. Let \(X\) be the number rolled. Find the probability that \(X\) is even given that \(X\) is greater than 2.
\(A\): \(X\) is even (i.e., X = 2, 4, 6)
\(B\): \(X\) is greater than 2 (i.e., X = 3, 4, 5, 6)
\(P(A \cap B)\): \(X\) is even and greater than 2 (i.e., X = 4, 6). \(P(A \cap B) = 2/6 = 1/3\)
\(P(B) = 4/6 = 2/3\)
\(P(A|B) = \frac{1/3}{2/3} = \frac{1}{2}\)
Free exam-style questions on Discrete Random Variables with instant AI feedback.
A fair six-sided die is rolled. Let $X$ be the random variable representing the number rolled. State the mean and standard deviation of $X$.
A shipping company, 'CargoMax', insures its delivery vans against accidents. Historical data suggests that the number of accidents a van exp…
A company manufactures smartphones. A quality control inspector randomly selects 4 smartphones from each batch for testing. The probability…