Can anyone help me understand the Pearson correlation formula?
the sample r = the mean of the products of the standard scores of variables X and Y.I kind of understand why they need to standardize X and Y, but how to understand the products of both the z scores?
This formula is also called “productmoment correlation coefficient”, but what’s the rationale for the product action?
I am not sure if I have made my question clear, but I just want to remember the formula intuitively.
Answer
In the comments, 15 ways to understand the correlation coefficent were suggested:
 “Thirteen Ways to Look at the Correlation Coefficient” (Rodgers & Nicewander 1988)
 Via covariance
 Via circles
The 13 ways discussed in the Rodgers and Nicewander article (The American Statistician, February 1988) are

A Function of Raw Scores and Means,
r=∑(Xi−ˉX)(Yi−ˉY)√∑(Xi−ˉX)2(Yi−ˉY)2.

Standardized Covariance,
r=sXY/(sXsY)
where sXY is sample covariance and sX and sY are sample standard deviations.

Standardized Slope of the Regression Line,
r=bY⋅XsXsY=bX⋅YsYsX,
where bY⋅X and bX⋅Y are the slopes of the regression lines.

The Geometric Mean of the Two Regression Slopes,
r=±√bY⋅XbX⋅Y.

The Square Root of the Ratio of Two Variances (Proportion of Variability Accounted For),
r=√∑(Yi−^Yi)2∑(Yi−ˉY)2=√SSREGSSTOT=sˆYsY.

The Mean CrossProduct of Standardized Variables,
r=∑zXzY/N.

A Function of the Angle Between the Two Standardized Regression Lines. The two regression lines (of Y vs. X and X vs. Y) are symmetric about the diagonal. Let the angle between the two lines be β. Then
r=sec(β)±tan(β).

A Function of the Angle Between the Two Variable Vectors,
r=cos(α).

A Rescaled Variance of the Difference Between Standardized Scores. Letting zY−zX be the difference between standardized X and Y variables for each observation,
r=1−s2(zY−zX)/2=s2(zY+zX)/2−1.

Estimated from the “Balloon” Rule,
r≈√1−(h/H)2
where H is the vertical range of the entire X−Y scatterplot and h is the range through the “center of the distribution on the X axis” (that is, through the point of means).

In Relation to the Bivariate Ellipses of Isoconcentration,
r=D2−d2D2+d2
where D and d are the major and minor axis lengths, respectively. r also equals the slope of the tangent line of an isocontour (in standardized coordinates) at the point the contour crosses the vertical axis.

A Function of Test Statistics from Designed Experiments,
r=t√t2+n−2
where t is the test statistic in a twoindependent sample t test for a designed experiment with two treatment conditions (coded as X=0,1) and n is the combined total number of observations in the two treatment groups.

The Ratio of Two Means. Assume bivariate normality and standardize the variables. Select some arbitrarily large value Xc of X. Then
r=E(YX>Xc)E(XX>Xc).
(Most of this is verbatim, with very slight changes in some of the notation.)
Some other methods (perhaps original to this site) are

Via circles. r is the slope of the regression line in standardized coordinates. This line can be characterized in various ways, including geometric ones, such as minimizing the total area of circles drawn between the line and the data points in a scatterplot.

By coloring rectangles. Covariance can be assessed by coloring rectangles in a scatterplot (that is, by summing signed areas of rectangles). When the scatterplot is standardized, the net amount of color–the total signed error–is r.
Attribution
Source : Link , Question Author : Aaron Lu , Answer Author :
5 revs, 2 users 89%