Question: Please attach R code if needed Coins: Diaconis and Ylvisaker (1985) suggest that coins spun on a flat surface display long-run frequencies of heads that
Please attach R code if needed
Coins: Diaconis and Ylvisaker (1985) suggest that coins spun on a flat
surface display long-run frequencies of heads that vary from coin to coin.
About 20% of the coins behave symmetrically, whereas the remaining
coins tend to give frequencies of 1/3 or 2/3.

Coins: Diaconis and Ylvisaker (1985) suggest that coins spun on a flat surface display long-run frequencies of heads that vary from coin to coin. About 20% of the coins behave symmetrically, whereas the remaining coins tend to give frequencies of 1/3 or 2/3. a) Based on the observations of Diaconis and Ylvisaker, use an appro- priate mixture of beta distributions as a prior distribution for 6, the long-run frequency of heads for a particular coin. Plot your prior. b) Choose a single coin and spin it at least 50 times. Record the number of heads obtained. Report the year and denomination of the coin. c) Compute your posterior for e, based on the information obtained in b). d) Repeat b) and c) for a different coin, but possibly using a prior for that includes some information from the first coin. Your choice of a new prior may be informal, but needs to be justified. How the re- sults from the first experiment influence your prior for the d of the second coin may depend on whether or not the two coins have the same denomination, have a similar year, etc. Report the year and denomination of this coin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
