AST5731 Activity 07 solution

$25.00

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (10 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 Type1≤����≤−1 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 = βXi��+ ϵ, with ϵ ~ N(0,λ1−1). 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.