Covariance X = discrete random variable X X i = value of the ith outcome of X P(x i y i ) = probability of occurrence of the ith outcome of X and ith outcome.