Concept Flow - Correlation and covariance
Start with two data vectors X and Y
Calculate mean of X and Y
Compute deviations: X - mean(X), Y - mean(Y)
Calculate covariance: mean of product of deviations
Calculate standard deviations of X and Y
Calculate correlation: covariance divided by product of std devs
Output covariance and correlation values
This flow shows how MATLAB calculates covariance and correlation step-by-step from two data vectors.
