Some people notice a distinctive smell from their urine after eating asparagus, while others never notice the smell. These differences could arise from variation among people in the chemical profile of the urine (i.e., how compounds from asparagus are metabolised), or from variation in the ability of different people to detect the smell.
A paper (Pelchat et al. 2010 Chemical Senses) reviewed these studies and presented the following data that described variation among four study populations:
Israel (Lison et al. 1980), 328, 0 China (Hoffenberg 1983), 96, 2 USA (Sugarman and Neelon 1985), 10, 5 USA (Lison et al. 1980), 11, 10
asparagus <- matrix(c(328, 96, 10, 11, 0, 2, 5, 10), nrow = 4, dimnames = list(c("Israel", "China", "USA.1", "USA.2"), c("Can detect odour", "Cannot detect odour")))
asparagus
## Can detect odour Cannot detect odour
## Israel 328 0
## China 96 2
## USA.1 10 5
## USA.2 11 10
Q1 What numbers of people would be expected to smell the odour in each population if all study populations had the same proportion of people able to detect the odour?
chisq.test(asparagus, correct = F)$expected
## Warning in chisq.test(asparagus, correct = F): Chi-squared approximation may be
## incorrect
## Can detect odour Cannot detect odour
## Israel 315.93074 12.0692641
## China 94.39394 3.6060606
## USA.1 14.44805 0.5519481
## USA.2 20.22727 0.7727273
Q2 What statistical test could you use to detect differences among populations in the perception of the odour? Ensure you check that the assumptions of the test are met.
Q3 Run your chosen test. What is your P value?
fisher.test(asparagus)
##
## Fisher's Exact Test for Count Data
##
## data: asparagus
## p-value < 2.2e-16
## alternative hypothesis: two.sided
You are a behavioural ecologist studying the diet of common ringtail possums (Pseudocheirus peregrinus) at two sites (sites A and B) dominated by two species of Eucalyptus, (E. ovata and E. sideroxylon).
You notice that possums at site A tend to eat E. ovata and that at location B they mostly eat E. sideroxylon. To test whether the populations at each site differ in the feeding preferences, you attach radio collars to seven possums at location A and eight possums at location B. You track each possum and note the species of the first tree that you observe it eating leaves from.
At location A you see six possums eat E. ovata and one (1) eat E. sideroxylon. At location B, none eat E. ovata and you see all eight eat E. sideroxylon.
Q1 What is the exact probability of observing this or a more extreme pattern by chance alone?
Q2 Is there evidence to suggest that the possums at site A and B differ in their use of food trees?
Author: Alistair Poore
Year: 2016
Last updated: Feb 2022