We have to calculate the probability that a randomly selected cup is yellow OR medium.
We can calculate the probability of an event as the quotient between the frequency of the event and the total frequency.
In this case, the event is the cup being yellow or medium.
As we have two groups, we calculate the union of this groups as:
We substract the intersection of the two groups so as not to add the intersection twice.
NOTE: F in this case represents the absolute frequency of the class.
The total frequency is the sum of all the cups:
Then, we can calculate the probability of selecting a yellow or medium cup as:
Answer: the probability of selecting a yellow or medium cup is P = 2/3.