Suppose that we have a data sample $ \mathsf{x} = (x_1, x_2, \ldots, x_n). $ The *sample mean* $\bar{\mathsf{x}}$ is the arithmetic average $ \bar{\mathsf{x}} \coloneqq \frac{1}{n} \sum_{i=1}^n x_i = \frac{1}{n} (x_1 + x_2 + \ldots + x_n). $ Empirical distribution function $\hat p_k$ ### Measures of centrality Mean, Median, Mode ### Measures of variation Variance, Standard Deviation ### Measures of Asymmetry ### Identifying outliers --- ### A summary of set notation #### Some commonly used sets. - $\mathbb{Z}$, the _integers_. $\{\ldots, -2, -1, 0, 1, 2 \ldots\}$ - $\mathbb{Z}_{\geq 0}$, the _nonnegative integers_. $\{0, 1, 2, \ldots\}$ - $\mathbb{N}$, the _positive integers_ (also known as the _natural numbers_), $\{1, 2, 3 \ldots\}$ - $\mathbb{R}$, the _real numbers_. Not possible to list. #### Set and element relations. - $\in$, _element of_. If $x$ is a member of (or an element of) a set $\mathcal{S}$, we write $x \in \mathcal{S}$. - $\subset$, _subset of_. If all of the elements of a set $A$ are also elements of a set $\mathcal{S}$, we write $A \subset \mathcal{S}$. - $:$, _such that._ This symbol is used when we want to construct a subset of elements that satisfy a specific condition. For example, if we wish to specify the set of all natural numbers less than 12, we write $A = \{x \in \mathbb{N} \, : \, x < 12\}$. Focusing on the real numbers, an _interval_ $I$ is a subset of the real numbers that contains all real numbers between two _endpoints_ $a < b$ and no numbers less than $a$ or greater than $b$. - We say that an interval is _open_ if it does not contain its endpoints, i.e., if it has the form $I = \{x \in \mathbb{R} \, : \, a < x < b\}$. We write $I = (a,b)$. - We say that an interval is _closed_ if it does contain its endpoints, i.e., if it has the form $I = \{x \in \mathbb{R} \, : \, a \leq x \leq b\}$. We write $I = [a,b]$. - An interval can be _half-open_ if contains just one of its endpoints. Either $I = (a,b]$ or $I = [a,b)$. - _Half-line._ If we construct a set that contains all real numbers greater than an endpoint, we call this a half-line and write the intervals as if infinity, $\infty$, is a number, but it cannot be contained in the interval: - $(a, \infty) = \{x \in \mathbb{R} \, : \, x > a\}$, - $[a,\infty) = \{x \in \mathbb{R} \, : \, x \geq a\}$, - $(\infty,a) = \{x \in \mathbb{R} \, : \, x < a\}$, - $(\infty,a] = \{x \in \mathbb{R} \, : \, x \leq a\}$. A special class of sets are discrete sets. When we visualize discrete sets, we will mark them as distinct dots on the number line. This is in contrast to how we will visualize intervals, which will be marked by shading the number line in the appropriate region and marking the endpoints with either open or filled in circles to indicate whether they are contained in the set. >[!NOTE] Discrete Sets (of Real Numbers) >A set of real numbers $\mathcal{S} \subset \mathbb{R}$ is called _discrete_ if for every element $x \in \mathcal{S}$, there exists an open set $A \subset \mathbb{R}$ that contains $x$ and no other members of $\mathcal{S}$. Let $A$ and $B$ be two subsets of a common set $\mathbb{\Omega}$. - **Intersection.** $A \cap B \coloneqq \{x \in \mathcal{S} \, : \, x \in A \text{ and } x \in B\}$. - **Union.** $A \cup B \coloneqq \{x \in \mathcal{S} \, : \, x \in A \text{ or } x \in B\}$ - **Complement within $\mathcal{S}$.** $A^c$ or $A' \coloneqq \{x \in \mathcal{S} \, : \, x \notin A\}$.