Checking a curved pattern whose Pearson coefficient is zero
A Pearson coefficient of zero can come from data that follow an exact rule. This worksheet uses y = x squared to show a perfect curve and a zero linear correlation in the same list.
What a zero coefficient actually reports
Pearson's r measures how well the pairs line up along a straight line. It is built from the centered cross-product, the sum of (x minus the mean of x) times (y minus the mean of y), divided by a scale factor from the spread of each list. A value of zero means that cross-product is zero: above-average x values are not, on balance, paired with above-average or below-average y values. It says nothing about whether y depends on x in some other way. A curve that rises and falls symmetrically can have no tilt at all in this sense, so the coefficient reports no linear association even when the dependence is complete.
Three symmetric pairs with y = x squared
Take x = -1, 0, 1 and set y equal to x squared, so y = 1, 0, 1. Every y value follows from x by a fixed rule, so knowing x tells you y with no uncertainty. The mean of x is 0 and the mean of y is 2/3. The centered x values are -1, 0 and 1, and the centered y values are 1/3, -2/3 and 1/3. The cross-product is (-1)(1/3) + (0)(-2/3) + (1)(1/3), which is -1/3 + 0 + 1/3 = 0. The Pearson calculator returns 0 for these pairs, and the page reports it as exactly zero even though y is a function of x.
Why the contributions cancel
The point at x = -1 and the point at x = 1 have the same y, so their centered y values are equal. Their centered x values are opposite in sign. Multiplying each x deviation by the common y deviation gives two products of equal size and opposite sign, which add to zero. The middle point sits at the mean of x, where the centered x is zero, so it contributes nothing to the sum. Cancellation like this happens whenever the x values are arranged symmetrically around their mean and y is an even function of x, meaning y at x equals y at minus x. The squared relationship is the simplest even function. The absolute value of x and the cosine of x also qualify, so the same cancellation appears for them when the x values are symmetric around zero.
Adding more symmetric pairs
Extend the list to x = -2, -1, 0, 1, 2 with y = 4, 1, 0, 1, 4. The mean of x is 0 and the mean of y is 2. The centered y values are 2, -1, -2, -1, 2. The cross-product is (-2)(2) + (-1)(-1) + (0)(-2) + (1)(-1) + (2)(2), which is -4 + 1 + 0 - 1 + 4 = 0. The result is again zero, and the page confirms it with the five pairs. Seven pairs from -3 to 3 with y = 9, 4, 1, 0, 1, 4, 9 also return zero. More points along the same symmetric curve never create a tilt, because each pair at positive x is balanced by its mirror.
Break the symmetry and the coefficient changes
Use only the right half of the curve: x = 0, 1, 2 with y = 0, 1, 4. The rule is the same, y = x squared, but the points no longer mirror each other. The mean of x is 1 and the mean of y is 5/3. The cross-product is 4, the sum of squares for x is 2 and the sum of squares for y is about 8.667, so r = 4 / sqrt(2 × 8.667), which is about 0.961. The identical relationship now produces a strong positive Pearson coefficient. The coefficient therefore depends on which part of a curve you sampled, in addition to the curve itself.
What to look at besides one coefficient
A scatterplot reveals a curve at a glance, which a single number cannot. For paired data that you suspect is nonlinear, plot y against x first. Other summaries can help after that: Spearman's rho looks for consistent increase or decrease, but it also returns zero for a symmetric parabola, since the ranks rise and then fall in balance. Fitting a model with a squared term, or plotting y against x squared, can show a relationship that the linear coefficient hides. The goal is to choose a summary that matches the shape you can see, and a zero coefficient is a prompt to look at the data rather than a conclusion.
Zero correlation and independence
Independent variables do have a Pearson correlation near zero, so people sometimes reverse the statement and treat a zero coefficient as proof of independence. This worksheet is a direct counterexample. The variables here are as dependent as variables can be, since y is computed from x, and their coefficient is zero. Uncorrelated and independent are different properties. Independence implies zero correlation when the correlation exists, and the reverse implication fails in general. Keep that distinction when reading a report that states two measures are uncorrelated, since the statement covers only the linear part of their relationship.
Hand arithmetic versus real measurements
The pairs are constructed so that the arithmetic can be done by hand, and the check says nothing about real measurements, which carry noise that would give a coefficient close to zero rather than exactly zero. The example also does not support any causal claim. Calling the relationship exact means only that y equals x squared for these listed values. When you use the calculator on your own data, treat a coefficient near zero as a reason to inspect a plot, and report the shape you see along with the number. Stating that the pairs follow y = x squared tells a reader far more than r = 0 alone.
Spotting hidden curves in a table of numbers
Without a plot, a few quick checks can warn you that a zero coefficient hides structure. Sort the pairs by x and read down the y column. If y falls and then rises, or rises and then falls, the relationship changes direction, and a straight line will average the two halves toward zero. Compare the y values at x values that sit equally far on either side of the mean of x, as with -2 and 2 here. Equal or very close values at mirrored positions point to a symmetric pattern. A related habit is to compute r separately for the lower and upper halves of x, which in this example gives strongly negative and strongly positive values that cancel when combined.
Reproduce the checks
Three symmetric pairs
Open the Pearson Correlation Calculator and enter:
- X observations
-1,0,1- Y observations
1,0,1
Expected output:
R
0The values follow an explicit square relationship.
Five symmetric pairs
Open the Pearson Correlation Calculator and enter:
- X observations
-2,-1,0,1,2- Y observations
4,1,0,1,4
Expected output:
R
0The expanded curved pattern still has zero centered linear cross-product.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference ↗ · 2026-10-08