How to calculate moving covariance in a matrix?
Show older comments
Hi guys, Hi Guys, I have got a matrix :378x9. I need to calculate the moving covariance with a window size of 120(starting from row one). Can somebody help me please? Thank you very much Andrea
4 Comments
Image Analyst
on 9 Oct 2015
Covariance between what two random variables? What does each set of values represent and where do they come from?
Andrea Finocchiaro
on 9 Oct 2015
Image Analyst
on 9 Oct 2015
OK, so you're finding out the correlation coefficient between column 1 and col 2, col 1 and col 3, etc. But what do you mean by having a moving window? Do you want to not use the whole column, but just a subset/window of the columns, and then do it again with the window moved down until the whole column has eventually been looked at?
Andrea Finocchiaro
on 9 Oct 2015
Accepted Answer
More Answers (0)
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!