{ "cells": [ { "cell_type": "markdown", "id": "20fce00f", "metadata": {}, "source": [ "# ML, Data Analysis\n", "### Probability: covariance \n", "\n", "The **covariance** is a measure that indicates the extent to which two random variables change together. It is the expected value of the product of their deviations from their individual means. specifically covariance between two random variables $X$ and $Y$ is computed by the following formula:\n", "
\n", "$\\large cov(X,Y)=E[(X-E[X])(Y-E(Y))]$\n", "\n", "\n", "where $E[X]$ and $E[Y]$ denote the *expected values* of random variables $X$ and $Y$, respectively. We have discussed about the **expected value** in an earlier post.\n", "