Define th=(1:500)/50, L-length (th) and B-1000. Also define noncoverage.mle=noncoverage.bayes=0 Perform a double loop: at the i-th...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Define th=(1:500)/50, L-length (th) and B-1000. Also define noncoverage.mle=noncoverage.bayes=0 Perform a double loop: at the i-th iteration of the outer loop • define matrices mle.mat-matrix (0,B, 2) and bayes.mat-matrix (0,B, 2); • perform the inner loop: at the j-th iteration of the inner loop generate a pseudo-random sample x of size n-4 from an exponential distribution with rate th[i]; obtain mle-based and Bayes intervals (with C-1.5), saving them in the j-th row of mle.mat and bayes. mat respectively; save in the i-th element of noncoverage.mle the number of times the mle-based interval did not cover th[i]; similarly for the Bayes interval in bayes.mat; Convert the counts in the noncoverage vectors to proportions. Plot (as lines) these proportions against th (red for the mle-based, blue for Bayes). Add an informative heading and legend. Define th=(1:500)/50, L-length (th) and B-1000. Also define noncoverage.mle=noncoverage.bayes=0 Perform a double loop: at the i-th iteration of the outer loop • define matrices mle.mat-matrix (0,B, 2) and bayes.mat-matrix (0,B, 2); • perform the inner loop: at the j-th iteration of the inner loop generate a pseudo-random sample x of size n-4 from an exponential distribution with rate th[i]; obtain mle-based and Bayes intervals (with C-1.5), saving them in the j-th row of mle.mat and bayes. mat respectively; save in the i-th element of noncoverage.mle the number of times the mle-based interval did not cover th[i]; similarly for the Bayes interval in bayes.mat; Convert the counts in the noncoverage vectors to proportions. Plot (as lines) these proportions against th (red for the mle-based, blue for Bayes). Add an informative heading and legend.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these accounting questions
-
The ground-up losses have an exponential distribution with mean 750,000. A deductible of 500,000 is applied to the product and the frequency distribution for the total number of losses, is Poisson...
-
The lifetime of LCD TV sets follows an exponential distribution with a mean of 100,000 hours. Compute the probability a television set: a. Fails in less than 10,000 hours. b. Lasts more than 120,000...
-
Given an exponential distribution with = 10, what is the probability that the arrival time is a. Less than X = 0.1? b. Greater than X = 0.1? c. Between X = 0.1 and X = 0.2? d. Less than X = 0.1 or...
-
A heating contractor must heat 0.2 kg/s of water from 15C to 35C using hot gases in cross flow over a thin-walled tube. Your assignment is to develop a series of design graphs that can be used to...
-
1. The following data were collected on scores (out of a possible 100) for a pretest in quantity methods. Using Excels statistical functions complete the following questions. (a) What are the means...
-
Jims and Als ages total 30. Doubling Jims age and adding it to Eds age equals 46. Subtracting Als age from Eds age equals 3. How old is Jim? A. 13 B. 20 C. 33 D. 46 E. 59
-
To avoid cavitation in centrifugal pumps: (a) Suction pressure should be low (b) Delivery pressure should be low (c) Suction pressure should be high (d) Delivery pressure should be high
-
The budgets of four companies yield the following information: Requirements 1. Fill in the blanks for each company. 2. Compute break-even, in sales dollars, for each company. Which company has the...
-
what is Culture and it's related things?
-
Erica and Bob participate in a friendly Hackathon that allows each to solve one question a day out of the three offered. There will be one easy, one medium and one hard question, with points awarded...
-
What is the importance of The Justinian Code in today's society? How does the Justinian Empire's Golden Age contribute to modern civilization? What is the noteworthy contribution of the Byzantine...
-
(a) What is the difference between revenue and income? (b) Which criteria does IAS 18 require for recognising revenue from the sale of goods? (c) What is the basic principle for measuring revenue...
-
Golden leisure is a private limited liability entity that operates a single cruise ship. The chip was acquired on 1 October 2000. Details of the cost of the ships components and their estimated...
-
Entity A, as part of its cash management activities, invested EUR 20 million in redeemable preference shares (within three months from the date of their redemption). To do so, entity A instructed its...
-
How might the ACA affect the field of medical malpractice?
-
How might the quality challenges of an economy based on digital and digitally enabled products and services be addressed?
-
Changes in the consumer's opportunities lead to changes in the optimal consump- tion basket. Changes in opportunities arise from changes in income and changes in prices. A change in income causes a...
-
TRUE-FALSE QUESTIONS 1. In terms of preliminary analytical procedures, assume that the company has introduced a new product with a low price point and significant customer demand. The auditor would...
-
A beam of light enters water from air. (a) Will the angle of refraction be (1) greater than, (2) equal to, or (3) less than the angle of incidence? Explain. (b) If the angle of incidence is 50o, find...
-
A 4.0-kg ball with a velocity of 4.0 m/s in the +x-direction collides head-on elastically with a stationary 2.0-kg ball. What are the velocities of the balls after the collision?
-
Two identical cars capable of accelerating at 3.00 m/s2 are racing on a straight track with running starts. Car A has an initial speed of 2.50 m/s; car B starts with speed of 5.00 m/s. (a) What is...
-
Suppose you needed \($30,000\) to maintain a particular standard of living in 2000. How much would you have needed in 2010 to maintain the same living standard? Assume that the average price of your...
-
For a statistics class project, I used a convenience sample, but the results may still be meaningful. Decide whether the statement makes sense (or is clearly true) or does not make sense (or is...
-
In 1987, the mean salary for major league baseball players was \($412,000.\) In 2011, it was \($3,319,000.\) Compare the increase in mean baseball salaries to the overall rate of inflation as...
Study smarter with the SolutionInn App