Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1=CORREL(B2:B9, C2:C9) | AThe Python function that returns Pearson's r for two equal-length lists, just like CORREL in a spreadsheet. | |
| 2statistics.correlation(x, y) | BPearson's r can never be greater than +1, so 1.7 is impossible. The calculation or the reading of the result must be wrong. | |
| 3CORREL needs two ranges with the same number of values so each value is paired with another | C=CORREL(B2:B9, D2:D9) | |
| 4The result r always sits between -1 and +1, so 0.9 shows a strong positive link | DReturns Pearson's r for the paired Maths and English marks in the two equal-length ranges B2:B9 and C2:C9. | |
| 5=CORREL(B2:B9, C2:C7) | EThe ranges have different lengths (8 values and 6 values), so the data cannot be paired and CORREL gives an error. Use C2:C9. | |
| 6r = 1.7 from =CORREL(B2:B9, D2:D9) | F=CORREL(B2:B9, C2:C9) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
=CORREL(range1, range2) — 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.=CORREL(B2:B9,C2:C9)=CORREL(B2:B9,C2:C9)import statistics
r = statistics.correlation(x, y)=CORREL(B2:B9,C2:C9)r = statistics.correlation(x, y)
if abs(r) <= 1:
print("valid r")