Wolfram Data Repository
Immediate Computable Access to Curated Contributed Data
Relationship between the mass of a black hole and galaxy bulge velocity dispersion
(4 columns, 31 rows)
In[1]:= | ![]() |
Out[1]= | ![]() |
Organize the data in a matrix format and display the first 9 rows:
In[2]:= | ![]() |
Out[7]= | ![]() |
A plot of the data with error bars is:
In[8]:= | ![]() |
Out[12]= | ![]() |
We start by acquiring the data that we need:
In[13]:= | ![]() |
In mathematical terms the likelihood of all n data pairs (xi,yi) and their respective standard deviations (σx,i,σy,i) is as follows:
In this expression a is the slope of the best fit line, b is the intercept of the line and σ is the intrinsic dispersion.
The following block of code computes the log likelihood of the data. Computations are performed on a log scale to avoid underflow and overflow:
In[14]:= | ![]() |
The best fit parameters are in terms of maximum likelihood are:
In[15]:= | ![]() |
Out[17]= | ![]() |
PLot the best fit line on the data:
In[18]:= | ![]() |
Out[25]= | ![]() |
Marshall Bradley, "Magorrian Relation in Astrophysics" from the Wolfram Data Repository (2022)