Upload
neal-palmer
View
214
Download
2
Embed Size (px)
Citation preview
Spearmans Rank
Statistical Analysis to show Relationship Strength.
Results from a survey looking investigating the price of items in relation to the shops distance from a major tourist attraction
Convenience Store
Distance from CAM (m)
Rank distance Price of 50cl
bottle (€) Rank price
Difference between ranks
(d) d²
1 50 10 1.80 2 8 64
2 175 9 1.20 3.5 5.5 30.25
3 270 8 2.00 1 7 49
4 375 7 1.00 6 1 1
5 425 6 1.00 6 0 0
6 580 5 1.20 3.5 1.5 2.25
7 710 4 0.80 9 -5 25
8 790 3 0.60 10 -7 49
9 890 2 1.00 6 -4 16
10 980 1 0.85 8 -7 49
d² = 285.5
Rank distance - Rank price
SPEARMAN’S RANK CORRELATION COEFFICIENT
It says …
)1(6
12
2
nnd
rs
It allows us to …
Compare the RANK ORDER
of TWO Data Sets
Compare the RANK ORDER
of TWO Data Sets
)1(6
12
2
nnd
rs
Spearman’s Rank Correlation Coefficient
Spearman’s Rank Correlation Coefficient
The total ofThe total of
6 x6 x
The DIFFERENCES between the
RANKS assigned to each ‘price’
SQUARED
The DIFFERENCES between the
RANKS assigned to each ‘price’
SQUARED
The Number of different ‘sites’The Number of different ‘sites’
This example is based on a survey looking at price & distance
The Maths• The top line of the equation• d² (rank difference 2) = 285.5.• Multiplying this by 6 gives 1713.
• Now for the bottom line of the equation. • n (the number of sites) =10. • n³ - n :1000 – 10 = 990
• R = 1 - (1713/990) • R: 1 - 1.73 = -0.73
• What does this R value of -0.73 mean?• The closer R is to +1 or -1, the stronger the likely correlation.
Perfect positive correlation is +1 and a perfect negative correlation is -1. The R value of -0.73 suggests a fairly strong negative relationship.
nn
drs
3
261
What is it showing?
Total DisagreementTotal Agreement Overall Neither Agree or Disagree
rs close to 1 rs close to 0 rs close to -1
The significance of the relationship!
• The R value of -0.73 must be looked up on the Spearman Rank significance table.
• 'degrees of freedom' : This is the number of pairs in your sample minus 2 (n-2).
• 8 (10 - 2).
• Using the r value (y axis) the degrees of freedom value (x axis)plot the position of the graph (next page).
Tasks
• Work through the example on p.636 (Waugh), fill in the table & check that you understand how each column is calculated.
• Complete the tasks on the next 2 slides and
A student Surveyed the ages, in years, and the prices, in £’s, of ten second hand cars of a particular type, in a local paper and obtained the data in the table below:
What can you say about the relationship between the age and price of cars …
Age, years 6 2 9 5 13 4 7 8 3 10
Price, £’s 2790 5990 850 3100 650 3350 3790 1350 4590 990
Data Ranks Differences
Age Price Age Price d d2
Use the graph (p.637) to determine the significance of the relationship.
A student has been shown photographs of eight different people and asked to estimate their ages …The results are shown …
Actual age in years 54 88 22 70 30 15 47 6
Estimated Age 45 70 35 62 24 19 56 11
Data Ranks Differences
Actual Estimate Actual Estimate
d d2
What is the significance of the relationship?