The set A={1,2,3} contains three numbers. Order and repetitions do not change a set: {3,2,1,1}=A. Write 2∈A for “2 belongs to A,” and 4∈/A for “4 does not belong to A.”
The symbol ⊆ means “is a subset of.” Every element of {1,2} belongs to A, so {1,2}⊆A. The empty set ∅ contains no elements and is a subset of every set. An element and a subset are different types of object: 2∈A, but {2}⊆A.
Notation
Read it
Example
A∪B
A or B, including both
{1,2}∪{2,3}={1,2,3}
A∩B
A and B
{1,2}∩{2,3}={2}
A∖B
In A but not in B
{1,2}∖{2,3}={1}
{x∈R:x>0}
Real x such that x is positive
All positive real numbers
Intervals describe real-number sets: [0,1] includes both endpoints, (0,1) excludes both, and [0,1) includes only the left endpoint. Infinity is not a real endpoint; use parentheses next to ∞.
Tiny symbols, big differences
The quantifier ∀ means for every. The quantifier ∃ means there exists at least one. Compare:
∀x∈R,x2≥0and∃x∈R,x2=4.
The first statement is about every real input. The second only needs one example, such as 2. The symbol ⇒ means “implies,” and ⇔ means “if and only if,” an implication in both directions.
Follow the index
The expression ∑i=1nxi says: visit positions 1,2,…,n and add the values stored there. The subscript on xi is an address in a list; it is not a power.
Explore it yourself
Unpack the shorthand
The index is a moving finger. It visits each term; the big symbol tells you how to combine them.
Preparing interactive controls…
For a list x1=3,x2=5,x3=2:
i=1∑3xi=3+5+2=10,i=1∏3xi=3⋅5⋅2=30.
In the experiment, the special choice xi=i makes each value equal to its index. Other lists need not have that property. Renaming the index does not change a sum: ∑i=13xi=∑j=13xj.
Work through an average
If three quiz scores are 6,8,10, their mean is
n1i=1∑nxi=36+8+10=8.
Read from the inside outward: collect the scores, add them, then divide by the count. Later, expected value will use a weighted version of this idea.