Maths Formulae Statistics Intersection

Intersection – Common Elements in Sets

Explore how to find the intersection of sets using Venn diagrams and formulas. Useful in probability and logic.
🔑

Definition of Intersection

The intersection of two or more sets is the set of elements that are common to all of the sets. It is denoted by the symbol ∩. If sets A and B share elements, their intersection, A ∩ B, is a new set containing only those shared elements.

Set intersection represents the logical 'AND' operation. An element is included in the intersection if and only if it belongs to the first set AND the second set AND all other sets involved.

\[ A \cap B = \{x : x \in A \text{ and } x \in B\} \]
Definition of Intersection
SymbolMeaning
A ∩ BThe intersection of sets A and B.
x ∈ AThe element x is a member of set A.
The empty set, which contains no elements.
UThe universal set, which contains all possible elements under consideration.
|A|The cardinality of set A, meaning the number of elements in the set.
🔢

Key Formulas for Intersection

\[ A \cap B = \{x : x \in A \land x \in B\} \]
Formal Definition
\[ \bigcap_{i=1}^{n} A_i = A_1 \cap A_2 \cap \ldots \cap A_n \]
Intersection of Multiple Sets
\[ |A \cup B| = |A| + |B| - |A \cap B| \]
Principle of Inclusion-Exclusion
\[ A \cap (B \cup C) = (A \cap B) \cup (A \cap C) \]
Distributive Law
🎨

Venn Diagram of Intersection

A B 1 2 3 4 5 6 A ∩ B = {3, 4}
Intersection A ∩ B: only elements belonging to BOTH A and B — the central overlap region

An intersection is typically visualized using a Venn diagram. Imagine two overlapping circles, labeled 'A' and 'B'. Each circle represents a set. The region where the two circles overlap contains the elements that are in both set A and set B. This overlapping area is the graphical representation of A ∩ B.

⚖️

Properties of Intersection

\[ A \cap B = B \cap A \]
Commutative Property
\[ (A \cap B) \cap C = A \cap (B \cap C) \]
Associative Property
\[ A \cap A = A \]
Idempotent Property
\[ A \cap U = A \]
Identity with Universal Set
\[ A \cap \emptyset = \emptyset \]
Property of the Empty Set
\[ \text{If } A \subseteq B, \text{ then } A \cap B = A \]
Subset Property
\[ |A \cap B| \leq \min(|A|, |B|) \]
Cardinality Upper Bound
🔬

Proof of the Distributive Law

We can prove that A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) by showing that any element in the set on the left is also in the set on the right, and vice versa.

Part 1: Show that A ∩ (B ∪ C) ⊆ (A ∩ B) ∪ (A ∩ C)

Let x be an arbitrary element of A ∩ (B ∪ C). By the definition of intersection:

\[ x \in A \quad \text{and} \quad x \in (B \cup C) \]

By the definition of union, if x ∈ (B ∪ C), then x ∈ B or x ∈ C. This gives two cases:

Case 1: If x ∈ B. Since we know x ∈ A, it follows that x ∈ (A ∩ B).

Case 2: If x ∈ C. Since we know x ∈ A, it follows that x ∈ (A ∩ C).

In either case, x belongs to (A ∩ B) or to (A ∩ C). Therefore, by the definition of union:

\[ x \in (A \cap B) \cup (A \cap C) \]

Part 2: Show that (A ∩ B) ∪ (A ∩ C) ⊆ A ∩ (B ∪ C)

The steps are reversible. Let y be an arbitrary element of (A ∩ B) ∪ (A ∩ C). By the definition of union, y ∈ (A ∩ B) or y ∈ (A ∩ C). This means (y ∈ A and y ∈ B) or (y ∈ A and y ∈ C). Factoring out the common term 'y ∈ A', we get y ∈ A and (y ∈ B or y ∈ C). This simplifies to y ∈ A and y ∈ (B ∪ C), which means y ∈ A ∩ (B ∪ C).

Since both sets are subsets of each other, they must be equal.

🧮

Worked Examples

Given Set A = {1, 2, 3, 4} and Set B = {3, 4, 5, 6}, find A ∩ B.
  1. Identify the elements of Set A: 1, 2, 3, 4.
  2. Identify the elements of Set B: 3, 4, 5, 6.
  3. Compare the elements of both sets to find the ones they have in common.
  4. The common elements are 3 and 4.
A ∩ B = {3, 4}
Let P = {red, green, blue}, Q = {blue, yellow, orange}, and R = {purple, blue, red}. Find P ∩ Q ∩ R.
  1. First, find the intersection of two sets, P ∩ Q.
  2. P ∩ Q = {red, green, blue} ∩ {blue, yellow, orange} = {blue}.
  3. Now, find the intersection of that result with the third set, R.
  4. (P ∩ Q) ∩ R = {blue} ∩ {purple, blue, red} = {blue}.
P ∩ Q ∩ R = {blue}
🧮

Try It

🚀

Applications of Intersection

Database Queries: In SQL, the INTERSECT operator or an INNER JOIN is used to find records that exist in two or more tables or query results. This is a direct application of set intersection to filter data.

Market Research: Analysts find the intersection of different customer segments. For example, finding the set of customers who are both 'under 30' and 'have purchased a specific product' allows for highly targeted marketing campaigns.

Genetics and Medicine: Researchers look for the intersection of genes present in individuals with a specific disease to identify potential genetic markers. In diagnostics, a doctor finds the intersection of a patient's symptoms with the known symptoms of various illnesses.

Computer Science: In web search engines, a query with multiple words (e.g., 'red convertible car') returns pages that are in the intersection of the sets of pages containing 'red', 'convertible', and 'car'.

🌍

Real-World Examples

A book club has 40 members. 25 have read 'Dune' and 18 have read 'Foundation'. If 10 members have read both, how many members have read at least one of the two books?
  1. Let D be the set of members who read 'Dune', so |D| = 25.
  2. Let F be the set of members who read 'Foundation', so |F| = 18.
  3. The intersection is the number of members who read both, so |D ∩ F| = 10.
  4. Use the Inclusion-Exclusion Principle: |D ∪ F| = |D| + |F| - |D ∩ F|.
  5. Calculate: |D ∪ F| = 25 + 18 - 10 = 33.
33 members of the book club have read at least one of the two books.
A software company is hiring a developer. The required skills are {Python, SQL, AWS, Git}. Candidate A's skills are {Python, Java, Git, Docker}. Candidate B's skills are {Python, SQL, Git}. Which candidate's skill set has a larger intersection with the required skills?
  1. Let R be the set of required skills: {Python, SQL, AWS, Git}.
  2. Let A be the skill set for Candidate A: {Python, Java, Git, Docker}.
  3. Find the intersection R ∩ A: {Python, Git}. The size of the intersection is |R ∩ A| = 2.
  4. Let B be the skill set for Candidate B: {Python, SQL, Git}.
  5. Find the intersection R ∩ B: {Python, SQL, Git}. The size of the intersection is |R ∩ B| = 3.
  6. Compare the sizes of the intersections: 3 > 2.
Candidate B's skill set has a larger intersection with the required skills.
🏙️

Real-World Scenarios

Python devs ML skills A ∩ B Job Search: AND Filter Python AND ML experience
Search Filters
A job search for "Python AND machine learning" returns the intersection of both skill sets — only candidates satisfying both conditions, reducing irrelevant results.
English speakers French speakers bilingual Bilingual Employees Intersection = both languages
Bilingual Workforce
A company needing French-English bilingual staff uses set intersection to find employees who appear in both the French-speakers and English-speakers rosters.
Orders Customers INNER JOIN SQL INNER JOIN = A ∩ B only matching rows
SQL INNER JOIN
A SQL INNER JOIN is set intersection on the join key — it returns only rows that exist in both tables, exactly like A∩B in set theory.

Finding Mutual Friends
On social media platforms, when you view another person's profile, the 'mutual friends' list is the intersection of your set of friends and their set of friends. It identifies the people you both know in common.

Recipe Planning
When deciding what to cook, you might mentally find the intersection of two sets: the ingredients you currently have in your pantry and the ingredients required for a specific recipe. If the intersection is the same as the recipe's ingredient set, you can make the dish without a trip to the store.

Cross-Referencing Documents
Lawyers and researchers often need to find common themes or keywords that appear in multiple documents. This process is an intersection of the sets of keywords from each document, helping to identify central topics or evidence.

🗂️

Types of Intersections

The nature of an intersection is defined by the relationship between the sets involved. The result can be classified based on whether the sets share elements.

Intersection TypeDescriptionExample
Non-empty IntersectionThe sets have at least one element in common. The resulting intersection set contains these shared elements.A={1,2}, B={2,3} → A∩B={2}
Empty Intersection (Disjoint Sets)The sets have no elements in common. Their intersection is the empty set (∅).A={1,2}, B={3,4} → A∩B=∅
Intersection as a SubsetOne set is a complete subset of the other. The intersection is equal to the smaller set.A={1,2}, B={1,2,3} → A∩B={1,2}=A
⚠️

Common Mistakes

⚠️ Confusing Intersection with Union: A very common error is to list all elements from both sets (union) instead of only the elements that appear in both sets (intersection). Remember, intersection means 'AND' (must be in both), while union means 'OR' (can be in either).
⚠️ Incorrect Notation for Empty Intersection: When two sets have no common elements (they are disjoint), their intersection is the empty set, denoted as ∅ or {}. It is incorrect to write the intersection as {∅} (a set containing the empty set) or 0 (the number zero).
💡 Forgetting Elements in Multiple Sets: When finding the intersection of three or more sets (A ∩ B ∩ C), an element must be present in ALL of the sets. It's easy to mistakenly include an element that is only in two of the three sets. Always check against every single set.
🚀

Study Strategy

1 📖 Grasp the Core Concepts
  • Review the 'Definition of Intersection' to understand what 'A ∩ B' signifies as the set of common elements.
  • Study the 'Venn Diagram of Intersection' to visually connect the formula to the overlapping area of two or more sets.
  • Read the 'Properties of Intersection' (e.g., Commutative, Associative) to understand the fundamental rules.
  • Compare the 'Intersection' and 'Union' concepts to solidify your understanding of 'AND' versus 'OR' logic.
2 🧠 Commit Formulas to Memory
  • Write down and memorize the general formula: P(A ∩ B) = P(A) + P(B) - P(A ∪ B).
  • Learn the specific formula for independent events: P(A ∩ B) = P(A) * P(B).
  • Master the conditional probability version: P(A ∩ B) = P(A|B) * P(B) = P(B|A) * P(A).
  • Use flashcards to actively recall which formula applies based on the type of events described (independent, dependent, etc.).
3 ✍️ Solve Guided Problems
  • Work through every problem in the 'Worked Examples' section, attempting to solve it before reading the solution.
  • For each example, identify why a particular intersection formula was chosen over the others.
  • Analyze the 'Common Mistakes' section and consciously avoid these errors in your practice problems.
  • Redraw the Venn diagrams from the examples and label them with probabilities to reinforce the connection.
4 🌍 Apply to Real-World Scenarios
  • Read the 'Real-World Scenarios' and identify the events 'A', 'B', and the intersection 'A ∩ B' in each context.
  • Create your own simple problem based on the 'Applications of Intersection' section, such as in genetics or finance.
  • Calculate the probability of two simultaneous events happening from a given data set (e.g., a student liking both math and science).
  • Explain the meaning of an intersection result in a practical context, like market research or risk assessment.
By systematically building from concepts to application, you can confidently master the intersection formula and its practical uses.

Frequently Asked Questions

×

×