Why Scalar Projections Matter
A multivariate normal vector describes several random quantities jointly, but many questions concern just one numerical summary of them: a weighted score, a difference between measurements, or a treatment contrast. Such a summary is a scalar projection. Its distribution can be calculated directly from the vector's mean and covariance, without first finding the full joint density.
The key calculation is compact, but the covariance terms matter. In particular, the coordinates of a Gaussian vector need not be independent, and omitting their covariances can give a wrong variance and therefore a wrong probability. A second important case occurs when the projection has zero variance: then it is deterministic, not an ordinary normal variable that can be standardized.
Distribution of a Scalar Projection
We use \(N(m,v)\) for a univariate normal distribution with mean \(m\) and variance \(v\). When \(v=0\), this notation denotes the point mass at \(m\). The standard normal cumulative distribution function is \(\Phi(z)=P(Z\leq z)\) for \(Z\sim N(0,1)\).
The statement applies to nonsingular and singular Gaussian laws alike. To verify it, recall the characteristic function of a Gaussian vector: \[ \varphi_X(t)=E[\exp(i t^\mathsf{T}X)] =\exp\!\left(i t^\mathsf{T}\mu-\tfrac12 t^\mathsf{T}\Sigma t\right), \qquad t\in\mathbb{R}^p. \] For the scalar \(Y=a^\mathsf{T}X\), its characteristic function at \(s\in\mathbb{R}\) is \[ \varphi_Y(s)=E[\exp(i s a^\mathsf{T}X)] =\varphi_X(sa) =\exp\!\left(i s a^\mathsf{T}\mu-\tfrac12 s^2 a^\mathsf{T}\Sigma a\right). \] This is the characteristic function of a univariate normal variable with the stated mean and variance when \(a^\mathsf{T}\Sigma a>0\). Uniqueness of characteristic functions identifies the distribution. Also, \(a^\mathsf{T}\Sigma a=\operatorname{Var}(a^\mathsf{T}X)\geq 0\). If it equals zero, then \[ E\!\left[\{a^\mathsf{T}X-a^\mathsf{T}\mu\}^2\right] =\operatorname{Var}(a^\mathsf{T}X)=0. \] A nonnegative random variable with expectation zero is zero with probability one, so \(a^\mathsf{T}X=a^\mathsf{T}\mu\) almost surely. Its distribution is the point mass specified above. \(\square\)
The formula also follows at the level of means and variances from linearity and the covariance definition: \[ E[a^\mathsf{T}X]=a^\mathsf{T}\mu,\qquad \operatorname{Var}(a^\mathsf{T}X) =E\!\left[a^\mathsf{T}(X-\mu)(X-\mu)^\mathsf{T}a\right] =a^\mathsf{T}\Sigma a. \] These calculations identify the parameters; Gaussianity is what makes those parameters determine the entire univariate distribution.
Worked Scalar Projections
Worked Example: A Weighted Sum of Three Coordinates
Suppose \(X\) is a three-dimensional Gaussian vector with \[ \mu=\begin{pmatrix}2\\-1\\4\end{pmatrix},\qquad \Sigma=\begin{pmatrix}4&1&0\\1&9&2\\0&2&4\end{pmatrix}. \] Find the distribution of \(Y=X_1-2X_2+X_3\), and calculate \(P(Y>12)\).
The coefficient vector is \(a=(1,-2,1)^\mathsf{T}\). The mean is \[ a^\mathsf{T}\mu=(1)(2)+(-2)(-1)+(1)(4)=8. \] To calculate the variance, first multiply: \[ \Sigma a= \begin{pmatrix} 4(1)+1(-2)+0(1)\\ 1(1)+9(-2)+2(1)\\ 0(1)+2(-2)+4(1) \end{pmatrix} = \begin{pmatrix}2\\-15\\0\end{pmatrix}. \] Thus \[ a^\mathsf{T}\Sigma a=(1)(2)+(-2)(-15)+(1)(0)=32, \qquad Y\sim N(8,32). \] Since \(\sqrt{32}=4\sqrt{2}\), standardization gives \[ P(Y>12) =1-\Phi\!\left(\frac{12-8}{\sqrt{32}}\right) =1-\Phi\!\left(\frac{1}{\sqrt{2}}\right) \approx 1-0.7602=0.2398. \]
For any threshold \(t\), the same calculation gives a direct probability rule. If \(v=a^\mathsf{T}\Sigma a>0\) and \(m=a^\mathsf{T}\mu\), then \[ P(a^\mathsf{T}X\leq t)=\Phi\!\left(\frac{t-m}{\sqrt{v}}\right), \qquad P(a^\mathsf{T}X>t)=1-\Phi\!\left(\frac{t-m}{\sqrt{v}}\right). \] A positive-variance normal distribution is continuous, so replacing \(>\) by \(\geq\), or \(\leq\) by \(<\), does not change the corresponding probability. The zero-variance case must instead be handled as a point mass: if \(m=a^\mathsf{T}\mu\), then \(P(a^\mathsf{T}X\leq t)\) is \(1\) when \(m\leq t\) and \(0\) when \(m>t\).
Worked Example: A Difference With Correlated Coordinates
Let \(X=(X_1,X_2)^\mathsf{T}\) be Gaussian with mean \((70,65)^\mathsf{T}\) and covariance matrix \[ \Sigma=\begin{pmatrix}16&9\\9&25\end{pmatrix}. \] Find the distribution of the difference \(D=X_1-X_2\), and calculate the probability that the difference exceeds \(10\).
Use \(a=(1,-1)^\mathsf{T}\). The mean difference is \(70-65=5\). Its variance includes both diagonal variances and the covariance: \[ \operatorname{Var}(D) =a^\mathsf{T}\Sigma a =16+25-9-9=23. \] Therefore \(D\sim N(5,23)\), and \[ P(D>10) =1-\Phi\!\left(\frac{10-5}{\sqrt{23}}\right) =1-\Phi\!\left(\frac{5}{\sqrt{23}}\right) \approx 1-\Phi(1.0435) \approx 0.1484. \] The two subtracted terms are the covariance contributions. If they were incorrectly omitted, the variance would be reported as \(16+25=41\), leading to a different and incorrect probability.
Linear Contrasts and Common Shifts
A contrast is a projection whose coefficients sum to zero. For example, a difference \(X_1-X_2\) has coefficients \(1\) and \(-1\); a comparison of three coordinates might use weights \(1,-\tfrac12,-\tfrac12\). A contrast has a useful invariance: adding the same constant to every coordinate does not change its value. Indeed, if \(\mathbf{1}\) is the vector of \(p\) ones and \(a^\mathsf{T}\mathbf{1}=0\), then for any constant \(c\), \[ a^\mathsf{T}(X+c\mathbf{1}) =a^\mathsf{T}X+c\,a^\mathsf{T}\mathbf{1} =a^\mathsf{T}X. \] The variance formula for a contrast is still \(a^\mathsf{T}\Sigma a\); the zero-sum condition changes the interpretation of the projection, not the distribution rule.
Worked Example: A Degenerate Contrast
Suppose \(X\) is Gaussian with mean \(\mu=(3,6)^\mathsf{T}\) and covariance matrix \[ \Sigma=\begin{pmatrix}1&2\\2&4\end{pmatrix}. \] For \(a=(-2,1)^\mathsf{T}\), determine the distribution of \(Y=-2X_1+X_2\), and find \(P(Y>0)\).
The mean is \[ a^\mathsf{T}\mu=(-2)(3)+(1)(6)=0. \] The covariance matrix gives \[ \Sigma a= \begin{pmatrix}1(-2)+2(1)\\2(-2)+4(1)\end{pmatrix} =\begin{pmatrix}0\\0\end{pmatrix}, \qquad a^\mathsf{T}\Sigma a=0. \] Consequently \(Y\) is not a positive-variance normal variable: it equals \(0\) with probability one. In particular, \(P(Y>0)=0\) and \(P(Y\leq0)=1\). Here \(a^\mathsf{T}\mathbf{1}=-1\), so this projection is not a contrast, but the zero-variance rule applies to any coefficient vector.
A Reliable Calculation and Common Pitfalls
Express the requested scalar as \(a^\mathsf{T}X\), keeping the coordinate order consistent with \(\mu\) and \(\Sigma\).
Use \(m=a^\mathsf{T}\mu\) and \(v=a^\mathsf{T}\Sigma a\), including the off-diagonal covariance terms.
If \(v=0\), the projection equals \(m\) almost surely. If \(v>0\), use the standard normal CDF for any threshold probability.
A common mistake is to calculate the variance of a weighted sum using only the marginal variances. In coordinates, \[ a^\mathsf{T}\Sigma a =\sum_{i=1}^{p}a_i^2\operatorname{Var}(X_i) +2\sum_{1\leq i<j\leq p}a_i a_j\operatorname{Cov}(X_i,X_j). \] The second sum is generally present, and its sign depends on both the weights and the covariances. Another mistake is to apply the positive-variance standardization formula when \(v=0\); division by \(\sqrt{v}\) is then undefined, and the correct answer comes from the deterministic value of the projection.
Scalar projections are useful because they convert joint Gaussian questions into univariate ones whenever the quantity of interest is a linear combination. This is central to interpreting differences, weighted scores, and other linear summaries: the mean describes their center, while the covariance matrix determines how variable they are. A correct threshold probability follows once those two quantities are calculated and the degenerate case is checked.
Check Your Understanding
For each question, identify the projection and make the covariance contribution explicit where needed.
- If \(X\) has mean \(\mu\) and covariance \(\Sigma\), what are the mean and variance of \(3X_1-X_2\)?
- Suppose \(a^\mathsf{T}\Sigma a=0\). What is the distribution of \(a^\mathsf{T}X\), and why is ordinary standardization unavailable?
- For a Gaussian vector with \(E[X_1]=4\), \(E[X_2]=1\), \(\operatorname{Var}(X_1)=9\), \(\operatorname{Var}(X_2)=4\), and \(\operatorname{Cov}(X_1,X_2)=2\), find the distribution of \(X_1-X_2\).
- What condition on the coefficients makes a projection a contrast, and what happens to that contrast if the same constant is added to every coordinate?
- If \(a^\mathsf{T}X\sim N(2,9)\), express \(P(a^\mathsf{T}X\leq 5)\) using \(\Phi\).