Professional Documents
Culture Documents
This Excel File Will Allow You To Do The Following Tests: Chi-Square Test T-Test Paired T-Test Regression Simpson's Diversity Index
This Excel File Will Allow You To Do The Following Tests: Chi-Square Test T-Test Paired T-Test Regression Simpson's Diversity Index
Chi-square test
t-test
Paired t-test
Regression
Simpson's Diversity Index
(if you don't see the tabs, make sure the window for this worksheet is maximized)
Category 1
51
Category 2
60
3 categories
Your Data >>>
Category 1
Category 2
4 categories
Your Data >>>
Category 1
40
Category 2
50
Category 3
60
Category 4
104
5 categories
Your Data >>>
Category 1
Category 2
Category 3
Category 4
Category 5
8 categories
Your Data >>>
Category 1
Category 2
Category 3
Category 4
Category 5
P value
Category 3
P value
#DIV/0!
P value
Category 6
Example 1: if you counted 120 saguaros on the N slope and 150 saguaros on the S slope,
then p = 0.068 so there is no significant difference in # of saguaros on the two slopes.
Example 2: if you counted 40 holes on the N side, 50 on E side, 60 on W side, and 104 on S side of saguaros,
then p < 0.01 so there is a significant difference in # of saguaros on the two slopes.
The chi square test compares the observed values to the values expected by the null hypothesis.
P value
Category 7
04 on S side of saguaros,
hypothesis.
hypothesis)
hypothesis)
han 0.05?
re not significantly different (cannot reject null hypothesis)
are significantly different (accept an alternative hypothesis)
T-TEST
WHEN TO USE: Use this test when you want to compare values of any numeric variable between two groups (such as tree he
Group 1
90.20
99.68
108.29
90.22
103.40
107.16
99.60
85.50
75.59
95.86
75.22
78.81
112.44
100.78
112.98
104.08
91.73
105.44
96.00
94.00
88.00
105.00
103.00
91.00
102.00
91.00
84.00
110.00
91.00
90.00
108.00
101.00
100.00
103.00
74.00
109.00
100.00
Group 2
90.00
94.00
96.00
98.30
94.00
92.00
86.70
105.00
88.00
108.00
103.00
92.00
116.00
w h a t a r e y o u m e a s u r in g (u n its )
average Group 1
average Group 2
96.675
97.154
1.734
2.386
P value
0.884
97.200
97.100
97.000
96.900
96.800
96.700
96.600
96.500
96.400
These values show the variability for each group, and are used to make the "error bars" on the graph below
Is the p value less than 0.05?
If no, then the averages are not significantly different (cannot reject null hypothesis)
If yes, then the averages are significantly different (accept an alternative hypothesis)
7.200
7.100
7.000
6.900
6.800
6.700
6.600
6.500
6.400
Group 1
Group 2
PAIRED T-TEST
WHEN TO USE: Use this test when you want to compare numeric variables that come in pairs.
Variable 1
90.20
99.68
108.29
90.22
103.40
107.16
99.60
85.50
75.59
95.86
75.22
78.81
112.44
100.78
112.98
104.08
91.73
105.44
96.00
94.00
88.00
105.00
103.00
91.00
102.00
91.00
84.00
110.00
91.00
90.00
108.00
101.00
100.00
103.00
74.00
109.00
100.00
Variable 2
90.20
99.68
108.29
90.22
103.40
107.16
99.60
85.50
75.59
95.86
75.22
78.81
112.44
100.78
112.98
104.08
91.73
105.44
96.00
94.00
88.00
105.00
103.00
91.00
102.00
91.00
84.00
110.00
91.00
90.00
108.00
101.00
100.00
103.00
74.00
109.00
100.00
90.00
94.00
96.00
98.30
94.00
92.00
86.70
105.00
88.00
108.00
103.00
92.00
116.00
w h a t a r e y o u m e a s u r in g (u n its )
average Variable 1
average Variable 2
96.675
96.800
1.734
1.413
P value
These values show the variability for each variable, and are used to
96.820
96.800
96.780
96.760
96.740
96.720
96.700
96.680
96.660
96.640
96.620
96.600
Variable 1
Variable 2
ariable, and are used to make the "error bars" on the graph below
Variable 2
REGRESSION
WHEN TO USE: Use this test when you want to look for a relationship between two numeric variables.
Steps to using Excel to do regression:
Click on Explanatory variable and type in your explanatory variable; do same for Response variable
Replace existing data with your data under each column name
Click into the axis labels of the graph and change the labels, remembering to give the units, too
Calculations:
Explanatory
variable
90.20
99.68
108.29
90.22
103.40
107.16
99.60
85.50
75.59
95.86
75.22
78.81
112.44
100.78
112.98
104.08
91.73
105.44
96.00
94.00
88.00
105.00
103.00
91.00
102.00
91.00
84.00
110.00
91.00
90.00
108.00
101.00
100.00
103.00
74.00
109.00
100.00
Response
variable
90.00
94.00
96.00
98.30
94.00
92.00
86.70
105.00
88.00
108.00
103.00
92.00
116.00
xy
8118.07
9369.49
10395.8
8869.01
9719.97
9858.59
8635.44
8978.01
6651.65
10352.6
7748.1
7250.29
13042.6
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
predicted
x2
y2
y
8136.18
8100 39.16693
9935.2
8836 31.80319
11726.7
9216 25.10817
8140.35 9662.89 39.14897
10692.4
8836 28.9054
11483
8464 25.98731
9920.43 7516.89 31.86078
7311.08
11025 42.8166
5713.39
7744 50.52479
9188.67
11664 34.77048
5658.69
10609 50.80666
6210.62
8464 48.02179
12641.8
13456 21.88584
10156.1
12763.4
10832
8415.06
11118
9216
8836
7744
11025
10609
8281
10404
8281
7056
12100
8281
8100
11664
10201
10000
10609
5476
11881
10000
ponse variable
e units, too
squared
residuals
2584.001
3868.443
5025.652
3498.844
4237.307
4357.676
3007.34
3866.775
1404.391
5362.562
2724.145
1934.083
8857.475
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
(x - avg x)^2
41.9159871
9.002655343
134.90167
41.61734113
45.27866004
109.9050408
8.563489994
124.7727121
444.7064734
0.66827866
460.1339717
319.2484191
248.40245
16.82902557
265.692227
54.78885222
24.41701318
76.85770174
0.455642415
7.155694014
75.25584881
69.30541022
40.00546182
32.20577141
28.35548762
32.20577141
160.655952
177.5552812
32.20577141
44.55579721
128.2553328
18.70551342
11.05553922
40.00546182
514.15621
151.905307
11.05553922
n
37
y
x
3576.9755 1263
(xy)
118990
( x)2
( y)2
12794754 1595169
Y o u r r e s p o n s e v a r ia b le (u n its )
residuals
50.83307
62.19681
70.89183
59.15103
65.0946
66.01269
54.83922
62.1834
37.47521
73.22952
52.19334
43.97821
94.11416
Slope =
y-intercept =
r=
r2 =
regression standard error (s) =
standard error of the slope =
t=
P value
-0.7772
109.271
-0.17333
0.030042
#VALUE!
#VALUE!
#VALUE!
#VALUE!
140.00
120.00
100.00
80.00
60.00
40.00
20.00
0.00
70.00
80.00
90.00
100.00
60.00
40.00
20.00
0.00
70.00
80.00
90.00
100.00
90.00
(x2)
349807
(y2)
123594
100.00
avg(x)
96.67501
110.00
120.00
90.00
100.00
110.00
120.00
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
of
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
species
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Area 1
Area 2
64.8
58.1
14
4
73
5
1
2
3
8
12
45
2
8
6
number of species 38
number of species 39
number of species 40
Obs
Exp
(O-E)2
(O-E)2/E
51
55.5
20.25
0.36
60
55.5
20.25
0.36
total
111
111
TOTAL
0.73
Page