Calculate a conditional frequency
Keep the numerator and denominator in the stated order. · 184 words
A museum has 200 visitors on one day. Of these, 80 are members, and 32 of the members take a guided tour. A conditional frequency measures how common something is inside a selected group. Here, the selected group is the 80 members, and the target is taking a tour. Divide the target count by the selected-group count: 32/80 = 0.40, or 40%. The denominator matters. We use 80, not all 200 visitors. Dividing by 200 would measure the tour frequency for the whole museum crowd, which is a different question.
At a book fair, 150 shoppers enter a store. Ninety join a book club, and 54 club members buy a cookbook. The conditional frequency of buying a cookbook among club members is 54/90 = 0.60, or 60%. Compared with the museum result, this frequency is 20 percentage points higher. That is not a 20 percent relative increase. Relative to the first value, the increase is (0.60 - 0.40)/0.40 = 0.50, or 50%. In artificial intelligence, a conditional frequency is useful when a report must describe one subgroup, such as members, instead of everyone combined.
Check your recall
At the museum, what is the conditional frequency of taking a guided tour among members?
Check your answer
The conditional frequency is 32/80 = 0.40, or 40%. The denominator is 80 because the selected group is the museum members.
Sources and credits
Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.