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.
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.
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