Question: how to calculate the covariance between two variables?
Answer: Covariance measures the total variation of two random variables from their expected values. ...  Obtain the data. Calculate the mean (average) prices for each asset. For each security, find the difference between each value and mean price. Multiply the results obtained in the previous step.