Concept Flow - Correlation coefficient with np.corrcoef()
Start with two data arrays
Call np.corrcoef(x, y)
Calculate means of x and y
Calculate deviations from means
Calculate covariance matrix
Normalize by std deviations
Return 2x2 correlation matrix
Extract correlation coefficient value
This flow shows how np.corrcoef() takes two data arrays, computes their covariance matrix normalized by standard deviations, and returns the correlation matrix.