correlation

21
Correlation.

Upload: guest9fa52

Post on 20-Jun-2015

527 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Correlation

Correlation.

Page 2: Correlation

What is it?

• Two things correlate when they vary together.

• E.G such as temperature decreasing with altitude or land values falling with distance from the city centre.

• If, as one variable increases in value so does the other this is positive correlation.

• If one goes up as the other goes down this is a negative correlation.

Page 3: Correlation

Positive. Negative.

Page 4: Correlation

Correlation.

• Correlation is useful for three reasons.1. It is more precise than a graph. While two graphs

showing correlations may look similar, the correlation coefficients for the sets of data may well be slightly different.

2. If we wanted to compare several pairs of data, such as the relationship between temperature and altitude on twenty slopes, it would be far easier to compare twenty numbers than twenty graphs.

3. It is possible to test the correlation to see if it is really significant or whether it could have occurred by chance.

Page 5: Correlation

WARNING!!!!!!.

• The fact that two things correlate proves nothing. We can never conclude from statistical evidence alone that, because two things correlate, one must be affecting the other.

• All statistical tests must be supplemented with research regardless of the result.

Page 6: Correlation

Spearmans Rank.

• This technique is among the most reliable methods of calculating a correlation coefficient.

• This is a number which will summarise the strength and direction of any correlation between two variables.

Page 7: Correlation

Method.

Stage 1- Tabulate the data- I will show you how to do this with an example.

Stage 2 Find the difference between the ranks of each of the paired variables (d). Square these differences (d²) and sum them (Σd²).

Stage 3 Calculate the coefficient from (rs) from the formula…

Page 8: Correlation

• Rs = 1- 6Σd²

n³-n

Where d= The difference in rank of the values of each matched pair.

N= the number of pairs.

Page 9: Correlation

• The result can be interpreted from the scale. +1.0 0 -1.0

Perfect no Perfectpostive Correlation negativecorrelation correlation

Page 10: Correlation

Next.

• Now you determine whether the correlation you have calculated is really significant, or whether it could have occurred by chance.

Stage 4 Decide on the rejection level ( ).

This is simply how certain you wish to be that the correlation you have calculated could not just have occurred by chance. Thus, if you wish to be 95 % certain your rejection level is calculated as follows…

Page 11: Correlation

= 100-95

100

=0.05.

Page 12: Correlation

Stage 5.

• Calculate the formula for T.

T= Rs n-2 1- Rs²

Where Rs = spearmans rank correlation coefficient.

N= number of pairs.

Page 13: Correlation

• Calculate the degrees of freedom.

• Df = n-2.

Where n = the number of pairs.

Page 14: Correlation

Stage 7

• Look up the critical value in the t- table using the degrees of freedom and the rejection level.

• If the critical value is less than your t-value then the correlation is significant at the level chosen (95 %).

Page 15: Correlation

But what if my critical value is higher than my t value???

• This means that you cannot be certain that the correlation could not have occurred by chance. This may mean one of two things.

A- The relationship is not a good one and it is thus not really worth pursuing it any further.

B- The size of the sample you are using is too small to permit you to prove correlation.

Page 16: Correlation

Example.

• Population size and number of services in each of 12 settlements.

• Draw a graph for the following data set…

Page 17: Correlation

Settlement Population No. of Services.

1 350 3

2 5 632 41

3 6 793 43

4 10 714 87

5 220 4

6 15 739 114

7 8 763 72

8 9 982 81

9 6 781 73

10 4 981 35

11 1 016 11

12 2 362 19

Page 18: Correlation

Stages 1-2Settlement Population

Rank No. of services.

Rank Difference between ranks (d)

220 12 4 11 1 1

350 11 3 12 1 1

1 016 10 11 10 0 0

2 362 9 19 9 0 0

4 981 8 35 8 0 0

5 632 7 41 7 0 0

6 781 6 73 4 2 4

6 793 5 43 6 1 1

7 982 4 81 3 1 1

8 763 3 72 5 2 4

10 714 2 87 2 0 0

15 739 1 114 1 0 0

Page 19: Correlation

You Complete stages 3-7.

• Rs = 1- 6Σd² n³-n

• = 1- 6x12.

12³-12

=+0.96 (a strong positive correlation)

Page 20: Correlation

Stage 4 and 5.

Stage 4 Rejection level = 95% = 0.05.

Stage 5. T= Rs n-2 1- Rs²

= 0.96 12-2 1-0.96²

= 10.73

Page 21: Correlation

Stage 6 and 7

• Stage 6Df= (n-2) = (12-2) = 10.

Stage 7 df = 10 Rejection value = 0.05 Therefore critical value of t =2.23.

The critical value is less than our t- value (10.73). We can therefore conclude that there is a significant correlation between settlement size and the number of services offered in each.