Problem 43274. Calculate correlation.
There are two data.
y1=[0 1 2 3 4]' y2=[2 3 4 5 6]'
We can see positive relationship between y1 and y2. The relationship between two data can be estimated using correlation coefficients.
https://en.wikipedia.org/wiki/Correlation_and_dependence
Calculate this between y1 and y2.
Solution Stats
Problem Comments
-
1 Comment
Dyuman Joshi
on 24 Oct 2020
Problem needs more test suites
Solution Comments
Show commentsProblem Recent Solvers69
Suggested Problems
-
13014 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1658 Solvers
-
Get the length of a given vector
10043 Solvers
-
07 - Common functions and indexing 5
401 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
366 Solvers
More from this Author27
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!