Rank data with ties, find Spearman's rank correlation coefficient with a GDC, interpret it as association or agreement, and choose between Pearson's r and Spearman's r_s for linear, curved and outlier-affected data.
Each is in the Maths AI glossary, with every other term in the subject.
The extent to which two rankings of the same items place them in the same order, measured by , where 1 means identical orders and −1 means reversed orders.
A tendency for the values of two variables to change together, so that knowing one gives information about the other; the pattern need not be linear.
A relationship between two variables in which one variable always increases, or always decreases, as the other increases, at a rate that may change.
Data whose values can be placed in a meaningful order, but where the differences between values are not equal or not measured.
The position of a value when all the values of a variable are arranged in order, with 1 for the first value in the chosen order.
23 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
At a winter festival in Harbin, two judges, Mei and Arjun, rank eight ice sculptures, A to H, from best (1) to worst (8).
Sculpture | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
Mei's rank | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
Arjun's rank | 3 | 1 | 2 | 5 | 4 | 8 | 6 | 7 |
Find Spearman's rank correlation coefficient,
With a free account, Augment remembers where you stopped and what you have practiced.
A number from −1 to 1 that measures the strength and direction of the association between two variables, found by calculating Pearson's product-moment correlation coefficient for the ranks of the data instead of the data values.
The equal ranks given to equal data values, each equal to the mean of the positions the tied values occupy together.
Explain why or for any monotonic relationship, linear or not.
Determine whether Pearson's or Spearman's is the more appropriate measure for a data set, and justify the choice.
Explain the effect of an outlier on and on .
Explain why can stay the same when a data value changes.
Many relationships in the real world move in one direction without following a straight line. Richer countries tend to have longer life expectancy, but each extra thousand dollars of income adds less and less; a cup of tea cools quickly at first and then slowly; a pebble shrinks fast near the source of a river and slowly further downstream. Other data exist only as an order, such as two judges' placings of the same divers or a league table. Spearman's rank correlation coefficient measures how consistently two variables move together in such cases, by replacing every value with its position in order and then measuring how closely the two sets of positions agree.
The coefficient is named after the English psychologist Charles Spearman, who introduced it in 1904 in his research in psychology. It is used throughout the sciences, geography and psychology wherever data are ordered, curved or contain an extreme value that would distort Pearson's product-moment correlation coefficient (r).
Ranking replaces each value in a data set by its position when the values are put in order. The smallest value is given rank 1, the next smallest rank 2, and so on up to rank for the largest of values. The ranks keep the order of the data but lose the sizes of the gaps between values, so the values 3, 4 and 50 have ranks 1, 2 and 3, exactly the same as the values 3, 4 and 5.
Ranking can go in either direction: 1 for the smallest value or 1 for the largest. A league table gives rank 1 to the highest score, while a scientist usually gives rank 1 to the smallest measurement. Either choice works, as long as both variables are ranked in the same direction. Ranking one variable from the smallest and the other from the largest reverses one set of ranks, which changes the sign of the coefficient and turns a positive association into an apparently negative one.
Value | 12 | 7 | 19 | 15 |
|---|---|---|---|---|
Rank (1 = smallest) | 2 | 1 | 4 | 3 |
Rank (1 = largest) | 3 | 4 | 1 | 2 |
In every column of the table the two ranks add to , so one row of ranks is the other reversed. Reversing one variable's ranks multiplies the coefficient by but does not change its size.
Some data can be put in order even though the gaps between values have no fixed size. A customer rating of 1 to 5 stars, a finishing position in a race, a grade of A to E, or "strongly disagree" to "strongly agree" on a questionnaire are all of this kind. The step from 4 stars to 5 stars need not mean the same as the step from 1 star to 2 stars, so adding or averaging such values is open to question.
Ordinal data are already ranks, or can be turned into ranks directly. This makes them a natural fit for a rank correlation coefficient. Pearson's uses the actual sizes of the values, so it needs numerical data measured on a scale with equal steps, called quantitative data. Data that exist only as an order, such as a published league table that gives only positions, can be analysed with but not with .
When two or more values are equal, they cannot be put in order between themselves, so it would be unfair to give one of them a higher rank than the other. Instead, each tied value receives the mean of the ranks they would have occupied. Two values that would occupy places 4 and 5 both receive rank , and the next value receives rank 6. Three values sharing places 2, 3 and 4 all receive rank 3.
Averaging keeps the total of all the ranks the same as for untied data, , so the ranks stay centred on the same middle value, . The rank after a group of ties continues from the last position the group occupied, never from the averaged rank: after two values sharing rank 4.5 (places 4 and 5), the next value is ranked 6, not 5.5 or 5.
The formula works for any number of tied values, because the positions they share are consecutive whole numbers and the mean of consecutive whole numbers is the mean of the first and last.
Pearson's from subtopic 4.4 measures how closely a set of points on a scatter diagram lies to a straight line. Spearman's idea is to apply exactly the same calculation to the ranks instead of to the original values. If one variable always increases when the other increases, then the smallest is paired with the smallest , the second smallest with the second smallest, and so on, so the rank pairs are . These points lie exactly on a straight line, and Pearson's for them is exactly 1.
Because is a value of Pearson's , it shares the same range and the same reading of its sign.
A positive means that higher ranks of one variable tend to go with higher ranks of the other; a negative means that higher ranks of one variable tend to go with lower ranks of the other; a value near 0 means that the ranks show no consistent pattern.
The relationship that gives does not need to be linear. It only needs one variable to increase whenever the other increases. A relationship like this is called monotonic.
A (hypothetical) culture of bacteria starts with 50 cells and doubles every hour for 8 hours. The counts 50, 100, 200, …, 12,800 curve sharply upwards, so the points are far from a straight line and Pearson's is only 0.824. The ranks of time and of count, however, are both 1, 2, …, 9 in the same order. The scatter diagram of the ranks of the bacteria data shows nine points exactly on the line through and , so .

The same reasoning gives the meaning of the extreme values of .
Value of | What the ranks show | What the data show |
|---|---|---|
The two rankings are identical. | A perfectly monotonic increasing relationship (linear or curved). | |
One ranking is the exact reverse of the other. | A perfectly monotonic decreasing relationship (linear or curved). | |
close to 0 | No consistent pattern between the rankings. | No monotonic association (there may still be a non-monotonic pattern). |
When there are no tied ranks, Pearson's applied to ranks simplifies to a short formula. For each data pair, let be the difference between the two ranks. Then
where is the number of pairs. In practice is found with technology, so the formula serves mainly to show how the coefficient behaves. When the rankings are identical, every , so . The more the rankings disagree, the larger becomes and the smaller becomes. When one ranking is the reverse of the other, takes its largest possible value, , and the formula gives .
The simplification relies on the ranks being exactly the whole numbers 1 to . With tied ranks it no longer holds, and the formula gives a slightly different value from Pearson's of the ranks; the more ties, the larger the difference.
Every GDC can calculate Pearson's , so the same function gives once the ranks are entered. Most GDCs have no command that ranks data with averaged ties, so the ranks are usually worked out by hand and typed in.
Rank the first variable, giving tied values the mean of the positions they share.
Rank the second variable in the same direction (rank 1 for the smallest in both, or for the largest in both).
Enter the ranks of the first variable in one list and the ranks of the second variable in another, keeping each pair in the same row.
Run the linear regression or two-variable statistics function on the two lists of ranks. On a TI-84 Plus CE, STAT → CALC → LinReg(ax+b) shows once statistics diagnostics are switched on in the MODE screen; on a Casio fx-CG50, MENU → Statistics → CALC → REG → X → ax+b shows .
Write down the value of shown as , correct to 3 significant figures.
Spreadsheets can do the ranking too: the function RANK.AVG in common spreadsheet programs gives tied values their average rank, and the correlation function CORREL applied to the two columns of ranks then gives .
A value of is described by its sign (positive or negative) and its size (how close it is to 1 or −1). There is no single agreed scale for the size; a commonly used guide is set out in the table, and other sources draw the boundaries slightly differently.
Description | |
|---|---|
very weak | |
weak | |
moderate | |
strong |
The words used to interpret need care. Pearson's measures linear correlation between two variables. Spearman's measures the linear correlation between the ranks, and so describes a monotonic association between the variables themselves. A value of for income and life expectancy across twelve countries says that richer countries almost always have longer life expectancy; it does not say that life expectancy rises in a straight line with income.
There are two correct ways to interpret in words. The first speaks of association between the variables, for example "there is a strong positive association between practice time and typing speed". The second speaks of correlation between the ranks, for example "there is a strong positive linear correlation between the rank order of practice times and the rank order of typing speeds". Saying "there is strong linear correlation between practice time and typing speed" mixes the two and is wrong, because says nothing about whether the raw data lie near a line.
When both variables are rankings of the same items, such as two judges placing the same competitors, measures how far the two orders agree. A value close to 1 means the judges put the competitors in almost the same order; a value close to −1 means one judge's order is almost the reverse of the other's; a value near 0 means their orders have little in common.
In the diving example, , so the two judges show strong agreement in the order in which they placed the divers. Agreement between rankings does not mean that the judges gave the same scores: one judge could give every diver exactly one point more than the other and would still be 1, because only the order of the scores enters the calculation.
Spearman's coefficient shares the limits of every correlation coefficient. A strong association does not show causation: two variables can rise together because both depend on a third variable, as shoe size and reading age both depend on a child's age. A value of also comes from a sample, so a strong value from very few pairs (four or five, say) can arise by chance. Testing whether a value is large enough to rule out chance needs a critical value or a hypothesis test.
No equation comes from , so it cannot be used for prediction. There is no "Spearman regression line": the ranks have lost the sizes of the values, so they cannot turn a value of into a value of . Predictions are made with the regression line of y on x from subtopic 4.4, and only when the relationship is linear and the correlation is strong.
Pearson's measures how close the points are to a straight line. It is the right measure when the relationship is linear, and only then. Spearman's measures how consistently the relationship rises or falls, so it suits any monotonic relationship, whether straight or curved. Every linear relationship with a non-zero gradient is monotonic, so for linear data the two coefficients are usually close; for curved monotonic data, is closer to than is.
The four scatter diagrams of ten points each show the main patterns side by side, with both coefficients for each.

The first diagram shows linear data, where both coefficients are about 0.98. In the second, the points rise steeply and then level off: the relationship is perfectly monotonic, so , but the curve pulls down to 0.878. A value of alone would understate how perfectly consistent the pattern is. The third and fourth diagrams show the two main limitations of the coefficients: sensitivity to an outlier, and failure to detect a pattern that changes direction.
Neither coefficient measures a relationship that rises and then falls, or falls and then rises. In the U-shaped diagram, the points follow a clear curve, yet and , both close to 0. The ranks of go down and then up again as the ranks of increase, so there is no consistent direction for either coefficient to measure. A coefficient close to 0 therefore means "no linear relationship" for and "no monotonic relationship" for ; it never proves that the variables are unrelated.
Pearson's needs values measured on a numerical scale. When the data are ordinal, such as star ratings, positions in a league table or judges' placings, the sizes of the gaps are unknown and only can be used. Spearman's coefficient is also the natural choice when a question asks about agreement between two people's orderings, because agreement concerns order only.
The table brings together what each coefficient measures, when to use it and where it fails.
Pearson's | Spearman's | |
|---|---|---|
Calculated from | the data values | the ranks of the data values |
Measures | strength and direction of a linear relationship | strength and direction of a monotonic association |
when | all points lie on a straight line | the relationship is perfectly increasing or decreasing |
Suitable data | quantitative data with a linear pattern | quantitative data with any monotonic pattern; ordinal data; rankings |
Effect of an outlier | can change greatly | limited effect |
Uses sizes of differences | yes | no (only the order) |
Leads to a prediction equation | yes (regression line of on ) | no |
Fails when | the relationship is curved, or an outlier is present | the relationship is not monotonic |
Spearman's coefficient is not simply "better". Because it keeps only the order of the values, it throws away information. For linear data without outliers, Pearson's uses the full sizes of the values, measures exactly the relationship that a regression line models, and is the coefficient to report alongside a regression line.
YouTubeAn outlier is a value far from the rest of the data. Pearson's is calculated from distances from the mean, so one point a long way from the others can pull a long way from the value given by the rest of the data. Once data are ranked, however, the most extreme value can only be given rank 1 or rank , whatever its size. A value of 25 and a value of 2,500 at the top of a list both receive rank . This caps the influence of an extreme value, so is a robust measure, much less sensitive to outliers than .
The diagram with one outlier among the four relationships shows this. Without the outlier, the ten points lie almost exactly on a line, with and . One point recorded as 15 instead of 5 drops to 0.629, while falls only to 0.818. Raising the outlier further, to 20, drops to 0.460, yet stays at 0.818, because the point already has the highest rank.
The scatter diagram of the lateness data shows why falls: seven points lie close to a steep line, and the eighth sits far to the right, well below where that line would go.
Removing a point is not automatically correct. A genuine but extreme value, such as one student who really lives 25 km away, is part of the data; deleting it to improve misrepresents the situation. An outlier that comes from a recording error should be corrected or removed. Subtopic 4.1 gives the IQR test for deciding whether a value is an outlier: here the distances have and , so the upper fence is and 25.0 km is an outlier.
A change in a data value leaves unchanged whenever it leaves every rank unchanged. This happens if the value moves without passing or reaching any other value of the same variable. Pearson's uses the values themselves, so it changes whenever any value changes.
The robustness of comes at a price. Ranking treats a gap of 0.1 and a gap of 100 between neighbouring values in exactly the same way. Two data sets with very different patterns of spacing can have identical ranks, and so identical , while their values of differ greatly. When the size of the effect matters (how many extra years of life expectancy go with each extra thousand dollars of income, for example), cannot supply it, and a model fitted to the values is needed.
The Preston curve, first described by the demographer Samuel Preston in 1975, links a country's income per person to the life expectancy of its population. Life expectancy rises steeply with income in poorer countries and then levels off in richer ones. The relationship is a classic example of a monotonic but strongly curved pattern.
The table lists twelve countries across the full range of incomes, with GDP per capita measured at purchasing power parity (PPP), which adjusts for differences in prices between countries.
Country | GDP per capita, PPP (thousand international $) | Life expectancy at birth (years) |
|---|---|---|
Chad | 2.7 | 55.1 |
Ethiopia | 3.1 | 67.3 |
Pakistan | 6.0 | 67.6 |
Bangladesh | 9.2 | 74.7 |
India | 9.9 | 72.0 |
Viet Nam | 15.0 | 74.6 |
Indonesia | 15.4 | 71.1 |
Brazil | 21.2 | 75.8 |
China | 25.2 | 78.0 |
Poland | 48.5 | 78.3 |
United Kingdom | 60.8 | 81.2 |
Norway | 107.8 | 83.0 |
Source: World Bank, World Development Indicators (NY.GDP.PCAP.PP.CD and SP.DYN.LE00.IN), 2023 values, accessed 2026.
The scatter diagram of the twelve countries shows the Preston shape: a steep rise among the poorest countries, then a long, almost flat stretch from Poland to Norway.
Ranking both variables from the smallest gives the table of ranks. There are no ties in either variable, so the column of differences can also be used as a check with the formula for untied ranks.
Country | Rank of GDP | Rank of life expectancy | ||
|---|---|---|---|---|
Chad | 1 | 1 | 0 | 0 |
Ethiopia | 2 | 2 | 0 | 0 |
Pakistan | 3 | 3 | 0 | 0 |
Bangladesh | 4 | 7 | −3 | 9 |
India | 5 | 5 | 0 | 0 |
Viet Nam | 6 | 6 | 0 | 0 |
Indonesia | 7 | 4 | 3 | 9 |
Brazil | 8 | 8 | 0 | 0 |
China | 9 | 9 | 0 | 0 |
Poland | 10 | 10 | 0 | 0 |
United Kingdom | 11 | 11 | 0 | 0 |
Norway | 12 | 12 | 0 | 0 |
Ten of the twelve countries have the same rank for income and for life expectancy. Only Bangladesh and Indonesia swap places: Bangladesh has the fourth-lowest income but the seventh-lowest life expectancy, and Indonesia the reverse.
Pearson's for the raw data and Spearman's for the ranks, both from the GDC, are
The formula check gives the same , because there are no ties.
The two values describe the data differently. Pearson's suggests only a moderate linear correlation, because the points bend away from any straight line: Norway's income is far larger than Poland's or the United Kingdom's, but its life expectancy is only slightly higher. Spearman's shows a strong positive association: across these twelve countries, a higher income almost always goes with a longer life expectancy. Since the pattern is monotonic and curved, is the more appropriate measure.
The strong association does not show that income alone causes longer lives. Preston himself found that the whole curve moved upwards over the twentieth century, with life expectancy rising at every level of income through better public health, vaccination and medical technology. Some countries lie well below the curve; South Africa, for instance, had a 2023 GDP per capita of about 15.2 thousand international dollars but a life expectancy of only 66.1 years, much lower than other countries with a similar income. The sample of twelve countries was chosen to cover the range of incomes, not at random, so it shows the shape of the relationship rather than estimating a value for all countries. Finally, the ranks do not measure how much life expectancy changes per dollar; that question needs a model fitted to the values, such as one in terms of the logarithm of income, a technique for HL students in subtopic 4.13.
Spearman's rank correlation appears on Papers 1 and 2, usually as the last few parts (4–6 marks) of a longer question that has already asked for Pearson's , a regression line or an outlier check on the same data. The command terms are write down, complete (a table of ranks), find or calculate (), interpret, explain (why is unchanged, or why a coefficient is or is not appropriate), state … justify (which coefficient to use) and comment.
The recurring question shapes are:
complete a table of ranks with one or two tied values missing (one mark for each variable or each missing rank);
find (usually A2, with follow-through from the candidate's own ranks);
interpret as association between the variables or agreement between rankings (one mark, lost for "linear correlation" of the raw data);
explain why does not change when a value is corrected (the rank is the same);
state which coefficient is more appropriate, with a reason based on the scatter diagram (curved but monotonic, or an outlier present);
judge agreement between two judges or two tests.
The working to write down is the table of ranks (with averaged ties), the statement that is Pearson's of the ranks or simply value, and to 3 significant figures with its sign. Calculator notation and screen labels are not working. No Spearman formula and no rule for tied ranks appear in the formula booklet, so the ranking method has to be known.
Questions on agreement between judges reward two ideas in the interpretation: the strength (strong, moderate, weak) and a reference to the rank order. "The judges strongly agree on the order of the competitors" earns the mark; "the judges give similar scores" does not, because can be 1 even when one judge's scores are all higher.
When a question asks which coefficient to use, the reason must come from the shape of the data: "the scatter diagram is curved but always decreasing, so the relationship is monotonic but not linear" or "there is an outlier, and is less affected by outliers". Vague reasons such as "Spearman is more accurate" earn no marks.
Write down the ranks of the values 4.2, 3.8, 5.1, 3.8, 4.7, 5.1, 5.1, 2.9, using rank 1 for the smallest value. [2]
State the value of for each data set. [2] (a) : 1, 2, 3, 4, 5, 6 and . (b) : 1, 2, 3, 4, 5 and .
Two food critics rank the same six restaurants. Critic A ranks them 1, 2, 3, 4, 5, 6 and Critic B ranks the same restaurants 2, 1, 4, 3, 6, 5. Calculate and interpret the result. [3]
A kiosk records the hours of sunshine and the number of ice creams sold on seven days.
(a) Find the ranks of and of , using rank 1 for the smallest value. [2] (b) Find . [2] (c) Interpret your answer to (b). [1]
In question 4, the sunshine on the fifth day was really 11.5 hours, not 10.5 hours. Explain why the value of does not change. [1]
For each situation, state whether Pearson's , Spearman's or neither is appropriate, and justify your answer. [6] (a) The heights and arm spans of 30 adults, whose scatter diagram shows points close to a straight line with no outliers. (b) The age and value of 20 cars, where the value falls quickly at first and then more slowly. (c) Engine speed and fuel economy of a car, where fuel economy rises to a maximum and then falls.
The data set : 1, 2, …, 10 and : 2.1, 3.0, 4.2, 4.8, 6.1, 7.0, 7.9, 30, 10.1, 10.8 contains one outlier. (a) Find and . [3] (b) The value 30 is a recording error for 9.0. Find
A dealer records the age (years) and the price (thousand dollars) of ten used cars of the same model.
(a) Find Pearson's . [2] (b) Find the ranks of and of , using rank 1 for the smallest value. [2] (c) Find . [2] (d) The scatter diagram of against curves, with the price falling more slowly as the car gets older. State, with a reason, which coefficient is more appropriate, and interpret it. [3]
4, 2.5, 7, 2.5, 5, 7, 7, 1 (the two values 3.8 share positions 2 and 3; the three values 5.1 share positions 6, 7 and 8).
(a) , because increases whenever increases (monotonic increasing, although not linear). (b) , because decreases whenever increases.
Pearson's of the two rankings: ; check with no ties:
(a) Ranks of : 1, 3.5, 5, 2, 7, 3.5, 6. Ranks of : 1, 4, 5.5, 2, 7, 3, 5.5. (b) . (c) There is a strong positive association between hours of sunshine and ice creams sold: sunnier days tend to have higher sales.
11.5 hours is still the largest value of , so its rank is still 7; no ranks change, so is unchanged.
(a) Pearson's : the relationship is linear with no outliers, so measures it and uses the full values ( would also be acceptable, but gives less information). (b) Spearman's
(a) ;
(a) . (b) Ranks of : 1, 2.5, 2.5, 4, 5, 6, 7, 8, 9, 10. Ranks of : 10, 8, 9, 7, 6, 5, 4, 3, 1.5, 1.5. (c)
Ranking replaces each value by its position in order; both variables must be ranked in the same direction.
Tied values each receive the mean of the positions they occupy, and the next value continues from the last position used.
Spearman's rank correlation coefficient is Pearson's calculated for the ranks, found with a GDC; .
or for any perfectly monotonic relationship, linear or curved; near 0 means no monotonic association.
Interpret as association between the variables or agreement between rankings, or as linear correlation between the ranks, never as linear correlation of the raw data.
Pearson's suits linear relationships between quantitative variables; suits monotonic relationships, ordinal data and rankings; neither suits a relationship that changes direction.
An outlier can change greatly but has a limited effect on , because its rank is capped at 1 or .
does not change when a value changes without changing any rank; changes whenever a value changes.
Neither coefficient shows causation, and gives no equation for prediction.
I can rank a data set from the smallest or from the largest value.
I can give tied values the average of the positions they share and continue the ranking correctly.
I can check a set of ranks by comparing their total with .
I can find by entering the ranks into the GDC and reading off , not .
I can explain why for a curved relationship that always increases.
I can interpret in context using "association" or "agreement between rankings".
I can write a table of ranks as working before giving .
I can decide from a scatter diagram whether , or neither is appropriate, with a reason.
I can explain why an outlier affects more than .
I can explain why stays the same when a value changes but its rank does not.
I can explain why cannot be used to make predictions.
I can explain why the shortcut formula with differs from the GDC value when there are ties.
2 marks
A2
[2 marks]
Interpret your answer to part (a) in context.
2 marks
strong positive (correlation) A1
the two judges largely agree on the order of the sculptures A1
Note: Follow through from part (a).
[2 marks]
The table shows the scores of eight students, A to H, in a mathematics test and a physics test. The mathematics scores have been ranked, with the highest score given rank 1.
Student | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
Mathematics score | 78 | 65 | 91 | 52 | 84 | 70 | 59 | 88 |
Physics score | 72 | 61 | 85 | 58 | 72 | 66 | 49 | 90 |
Mathematics rank | 4 | 6 | 1 | 8 | 3 | 5 | 7 | 2 |
Physics rank |
Complete the table by writing down the physics ranks.
2 marks
Find Spearman's rank correlation coefficient, .
2 marks
Interpret your answer to part (b) in context.
1 mark
A park ranger in Vermont records the age, years, and the height, metres, of eight sugar maple trees.
(years) | 2 | 4 | 6 | 8 | 10 | 15 | 20 | 30 |
|---|---|---|---|---|---|---|---|---|
(m) | 1.1 | 2.6 | 4.3 | 5.6 | 6.8 | 8.9 | 10.3 | 11.8 |
Write down the value of Spearman's rank correlation coefficient, .
1 mark
Find Pearson's product-moment correlation coefficient, .
2 marks
Explain why
0
1 |
0 |
0 |
(b) Enter the ranks of in one list and the ranks of in a second list, and use the GDC's linear regression (or two-variable statistics) function on the two lists of ranks. The value of it gives is .
(c) There are no ties, so the formula applies. and .
The two methods agree, as they must when there are no ties. The value is close to 1, so there is a strong positive association between practice time and typing speed for these students: students who practise longer tend to type faster.
1
7 |
Rank from B | 3 | 6.5 | 2 | 6.5 | 4 | 5 | 1 | 8 |
Each row adds to 36, which equals , so the ranking is consistent.
(b) Pearson's for the two rows of ranks, from the GDC:
With ties present, the formula gives , which differs in the third significant figure. The value from the GDC, Pearson's of the ranks, is the one to give.
(b) Both values are close to 0, which suggests very weak association. A scatter diagram, however, shows a clear U-shape: electricity use falls as the temperature rises to about 15–20 °C and then rises again. The relationship is neither linear nor monotonic, so neither coefficient is suitable. Both coefficients describe the strength of the relationship as very weak when it is in fact strong but changes direction.
(c) There is a strong negative association between waiting time and satisfaction: customers who wait longer tend to give lower ratings.
The shortcut formula would give here, because three pairs of ties break the assumption behind it. Only the GDC value is correct.
(c) Spearman's . Every student who lives further away arrived later, so the association is perfectly monotonic. The outlier at 25.0 km, far beyond the other distances, lowers Pearson's from 0.998 to 0.776, while is unchanged because the outlier still has the highest rank in both variables.
A1
[2 marks]
(c) Pearson's for the ranks (M1)
A1
Accept only if one variable has been ranked in reverse and this is stated. Follow through from their ranks in (b).
[2 marks]
(d) There is a strong negative association between the distance downstream and the mean pebble length (pebbles tend to be smaller further downstream).
OR there is a strong negative linear correlation between the ranks of distance and the ranks of pebble length. A1
Do not accept "strong negative linear correlation between distance and length".
[1 mark]
(e) A1
the relationship is not linear (it is curved), but never increases as increases (the relationship is monotonic decreasing) R1
Do not award A1R0.
[2 marks]
(f) 15.0 km is still the greatest distance, so site H keeps rank 8 and none of the ranks change R1
[1 mark]
Total [10 marks]
2 marks