148k views
2 votes
Calculating Probabilities Please use your knowledge of Data Manipulation with Pandas to extract the required probabilities:

What is the probability that a tweet contains the (clining beer mug) emoji?

User FredSuvn
by
7.6k points

1 Answer

6 votes

Final answer:

To find the probability of selecting a jelly bean of a certain color from the jar, divide the number of jelly beans of that color by the total number of jelly beans. Perform this calculation for each color to determine the respective probabilities for blue, green, purple, red, yellow, and orange jelly beans.

Step-by-step explanation:

To calculate the probability of selecting a jelly bean of a particular color from a jar, you can use the total number of that color of jelly beans divided by the overall total number of jelly beans. In the jar of 150 jelly beans, there are different quantities of each color. Let's calculate the probability for each event.

  1. Find P(B): The probability of getting a blue jelly bean is the number of blue jelly beans (26) divided by the total number of jelly beans (150). P(B) = 26/150.
  2. Find P(G): The probability of getting a green jelly bean is the number of green jelly beans (20) divided by the total number of jelly beans (150). P(G) = 20/150.
  3. Find P(P): The probability of getting a purple jelly bean is the number of purple jelly beans (28) divided by the total number of jelly beans (150). P(P) = 28/150.
  4. Find P(R): The probability of getting a red jelly bean is the number of red jelly beans (22) divided by the total number of jelly beans (150). P(R) = 22/150.
  5. Find P(Y): The probability of getting a yellow jelly bean is the number of yellow jelly beans (38) divided by the total number of jelly beans (150). P(Y) = 38/150.
  6. Find P(O): To find the probability of getting an orange jelly bean, first determine the number of orange jelly beans. Since all other colors are accounted for, we subtract their totals from 150 to find the number of orange jelly beans. The rest are orange, so P(O) = (150 - (22 + 38 + 20 + 28 + 26))/150.

User Bky
by
7.5k points