Suppose that we have information that the normal mean is bounded between -m and m, for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose that we have information that the normal mean is bounded between -m and m, for some known number m. In this case it is natural to elicit a prior on with the support on interval [-m, m]. A prior with interesting theoretical properties supported on [-m, m] is Bickel-Levit prior¹, -m<0<m. 2 TT (0) cos m TO 2m Assume that a sample [-2, -3, 5, -7,0, 4] is observed from normal distribution f(yl) x √T exp{-(y-0)²}, with a known precision 7 = = 1/3. Assume also that the prior on 0 is Bickel-Levit, with m = 2. This combination likelihood/prior does not result in an explicit posterior (in terms of elementary functions). Construct a Metropolis algorithm that will sample from the posterior of 0. (a) Simulate 20,000 observations from the posterior, after discarding first 500 observations (burn-in), and plot the histogram of the posterior. (b) Find Bayes estimator of 6, and 99% equitailed Credible Set based on the simulated observations. Suggestions: (i) Take uniform distribution on [-m, m] as a proposal distribution since it is easy to sample from. This is an independence proposal, the proposed 0 does not depend on the current value of the chain, 0. (ii) You will need to calculate 1(0)² for current 0 and 1(0)² for the proposed 0, prior to calculating the Metropolis ratio. Suppose that we have information that the normal mean is bounded between -m and m, for some known number m. In this case it is natural to elicit a prior on with the support on interval [-m, m]. A prior with interesting theoretical properties supported on [-m, m] is Bickel-Levit prior¹, -m<0<m. 2 TT (0) cos m TO 2m Assume that a sample [-2, -3, 5, -7,0, 4] is observed from normal distribution f(yl) x √T exp{-(y-0)²}, with a known precision 7 = = 1/3. Assume also that the prior on 0 is Bickel-Levit, with m = 2. This combination likelihood/prior does not result in an explicit posterior (in terms of elementary functions). Construct a Metropolis algorithm that will sample from the posterior of 0. (a) Simulate 20,000 observations from the posterior, after discarding first 500 observations (burn-in), and plot the histogram of the posterior. (b) Find Bayes estimator of 6, and 99% equitailed Credible Set based on the simulated observations. Suggestions: (i) Take uniform distribution on [-m, m] as a proposal distribution since it is easy to sample from. This is an independence proposal, the proposed 0 does not depend on the current value of the chain, 0. (ii) You will need to calculate 1(0)² for current 0 and 1(0)² for the proposed 0, prior to calculating the Metropolis ratio.
Expert Answer:
Answer rating: 100% (QA)
Heres Python code that implements the metropolis algoritham and simulates 20000 observations from th... View the full answer
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these programming questions
-
Edlie Accessories (EA) makes travel bags, both for sale under their own label ("Branded") and for other resellers to put their label on the bags ("Private-Label"). The bags sold through the two...
-
Solve the linear programming problems in Problem by applying the simplex method to the dual problem. Minimize C = 10x1 + 7x2 + 12x3 subject to X + x2 + 2x3 2 7 2x1 + x2 + x3 2 4 X1, X2, X3 2 0
-
Sally Burns meets with her physician complaining of a headache, sore throat, and coughing. She has a group health insurance through her employer which has a co-payment of $100.00. She pays the...
-
Determine the resultant force and specify where it acts on thebeam measured from A . Assume F = 540 lb . Part A Determine the magnitude of theresultant force. Part B Determine the distance between A...
-
A concrete foundation mat in the shape of a regular hexagon with 3-m sides supports four column loads as shown. Determine the magnitudes of the additional loads that must be applied at B and F if the...
-
Write a java program that reads input text from the user. When the input ends, print, in alphabetical order, each letter that appeared and how many times it appeared, but only for letters whose count...
-
Two new product designs are to be compared on the basis of revenue potential. Marketing believes that the revenue from design A can be predicted quite accurately to be \(\$ 3\) million. The revenue...
-
Give an example of a recent purchase experience in which you were dissatisfied because a firms marketing mix did not meet your expectations. Indicate how the purchase fell short of your...
-
Granada Inc. applies overhead to production at a predetermined rate of 0.79 based on direct labor cost. Job No. 250, the only job still in process at the end of September, has been charged with...
-
Handy Howard's Incorporated, is a student co-op. Handy Howard uses a perpetual Inventory system, The following transactions (summarized) have been selected for analysis: a. Sold merchandise for cash...
-
Write about the relationship between budgetary fund balance and actual fund balance, the village of alberts alley recorded the following budgetary journal entry at the beginning of fiscal 2013:...
-
Define alternative media.
-
What is the strategy behind using Internet marketing in an IMC campaign?
-
What is the strategy behind using sales promotion in an IMC campaign?
-
How do consumers use mobile?
-
What is the strategy behind using social media in an IMC campaign?
-
Using the attached financial statements, please calculate the below ratios: Operating margin ratio Book value per share ratio Return on common stockholders equity ratio Payout ratio Times interest...
-
Below is a sample of the data in the file NFLAttendance which contains the 32 teams in the National Football League, their conference affiliation, their division, and their average home attendance....
-
In early 1984, Royal Dutch Petroleum Company (Royal Dutch), through various subsidiaries, controlled approximately 70 percent of the outstanding common shares of Shell Oil Co. (Shell). On January 24,...
-
Carolyn Falgout accompanied William Wardlaw as a social guest to Wardlaws brothers camp. After both parties had consumed intoxicating beverages, Falgout walked onto a pier that was then only...
-
Dorothy and John Huffschneider listed their house and lot for sale with C. B. Property. The asking price was $165,000, and the owners told C. B. that the size of the property was 6.8 acres. Dean...
-
An entity has won a construction contract for $5 million. Work began on 1 November 20X1 and was 20 per cent complete on 31 December 20X1, the entitys balance sheet date. The entity is confident that...
-
Explain, in a way that is understandable to a non-accountant, the following terms: a. asset b. liability c. income d. revenue e. expense f. equity.
-
What general rule can be used to decide whether a payment leads to an expense or to an asset?
Study smarter with the SolutionInn App