Mann Whitney U Test And Chi Squared
Upcoming SlideShare
Loading in...5
×
 

Mann Whitney U Test And Chi Squared

on

  • 7,683 views

 

Statistics

Views

Total Views
7,683
Views on SlideShare
5,453
Embed Views
2,230

Actions

Likes
0
Downloads
92
Comments
0

29 Embeds 2,230

http://abbeyfieldhumanities.blogspot.co.uk 1923
http://abbeyfieldhumanities.blogspot.com 115
http://geogabout.blogspot.co.uk 50
http://flavors.me 38
http://www.slideshare.net 24
http://abbeyfieldhumanities.blogspot.sg 22
http://humsvle.blogspot.com 8
http://abbeyfieldhumanities.blogspot.in 7
http://statisticaltests.weebly.com 6
http://thehumanitiessite.blogspot.com 4
http://www.weebly.com 4
http://abbeyfieldhumanities.blogspot.com.au 4
http://abbeyfieldhumanities.blogspot.hk 3
http://abbeyfieldhumanities.blogspot.ch 3
http://abbeyfieldhumanities.blogspot.be 2
http://humsvle.blogspot.co.uk 2
http://abbeyfieldhumanities.blogspot.ie 2
http://abbeyfieldhumanities.blogspot.com.tr 2
http://abbeyfieldhumanities.blogspot.it 1
http://abbeyfieldhumanities.blogspot.jp 1
http://geogabout.wordpress.com 1
http://abbeyfieldhumanities.blogspot.de 1
http://abbeyfieldhumanities.blogspot.co.nz 1
http://abbeyfieldhumanities.blogspot.ae 1
http://abbeyfieldhumanities.blogspot.dk 1
http://abbeyfieldhumanities.blogspot.fr 1
http://abbeyfieldhumanities.blogspot.nl 1
http://abbeyfieldhumanities.blogspot.com.es 1
http://abbeyfieldhumanities.blogspot.ca 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Mann Whitney U Test And Chi Squared Mann Whitney U Test And Chi Squared Presentation Transcript

  • Mann-Whitney U Test and Chi Squared.. More tests of significance- Yipee.
  • The Mann Whitney U Test.
    • This test should be used when you are comparing two places.
    • For example- The micro climate of a wood compared with a field.
    • There are 3 versions, their use of which depends on the number of observations you have carried out.
  • Fewer than 9 readings.
    • Stage1- Call one sample A and the other B
    • Stage 2 Call the number of values in the smaller sample n1 and the number of samples in the larger sample n2.
    • Stage 3 Place all the values together in rank order. (from smallest to largest)
    • Stage 4 Inspect each B in turn and count the number of A’s which precede it. Add up the total to get a U value.
    • Stage 4 repeat stage 4, but this time inspect each A in turn and count the number of B’s which precede it. Add up the total to get a second U value.
    • Taking the smaller of the two U values look up the probability value associated with it in the appropriate table. Multiply this by 100 to get the percentage probability figure that the difference between your two sample sets could have occurred by chance.
    View slide
  • Example.
    • A Temps out a wood 3.5, 3.7, 4.4, 4.0, 4.6, 4.5
    • B Temps in a wood 3.2, 3.3, 4.2, 3.4, 3.6, 4.3
    • N1 =6
    • N2 = 6
    • B B B A B A A B B A A A
    • 3.2 3.3 3.4 3.5 3.6 3.7 4.0 4.2 4.3 4.4 4.5 4.6
    • STAGE 4 U= 0+0+0+1+3+3=7
    • STAGE 5 U= 3+4+4+6+6+6= 29.
    • STAGE 6 U= 7. The correct table is D. The critical value = 0.047X100 = 4.7
    • The chance that the temperatures measured out of the wood were warmer just by chance is only 4.7%
    View slide
  • 2
    • Fewer than 20 readings (n1) in one sample and 9-20 readings in the other.
    • Stage 1-Tabulate the readings in two separate columns. Rank the readings, treating them as one group. The smallest value is rank 1.
    • Stage 2 – Add the ranks for n1 (to get ∑ R1). Add the ranks for n2 (∑ R2).
    • Stage 3 Calculate the formula
    • U1= n1n2+ 1 n1 (n1+1) - ∑r1.
    • 2
    • N1= number of sample readings in one area.
    • N2= number of sample readings in the other area, with n1 representing the smaller of the two numbers, if they are different.
    • ∑R1 = sum of the ranks of readings.
    • Stage 4 Calculate the similar formula
    • U2= n1n2+ 1 n2 (n2 + 1) - ∑R2.
    • 2
    • ∑ R2 =sum of the ranks of readings of n2.
    • Stage 5 You now have two U values. Select the smallest of the two.
    • Using your values of n1 and n2, look up the critical value of U in table J.
    • If the critical value U is more than your calculated value of U then there is a 5% or less probability that the difference between the two samples sets could have occurred by chance.
    • If the critical value of U is less than your calculated value of U, then there is a more than 5% probability that the difference between the two sample sets could have occurred by chance alone.
  • Example.
    • Aim to see if office rents are higher in west London than London Docklands.
    26.2 30.6 36.4 30.0 33.9 30.9 34.9 32.9 34.2 28.3 34.5 33.2 28.4 32.0 36.1 31.1 35.6 31.0 36.6 26.6 31.2 30.4 32.6 Docklands West London
  • Stage 1 and 2. 1 26.2 30.6 36.4 30.0 30.9 32.9 28.3 33.2 32.0 31.1 31.0 26.6 30.4 Docklands ∑ R2= 114 ∑ R1 =162 7 22 5 16 33.9 8 19 34.9 14 17 34.2 3 18 34.5 15 4 28.4 12 21 36.1 10 20 35.6 9 23 36.6 2 11 31.2 6 13 32.6 Rank (R2) Rank (R1) West London
  • Stage 3
    • U1= n1n2+ 1 n1 (n1+1) - ∑r1.
    • 2
    • 10X 13 + 1 10(10+1) -162= 23
    • 2
    • =23
  • Stage 4
    • U2= n1n2+ 1 n2 (n2 + 1) - ∑R2.
    • 2
    • 10X 13 + 1 X 13(13+1) – 114= 107
    • 2
    • =107
  • Stage 5
    • N1 =10
    • N2 = 13
    • Critical value = 37.
    • 37 is more than 23, therefore there is a 5% or smaller probability that property values are higher in west London than in the Docklands.
  • Samples of more than 20
    • Stages 1-3 as we already discussed. This will give you the value of U, n1 and n2.
    • Stage 4 Calculate Z
    • Z= U – n1+n2
    • (n1)(n2)(n1+n2+1)
    • 12
  • Stage 5
    • Look up your critical value using your Z value. Multiply this by 100 to find the percentage probability that the difference between the two sample sets could be due to chance.
  • Chi Squared.
    • The Chi Squared test can only be used on data which has the following characteristics.
    • The data must be in the form of frequencies counted in each of a number of categories. Data on the interval scale (Data which have a precise numerical meaning - height above sea level, population of a town etc) can be grouped into categories to enable this test.
    • Total observations need to be more than 20.
    • The expected frequency should not be less than 5.
    • The observations should not be such that one influences the other.
  • Chi- Squared for 2 variables.
    • Stage 1- Tabulate the data- I will show you how to do this in a few slides- labelled 0
    • Stage 2- Calculate the number of counts you would expect to find in each category if the categories had no impact on these.
    • Stage 3 calculate the formula…
    • Xsquared= ∑ (O-E)squared
      • E.
      • X squared= Chi Squared Figure.
      • O=Observed Frequency.
      • E= Expected frequency.
  • Stage 4 and 5
    • Stage 4- Calculate the degrees of freedom. This is simply one less than the total number of categories.
    • Df= n – 1.
    • Where Df = degrees of freedom.
    • N= Number of categories in the test.
    • Stage 5- Using the worksheet, the calculated value of Xsquared and the degrees of freedom, read off the probability that the data frequencies you are testing could have occurred by chance.
  • Example.
    • You have visited four equal size areas, each on a different rock type. You counted the number of streams in each area.
    • The results were as follows.
    • Rock Type. No. of streams.
    • Chalk 7
    • Granite 58
    • Limestone 15
    • Sandstone 20
  • What do we want to know
    • You now wish to know if these results are a true reflection of the nature of each rock type or whether they could be simply the result of chance.
    • The Chi Squared test can be used because…
    • The data is in the form of counts.
    • The total number of streams observed exceeds 20.
    • The expected frequency in any one fraction exceeds 4. This is the number of streams you would expect if rock type had no influence on stream densities. In this case it is the total number of streams (100) divided by the number of rock types (4).
    • The observations are independent (the number of streams on one rock type does not influence the number of streams on another).
    • The hypothesis we are trying to prove is that there is a significant difference between the sample data sets i.e rock type does influence stream density.
  • The Data. 13 4.0 43.6 1.0 25 20 Sandstone 25 15 Limestone 25 58 Granite 25 7 Chalk (O-E)squared E Expected frequency (e) Observed Frequency O Rock type
  • Formula
    • Xsquared= ∑ (O-E)squared
      • E.
    • =61.6
    • Df=n-1
    • Df=4-1
    • =3.
  • Stage 5
    • From the graph we read off the degrees of freedom (3) on the horizontal axis against the xsqaured value (61.6) on the vertical.
    • The resulting point is above the line marked 0.1 chance in 100. This means that the probability that the data given above could be due to chance alone is less than 1 in 100.
    • That is the end of the Mann Whitney U test and Chi Squared- now go and lie down.
    • Next week Correlation and Spearman’s Rank Correlation Coefficient.