Upcoming SlideShare
×

# Spearman after priory man

4,008
-1

Published on

A slight edit on Prioryman's excellent Spearman ppt - adds in the idea of sample and chance to complete the picture - not much improvement possible on this well done ppt. I'd highlight the need for a minimum sample size of 15 though.

1 Like
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
Your message goes here
• Be the first to comment

Views
Total Views
4,008
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
56
0
Likes
1
Embeds 0
No embeds

No notes for slide

### Spearman after priory man

1. 1. How and why to use Spearman’s Rank…<br />If you have done scattergraphs, Spearman’s Rank offers you the opportunity to use a statistical test to get a value which can determine the strength of the relationship between two sets of data…<br />
2. 2. So how do we do it?<br />This is the equation, and looks complicated, so let’s think carefully about how we can do this… <br />In the above, rsrefers to the overall value or rank<br />The equation has to be done before the value is taken away from 1<br />In the above equation, the sign means ‘the total of’<br />d2 is the first thing we will try to establish in our ranked tables (see next slides)<br />‘n’ refers to the number of sites or values you will process – so if there were there 15 river sites, ‘n’ would be 15. If there were 20 pedestrian count zones, ‘n’ would be 20, and so on…<br />The best way to do this would be through an example. <br />If we were looking at Settlement patterns for a town’s CBD in Geography, we may wish to compare aspects of the town, such as whether the number of people in a zone affect the type of shops that locate there (i.e. – convenience shops)<br />To do this, we would construct a table as shown overleaf…<br />
3. 3. 1. Here we have laid out a table of each of the twelve zones in a town<br />2. Pedestrian counts for each zone here<br />3. Number of Convenience shops for each zone here<br />4. We now need to rank the data (two highlighted columns)– this is shown overleaf<br />
4. 4. You will see here that <br />on this example, the<br />pedestrian counts<br />have been ranked <br />from highest to <br />Lowest, with the <br />Highest value (70)<br />Being ranked as <br />Number 1, the <br />Lowest value (8) <br />Being ranked as <br />Number 12.<br />
5. 5. So that was fairly easy…<br />We need to now do the next column for Convenience shops too.<br />But hang on!<br />Now we have a problem…<br />We have two values that are 8, so what do we do?<br />The next two ranks would be 4 and 5; we add the two ranks together and divide it by two. So these two ranks would both be called 4.5<br />
6. 6. This is normally the point where one of the biggest mistakes is made. Having gone from 4.5, students will often then rank the next value as 5. <br />But they can’t! Why not?<br />Because we have already used rank number 5! So we would need to go to rank 6<br />This situation is complicated further by the fact that the next two ranks are also tied.<br />So we do the same again – add ranks 6 and 7 and divide it by 2 to get 6.5<br />
7. 7. Having ranked both sets of data we now need to work out the difference (d) between the two ranks. To do this we would take the second rank away from the first.<br />This is demonstrated on the next slide<br />
8. 8. The difference between the two ranks has now been established <br />So what next? We need to square each of these d values…<br />Don’t worry if you have any negative values here – when we square them (multiply them by themselves) they will become positives<br />
9. 9. So, the first value squared would be 0.25 (-0.5 x -0.5)<br />
10. 10. So what do we with these ‘d2’ figures?<br /> First we need to add all of the figures in this d2 column together<br />This gives us…. 32<br />Now we can think about doing the actual equation!<br />
11. 11. Firstly, let’s remind ourselves of the equation...<br />In this equation, we know the total of d2, which is 32<br />So the top part of our equation is…<br />6 x 32<br />We also know what ‘n’ is (the number of sites or zones - 12 in this case), so the bottom part of the equation is…<br />(12x12x12) - 12<br />
12. 12. We can now do the equation…<br />192<br />1716<br />6 x 32<br />123 - 12<br />OK – so this gives us a figure of 0.111888111888<br />Is that us finished?<br />Sadly not!<br />
13. 13. This is the equation, which we will by now be sick of!<br />I have circled the part of the equation that we have done…<br />Remember that we need to take this value that we have calculated away from 1. Forgetting to do this is probably the second biggest mistake that people make!<br />So…<br />1 – 0. 111888111888 = 0.888<br />
14. 14. So we have our Spearman’s Rank figure….But what does it mean?<br />-1<br />0<br />+1<br />0.888<br />Your value will always be between -1 and +1 in value. As a rough guide, our figure of 0.888 demonstrates there is a fairly positive relationship. It suggests that where pedestrian counts are high, there are a high number of convenience shops<br />Should the figure be close to -1, it would suggest that there is a negative relationship, and that as one thing increases, the other decreases.<br />
15. 15. However…<br /> Just looking at a line and making an estimation isn’t particularly scientific. It might be that just by chance you have found a relationship in your sample of data. <br />
16. 16. To be sure that chance is not the reason for the relationship, we need to look in critical values tables to see the level of significance and strength of the relationship. This is shown overleaf…<br />
17. 17. 1. This is a critical values table and the ‘n’ column shows the numbers of sites or zones you have studied. In our case, we looked at 12 zones.<br />2. If look across we can see there are two further columns – one labelled 0.05, the other 0.01.<br />The first, 0.05 means that if our figure exceeds the value, we can be sure that 95 times in 100 the figures occurred because a relationship exists, and not because of pure chance<br />The second, 0.01, means that if our figure exceeds this value, we can be sure that 99 times in 100 the figures occcurred because a relationship exists, and did not occur by chance.<br />We can see that in our example our figure of 0.888 exceeds the value of 0.591 at the 0.05 level and also comfortably exceeds value at the 0.01 level too.<br />
18. 18. In our example above, we can see that our figure of 0.888 exceeds the values at both the 95% and 99% levels. The figure is therefore highly significant<br />
19. 19. Finally…<br />You need to think how you can use this yourself…I would advise that you do scattergraphs for the same sets of data so that you have a direct comparison<br />
20. 20. We can therefore conclude<br />that the relationship observed in the sample has been caused <br />by something other than<br />chance and may reflect a real causality in the total <br />population of all shops that could be studied.<br />
1. #### A particular slide catching your eye?

Clipping is a handy way to collect important slides you want to go back to later.