There are two types of sneetches the starbellied sneetch S a
There are two types of sneetches, the star-bellied sneetch (S. astra) and the plain sneetch (S. simplex). Professor O. B. Servant counted sightings of these sneetches, identified each sneetch he saw, and classified their location into the three types: Ground, Tree, and Lake. The number of sightings are shown in the table below:
Professor O. B. Servant would like to know if there is a difference in habitat use between the two types of sneetches.
Use the R function pchisq.test() to find the test statistic X2 for the test for independence, the degrees of freedom, and the p-value.
X2=
df=
p-value =
| S. astra | S. simplex | |
|---|---|---|
| Ground | 63 | 50 |
| Tree | 39 | 56 |
| Lake | 54 | 38 |
Solution
Using technology,
chi^2 = 6.851251182 [ANSWER]
With df = (a - 1)(b - 1), where a and b are the number of categories of each variable,
a = 2
b = 3
df = 2 [ANSWER]
Also, the p value is
P = 0.032528925 [ANSWER]
