共分散・相関係数

共分散

定義(共分散)

確率変数 \(X,Y\) に対して \[ \mathrm{Cov}[X,Y]=E[(X-E[X])(Y-E[Y])] \] を \(X,Y\) の共分散という。

\(\mathrm{Cov}[X,Y]\) は \(\sigma_{XY}\) とも書かれる。

定理(共分散の性質)
\(X,Y\) を確率変数、\(a,b\in\mathbb{R}\) とする。
  1. \(\mathrm{Cov}[aX,bY]=ab\mathrm{Cov}[X,Y]\)
  2. \(\mathrm{Cov}[X+Z,Y]=\mathrm{Cov}[X,Y]+\mathrm{Cov}[Z,Y]\)
  3. \(\mathrm{Cov}[X,Y]=E[XY]-E[X]E[Y]\)
  4. \(X\) と \(Y\) が互いに独立ならば、\(\mathrm{Cov}[X,Y]=0\)

相関係数

定義(相関係数)

確率変数 \(X,Y\) に対して \[ \rho[X,Y]=\frac{\mathrm{Cov}[X,Y]}{\sqrt{V[X]V[Y]}} \] を \(X,Y\) の相関係数という。

定理(相関係数の値域)

相関係数 \(\rho[X,Y]\) に対して \[ -1\le \rho[X,Y]\le1 \] が成り立つ。

証明