Correlation From a Summary Table

Correlation & RegressionMedium+20 XP+20

Correlation From a Summary Table

A greenhouse trial recorded, for each of n=10n = 10n=10 plots, the daily hours of sunlight xxx and the yield yyy in grams. The raw pairs have been lost, but the lab notebook still holds the totals:

∑x=50,∑y=80,∑xy=470\sum x = 50, \qquad \sum y = 80, \qquad \sum xy = 470∑x=50,∑y=80,∑xy=470

∑x2=300,∑y2=800\sum x^2 = 300, \qquad \sum y^2 = 800∑x2=300,∑y2=800

Pearson's correlation coefficient is

r=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2  ∑(yi−yˉ)2r = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum (x_i - \bar{x})^2 \; \sum (y_i - \bar{y})^2}}r=∑(xi​−xˉ)2∑(yi​−yˉ​)2​∑(xi​−xˉ)(yi​−yˉ​)​

and the three deviation sums it needs can be rebuilt from raw totals using

Sxy=∑xy−(∑x)(∑y)n,Sxx=∑x2−(∑x)2n,Syy=∑y2−(∑y)2nS_{xy} = \sum xy - \frac{(\sum x)(\sum y)}{n}, \qquad S_{xx} = \sum x^2 - \frac{(\sum x)^2}{n}, \qquad S_{yy} = \sum y^2 - \frac{(\sum y)^2}{n}Sxy​=∑xy−n(∑x)(∑y)​,Sxx​=∑x2−n(∑x)2​,Syy​=∑y2−n(∑y)2​

What is Pearson's rrr for sunlight and yield?

Round your answer to 3 decimal places.

Pearson Correlation Coefficient (r)

Centered Deviations | Core Dataset (r = 0.878)

x̄ = 3.0ȳ = 3.200224466

Standardized Deviation Tooltip

Hover over a point to inspect its centered deviations and cross-product!

The Pearson r numerator is the sum of (x − x̄)(y − ȳ). When both variables deviate in the same direction — both above their means, or both below — the product is positive, pushing r towards +1.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.