MATH 4424 · Multivariate Analysis · Chapters 1–5

Sample Geometry Lab

Drag points, rotate vectors and draw random samples to see what the formulas are doing. Pick a topic from the list. Topics follow the course, from Chapter 1 summaries and distances to Chapter 5 tests on a mean vector.

From a data matrix to \(\bar{\mathbf x}\), \(\mathbf S\) and \(\mathbf R\)

Rows are observational units and columns are variables, so \(x_{jk}\) is variable \(k\) for unit \(j\). Each row is one point in the scatter plot. Drag a point, click empty space to add one, or double-click a point to remove it. You can also type into the table.

\[ \bar x_k=\frac1n\sum_{j=1}^n x_{jk} \qquad s_{ik}=\frac1n\sum_{j=1}^n(x_{ji}-\bar x_i)(x_{jk}-\bar x_k) \qquad r_{ik}=\frac{s_{ik}}{\sqrt{s_{ii}}\sqrt{s_{kk}}} \qquad \mathbf R=\mathbf D^{-1/2}\mathbf S\,\mathbf D^{-1/2} \]
Chapter 1 uses divisor \(n\) (written \(\mathbf S_n\)). R's cov() and Chapter 3's \(\mathbf S\) divide by \(n-1\). Switch between them below: \(\mathbf S\) changes, \(\mathbf R\) doesn't.
\((x_{j1}-\bar x_1)(x_{j2}-\bar x_2)>0\) product \(<0\) × \(\bar{\mathbf x}\)

Data matrix \(\mathbf X\)

Summaries