Worksheet: Discrete Random Variables

This page is provided by: statistical-calculators.site

In this worksheet, you will find questions and exercises on common discrete distributions. After the first question in each topic, a relevant calculator from my site will be displayed.

Discrete Uniform Distribution

1. A fair die is rolled once. Let \(X\) be the outcome. What is the probability that \(X=3\)?

Since the die is fair, each face has an equal probability of occurring. There are 6 possible faces (1, 2, 3, 4, 5, 6).
Therefore, \(P(X=k) = \frac{1}{n}\) where \(n\) is the number of possible outcomes.
In this case, \(n=6\), so \(P(X=3) = \frac{1}{6}\).

2. An integer is randomly selected from 1 to 10 (inclusive). What is the probability that the selected number is greater than 7?

The random variable \(X\) is uniformly distributed on the set \(\{1, 2, ..., 10\}\). There are 10 possible outcomes, each with probability \(\frac{1}{10}\).
The numbers greater than 7 are 8, 9, 10. There are 3 such numbers.
Therefore, \(P(X > 7) = P(X=8) + P(X=9) + P(X=10) = \frac{1}{10} + \frac{1}{10} + \frac{1}{10} = \frac{3}{10}\).

Binomial Distribution

1. A fair coin is tossed 5 times. What is the probability of getting exactly 3 heads?

This is a binomial distribution problem. Let \(X\) be the number of heads.
Number of trials, \(n=5\).
Probability of success (getting a head), \(p=0.5\).
Number of successes, \(k=3\).
The probability mass function (PMF) for a binomial distribution is:
\[P(X=k) = \binom{n}{k} p^k (1-p)^{n-k}\]
So, \(P(X=3) = \binom{5}{3} (0.5)^3 (1-0.5)^{5-3}\)
\(P(X=3) = 10 \times (0.5)^3 \times (0.5)^2 = 10 \times (0.5)^5 = 10 \times 0.03125 = 0.3125\).

2. In a certain factory, 10% of the products are defective. If 8 products are randomly sampled (with replacement, or from a very large population), what is the probability that at most one product is defective?

Let \(X\) be the number of defective products.
\(n=8\) (number of trials/products sampled).
\(p=0.1\) (probability of a product being defective).
We want to find \(P(X \le 1)\), which means \(P(X=0) + P(X=1)\).
\(P(X=0) = \binom{8}{0} (0.1)^0 (1-0.1)^{8-0} = 1 \times 1 \times (0.9)^8 \approx 0.43046721\)
\(P(X=1) = \binom{8}{1} (0.1)^1 (1-0.1)^{8-1} = 8 \times 0.1 \times (0.9)^7 \approx 8 \times 0.1 \times 0.4782969 = 0.38263752\)
\(P(X \le 1) = P(X=0) + P(X=1) \approx 0.43046721 + 0.38263752 \approx 0.81310473\).

Poisson Distribution

1. A telephone exchange receives an average of 3 calls per minute. What is the probability that exactly 2 calls will be received during a specific minute?

This is a Poisson distribution problem.
The average rate of events, \(\lambda = 3\) calls per minute.
We want to find the probability of \(k=2\) calls in a minute.
The PMF for a Poisson distribution is:
\[P(X=k) = \frac{e^{-\lambda} \lambda^k}{k!}\]
So, \(P(X=2) = \frac{e^{-3} 3^2}{2!} = \frac{e^{-3} \times 9}{2}\)
Using \(e^{-3} \approx 0.049787\),
\(P(X=2) \approx \frac{0.049787 \times 9}{2} \approx \frac{0.448083}{2} \approx 0.22404\).

2. The number of typos on a page in a book follows a Poisson distribution with an average of 0.5 typos per page. What is the probability that a specific page will have no typos at all?

Here, \(\lambda = 0.5\) errors per page.
We want to find the probability of \(k=0\) errors.
\(P(X=0) = \frac{e^{-0.5} (0.5)^0}{0!} = \frac{e^{-0.5} \times 1}{1} = e^{-0.5}\)
Using \(e^{-0.5} \approx 0.60653\).
So, \(P(X=0) \approx 0.60653\).

Geometric Distribution

1. A fair die is rolled repeatedly until the number 6 is obtained. What is the probability that the first time 6 is obtained is on the third roll?

This is a geometric distribution problem. Let \(X\) be the number of trials until the first success.
Probability of success (getting a 6), \(p = \frac{1}{6}\).
We want to find the probability that the first success is on the \(k=3\)-rd trial.
The PMF for a geometric distribution (number of trials) is:
\[P(X=k) = (1-p)^{k-1} p\]
So, \(P(X=3) = (1 - \frac{1}{6})^{3-1} \times \frac{1}{6} = (\frac{5}{6})^2 \times \frac{1}{6}\)
\(P(X=3) = \frac{25}{36} \times \frac{1}{6} = \frac{25}{216} \approx 0.11574\).

2. The probability that a basketball player makes a free throw is 0.7. The player shoots until they make their first shot. What is the probability that the first successful shot will be on the second or third attempt?

Probability of success (making a shot), \(p=0.7\).
We want to find \(P(X=2 \text{ or } X=3) = P(X=2) + P(X=3)\) since these are mutually exclusive events.
\(P(X=2) = (1-0.7)^{2-1} \times 0.7 = (0.3)^1 \times 0.7 = 0.3 \times 0.7 = 0.21\).
\(P(X=3) = (1-0.7)^{3-1} \times 0.7 = (0.3)^2 \times 0.7 = 0.09 \times 0.7 = 0.063\).
So, \(P(X=2 \text{ or } X=3) = 0.21 + 0.063 = 0.273\).

Hypergeometric Distribution

1. An urn contains 5 red balls and 7 blue balls. If 4 balls are randomly drawn without replacement, what is the probability that exactly 2 red balls are drawn?

This is a hypergeometric distribution problem.
Population size, \(N = 5 (\text{red}) + 7 (\text{blue}) = 12\).
Number of success states in population (red balls), \(K=5\).
Number of draws (sample size), \(n=4\).
Number of observed successes (red balls drawn), \(k=2\).
The PMF for a hypergeometric distribution is:
\[P(X=k) = \frac{\binom{K}{k} \binom{N-K}{n-k}}{\binom{N}{n}}\]
So, \(P(X=2) = \frac{\binom{5}{2} \binom{12-5}{4-2}}{\binom{12}{4}} = \frac{\binom{5}{2} \binom{7}{2}}{\binom{12}{4}}\)
\(\binom{5}{2} = \frac{5!}{2!(5-2)!} = \frac{5 \times 4}{2 \times 1} = 10\).
\(\binom{7}{2} = \frac{7!}{2!(7-2)!} = \frac{7 \times 6}{2 \times 1} = 21\).
\(\binom{12}{4} = \frac{12!}{4!(12-4)!} = \frac{12 \times 11 \times 10 \times 9}{4 \times 3 \times 2 \times 1} = 495\).
\(P(X=2) = \frac{10 \times 21}{495} = \frac{210}{495} \approx 0.42424\).

2. From a standard deck of 52 cards, 5 cards are drawn without replacement. What is the probability that exactly 3 of the drawn cards are hearts?

Population size, \(N=52\).
Number of hearts in the deck (success states), \(K=13\).
Number of cards drawn (sample size), \(n=5\).
Number of hearts drawn (observed successes), \(k=3\).
\(P(X=3) = \frac{\binom{13}{3} \binom{52-13}{5-3}}{\binom{52}{5}} = \frac{\binom{13}{3} \binom{39}{2}}{\binom{52}{5}}\)
\(\binom{13}{3} = \frac{13 \times 12 \times 11}{3 \times 2 \times 1} = 13 \times 2 \times 11 = 286\).
\(\binom{39}{2} = \frac{39 \times 38}{2 \times 1} = 39 \times 19 = 741\).
\(\binom{52}{5} = \frac{52 \times 51 \times 50 \times 49 \times 48}{5 \times 4 \times 3 \times 2 \times 1} = 2,598,960\).
\(P(X=3) = \frac{286 \times 741}{2,598,960} = \frac{211926}{2598960} \approx 0.08154\).

Short Quiz

1. Which distribution describes the number of successes in a series of \(n\) independent Bernoulli trials with a constant probability of success \(p\)?

2. What is the central parameter in a Poisson distribution?

3. A geometric distribution describes:

4. When is the hypergeometric distribution used?