Nepedia
Back to Discover
Independent Reader
🔢

Inclusion–exclusion principle

math Maturity 7-9 Next article →

Imagine you are counting groups of items. You have a group of red toys. You also have a group of cars. Some toys are both red and cars.

Венов дијаграм
Венов дијаграм

If you add the two groups together, you might count the red cars twice. This makes your total too high. To fix this, you must subtract the items that overlap. This is called the inclusion-exclusion principle.

Inclusion-exclusion
Inclusion-exclusion

This rule works for even more groups. If you have three groups, you might subtract too much. You have to add some items back in to get the right count.

inclusion-exclusion-3sets
inclusion-exclusion-3sets

To find the true total, you follow a pattern. First, you add the sizes of all groups. Next, you subtract the items in two groups. Then, you add back the items in three groups. You keep going by switching between adding and subtracting. This way, every single item is counted exactly once. This method helps solve hard puzzles in math. It can even help you find the chance of things happening. For example, it helps find the chance of a card being in the wrong spot in a deck.

184 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:Венов дијаграм.svg
Венов дијаграм.svg
File:Inclusion-exclusion.svg
Inclusion-exclusion.svg
File:inclusion-exclusion-3sets.png
inclusion-exclusion-3sets.png
File:Dirichlet hyperbola example_4.svg
Dirichlet hyperbola example_4.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.