A robot data summary can report Pearson correlation zero even when one recorded quantity follows an exact rule from another. The statistic measures normalized linear co-variation. It does not summarize every possible dependence between two variables.
An original finite model makes the distinction visible without a fitted dataset or a statistical test. It also separates covariance units, correlation normalization, and the meaning of a sample coefficient. No sensor data, software-library output, or observed robot behavior is claimed.
Declare a complete five-state model
Let a random variable X take values −2, −1, 0, 1, and 2, each with probability one fifth. Define Y = X². The five possible paired states are therefore (−2,4), (−1,1), (0,0), (1,1), and (2,4).
These are the complete states of a stipulated probability model, not five observations asserted to represent an unknown real population. Selecting X determines Y exactly. Negative and positive X values can yield the same Y, so knowing Y need not recover X's sign.
SciPy defines Pearson's coefficient through centered cross-products and describes its linear-association meaning. R documents covariance and correlation conventions, including the sample covariance denominator. The model and dependence checks here are original calculations.
Calculate the centered products
The mean of X is zero. The mean of Y is (4+1+0+1+4)/5 = 2. Centered X values remain [−2,−1,0,1,2], while centered Y values are [2,−1,−2,−1,2].
Their pairwise products are [−4,1,0,−1,4]. The sum is zero. Negative-side and positive-side contributions cancel, rather than each pair having no relationship.
The squared centered X values sum to 10. The squared centered Y values sum to 14. Pearson's coefficient for the listed equal-weight pairs is the centered-product sum divided by square root(10×14), giving exactly zero.
For the stipulated uniform population, variance of X is 10/5 = 2 and variance of Y is 14/5 = 2.8. Covariance is zero, and population correlation is zero divided by square root(2×2.8), also zero.
Neither variable is constant, so the normalization denominator is positive. A zero numerator here is a valid coefficient, unlike an undefined ratio caused by zero variance.
Test dependence directly
The marginal probability P(Y=4) is two fifths, because X can be −2 or 2. Conditional on X=2, however, P(Y=4 given X=2) is one.
Equivalently, the joint probability P(X=2 and Y=4) is one fifth, while the product P(X=2)P(Y=4) is two twenty-fifths. These differ, so X and Y are not independent.
This is an exact contradiction of independence inside the declared model. It does not depend on estimating a tiny nonzero coefficient, collecting more samples, or performing a significance test. A zero second-order cross-moment simply did not capture the quadratic rule.
The full relationship is easy to predict in one direction: given X, calculate X². A linear model through the means instead predicts a constant Y of two because its least-squares slope is the cross-product sum divided by 10, hence zero.
That constant prediction has squared residuals [4,1,4,1,4], totaling fourteen. The declared quadratic rule reproduces all five Y values exactly. This comparison concerns the constructed model; fitting a flexible rule to real samples would require separate evaluation of its predictive behavior.
Keep sample and population denominators separate
If the same five pairs were treated as a sample record, the conventional sample variances would be 10/4 = 2.5 and 14/4 = 3.5. The sample covariance would still be zero.
The factor one fourth cancels between covariance and the two sample standard deviations, leaving the same sample r of zero. Agreement of the correlation does not make the sample variance values identical to the finite-population values two and 2.8.
For an actual sample from an unknown population, observing r=0 would not prove that the population coefficient is exactly zero. Here exact population statements are available only because all probabilities were explicitly stipulated at the start.
Change representation without changing the dependence
Translate X to U = X+100. Centering U subtracts its new mean 100 and restores the original centered X values. The correlation with Y remains zero, while the exact rule becomes Y=(U−100)².
Now define V = 1,000Y+7. Its centered deviations are 1,000 times those of Y. The covariance numerator scales by 1,000 and the standard-deviation product scales by 1,000, so Pearson correlation remains unchanged.
The numerical covariance retains units and changes with such scaling. Correlation is dimensionless. Converting a coefficient into an asserted physical slope would therefore discard information about the two variables' scales.
Contrast an exact linear relationship
Using the same X values, define a different variable W = 3X+7. Its mean is seven and its centered values are three times X. Its cross-product sum with X is 30, and its squared-deviation sum is 90.
The coefficient is 30/square root(10×90) = 1. Replacing W by −W changes the coefficient to −1. These limiting values describe exact affine relationships for nonconstant variables, while the coefficient itself does not state the slope three or the offset seven.
If Y were replaced by a constant, its variance would be zero and Pearson's coefficient would be undefined. Assigning zero in that case would conflate an invalid normalization with the valid zero-correlation quadratic example.
Preserve pairs and the intended question
The five Y values are inseparable from their paired X values when calculating association. Summaries of each variable alone cannot reconstruct every joint relationship. Plotting or inspecting the paired structure can expose a shape that one linear coefficient omits.
A correlation number is therefore a useful defined summary, rather than a universal dependence detector or evidence of causation. Retain the paired population or sample definition, normalization convention, variable scales, and the relationship being assessed before interpreting zero as an absence of information.
Sources checked October 24, 2026:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pearsonr.html — SciPy v1.18.0 pearsonr documentation as accessed; centered-product formula, linear-association meaning, and constant-input boundary read. No test or library execution claimed.
https://stat.ethz.ch/R-manual/R-devel/library/stats/html/cor.html — R stats 4.6.0 development manual as displayed; covariance/correlation relationship and n−1 sample covariance convention read. No source data example reproduced.
Illustration note: A generic robot and laptop workspace is a concept illustration. It does not depict these invented values, a measured robot result, or an executed software test.