📖 理论背景
$(X,Y) \sim N(\mu_X, \mu_Y, \sigma_X^2, \sigma_Y^2, \rho)$,联合密度 $f(x,y) = \dfrac{1}{2\pi\sigma_X\sigma_Y\sqrt{1-\rho^2}} \exp\!\left\{-\dfrac{1}{2(1-\rho^2)}\left[\dfrac{(x-\mu_X)^2}{\sigma_X^2} - 2\rho\dfrac{(x-\mu_X)(y-\mu_Y)}{\sigma_X\sigma_Y} + \dfrac{(y-\mu_Y)^2}{\sigma_Y^2}\right]\right\}$。$\rho = 0$ 时等高线为椭圆对称于坐标轴;$|\rho| \to 1$ 时椭圆被压扁成直线。