To demonstrate the penalizing effect of the Mahalanobis distance in a bivariate normal distribution with a positive correlation ( \rho(X, Y) > 0 ), let’s consider the specific case step by step. We start with the Mahalanobis distance formula:
[
D_M(\mathbf{x}, Q) = \sqrt{(\mathbf{x} - \mathbf{\mu})^T \mathbf{C}^{-1} (\mathbf{x} - \mathbf{\mu})}
]
Given that (\mathbf{x} = \begin{pmatrix} x_1 \ x_2 \end{pmatrix}), (\mathbf{\mu} = \begin{pmatrix} \mu_1 \ \mu_2 \end{pmatrix}), and the covariance matrix
[
\mathbf{C} = \begin{pmatrix}
\sigma^2(X) & \rho(X, Y) \sigma(X) \sigma(Y) \
\rho(X, Y) \sigma(X) \sigma(Y) & \sigma^2(Y)
\end{pmatrix}
]
The inverse of the covariance matrix (\mathbf{C}) is
[
\mathbf{C}^{-1} = \frac{1}{\sigma^2(X) \sigma^2(Y) (1 - \rho^2(X, Y))} \begin{pmatrix}
\sigma^2(Y) & -\rho(X, Y) \sigma(X) \sigma(Y) \
-\rho(X, Y) \sigma(X) \sigma(Y) & \sigma^2(X)
\end{pmatrix}
]
Then,
[
D_M(\mathbf{x}, Q) = \sqrt{
\begin{pmatrix}
x_1 - \mu_1 \
x_2 - \mu_2
\end{pmatrix}^T
\begin{pmatrix}
\frac{1}{\sigma^2(X)(1 - \rho^2(X, Y))} & \frac{-\rho(X, Y)}{\sigma(X)\sigma(Y)(1 - \rho^2(X, Y))} \
\frac{-\rho(X, Y)}{\sigma(X)\sigma(Y)(1 - \rho^2(X, Y))} & \frac{1}{\sigma^2(Y)(1 - \rho^2(X, Y))}
\end{pmatrix}
\begin{pmatrix}
x_1 - \mu_1 \
x_2 - \mu_2
\end{pmatrix}
}
]
We can expand and simplify this quadratic form:
[
D_M(\mathbf{x}, Q) = \frac{1}{\sqrt{1 - \rho^2(X, Y)}} \sqrt{
\left( \frac{x_1 - \mu_1}{\sigma(X)} \right)^2 + \left( \frac{x_2 - \mu_2}{\sigma(Y)} \right)^2 - 2 \rho(X, Y) \left( \frac{x_1 - \mu_1}{\sigma(X)} \right) \left( \frac{x_2 - \mu_2}{\sigma(Y)} \right)
}
]
To further understand the penalizing effect when the vector (\mathbf{x} = \begin{pmatrix} x_1 \ x_2 \end{pmatrix}) does not follow the direction of the correlation, we adopt the Mahalanobis distance representation from the problem statement:
[
D_M(x, Q) = \sqrt{ \left( \frac{x - \mu_x}{\sigma(X)} \right)^2 + \left( \left( \frac{y - \mu_y}{\sigma(Y)} \right) - \rho(X, Y) \left( \frac{x - \mu_x}{\sigma(X)} \right) \right)^2 \frac{1}{1 - \rho^2(X, Y)} }
]
Now consider the worst-case scenario. The term that can be most significantly penalized is:
[
\left( \left( \frac{y - \mu_y}{\sigma(Y)} \right) - \rho(X, Y) \left( \frac{x - \mu_x}{\sigma(X)} \right) \right)^2
]
Because we are dealing with squared terms, the worst-case scenario is when the term inside the parentheses is maximized, which happens when (\frac{y - \mu_y}{\sigma(Y)}) and (\frac{x - \mu_x}{\sigma(X)}) are not aligned according to (\rho(X, Y)). Specifically, if:
[
\frac{y - \mu_y}{\sigma(Y)} = - \rho(X, Y) \left( \frac{x - \mu_x}{\sigma(X)} \right)
]
then:
[
\left( \left( \frac{y - \mu_y}{\sigma(Y)} \right) - \rho(X, Y) \left( \frac{x - \mu_x}{\sigma(X)} \right) \right)^2 = [2 \rho(X, Y) \left( \frac{x - \mu_x}{\sigma(X)} \right)]^2
]
This results in the term:
[
4 \rho^2(X, Y) \left( \frac{x - \mu_x}{\sigma(X)} \right)^2
]
Thus, when (\mathbf{x}) does not follow the correlation direction, the Mahalanobis distance increases significantly. The maximum contribution to the Mahalanobis distance from this non-alignment is:
[
\frac{4 \rho^2(X, Y)}{1 - \rho^2(X, Y)} \left( \frac{x - \mu_x}{\sigma(X)} \right)^2
]
In summary, the Mahalanobis distance penalizes points (\mathbf{x}) that deviate from the correlation direction, thus increasing the distance when (\mathbf{x}) doesn't follow the trend captured by the correlation (\rho). This penalizing effect is reflected more sharply when there’s a strong positive correlation.