Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

The mock data file consists of 3 columns, each containing 1000 numbers:

1. a flag indicating which data row

2. the sampled x value (1 - 1000)

3. the corresponding sampled y value (1 - 1000)

The challenge is essentially to determine the linear relationship between x and y using these 1000 data pairs. It divides up into three steps, of increasing complexity.

Step 1: Use ordinary least squares to fit the linear model  y = a + bx  to the mock data

          (a) compute LS estimators of a and b,

          (b) estimate the variance of the (assumed Gaussian) noise which has been added to the mock y values

          (c) estimate errors on a_LS and b_LS, and their covariance

Step 2: By casting the data analysis challenge not as a least squares problem, but as a maximum likelihood problem, form an appropriate likelihood function for the mock data, which depends on the parameters (a,b).

          Then, by computing the log likelihood on a rectangular grid of values of a and b (you need to think carefully about the range of a and b values you should consider, and the spacing between them), and in turn computing the value of chi-squared for each (a,b) pair on your grid, you should find the minimum value of chi-squared.  You then should turn your grid of values into a rectangular array of Delta chi-squared values.  Finally, using the information in the table in Section 6, you should compute and plot Bayesian credible regions  for the parameters at e.g. 68.3%, 95.4%, 99.73%. (Carrying out the calculations and making a contour plot from the results is straightforward in e.g. MATLAB, although you are welcome to use any programming language you wish).

Step 3: Finally, using the Metropolis algorithm, and assuming a Gaussian likelihood function for the model parameters a and b, write an MCMC code to generate a sample from the likelihood function - thinking carefully about your choices of proposal density and prior range for a and b. Use this sample to estimate the mean values, errors and covariance of the parameters a and b from their sampled marginal distributions. Devise a method for estimating and plotting Bayesian credible regions for the paramters, using your MCMC sample.

while Steps 2 and 3 both involve more sophisticated methods and will require you to write some simple computer code (e.g. in MATLAB)

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M9740868

Have any Question?


Related Questions in Statistics and Probability

A coffee manufacturer is interested in the mean daily

A coffee manufacturer is interested in the mean daily consumption of regular-coffee drinkers and decaffeinated coffee drinkers. The random sample of 50 regular-coffee drinker show a mean of 3.84 cups per day. A sample of ...

Lisa anderson expects to need 80000 for a down payment on a

Lisa Anderson expects to need $80,000 for a down payment on a house in six years. How much would she have to invest today in an account paying 7.25 percent in order to have $80,000 in six years? (Round answer to 2 decima ...

Assume a firm has 45 million in operating profit the firms

Assume a firm has $45 million in operating profit. The firm's tax rate is 40%. What is the tax shield of the firm's $38 million in debt that charges a 10% interest rate?

Amount of emails mean30find the probability that 20 emails

Amount of emails. Mean=30 Find the probability that 20 emails are received on the first day and 50 emails are received on the second day.

What percent of the measurements are found below the 30th

What percent of the measurements are found below the 30th percentile? Found above the 30th percentile? For the regression line y^ = 3x + 2 what is the best predicted value if x is 7? Assume that male and female births ar ...

Question - the data in the table below is from a study

Question - The data in the table below is from a study conducted by an insurance company to determine the effect of changing the process by which insurance claims are approved. The goal was to improve policyholder satisf ...

You have a bag with three fair dice one is 4-sided one is

You have a bag with three fair dice. One is 4-sided, one is 6-sided, and one is 12-sided. You reach into the bag, pick one die at random, and roll it. The outcome of the roll is 4. What is the probability that you rolled ...

According to the current results website the state of

According to the Current Results website, the state of California has a mean annual rainfall of 21 inches, whereas the state of New York has a mean annual rainfall of 55 inches. Assume that the standard deviation for bot ...

4m industries has 30 million shares outstanding trading at

4M Industries has 30 million shares outstanding trading at $20 per share. 4M also has $150 million in outstanding debt. Suppose firm's equity cost of capital is 12%, its debt cost of capital is 5%, and the corporate tax ...

A population has a mean mu equals84 and a standard

A population has a mean mu equals84 and a standard deviation sigma equals6. Find the mean and standard deviation of a sampling distribution of sample means with sample size n=36.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As