top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S8-SA2-0059

What is Cardinality?

Grade Level:

Class 7

AI/ML, Data Science, Research, Journalism, Law, any domain requiring critical thinking

Definition
What is it?

Cardinality means counting how many unique or distinct items are in a group or set. It tells you the size of a collection of things, ignoring any duplicates. Think of it as finding the total number of different elements.

Simple Example
Quick Example

Imagine your school bag has 3 blue pens, 2 red pens, and 1 black pen. If we want to know the cardinality of the 'colours of pens' in your bag, we count the unique colours: blue, red, black. The cardinality is 3, because there are 3 different colours, even though you have 6 pens in total.

Worked Example
Step-by-Step

Let's find the cardinality of the fruits a vendor sells:

Step 1: List all the fruits the vendor sells: Mango, Apple, Banana, Orange, Mango, Grape, Apple.
---
Step 2: Identify the unique fruits in the list. This means listing each fruit only once, even if it appears multiple times.
---
Step 3: Unique fruits are: Mango, Apple, Banana, Orange, Grape.
---
Step 4: Count these unique fruits.
---
Step 5: There are 5 unique fruits.
---
Answer: The cardinality of the fruits the vendor sells is 5.

Why It Matters

Understanding cardinality helps you make sense of large amounts of information, whether you're working with data for AI/ML or analyzing survey results. Data scientists use it to count unique customers or products, and researchers use it to understand the diversity in their findings. It's a fundamental skill for anyone who needs to organize and interpret information.

Common Mistakes

MISTAKE: Counting every item, even if it's a duplicate. | CORRECTION: Only count each distinct item once. Cardinality is about 'how many *different* kinds' not 'how many *total* pieces'.

MISTAKE: Confusing cardinality with the total number of items. | CORRECTION: Remember, total items can include repeats, but cardinality strictly counts only unique items.

MISTAKE: Missing some unique items in a large list. | CORRECTION: Systematically go through the list, perhaps by making a new list of only unique items as you find them, to ensure nothing is missed.

Practice Questions
Try It Yourself

QUESTION: Your favourite street food stall sells Vada Pav, Samosa, Pani Puri, Dabeli, Vada Pav. What is the cardinality of the types of street food sold? | ANSWER: 4 (Vada Pav, Samosa, Pani Puri, Dabeli)

QUESTION: A list of students who attended a coding club meeting is: Rohan, Priya, Amit, Sara, Rohan, Neha, Amit. What is the cardinality of the students who attended? | ANSWER: 5 (Rohan, Priya, Amit, Sara, Neha)

QUESTION: A class has students who like these subjects: Math, Science, English, Math, Hindi, Art, Science, Computer. What is the cardinality of the subjects liked by students? If two more students join, one liking Math and another liking Music, what is the new cardinality? | ANSWER: Initial cardinality: 6 (Math, Science, English, Hindi, Art, Computer). New cardinality: 7 (Math, Science, English, Hindi, Art, Computer, Music).

MCQ
Quick Quiz

What does cardinality primarily measure?

The total quantity of all items, including duplicates.

The number of unique items in a group.

The order in which items appear.

The value or importance of each item.

The Correct Answer Is:

B

Cardinality specifically counts only the distinct or unique items in a set, ignoring any repetitions. It's about the variety, not the total count.

Real World Connection
In the Real World

When you use a music streaming app like JioSaavn or Spotify, the app might show you 'Top 50 songs'. If you look at 'My Liked Songs', the app counts the cardinality of unique songs you've liked. Or, if a delivery app like Swiggy analyzes the 'types of restaurants' in a city, it counts the unique restaurant categories (e.g., North Indian, South Indian, Chinese, Italian) to understand variety, which is cardinality.

Key Vocabulary
Key Terms

UNIQUE: One of a kind, not repeated | SET: A collection of distinct objects or elements | ELEMENT: An individual item within a set | DISTINCT: Clearly separate and different from others

What's Next
What to Learn Next

Now that you understand cardinality, you can explore 'Set Theory'. Set theory is all about how to group, compare, and operate on collections of items, and cardinality is a core idea within it. Keep learning and see how these concepts build on each other!

bottom of page