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=SLOPE(B2:B9,A2:A9) | AThe arguments are the wrong way round. SLOPE needs known_y first, so the marks (B2:B9) must come before the hours (A2:A9). | |
| 2=INTERCEPT(B2:B9,A2:A9) | BReturns m, the gradient of the best-fit line, using the y values in B2:B9 and the x values in A2:A9 | |
| 3Once m is in E1 and c is in E2, a prediction for the x value in D2 is written as y = m*x + c | CThe equation is built incorrectly. It treats the intercept as the gradient, so m is not multiplied by x and c is multiplied instead. | |
| 4To get the intercept c of a line where sales are y (C2:C13) and temperature is x (B2:B13) | DReturns c, the value where the best-fit line crosses the y-axis (the predicted y when x is 0) | |
| 5=SLOPE(A2:A9,B2:B9) where A is x (hours studied) and B is y (test mark) | E=INTERCEPT(C2:C13,B2:B13) | |
| 6=E1+E2*D2 (trying to predict y from m in E1 and c in E2) | F=E1*D2+E2 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
SLOPE and INTERCEPT — SLOPE gives m and INTERCEPT gives c of the best-fit line, so a prediction can be written as y = m*x + c. Both functions take known_y first, then known_x.=SLOPE(B2:B9,A2:A9)=INTERCEPT(B2:B9,A2:A9)=SLOPE(B2:B9,A2:A9)=E1*A12+E2=E1*A12+E2