Naitik Shah
Keen member
An insurer believes that the distribution of the number of claims on a particular type of policy is binomial with parameters n = 3 and p . A random sample of the number of claims on 153 policies revealed the following results:
Number of Claims | 0 | 1 | 2 | 3 |
Number of Policies | 60 | 75 | 16 | 2 |
(a) Show that the method of moments estimate for p is 0.246.
(b) Carry out a goodness of fit test for the specified binomial model for the number of claims on each policy, ensuring that the expected frequencies are greater than 5.
(c) Use the CDF of a chi squared distribution to find the correct p-value.
Can anyone help me for the parts (b) & (c) for the above question?
R Code for part (a) is as follows:
obs <- c(60,75,16,2)
x <- c(0,1,2,3)
n <- 3
mu <- sum(x*obs)/sum(obs)
n <- 3
p <- mu/n
Number of Claims | 0 | 1 | 2 | 3 |
Number of Policies | 60 | 75 | 16 | 2 |
(a) Show that the method of moments estimate for p is 0.246.
(b) Carry out a goodness of fit test for the specified binomial model for the number of claims on each policy, ensuring that the expected frequencies are greater than 5.
(c) Use the CDF of a chi squared distribution to find the correct p-value.
Can anyone help me for the parts (b) & (c) for the above question?
R Code for part (a) is as follows:
obs <- c(60,75,16,2)
x <- c(0,1,2,3)
n <- 3
mu <- sum(x*obs)/sum(obs)
n <- 3
p <- mu/n