HW 6 - All Blockers

Table of contents

  1. Coin toss and spinner distribution
  2. Calculating the mean and expected value
  3. Expected value of business operations and batch testing
  4. Cumulative distribution function (CDF) calculations
  5. Probability calculations using CDF and pmf

1. Coin toss and spinner distribution

1.1 Coin toss outcomes and distribution

This section examines the outcomes of tossing a coin three times, focusing on the number of heads obtained. The sample space for three coin tosses consists of 8 equally likely outcomes.

  • Sample space: The set of all possible outcomes when tossing a coin three times.

  • HHH, HHT, HTH, HTT, THH, THT, TTH, TTT

  • Random variable X: Represents the number of heads in three coin tosses.

  • Possible values for X are 0, 1, 2, or 3.

  • Distribution of X: The probability of each possible value of X.

  • P(X=0) = 1/8 (TTT)

  • P(X=1) = 3/8 (HTT, THT, TTH)

  • P(X=2) = 3/8 (HHT, HTH, THH)

  • P(X=3) = 1/8 (HHH)

📝 A spinner representing the distribution of X would have four sections. One section would cover 1/8 of the spinner's area (for X=0), two sections would cover 3/8 each (for X=1 and X=2), and one section would cover 1/8 (for X=3).

1.2 Die roll game and distribution

A game involves rolling a standard six-sided die, with the number of spaces moved determined by the roll. The random variable X represents the number of spaces moved.

  • Die roll outcomes:

  • 1, 2, 3: Move 1 space.

  • 4, 5: Move 2 spaces.

  • 6: Move 3 spaces.

  • Probability mass function (pmf) for X: The probability of each possible value of X.

  • P(X=1) = 3/6 = 1/2 (rolling 1, 2, or 3)

  • P(X=2) = 2/6 = 1/3 (rolling 4 or 5)

  • P(X=3) = 1/6 (rolling 6)

Spaces Moved (X)Probability (P(X))
11/2
21/3
31/6

📝 A spinner representing this distribution would have three sections. One section would cover 1/2 of the spinner's area (for moving 1 space), another would cover 1/3 (for moving 2 spaces), and the final section would cover 1/6 (for moving 3 spaces).

2. Calculating the mean and expected value

2.1 Mean of a random variable

The mean of a random variable, denoted by μ\mu or E[X]E[X], represents the average value of the outcomes of that random variable over many trials. It is calculated by summing the product of each possible value of the random variable and its corresponding probability.

  • For a discrete random variable XX with probability mass function (pmf) P(X=x)P(X=x), the mean is given by the formula: μ=E[X]=∑xxP(X=x)\mu = E[X] = \sum_{x} x P(X=x) This summation is performed over all possible values xx that the random variable XX can take.

2.2 Expected value of a game

The expected value of a game represents the average outcome if the game were played many times. It is calculated by summing the product of each possible payoff and its corresponding probability.

  • Game 1: Die roll movement A game involves rolling a die. The number of spaces moved depends on the roll:

  • Roll 1, 2, or 3: Move 1 space.

  • Roll 4 or 5: Move 2 spaces.

  • Roll 6: Move 3 spaces. Let XX be the number of spaces moved. The possible values for XX are 1, 2, and 3. The probabilities are:

  • P(X=1)=P(roll 1, 2, or 3)=36=12P(X=1) = P(\text{roll 1, 2, or 3}) = \frac{3}{6} = \frac{1}{2}

  • P(X=2)=P(roll 4 or 5)=26=13P(X=2) = P(\text{roll 4 or 5}) = \frac{2}{6} = \frac{1}{3}

  • P(X=3)=P(roll 6)=16P(X=3) = P(\text{roll 6}) = \frac{1}{6} The expected value of XX is: E[X]=(1×12)+(2×13)+(3×16)=12+23+36=36+46+36=106=53E[X] = (1 \times \frac{1}{2}) + (2 \times \frac{1}{3}) + (3 \times \frac{1}{6}) = \frac{1}{2} + \frac{2}{3} + \frac{3}{6} = \frac{3}{6} + \frac{4}{6} + \frac{3}{6} = \frac{10}{6} = \frac{5}{3}

  • Game 2: Coin toss winnings Three coins are tossed.

  • If 0 or 3 heads occur, you win $10.

  • Otherwise (1 or 2 heads), you lose $3. Let HH be the number of heads. The possible outcomes for three coin tosses are HHH, HHT, HTH, THH, HTT, THT, TTH, TTT.

  • P(H=0)=P(TTT)=18P(H=0) = P(\text{TTT}) = \frac{1}{8}

  • P(H=1)=P(HTT, THT, TTH)=38P(H=1) = P(\text{HTT, THT, TTH}) = \frac{3}{8}

  • P(H=2)=P(HHT, HTH, THH)=38P(H=2) = P(\text{HHT, HTH, THH}) = \frac{3}{8}

  • P(H=3)=P(HHH)=18P(H=3) = P(\text{HHH}) = \frac{1}{8} The payoffs are:

  • Win $10 if H=0H=0 or H=3H=3. The probability is P(H=0)+P(H=3)=18+18=28=14P(H=0) + P(H=3) = \frac{1}{8} + \frac{1}{8} = \frac{2}{8} = \frac{1}{4}.

  • Lose $3 if H=1H=1 or H=2H=2. The probability is P(H=1)+P(H=2)=38+38=68=34P(H=1) + P(H=2) = \frac{3}{8} + \frac{3}{8} = \frac{6}{8} = \frac{3}{4}. The expected value of the game is: E[Game]=(10×14)+(−3×34)=104−94=14E[\text{Game}] = (10 \times \frac{1}{4}) + (-3 \times \frac{3}{4}) = \frac{10}{4} - \frac{9}{4} = \frac{1}{4}

  • Game 3: Die roll winnings/losses A die is rolled.

  • If the number is even, you win that value in dollars.

  • If the number is odd, you lose $4. Let YY be the value won or lost.

  • If roll is 1 (odd): Lose $4. P(1)=16P(1) = \frac{1}{6}.

  • If roll is 2 (even): Win $2. P(2)=16P(2) = \frac{1}{6}.

  • If roll is 3 (odd): Lose $4. P(3)=16P(3) = \frac{1}{6}.

  • If roll is 4 (even): Win $4. P(4)=16P(4) = \frac{1}{6}.

  • If roll is 5 (odd): Lose $4. P(5)=16P(5) = \frac{1}{6}.

  • If roll is 6 (even): Win $6. P(6)=16P(6) = \frac{1}{6}. The expected value of the game is: E[Y]=(−4×16)+(2×16)+(−4×16)+(4×16)+(−4×16)+(6×16)E[Y] = (-4 \times \frac{1}{6}) + (2 \times \frac{1}{6}) + (-4 \times \frac{1}{6}) + (4 \times \frac{1}{6}) + (-4 \times \frac{1}{6}) + (6 \times \frac{1}{6}) E[Y]=−4+2−4+4−4+66=−46=−23E[Y] = \frac{-4 + 2 - 4 + 4 - 4 + 6}{6} = \frac{-4}{6} = -\frac{2}{3}

📝 For the die roll movement game, the expected number of spaces moved is 53\frac{5}{3}. This means that if you played this game many times, the average number of spaces you would move per turn would be approximately 1.67 spaces.

3. Expected value of business operations and batch testing

3.1 Expected value of an additional machine

This section analyzes the financial benefit of purchasing additional machines for a DNA analysis company. The company currently has a limited number of machines, each capable of performing a certain number of analyses per day.

Profits are generated for each analysis performed, and excess demand results in lost business.

  • Current capacity: The company has 2 machines, each in use for a full day, allowing for a maximum of 2 DNA analyses per day.
  • Daily demand distribution:
  • 1 analysis needed: 30% of days
  • 2 analyses needed: 40% of days
  • 3 or more analyses needed: 30% of days
  • Profit per analysis: $900

The expected value of adding a third machine is calculated by determining the additional profit generated on days where demand exceeds current capacity.

📝 On days with 3 or more analyses needed (30% of days), the company can perform one additional analysis with a third machine, generating $900 in profit. The expected daily value of the third machine is 0.30×$900=$2700.30 \times \text{\textdollar}900 = \text{\textdollar}270.

The yearly expected value is the daily expected value multiplied by 365 days.

3.2 Expected value of a fourth machine

Adding a fourth machine further increases the company's capacity, allowing for more analyses on days with high demand. The expected value is calculated based on the additional profit generated by the fourth machine when demand exceeds the capacity of three machines.

  • Capacity with three machines: 3 analyses per day.
  • Daily demand distribution:
  • 1 analysis needed: 30% of days
  • 2 analyses needed: 40% of days
  • 3 or more analyses needed: 30% of days
  • Profit per analysis: $900

The expected value of adding a fourth machine is determined by the profit gained on days where demand is at least 4 analyses.

3.3 Expected number of tests needed per group (Batch Testing)

Batch testing involves testing a group of samples together. The expected number of tests needed depends on the positivity rate of the samples within the group.

The calculation aims to determine how many tests are required on average to identify a positive case.

The formula for the expected number of tests needed per group is derived from the probability of a negative batch. If P(Negative Batch)P(\text{Negative Batch}) is the probability that all samples in a batch are negative, then the expected number of tests needed is 1/P(Negative Batch)1 / P(\text{Negative Batch}).

Positivity RateP(Negative Batch)Expected Number of Tests Needed
1.5%0.9851.015
2%0.9801.020
2.5%0.9751.025
3.5%0.9651.036

4. Cumulative distribution function (CDF) calculations

4.1 Determining the CDF from a PMF

The cumulative distribution function (CDF), denoted as FX(x)F_X(x), represents the probability that a random variable XX takes on a value less than or equal to xx. It is calculated by summing the probabilities of all possible values of XX that are less than or equal to xx.

  • CDF calculation: For a discrete random variable XX with probability mass function (PMF) P(X=k)P(X=k), the CDF is given by FX(x)=P(X≤x)=∑k≤xP(X=k)F_X(x) = P(X \le x) = \sum_{k \le x} P(X=k).

4.2 Calculating probabilities using the CDF

Once the CDF is determined, it can be used to calculate probabilities for various ranges of the random variable.

  • Probability of a specific value: P(X=x)=FX(x)−FX(x−)P(X=x) = F_X(x) - F_X(x^-), where x−x^- is the value immediately preceding xx.
  • Probability of a range: P(a<X≤b)=FX(b)−FA(a)P(a < X \le b) = F_X(b) - F_A(a).
  • Probability of at least a value: P(X≥a)=1−FX(a−)P(X \ge a) = 1 - F_X(a^-).
  • Probability of at most a value: P(X≤a)=FX(a)P(X \le a) = F_X(a).

4.3 Example: Severe injuries in patients

This section presents exercises that require calculating probabilities related to the number of patients experiencing severe injuries, using the principles of CDF.

  • Exercise g: Calculate the probability that at least 4 patients have a severe injury. This translates to P(X≥4)P(X \ge 4), which is 1−FX(3)1 - F_X(3).
  • Exercise h: Calculate the probability that 7 or fewer patients have a severe injury. This is P(X≤7)P(X \le 7), which is FX(7)F_X(7).
  • Exercise i: Calculate the probability that no more than 3 patients have a severe injury. This is P(X≤3)P(X \le 3), which is FX(3)F_X(3).
  • Exercise j: Calculate the probability that more than 6 but less than 14 patients have a severe injury. This is P(6<X<14)P(6 < X < 14), which is FX(13)−FX(6)F_X(13) - F_X(6).

5. Probability calculations using CDF and pmf

5.1 Probability calculations using the cumulative distribution function (CDF)

The cumulative distribution function (CDF), denoted as F(x)F(x), provides the probability that a random variable XX takes on a value less than or equal to xx. This is expressed as P(X≤x)=F(x)P(X \le x) = F(x).

To find the probability of XX being within a specific range, such as between two values aa and bb (inclusive of aa, exclusive of bb), we use the CDF: P(a<X≤b)=F(b)−F(a)P(a < X \le b) = F(b) - F(a). For probabilities involving discrete values, the probability mass function (pmf), denoted as f(x)f(x), gives the probability of the random variable XX being exactly equal to xx, i.e., P(X=x)=f(x)P(X=x) = f(x).

  • Calculating P(X≤x)P(X \le x): This is directly given by the CDF value at xx, F(x)F(x).
  • Calculating P(X<x)P(X < x): For a discrete random variable, this is equivalent to P(X≤x−1)P(X \le x-1), which is F(x−1)F(x-1).
  • Calculating P(X=x)P(X = x): This can be found using the CDF as P(X=x)=P(X≤x)−P(X≤x−1)=F(x)−F(x−1)P(X=x) = P(X \le x) - P(X \le x-1) = F(x) - F(x-1). Alternatively, it is directly given by the pmf, f(x)f(x).
  • Calculating P(X>x)P(X > x): This is the complement of P(X≤x)P(X \le x), so P(X>x)=1−P(X≤x)=1−F(x)P(X > x) = 1 - P(X \le x) = 1 - F(x).
  • Calculating P(X≥x)P(X \ge x): This is the complement of P(X<x)P(X < x), so P(X≥x)=1−P(X<x)=1−F(x−1)P(X \ge x) = 1 - P(X < x) = 1 - F(x-1).

📝 Determine the probability that the number selected is 27 or larger, given P(X≥27)=1−F(26)P(X \ge 27) = 1 - F(26). Using the provided CDF, F(26)=0.8640F(26) = 0.8640. Therefore, P(X≥27)=1−0.8640=0.1360P(X \ge 27) = 1 - 0.8640 = 0.1360.

5.2 Identifying rare events

A rare event is defined as an event with a probability of occurrence less than 5% (0.05). When evaluating if an event is rare, we compare its calculated probability to this threshold. If the probability is less than 0.05, the event is considered rare.

📝 If we select one number from the distribution, is it rare for the number to be 27 or larger? The probability of selecting 27 or larger is P(X≥27)=0.1360P(X \ge 27) = 0.1360. Since 0.13600.1360 is not less than 0.050.05, this event is not rare.

5.3 Probability of independent events

When two or more events are independent, the probability that all of them occur is the product of their individual probabilities. For two independent events, A and B, the probability of both occurring is P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B).

This principle extends to any number of independent events.

📝 We are about to select two numbers from this distribution. If the two numbers are independent, determine the probability that both of these numbers are 27 or larger. The probability of one number being 27 or larger is P(X≥27)=0.1360P(X \ge 27) = 0.1360. For two independent selections, the probability that both are 27 or larger is P(X≥27 and X≥27)=P(X≥27)×P(X≥27)=0.1360×0.1360=0.018496P(X \ge 27 \text{ and } X \ge 27) = P(X \ge 27) \times P(X \ge 27) = 0.1360 \times 0.1360 = 0.018496.

5.4 Determining the value of k

This section involves finding a specific value, kk, within a probability distribution based on given conditions. This often requires using the properties of the probability mass function (pmf) or cumulative distribution function (CDF) and solving an equation.

📝 Find the number kk so that P(X≤k)=0.855P(X \le k) = 0.855. Using the provided CDF, we look for the value of xx where F(x)=0.855F(x) = 0.855. From the table, F(26)=0.8640F(26) = 0.8640 and F(25)=0.8266F(25) = 0.8266. The value kk such that P(X≤k)=0.855P(X \le k) = 0.855 is not directly listed but would fall between 25 and 26. However, if the question implies finding kk such that F(k)F(k) is closest to 0.8550.855, we would examine the table. The exercise as stated implies finding kk such that P(X≤k)=0.855P(X \le k) = 0.855. The provided table shows F(26)=0.8640F(26) = 0.8640 and F(25)=0.8266F(25) = 0.8266. The value kk for which P(X≤k)=0.855P(X \le k) = 0.855 is not explicitly given.

5.5 Rare event determination for combined outcomes

This involves assessing whether a combined outcome of independent events meets the criteria for being a rare event. The probability of the combined event is calculated first, and then this probability is compared against the 5% threshold.

📝 Would both numbers being 27 or larger be considered rare (use 5% or less again)? The probability of both numbers being 27 or larger is 0.0184960.018496. Since 0.0184960.018496 is less than 0.050.05, this combined event is considered rare. The document notes this as YES, with a calculation of less than 2% of the time.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also