CHI SQUARED TEST
USING 2005 FIELDWORK DATA
Go HERE for the 2004 data which is more complete... - unfortunately, in 2006 students were less accurate in their data collection
2 uses for this statistical test: one of these is a test of ASSOCIATION between 2 sets of data - the idea is to test whether we can accept or reject a NULL HYPOTHESIS: that there is no association between the 2 sets of data.
Figures are totals (based on a maximum reading of 100 from 10 x 10 point quadrat readings in a 20m square.)
Still more to come....
| Plant Species | Low Marsh | High Marsh | ||||||||||
| Samphire (Sallicornia) | 60 | 45 | 50 | 60 | ||||||||
| Sea Aster | 16 | 9 | ||||||||||
| Annual Seablite | 13 | 0 | ||||||||||
| Cord Grass | 51 | 28 | 9 | 27 | ||||||||
A look at one or two INDICATOR SPECIES on different parts of the marsh could help. There are some PIONEER SPECIES and others which take over later in the succession.
pH VALUES
Mr. Stone's group did some pH readings, here they are:
EMBRYO DUNE: 7.5
YELLOW DUNE: 7.0
FRONT OF GREY DUNE: 7.0
REAR OF GREY DUNE: 6.5
A small, but significant change...
Mr. Screen has also offered the use of a SALINITY METER which we may well use to extend our study of the salt marsh next year.
Worked example for SAMPHIRE
You can start with SALICORNIA or SAMPHIRE: want a picture of this plant ? There's one on the coastal fieldwork page, or you can take your own, or you can do a search on the Internet, where you'll find some very nice ones. Also had the illustrated key of SAND DUNE plants.
First of all get the data. I asked my students to tell me how many of their 60 observations of Samphire fitted into one of 3 categories (remember that you need to have at least 5 observations in each category and fortunately I set my class boundaries far enough apart...)
Set a NULL HYPOTHESIS (H0) - this is basically saying that there is NO PATTERN, and we then have to be able to REJECT this in order to say that there IS a pattern of some kind...
Need to work this into a table so that OBSERVED and EXPECTED VALUES can be worked out. There were 60 observations in total at both locations.
The statistics need to be put into a table and here we need an equation to work out the expected values in a cell.
Need to work out totals
| Samphire | 0-3 | 4-6 | 7-10 | Total |
| Low Marsh (O) | 12 | 19 | 29 | 60 |
| High Marsh (O) | 13 | 30 | 17 | 60 |
| Totals | 25 | 49 | 46 | 120 |
Formula below:
Expected frequency for cell = column total x row total divided by the grand total.
| Samphire | 0-3 | 4-6 | 7-10 | Total |
| Low Marsh (O) | 12 | 19 | 29 | 60 |
| Low (E) | 12.5 | |||
| High Marsh (O) | 13 | 30 | 17 | 60 |
| High (E) | ||||
| Totals | 25 | 49 | 46 | 120 |
Then apply the usual Chi Squared formula to each of the Observed / Expected Values
So this would be (for the grey cells)
12 - 12.5 squared over 18 = ?
Do the same or all 6 cells in table and add them up to give the chi squared value. This then needs to be looked up on the tables. This time, we have a formula for working out the degrees of freedom (because we are using a table....)
degrees of freedom = (number of rows-1) X (number of columns -1)
= 2 (2 x 1)
Chi squared value = ?
Look at the tabulated values.
| Degrees of Freedom | Significance level | ||||
| .10 | .05 | .25 | .01 | .005 | |
| 1 | 2.71 | 3.84 | 5.02 | 6.63 | 7.88 |
| 2 | 4.61 | 5.99 | 7.38 | 9.21 | 10.60 |
| 3 | 6.25 | 7.81 | 9.35 | 11.34 | 12.84 |
| 4 | 7.78 | 9.49 | 11.14 | 13.23 | 14.86 |
Look at 2 degrees of freedom. Check the 95% probability first (.05).
Chi squared value is ?
Tabulated value (2 d.o.f) = 5.99
If our chi squared value is bigger, we can REJECT the NULL Hypothesis.
It is also higher than the 0.25 line, so we have even more certainty that the pattern we have seen is not down to chance: THERE IS A DIFFERENCE BETWEEN THE LOWER MARSH and THE HIGHER MARSH IN THE AMOUNT OF SALICORNIA.
DATA FOR OTHER PLANTS (note that the totals here are out of 50 or 60 - some student data was incomplete...)
More to come soon...
| Cord Grass | 0-3 | 4-6 | 7-10 | Total |
| Low Marsh (O) | 50 | |||
| High Marsh (O) | 50 | |||
| Totals | 120 |
| Cord Grass | 0-3 | 4-6 | 7-10 | Total |
| Low Marsh (O) | 60 | |||
| High Marsh (O) | 60 | |||
| Totals | 120 |
| Cord Grass | 0-3 | 4-6 | 7-10 | Total |
| Low Marsh (O) | 60 | |||
| High Marsh (O) | 60 | |||
| Totals | 120 |