How to calculate covariace of two random variable

1 view (last 30 days)
Dear User
I have two random numbers for example:
X: mean=0.05 & Standard deviation=0.005
Y: mean=0.0455 & Standard deviation=0.005
How do I calculate Covariance(X,Y)?
Regards

Accepted Answer

Matt J
Matt J on 15 Apr 2019
cov(x(:),y(:))
  2 Comments
Mohsen
Mohsen on 15 Apr 2019
Thank you
But I only have mean and std. of the distributions, the vector of numbers is not available?
Matt J
Matt J on 15 Apr 2019
Edited: Matt J on 15 Apr 2019
The covariance cannot be derived from mean and std.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!