Calculating Pearson's r with CORREL
Returns Pearson's r, from -1 to +1, showing the strength and direction of the linear link between two equal-length paired ranges of data.
Understanding Calculating Pearson's r with CORREL in VCE Data Analytics U4O1
What it does: Both B2:B9 and D2:D9 hold 8 values, so every Maths mark pairs with a Science mark and CORREL works. A CORREL result is never below -1 or above +1. Values near +1 show a strong positive linear link. CORREL needs two ranges of paired data. One range alone gives an error because there is nothing to compare it with. Pearson's r always sits between -1 (perfect negative link) and +1 (perfect positive link). It is not a percentage. The two ranges must be the same length so that every value in one has a partner in the other. Unequal lengths give a #N/A error.
Common mistakes: The two lists must be the same length so each x value has a matching y value. x has 4 values but y has only 3, so st.correlation() raises an error. y should have 4 values, like [50, 60, 75, 85]. The spreadsheet function is called CORREL, not CORRELATION. Using the wrong name gives a #NAME? error. It should be =CORREL(B2:B9, C2:C9).
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 3–37) and word search (Modules 3–62).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
=CORREL(range1, range2)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →