Escolar Documentos
Profissional Documentos
Cultura Documentos
Quantitative data
One or more categories
Independent and mutually exclusive measurements
Adequate sample size (at least 10)
Random sampling
Data in frequency form (Not % or ratio)
All observations must be used
Example:
In rice, the green leafhopper is suspected to differ in
feeding preference between an already diseased
plant and a healthy plant. The researcher, therefore,
encloses a prescribed number of green leafhoppers in
a cage that holds an equal number of healthy and
diseased rice plants. After 2 hours of caging, he then
counts the number of insects found on diseased and
on healthy plants. Of 239 insects confined, 67 were
found on the healthy plants and 172 on the diseased
plants. Does the observed ratio of 67:172 deviate
significantly from the hypothesized no-preference
ratio of 1:1?
Hypothesis:
Ho: There are no significant difference in feeding
preference of leafhopper (i.e., the ratio of 1:1).
HA: There are significant difference in feeding
preference of leafhopper.
Table 1: Feeding Preference Test for the Green Leafhoppers on
Diseased and Healthy Rice Plants.
Feeding
preference
Leafhoppers
Healthy
plants
67
Diseased
plants
172
Total
239
Expected value:
| | : absolute value
n1 and n2 : observed values
E1 and E2 : expected values
DATA LEAFHOP;
INPUT PLANT $ NUM;
DATALINES;
HE 67
DI 172
;
PROC FREQ;
WEIGHT NUM;
TABLES PLANT /CHISQ TESTP=(50 50);
RUN;
Hypothesis:
Ho: There is independence between two
classification criteria in a rc contingency table.
HA: There is association between two
classification criteria in a rc contingency table.
Farmers, no.
Adopter
Owner Operator
102
26
128
Share-rent farmer
42
10
52
Fixed-rent farmer
148
39
187
where
Adopter
Nonadopter
Owner operator
101.3
26.7
Share-rent farmer
41.2
10.8
Fixed-rent farmer
5.5
1.5
Compute 2 value:
DATA INDE;
INPUT ADOPT $ TENURE $ NUMBER;
DATALINES;
AD
OO
102
AD
SF
42
AD
FF
4
NO
OO
26
NO
SF
10
NO
FF
3
;
PROC FREQ;
TABLES ADOPT*TENURE/ EXACT;
WEIGHT NUMBER;
RUN;
Total
Insects
Observed Values
Expected Values
Healthy
Diseased
Healthy
Diseased
Value
239
67
172
119.5
119.5
45.26
183
74
109
91.5
91.5
6.32
171
54
117
85.5
85.5
22.48
301
97
204
150.5
150.5
37.33
Total
894
292
602
447.0
447.0
106.80 =
T2
111.39 =
s2
Sum
computed
tabular
2
d2
computed
d2
tabular 2
2
4
with 4 d.f.
111.39 9.49 at 5% significance level
Hypothesis of no preference (1:1 ratio) is
rejected.
DATA LEHO;
INPUT PLANT $ NUM;
DATALINES;
H
67
DI
172
H
74
DI
109
H
54
DI
117
H
97
DI
204
;
PROC MIXED;
CLASSES PLANT;
MODEL NUM = PLANT;
REPEATED /GROUP=PLANT;
RUN;
Observed Expected
52
52.25
128
104.50
29
52.25
209
209
2
(O
E)
2
E
2
2
2
(52
52.25)
(
128
104
.
50
)
(
29
52
.
25
)
2
52.25
104.50
52.25
15.63