Question
How might I address practice 5.13 from Bayesian information Analysis from Andrew Gelman utilizing stan and 'noninformative' hyperprior utilizing stan? I don't know to the
How might I address practice 5.13 from Bayesian information Analysis from Andrew Gelman utilizing stan and 'noninformative' hyperprior utilizing stan? I don't know to the correct method to make the stan model.
The 5.13 inquiry is (remember that I need to address utilizing Stan and noninformative hyperpriors - the book is free and accessible at: https://users.aalto.fi/~ave/BDA3.pdf) :
"Exercise 3.8 portrayed a review of bike traffic in Berkeley, California, with information showed in Table 3.3. For this issue, confine your consideration regarding the initial two lines of the table: private roads named as 'bicycle courses,' which we will use to show this computational exercise.
(a) Set up a model for the information in Table3.3so that, for j= 1,...,10, the noticed number of bikes at area j is binomial with obscure likelihood ?j and test size equivalent to the all out number of vehicles (bikes remembered) around there. The boundary ?j can be deciphered as the basic or 'genuine' extent of traffic at area j that is bikes. (See Exercise3.8.) Assign a beta populace circulation for the boundaries ?j and a noninformative hyperprior conveyance as in the rodent tumor illustration of Section 5.3. Record the joint back circulation.
(b) Compute the peripheral back thickness of the hyperparameters and draw recreations from the joint back conveyance of the boundaries and hyperparameters, as in Section 5.3.
(c) Compare the back appropriations of the boundaries ?j to the crude extents, (number of bikes/complete number of vehicles) in area j. How do the derivations from the back dispersion contrast from the crude extents?
(d) Give a 95% back stretch for the normal hidden extent of traffic that is bikes.
(e) another city block is tested aimlessly and is a private road with a bicycle course. In an hour of perception, 100 vehicles of numerous types pass by. Give a 95% back span for the quantity of those vehicles that are bikes. Talk about the amount you confide in this span in application.
(f) Was the beta dissemination for the ?j's sensible?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started