<?xml version="1.0" encoding="UTF-8"?>

<record version="6" id="1943">
 <title>covariance</title>
 <name>Covariance</name>
 <created>2002-02-13 23:19:17</created>
 <modified>2004-03-21 15:24:14</modified>
 <type>Definition</type>
 <creator id="127" name="Koro"/>
 <author id="2760" name="yark"/>
 <author id="72" name="drummond"/>
 <classification>
	<category scheme="msc" code="62-00"/>
 </classification>
 <synonyms>
	<synonym concept="covariance" alias="cov"/>
	<synonym concept="covariance" alias="correlation"/>
	<synonym concept="covariance" alias="correlation coefficient"/>
 </synonyms>
 <related>
	<object name="Variance"/>
 </related>
 <keywords>
	<term>covariance</term>
	<term>correlation coefficient</term>
 </keywords>
 <preamble>% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic} 

% there are many more packages, add them here as you need them

% define commands here
\newcommand{\mv}[1]{\mathbf{#1}}	% matrix or vector
\newcommand{\var}{\mathrm{var}}
\newcommand{\cov}{\mathrm{cov}}
\newcommand{\corr}{\mathrm{corr}}
\newcommand{\mvt}[1]{\mv{#1}^{\mathrm{T}}}
\newcommand{\mvi}[1]{\mv{#1}^{-1}}
\newcommand{\mpderiv}[1]{\frac{\partial}{\partial {#1}}} 
\newcommand{\defined}{:=}</preamble>
 <content>\PMlinkescapeword{mean}
\PMlinkescapeword{measure}
\PMlinkescapeword{ranges}

The \emph{covariance} of two random variables $X_1$ and $X_2$ with \PMlinkname{mean}{ExpectedValue} $\mu_1$ and $\mu_2$ respectively is defined as

\begin{equation}
\cov(X_1,X_2) \defined E[(X_1 - \mu_1)(X_2 - \mu_2)].
\end{equation}

The covariance of a random variable $X$ with itself is simply the variance, $E[(X - \mu)^2]$.

Covariance captures a measure of the correlation of two variables.  Positive covariance indicates that as $X_1$ increases, so does $X_2$.  Negative covariance indicates $X_1$ decreases as $X_2$ increases and vice versa.  Zero covariance can indicate that $X_1$ and $X_2$ are uncorrelated.

The \emph{correlation coefficient} provides a normalized view of correlation based on covariance:

\begin{equation}
\corr(X,Y) \defined \frac{\cov(X,Y)}{\sqrt{\var(X)\var(Y)}}.
\end{equation}

$\corr(X,Y)$ ranges from -1 (for negatively correlated variables) through zero (for uncorrelated variables) to +1 (for positively correlated variables).

While if $X$ and $Y$ are independent we have $\corr(X,Y)=0$, the latter does not imply the former.</content>
</record>
