16.2 Using the data of logm and velocity from Table 8.1 of Hubbles experiment, construct a Monte...

Question:

16.2 Using the data of logm and velocity from Table 8.1 of Hubble’s experiment, construct a Monte Carlo Markov chain for the fit to a linear model with 10,000 iterations. Use uniform distributions for the prior and proposal distributions of the two model parameters a and

b, the latter with widths of 0.1 and 0.02, respectively, for a and b in the neighborhood of the current value. You can start your chain at values of a D 0:2 and b D 0:9. After completion of the chain, plot the sample distribution of the two model parameters.

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: