PAIBOTLearn
Sign inSign up

Venn diagrams and counting

Sets

Japanese school year: Math I

What you learn

You will learn how to visualize overlapping sets using Venn diagrams and calculate element counts with the inclusion-exclusion principle. This technique is widely used in survey data analysis and combinatorial counting. Prior familiarity with basic set operations like unions and intersections will be very beneficial.

Go to practice

Key points

Use this formula to find the total count of items in AA or BB. Add the individual counts n(A)n(A) and n(B)n(B), then subtract the overlapping intersection n(A∩B)n(A \cap B) to avoid double counting.

n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

Use this formula to find the number of items outside set AA. Subtract the count in AA, n(A)n(A), from the total universal count n(U)n(U).

n(Aˉ)=n(U)−n(A)n(\bar{A}) = n(U) - n(A)

Use this formula to find the total count of items in AA, BB, or CC. Add the three individual sets, subtract all two-set overlaps, and add back the center intersection shared by all three.

n(A∪B∪C)=n(A)+n(B)+n(C)−n(A∩B)−n(B∩C)−n(C∩A)+n(A∩B∩C)n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(B \cap C) - n(C \cap A) + n(A \cap B \cap C)

Choose a set to practice.