Probability

Cartesian Product

A pupil matches hats and scarves using a grid.

Cartesian Product definition

The Cartesian product A × B is the set of all ordered pairs whose first member comes from A and whose second member comes from B.

In Spanish
producto cartesiano
Topic
Sets and Venn diagrams

Cartesian Product in a picture

Cartesian Product diagramMatch every item in the first set with every item in the second.A = {red, blue}First coordinatesB = {small, large}Second coordinates2 × 2 = 4One pair for each combination
Match every item in the first set with every item in the second.

How it works

For finite sets with m and n elements, there are mn pairs. The order in each pair matters. In general A × B and B × A are different sets. The coordinate plane is the Cartesian product ℝ × ℝ.

Worked examples

List {a, b} × {1}.

{(a, 1), (b, 1)}.

What is A × ∅?

∅, because no second coordinate is available.

If |A| = 3 and |B| = 5, how many pairs are in A × B?

15.

Common mistake

Treat (a, b) as ordered. Reversing its coordinates generally produces a different pair.

Quick check

Where does the second coordinate come from in A × B?

Show answer

B.

What does ℝ × ℝ represent?

Show answer

All real ordered pairs.

If A and B each have two elements, how many pairs are there?

Show answer

Four.

Sources

Flashcard

Cartesian Product

Reveal the definition

The Cartesian product A × B is the set of all ordered pairs whose first member comes from A and whose second member comes from B.

Effortless Math. “Cartesian Product.” Math Dictionary.