Probability Theory: Engaging Exercises and Solutions

Renda Zhang
8 min readJan 2, 2024

--

Section 1: Probability Basics

1. Multiple Choice Question: What is the sample space when rolling a fair six-sided die?

A) {1, 2, 3, 4, 5, 6}

B) {1, 2, 3, 4, 5}

C) {0, 1, 2, 3, 4, 5, 6}

D) All positive integers

2. Multiple Choice Question: If Event A is rolling an even number and Event B is rolling a number greater than 4, how are Events A and B related?

A) Mutually Exclusive

B) Independent

C) Dependent

D) Neither Independent nor Mutually Exclusive

3. Short Answer Question: Explain the significance and application scenarios of the addition rule in probability theory.

4. Short Answer Question: Why is the multiplication rule important in probability calculations? Please illustrate with an example.

5. Calculation Question: What is the probability of rolling a number greater than 4 with a fair six-sided die?

6. Calculation Question: What is the probability of drawing a heart from a standard deck of 52 playing cards?

You’re right, I missed that. Here is the Answer part for Section 1:

Solutions

1. A. {1, 2, 3, 4, 5, 6}

2. A. Mutually Exclusive

3. The addition rule in probability is used to determine the likelihood of either of two mutually exclusive events occurring. For example, in dice rolling, it’s used to calculate the probability of rolling either an odd or an even number.

4. The multiplication rule is crucial in calculating the probability of two independent events occurring simultaneously. For instance, the probability of rolling a 6 on the first try and an odd number on the second try in two independent dice rolls.

5. The probability of rolling a number greater than 4 (either 5 or 6) is 2/6, which simplifies to 1/3.

6. Since there are 13 hearts in a deck of 52 cards, the probability of drawing a heart is 13/52, which simplifies to 1/4.

Section 2: Random Variables and Probability Distributions

1. Fill-in-the-Blank Question: Define and distinguish between discrete and continuous random variables.

A discrete random variable is one that has a _______________ (finite/countable) set of possible values, such as the outcome of a dice roll. In contrast, a continuous random variable has a _______________ (infinite/uncountable) set of possible values, like measuring someone’s height.

2. Calculation Question: Calculate the probability for a specific probability distribution.

(a) In a binomial distribution experiment, conduct 10 independent trials with each having a success probability of 0.5. Calculate the probability of exactly 5 successes.

(b) If a random variable follows a normal distribution with a mean of 100 and a standard deviation of 15, calculate the probability of the variable being less than 90.

3. Application Question: Identify an appropriate probability distribution for a given real-life scenario and apply it.

Consider a scenario where a salesperson has a 20% chance of successfully selling a product with each phone call received. If the salesperson receives 15 calls in a day, calculate the probability of them making at least 3 successful sales. Which probability distribution should be used to solve this problem?

Solutions

1. A discrete random variable has a finite or countable set of possible values. A continuous random variable has an infinite and uncountable set of possible values.

2. (a) The probability in a binomial distribution is given by the formula P(X=k) = nCk × p^k × (1-p)^(n-k), where n=10, k=5, p=0.5. Therefore, P(X=5) = 10C5 × 0.5⁵ × 0.5⁵ ≈ 0.246.

(b) The probability for a normal distribution can be determined by standardizing and then consulting a z-table. Calculate Z = (X — μ)/σ, where X = 90, μ = 100, σ = 15. Therefore, Z = (90–100) / 15 ≈ -0.67. Refer to the standard normal distribution table for the probability corresponding to Z = -0.67.

3. This scenario should use the binomial distribution, as each phone call’s success is independent, and the probability of success is fixed. Let X be the number of successful sales in a day, calculate the probability P(X ≥ 3) using the binomial distribution formula.

Section 3: Expectation and Variance

1. Multiple Choice Question: Understand the definitions and significance of expectation and variance.

(a) The expectation (expected value) of a random variable refers to its: A) Average Value B) Median C) Mode D) Range

(b) Variance is used to measure: A) The average deviation of a random variable from its expected value B) The average difference between values of a random variable C) The total number of possible values of a random variable D) The range of distribution of a random variable

2. Calculation Question: Calculate the expected value and variance of a given random variable.

(a) What is the expected value of a fair six-sided die?

(b) Assume a random variable X has possible values 1, 2, 3, 4, 5, 6, each with a probability of 1/6. Calculate the variance of X.

3. Case Study: Analyze how expectation and variance affect decision-making.

In a new game, players can choose one of two modes: Mode A offers an average win of 2 dollars per play but with high variance in winnings; Mode B offers an average win of 1.8 dollars per play but with low variance. From a risk management perspective, which mode should be chosen?

Solutions

1. (a) A. Average Value (b) B. The average difference between values of a random variable

2. (a) The expected value of a fair six-sided die is (1+2+3+4+5+6)/6 = 3.5. (b) The variance of X is calculated as Σ((x_i — μ)² × P(x_i)), where μ is the expected value of X, and P(x_i) is the probability of x_i. The calculation yields a variance of (1/6)[(1–3.5)² + (2–3.5)² + (3–3.5)² + (4–3.5)² + (5–3.5)² + (6–3.5)²] ≈ 2.917.

3. From a risk management perspective, if a player prefers stability in earnings, Mode B should be chosen as it has a lower variance, meaning lesser fluctuations in winnings. Conversely, if a player is willing to accept higher risks for potentially higher returns, Mode A might be a better choice.

Section 3: Expectation and Variance

1. Multiple Choice Question: Understand the definitions and significance of expectation and variance.

1) The expectation (expected value) of a random variable refers to its:

A) Average Value

B) Median

C) Mode

D) Range

2) Variance is used to measure:

A) The average deviation of a random variable from its expected value

B) The average difference between values of a random variable

C) The total number of possible values of a random variable

D) The range of distribution of a random variable

2. Calculation Question: Calculate the expected value and variance of a given random variable.

(a) What is the expected value of a fair six-sided die?

(b) Assume a random variable X has possible values 1, 2, 3, 4, 5, 6, each with a probability of 1/6. Calculate the variance of X.

3. Case Study: Analyze how expectation and variance affect decision-making.

In a new game, players can choose one of two modes: Mode A offers an average win of 2 dollars per play but with high variance in winnings; Mode B offers an average win of 1.8 dollars per play but with low variance. From a risk management perspective, which mode should be chosen?

Solutions

1.

1) A. Average Value

2) B. The average difference between values of a random variable

2.

(a) The expected value of a fair six-sided die is (1+2+3+4+5+6)/6 = 3.5.

(b) The variance of X is calculated as Σ((x_i — μ)² × P(x_i)), where μ is the expected value of X, and P(x_i) is the probability of x_i. The calculation yields a variance of (1/6)[(1–3.5)² + (2–3.5)² + (3–3.5)² + (4–3.5)² + (5–3.5)² + (6–3.5)²] ≈ 2.917.

3. From a risk management perspective, if a player prefers stability in earnings, Mode B should be chosen as it has a lower variance, meaning lesser fluctuations in winnings. Conversely, if a player is willing to accept higher risks for potentially higher returns, Mode A might be a better choice.

Section 4: Conditional Probability and Bayes’ Theorem

1. Multiple Choice Question: Identify examples of conditional probability.

a) The probability of someone being a surgeon given that they are a doctor is an example of conditional probability.

  • [ ] True
  • [ ] False

b) If two events are independent, then the conditional probability of one event given the other is equal to the unconditional probability of the event.

  • [ ] True
  • [ ] False

c) The probability of traffic congestion given that it is raining is an example of conditional probability.

  • [ ] True
  • [ ] False

2. Calculation Question: Use Bayes’ Theorem to solve a practical problem.

Suppose a disease has a prevalence of 1%, and a test for the disease is 95% accurate (i.e., the probability of correctly diagnosing the disease) but has a 5% false positive rate (i.e., the probability of incorrectly diagnosing a healthy person as diseased). If a person tests positive, calculate the probability that they actually have the disease.

3. Case Analysis: Apply conditional probability and Bayes’ Theorem in a given scenario.

In a bag containing 3 red balls and 2 blue balls, calculate the conditional probability of drawing a blue ball second if a ball is drawn randomly and then, without replacement, another ball is drawn.

Solutions

1.

a) True

b) True

c) True

2.

Using Bayes’ Theorem, P(Disease | Positive) = [P(Positive | Disease) × P(Disease)] / [P(Positive | Disease) × P(Disease) + P(Positive | No Disease) × P(No Disease)]. Plugging in the numbers, we get [0.95 × 0.01] / [0.95 × 0.01 + 0.05 × 0.99] ≈ 0.16, or approximately 16%.

3.

Let P(Red1) = 3/5 be the probability of drawing a red ball first, and P(Blue1) = 2/5 be the probability of drawing a blue ball first. The probability of drawing a blue ball second after drawing a red ball first is P(Blue2 | Red1) = 2/4 = 1/2, and the probability of drawing a blue ball second after drawing a blue ball first is P(Blue2 | Blue1) = 1/4. Therefore, the conditional probability of drawing a blue ball second is P(Blue2) = P(Blue2 | Red1) × P(Red1) + P(Blue2 | Blue1) × P(Blue1) = 1/2 × 3/5 + 1/4 × 2/5 = 3/10 + 1/10 = 4/10 = 0.4, or 40%.

Section 5: Stochastic Processes

1. Short Answer Question: Explain the basic concepts of Markov Chains and other stochastic processes.

2. Application Question: Simulate a simple stochastic process, such as a gambling game or a stock market model. Consider a simple stock market model where the price of a stock changes daily based on a coin flip: if heads, the price increases by 5%; if tails, it decreases by 5%. Calculate the probability of the stock price being higher after 5 days.

3. Case Study: Analyze the application of stochastic processes in real life. Evaluate how weather prediction models use stochastic processes to forecast weather patterns and the likelihood of certain weather events.

Solutions

1.

Markov Chains are a type of stochastic process where future states depend only on the current state, not on the sequence of events that preceded it, known as the ‘memorylessness’ property. Other types of stochastic processes include Poisson processes, used for modeling the number of times an event occurs in a fixed interval of time, and Brownian motion, which describes the random movement of particles suspended in a fluid.

2.

In the stock market model, the daily price change is independent and identically distributed. The probability of the stock price being higher after 5 days is equivalent to the probability of having more heads than tails in 5 coin flips. This can be calculated using the binomial distribution with n=5 and p=0.5.

3.

Weather prediction models often employ stochastic processes to account for the inherent randomness in weather systems. By using these models, meteorologists can estimate the probabilities of various weather outcomes, which helps in making more accurate forecasts. This approach is crucial for predicting events like rain, storms, or extreme weather conditions.

--

--

Renda Zhang
Renda Zhang

Written by Renda Zhang

A Software Developer with a passion for Mathematics and Artificial Intelligence.

Responses (1)