AST5731 Activity 07 Linear Regression SOLVED

$30.00

Download Details:

  • Name: Activity-07-4a4f2c.zip
  • Type: zip
  • Size: 946.33 KB

Category:

Description

5/5 - (3 votes)

The file ‘Data_fundamental_Plane_kpc.csv’ contains the measurements of the following variables in a large sample of elliptical galaxies. The columns are:
ID
A_R: R-band galactic extinction correction.
LogRe = Y: Log10 Effective radius [in kpc]
mue = X1: Mean R-band surface brightness within the effective radius [mag/arcseconds^2]
logSigma = X2: Log10 Central velocity dispersion [km/s]
eLogSigma: rms uncertainty on logsigma
velocity: Galaxy heliocentric radial velocity
Type: Morphological Type
Where Type -4 corresponds to Ellipticals, -3 corresponds to S0. As we saw in class, the fundamental plane of elliptical galaxies is an
empirical linear relationship among mean surface brightness, velocity dispersion and effective radius of elliptical galaxies.
Assuming that we can write the fundamental plane as Y = βX + ϵ, with ϵ ~ N(0,λ ). Using the reference prior discussed in lecture, use the linchpin variable
algorithm to simulate the marginal posteriors for βi and λ.
Estimate the posterior means of βi, λ and the corresponding 95% credible intervals.
Check your results with the Maximum likelihood estimators for these two parameters. Explore how the results depend on m (the Monte Carlo sample size)
Assess the significance of the difference between your estimates of the β coefficients and those expected from the virial theorem. What can you conclude?
Write a code to implement a Gibbs sampler that samples the posterior for you.