Download Bayesian Cognitive Modeling: A Practical Course

Transcript
Data Analysis
66
0.14
0.12
Posterior Mass
0.1
0.08
0.06
0.04
0.02
0
0
11
50
Total Population
t
Fig. 5.11
Posterior mass for the population size, known to be 50 or fewer, based on a
capture-recapture experiment with x = 10 items in the first sample, and k = 4 out of
n = 5 recaptured in the second sample.
}
t ~ dcat(tp[])
}
The code Population.m or Population.R applies the model to the data x =
10, k = 4, and n = 5, using uniform prior mass for all possible sizes between
x + (n − k) = 11 and tmax = 50. The posterior distribution for t is shown in
Figure 5.11. The inference is that it is mostly likely there are not many more than
6 items, which makes intuitive sense, since 4 out of 5 in the second sample were
from the original set of 10.
Exercises
Exercise 5.6.1 Try changing the number of items recaptured in the second sample
from k = 4 to k = 0. What inference do you draw about the population size
now?
Exercise 5.6.2 How important is it that the upper bound tmax = 50 correspond