Chocolate Cream filled

1.00


Strawberry

10.00


Kale frosted

6.00


Blueberry

3.00


Cream filled surprise

5.00













Based on the following chart: You wish to create a Vlookup table to simulate the type of donut a customer selects, based on a generated random number. The first such random number is 0.41. What donut would the customer buy?

a) Chocolate Cream filled

b) Strawberry

c) Kale Frosted

d) Blueberry

e) Cream Filled Surprise

1 answer

To determine which type of donut corresponds to the random number 0.41 using the provided data, we first need to calculate the cumulative probabilities based on the given quantities. Here’s how to do it:

  1. Total Number of Donuts: First, we need to sum up the quantities of each donut type:

    • Chocolate Cream filled: 1.00
    • Strawberry: 10.00
    • Kale frosted: 6.00
    • Blueberry: 3.00
    • Cream filled surprise: 5.00
    • Total = 1 + 10 + 6 + 3 + 5 = 25
  2. Calculate Cumulative Frequency: Next, we calculate the cumulative frequencies for the donuts:

    • Chocolate Cream filled: 1.00 (Cumulative: 1.00)
    • Strawberry: 10.00 (Cumulative: 1.00 + 10.00 = 11.00)
    • Kale frosted: 6.00 (Cumulative: 11.00 + 6.00 = 17.00)
    • Blueberry: 3.00 (Cumulative: 17.00 + 3.00 = 20.00)
    • Cream filled surprise: 5.00 (Cumulative: 20.00 + 5.00 = 25.00)
  3. Calculate Probability Distribution: Now we convert these cumulative frequencies into probabilities:

    • Chocolate Cream filled: 1.00 / 25 = 0.04
    • Strawberry: 11.00 / 25 = 0.44
    • Kale frosted: 17.00 / 25 = 0.68
    • Blueberry: 20.00 / 25 = 0.80
    • Cream filled surprise: 25.00 / 25 = 1.00
  4. Determine Which Donut Corresponds to 0.41:

    • The probability interval for each donut type can be defined based on the cumulative probabilities:
      • Chocolate Cream filled: 0.00 to 0.04
      • Strawberry: 0.04 to 0.44
      • Kale frosted: 0.44 to 0.68
      • Blueberry: 0.68 to 0.80
      • Cream filled surprise: 0.80 to 1.00

Since the random number 0.41 falls within the range of 0.04 to 0.44, the customer would select Strawberry.

Therefore, the correct answer is:

b) Strawberry