Question: We have two datasets ( CW 2 _ spectrum 1 . dat and CW 2 _ spectrum 2 . dat ) containing spectra with 1
We have two datasets CWspectrumdat and CWspectrumdat containing spectra with bins, from
to
microns. You can use nploadtxt to load these files. Maybe it's from a farinfrared spectrograph, or maybe I just wanted to make the numbers simple. The first line is easy to see, but the second is not.
Each spectrum contains a single spectral line, but also featureless Gaussian noise with an unknown amplitude. The line has a shape refered to as Cauchy or Lorentzian. There are three parameters the central wavelength
the width
and the amplitude
You can assume that the width is less than micron, and the width of the second line is narrower than the first. The wavelength could be anywhere but is not too close to the edge.
a Plot the data.
b Set up an MCMC model for the line plus the noise. Use it to infer the parameters for the two datasets.
c Check that your models converged ie the inference worked well Write a sentence or two about how you know they converged, and include a plot.
d Plot the posteriors of the parameters. Include the amount of noise if you can.
e Summarize your results. How would you briefly describe what you know about the wavelength and width of the line, including uncertainty?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
