Change in Notation

Some symbols in Chapters 1 to 5 have changed, so that every symbol now has one meaning throughout the notes. The ideas, the examples and the results are the same. This page lists the changes chapter by chapter. The figures and sliders use the new symbols as well.

Conventions

  • Indices. Observations are numbered \(s\) and \(t\), variables \(i\) and \(j\), and factors, components and dimensions \(l\). The number of components or dimensions that are kept is \(k\).
  • Bold. Bold lower-case letters are observations, such as \(\mathbf x_t\), \(\boldsymbol\varepsilon_t\) and \(\mathbf f_t\). Bold capitals are matrices with one row for each observation: the data matrix \(\mathbf X\), and in Chapter 5 also \(\mathbf D\), \(\mathbf B\), \(\mathbf J\), \(\mathbf V\) and \(\mathbf F\).
  • Rotations. A rotation matrix is \(Q=Q(\theta)\), turning by the angle \(\theta\) (theta). A turned matrix or shock gets a tilde, as in \(\tilde A=AQ\) and \(\tilde{\boldsymbol\varepsilon}=Q'\boldsymbol\varepsilon\).
  • Eigenvalues. An eigenvalue is \(\kappa\) (kappa), as in \(Sv=\kappa v\). The letter \(\lambda\) is kept for the loadings of a factor model.
  • Splitting \(A\). \(A=C\Delta\): the diagonal matrix \(\Delta\) (capital delta) holds the standard deviations \(\delta_l\) of the factors, and \(C\) how the variables respond to one unit of each factor. In PCA, \(C\) is written \(\Gamma\).

Chapter 1: Introduction

Before Now
Angle of the rotation slider \(\varphi\) \(\theta\)
Regression of earnings on education \(X_2=\beta X_1+\sigma_2\varepsilon_2\) \(X_2=\beta X_1+\delta_2\varepsilon_2\), with \(\delta_2\) the standard deviation of the residual
Two critics \(X_i=\sigma_i\varepsilon_i+\lambda_i f\) \(X_i=\sqrt{\psi_i}\,\varepsilon_i+\lambda_i f\), with \(\psi_i\) the variance of critic \(i\)’s quirks
Restrictions on the critics \(\sigma_1=0\), \(\sigma_1=\sigma_2\) \(\psi_1=0\), \(\psi_1=\psi_2\)

So \(\sigma_1\) and \(\sigma_2\) now always stand for the standard deviations of \(X_1\) and \(X_2\), as in \(\Sigma\).

Chapter 2: Looking at Multivariate Data

Before Now
Covariance and correlation of two variables \(s_{jk}\), \(r_{jk}\) \(s_{ij}\), \(r_{ij}\)
Correlation matrix \(R=D^{-1}SD^{-1}\), with \(D=\operatorname{diag}(s_1,\dots,s_p)\) \(R=\operatorname{diag}(s_1,\dots,s_p)^{-1}\,S\,\operatorname{diag}(s_1,\dots,s_p)^{-1}\)
Inner and outer products shown for two general vectors \(a\) and \(b\) shown for the observations themselves, as in \((\mathbf x_s-\mathbf x_t)'(\mathbf x_s-\mathbf x_t)\)

Chapter 3: From Data to Distributions

Before Now
Probability mass function \(p(x)\) \(P(X=x)\)
Joint probability mass function \(p(x_1,x_2)\) \(P(X_1=x_1,X_2=x_2)\)
Two dice \(D=(D_1,D_2)'\), \(X=AD\) \(U=(U_1,U_2)'\), \(X=AU\)
Population correlation \(\rho_{jk}=\sigma_{jk}/(\sigma_j\sigma_k)\) \(\rho_{ij}=\sigma_{ij}/(\sigma_i\sigma_j)\)
Rotation matrix \(Q\), with the angle \(\varphi\) \(Q=Q(\theta)\), with the angle \(\theta\)
Q-Q plot the \(k\)-th smallest value, the \((k-0.5)/50\) quantile the \(t\)-th smallest value, the \((t-0.5)/50\) quantile

Chapter 4: Principal Components Analysis

Before Now
Splitting \(A\) \(A=\Gamma D\) \(A=C\Delta\)
Factors \(\mathbf f_t=D\boldsymbol\varepsilon_t\) \(\mathbf f_t=\Delta\boldsymbol\varepsilon_t\)
Standard deviations of the factors \(d_j\), in \(D=\operatorname{diag}(d_1,\dots,d_p)\) \(\delta_l\), in \(\Delta=\operatorname{diag}(\delta_1,\dots,\delta_p)\)
Response to one unit of each factor \(\Gamma\), with entries \(\gamma_{ij}\) \(C\), with entries \(c_{il}\)
Covariance matrix \(S=\Gamma D^2\Gamma'\) \(S=C\Delta^2C'\)
Cholesky \(\Gamma=L\), \(D=\operatorname{diag}(\sigma_1,\sigma_u)\) \(C=\begin{pmatrix}1&0\\ \beta&1\end{pmatrix}\), \(\Delta=\operatorname{diag}(\delta_1,\delta_2)\)
Roommates and flights \(\gamma_{12}\), \(\gamma_{21}\), \(d_1\), \(d_2\) \(c_{12}\), \(c_{21}\), \(\delta_1\), \(\delta_2\)
PCA \(\Gamma\), with columns \(\gamma_j\), and \(S=\Gamma D^2\Gamma'\) \(C=\Gamma\), with columns \(\gamma_l\), and \(S=\Gamma\Delta^2\Gamma'\)
Scores and standardised scores \(f_{tj}=\gamma_j'\mathbf x_t\), \(\varepsilon_{tj}=f_{tj}/d_j\) \(f_{tl}=\gamma_l'\mathbf x_t\), \(\varepsilon_{tl}=f_{tl}/\delta_l\)
Turning the arrows \(A(\varphi)=S^{1/2}Q(\varphi)\), \(q=(\cos\varphi,\sin\varphi)'\) \(A(\theta)=S^{1/2}Q(\theta)\), \(q_1=(\cos\theta,\sin\theta)'\)
Variance of the scores along a direction \(s_{f_1}^2\) \(\delta_1^2\)
Eigenvector and eigenvalue \(Sv=\lambda v\) \(Sv=\kappa v\)
Eigendecomposition \(S=Q\Lambda Q^{-1}\), with \(\Lambda=\operatorname{diag}(\lambda_1,\dots,\lambda_p)\) \(S=VKV^{-1}\), with \(K=\operatorname{diag}(\kappa_1,\dots,\kappa_p)\) (\(K\) is a capital kappa)
Symmetric matrices \(S=Q\Lambda Q'\), with \(\Gamma=Q\) and \(D^2=\Lambda\) \(S=VKV'\), with \(\Gamma=V\) and \(\Delta^2=K\)
Variance of a component \(\lambda_j\), Kaiser rule \(\lambda_j>1\) \(\delta_l^2\), Kaiser rule \(\delta_l^2>1\)
Recording Pepsi in other units multiplied by \(k\) multiplied by \(\alpha\) (alpha)
Number of components kept \(m\), with \(A_m\) and \(\hat{\mathbf x}_t=\sum_{j=1}^m f_{tj}\gamma_j\) \(k\), with \(A_k\) and \(\hat{\mathbf x}_t=\sum_{l=1}^k f_{tl}\gamma_l\)
Reconstruction error \((n-1)(\lambda_{m+1}+\dots+\lambda_p)\) \((n-1)(\delta_{k+1}^2+\dots+\delta_p^2)\)
Mahalanobis distance \(\sum_j f_{tj}^2/\lambda_j\) \(\sum_l f_{tl}^2/\delta_l^2\)
Canonical correlation: the two sets \(x\) and \(y\), with \(q_1\) and \(q_2\) variables \(\mathbf x_t\) and \(\mathbf y_t\), with \(p_1\) and \(p_2\) variables
Canonical correlation: weights and correlations \(a_1\) and \(b_1\), variates \(u_1=a_1'x\) and \(v_1=b_1'y\), correlations \(R_1\), \(R_2\) \(w^{(x)}\) and \(w^{(y)}\), variates \(w^{(x)\prime}\mathbf x_t\) and \(w^{(y)\prime}\mathbf y_t\), correlations \(r_1\), \(r_2\)
Canonical correlation: blocks of \(R\) \(R_{11}\), \(R_{12}\), \(R_{22}\), and \(E_1\), \(E_2\) \(R_{xx}\), \(R_{xy}\), \(R_{yy}\)

Chapter 5: Multidimensional Scaling

Before Now
Inner products, centring matrix, eigenvectors \(B\), \(J\), \(V\) \(\mathbf B\), \(\mathbf J\), \(\mathbf V\), bold because they have one row per observation
Eigendecomposition of the inner products \(B=V\Lambda V'\), with eigenvalues \(\lambda_j\) \(\mathbf B=\mathbf VK\mathbf V'\), with eigenvalues \(\kappa_l\)
Coordinates of the map \(\hat{\mathbf X}=V\Lambda^{1/2}\) \(\hat{\mathbf X}=\mathbf VK^{1/2}\)
Number of dimensions \(m\) \(k\)
Share of the eigenvalues \(P_m\) \((\kappa_1+\dots+\kappa_k)/(\kappa_1+\dots+\kappa_n)\), without a name
Roommates \(s_1\), \(s_2\), \(D=\operatorname{diag}(s_1,s_2)\), peer effect \(\gamma_{12}\) \(\delta_1\), \(\delta_2\), \(\Delta=\operatorname{diag}(\delta_1,\delta_2)\), peer effect \(c_{12}\)
Distance between two words \(d_{ij}\), for words \(i\) and \(j\) \(d_{st}\), for words \(s\) and \(t\)
Vocabulary and embedding layer \(K\) tokens, token \(k\), a \(K\times m\) table \(n\) tokens, token \(t\), an \(n\times k\) table
Distances on the map, in the stress \(\tilde d_{st}\) \(d^{\,\text{map}}_{st}\)
Radius of the Earth \(R\) written out, 6,371 km