Calculator
Correlation coefficient calculator
In one sentence
Finds r from Sxx, Syy and Sxy.
Last checked Source: uk-dfe-alevel-maths-subject-content Source: Department for Education, GCE AS and A level subject content for mathematics (topics derived; every example and value computed here), uk-dfe-alevel-maths-subject-content www.gov.uk (opens in a new tab)
Inputs
- Sxx, Syy, Sxy
Worked input
- Input Sxx = 20, Syy = 900, Sxy = 130.
- r = 130/√18000 = 0.9690.
- Strong positive correlation.
- Take Sxx = 25, Syy = 16 and Sxy = 20, where the covariance is as large as it can be. The coefficient is r = Sxy/√(Sxx Syy) = 1. A coefficient of exactly one means the points lie on a straight line with a positive gradient, and the covariance squared equals the product of the two sums of squares, which is an exact test. Quote the coefficient to at least three decimal places, comment in the context of the problem, and remember that correlation does not prove that one variable causes the other, a distinction that carries a mark in examination questions. Check: Sxy² = 400 equals Sxx × Syy = 400, which is the Cauchy–Schwarz limit, so r = 1 means a perfect straight line.
- Take Sxx = 40, Syy = 90 and Sxy = −45, a moderate negative association. The coefficient is r = Sxy/√(Sxx Syy) = −3/4. A negative coefficient means that as one variable increases the other decreases, and the size tells you how closely the points follow the line, so a value like this describes a moderately strong relationship. Check: the product Sxx × Syy = 3600 has square root 60, and −45/60 = −0.75, so the sign comes only from Sxy.
- Take Sxx = 50, Syy = 72 and Sxy = 6, where the covariance is tiny compared with the spreads. The coefficient is r = Sxy/√(Sxx Syy) = 1/10. A coefficient near zero suggests no linear relationship, though a curved pattern could still exist, so always look at a scatter diagram before drawing a conclusion from the number alone. Check: √3600 = 60 and 6/60 = 0.1, a value close to zero, which means there is almost no linear association.
How to use it
- Enter the three sums.
Correlation coefficient calculator in your study of A-level maths, set out with its source.
Related pages include Linear regression calculator, Triangle area calculator, Cosine rule: find a side and Cosine rule: find an angle.
Study brief
- For the Pearson Edexcel Level 3 Advanced GCE in Mathematics, students must understand the product moment correlation coefficient. The symbol r represents this coefficient for a sample, while the symbol ρ signifies the coefficient for a population. When using a calculator to find the correlation coefficient, manual use of the formula is not necessary. The value of r must always satisfy the condition that its absolute value is less than or equal to 1. A result where r equals 1 or -1 indicates that all data points lie on a straight line. In the context of hypothesis testing, the null hypothesis is stated as ρ = 0. This test involves identifying the alternative hypothesis, which is labeled H1. Statistical testing also requires interpreting the p-value or using provided tables of critical values. Such testing involves concepts like the significance level, the test statistic, and determining whether to use a 1-tail test or a 2-tail test. Understanding these measures helps determine how closely data points follow a linear pattern.
Practise for free
Test yourself with exam-style questions and see why each answer is right or wrong.