From cc883a8746392ff4a9ed3983a94c3a9ab389bd79 Mon Sep 17 00:00:00 2001 From: Jeremy Teitelbaum Date: Wed, 18 Apr 2018 06:56:03 -0400 Subject: [PATCH] updating from home --- BDA 2.11.13.md | 49 +++++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/BDA 2.11.13.md b/BDA 2.11.13.md index f9126c8..2f14a6a 100644 --- a/BDA 2.11.13.md +++ b/BDA 2.11.13.md @@ -1,32 +1,29 @@ -### Problem 2.10.13 +# Problem 2.10.13 -Discrete data: Table 2.2 gives the number of fatal accidents and deaths on scheduled airline flights per year over a ten-year period. -We use these data as a numerical example for fitting discrete data models. +Discrete data: Table 2.2 gives the number of fatal accidents and deaths on scheduled airline flights per year over a ten-year period. +We use these data as a numerical example for fitting discrete data models. -1. Assume that the numbers of fatal accidents in each year ar e independent with a Poisson(θ) distribution. Set a prior distribution forθand determine the posterior distribution based on the data from 1976 through 1985. Under this model, give a 95% predictive interval for the number of fatal accidents in 1986. You can use the normal approximation to the gamma and Poisson or compute using simulation. -2. Assume that the numbers of fatal accidents in each year fo llow independent Poisson distributions with a constant rate and an exposure in each year proportional to the number of passenger miles flown. Set a prior distribution forθand determine the posterior distribution based on the data for 1976–1985. (Estimate the number of passenger miles flown in each year by dividing the appropriate columns of Table 2.2 and ignoring round-off errors.) Give a 95% predictive interval for the number of fatal iaccidents in 1986 under the assumption that 8 × 10 11 passenger miles are flown that year. -3. Repeat (1) above, replacing ‘fatal accidents’ with ‘passenger deaths.’ -4. Repeat (2) above, replacing ‘fatal accidents’ with ‘passenger deaths.’ -5. In which of the cases (1)–(4) above does the Poisson model seem more or less reasonable? Why? Discuss based on general principles, -without specific reference to the numbers in Table 2.2. Incidentally, in 1986, there were 22 fatal accidents, -546 passenger deaths, and a death rate of 0.06 per 100 million miles flown. We return to this example in Exercises 3.12, 6.2, 6.3, and 8.14. +1. Assume that the numbers of fatal accidents in each year are independent with a Poisson(θ) distribution. Set a prior distribution forθand determine the posterior distribution based on the data from 1976 through 1985. Under this model, give a 95% predictive interval for the number of fatal accidents in 1986. You can use the normal approximation to the gamma and Poisson or compute using simulation. +2. Assume that the numbers of fatal accidents in each year follow independent Poisson distributions with a constant rate and an exposure in each year proportional to the number of passenger miles flown. Set a prior distribution for θ and determine the posterior distribution based on the data for 1976–1985. (Estimate the number of passenger miles flown in each year by dividing the appropriate columns of Table 2.2 and ignoring round-off errors.) Give a 95% predictive interval for the number of fatal iaccidents in 1986 under the assumption that 8 × 10 11 passenger miles are flown that year. +3. Repeat (1) above, replacing ‘fatal accidents’ with ‘passenger deaths.’ +4. Repeat (2) above, replacing ‘fatal accidents’ with ‘passenger deaths.’ +5. In which of the cases above does the Poisson model seem more or less reasonable? Why? Discuss based on general principles,without specific reference to the numbers in Table 2.2. Incidentally, in 1986, there were 22 fatal accidents, 546 passenger deaths, and a death rate of 0.06 per 100 million miles flown. We return to this example in Exercises 3.12, 6.2, 6.3, and 8.14. |Year |Fatal accidents |Passenger deaths |Death rate -|---|---|---|---| -|1976 | 24 | 734 | 0.19 -|1977 |25 |516 |0.12 -|1978 |31 |754 |0.15 -|1979 |31 |877 |0.16 -|1980 |22 |814 |0.14 -|1981 |21 |362 |0.06 -|1982 |26 |764 |0.13 -|1983 |20 |809 |0.13 -|1984 |16 |223 |0.03 -|1985 |22 |1066 |0.15 +|---|---|---|---| +|1976 | 24 | 734 | 0.19 +|1977 |25 |516 |0.12 +|1978 |31 |754 |0.15 +|1979 |31 |877 |0.16 +|1980 |22 |814 |0.14 +|1981 |21 |362 |0.06 +|1982 |26 |764 |0.13 +|1983 |20 |809 |0.13 +|1984 |16 |223 |0.03 +|1985 |22 |1066 |0.15 -Table 2.2 Worldwide airline fatalities, 1976–1985. ++ Table 2.2 Worldwide airline fatalities, 1976–1985. ++ Death rate is passenger deaths per 100 million passenger miles. ++ Source: Statistical Abstract of the United States. -*Death rate is passenger deaths per 100 million passenger miles. -Source: Statistical Abstract of the United States.* - -Gelman, Andrew; Carlin, John B.; Stern, Hal S.; Dunson, David B.; Vehtari, Aki; Rubin, Donald B.. Bayesian Data Analysis, Third Edition (Chapman & Hall/CRC Texts in Statistical Science) (Page 60). CRC Press. Kindle Edition. +Gelman, Andrew; Carlin, John B.; Stern, Hal S.; Dunson, David B.; Vehtari, Aki; Rubin, Donald B.. Bayesian Data Analysis, Third Edition (Chapman & Hall/CRC Texts in Statistical Science) (Page 60). CRC Press. Kindle Edition. \ No newline at end of file