-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,610 additions
and
101 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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. | ||
|
||
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 | ||
|
||
+ 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. | ||
|
||
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. |
This file was deleted.
Oops, something went wrong.
267 changes: 267 additions & 0 deletions
267
BDA 5.9.1-2-4-5 -Exchangeability and DeFinetti's Theorem.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.