Fitting Globular Clusters with GCfit#
One of the main objective of GCfit is to determine the best-fit parameters
of a globular cluster equilibrium model, subject to a number of observed
physical datasets, using statistical sampling over a Bayesian posterior.
Observations#
All cluster models are fit by comparing model structures against a number of observed datasets containing measured information on the structure and kinematics of a specific cluster.
Currently supported observational datasets include:
- Proper Motion Dispersions
Radial, tangential or overall proper motion velocity dispersion profiles
- LOS Velocity Dispersions
Velocity dispersion profiles along the line-of-sight
- Number Densities
Radial number density profiles
- Mass Functions
Present day stellar mass functions (counts), binned radially and in mass. Each dataset corresponds to an observed field on the sky, whose boundaries must also be included.
- Pulsars Timing Solutions
Millisecond-pulsar timing solutions (period and period derivative), used to constrain possible acceleration from the cluster potential
While these are the type of observables supported, not all are required at once, and multiple datasets corresponding to each type are permitted.
Probabilities#
The probability associated with a given set of model \(M\) parameters \(\Theta\), subject to some number of observable datasets \(\mathcal{D}\) is given by a simple bayesian posterior:
where \(\mathcal{L}\) is the likelihood and \(\pi\) is the prior likelihood.
Likelihoods#
The total (log) likelihood function \(\ln(\mathcal{L})\) is given simply by the summation of all component likelihood functions.
Every observational dataset has it’s own component likelihood function, unique to the type of observable it is.
Velocity Dispersions#
All velocity dispersions (LOS and PM) use a simple gaussian log-likelihood over a number of dispersion measurements at different projected radial distances:
where \(\sigma_j \equiv \sigma(r_j)\) corresponds to the dispersion at a distance \(r_j\) from the cluster centre, with corresponding uncertainties \(\delta\sigma_j \equiv \delta\sigma(r_j)\). Dispersions with subscript obs correspond to the observed dispersions and uncertainties, while subscript model corresponds to the predicted model dispersions. [1]
Number Densities#
Number density datasets use a modified gaussian likelihood. As the translation between discrete number density and surface-brightness observations is difficult to quantify, the model is actually only fit on the shape of the number density profile data. To accomplish this the modelled number density is scaled to have the same mean value as the surface brightness data. The constant scaling factor K is chosen to minimize the chi-squared distance:
where \(\Sigma_j \equiv \Sigma(r_j)\) are the modelled and observed number density, with respective subscripts, at a distance \(r_j\) from the cluster centre.
We also introduce an extra nuisance parameter (\(s^2\)) to the fitting. This parameter is added in quadrature, as a constant error over the entire profile, to the observational uncertainties to give the overall error \(\delta\Sigma\):
This parameter adds a constant uncertainty component over the entire radial extent of the number density profile, effectively allowing for small deviations in the observed profiles near the outskirts of the cluster. This enables us to account for certain processes not captured by our models, such as the effects of potential escapers.
The likelihood is then given in similar fashion to the dispersion profiles:
Mass Functions#
To compare the models against the mass function datasets, the local stellar mass functions are extracted from the models within specific areas in order to match the observed MF data at different projected radial distances from the cluster centre within their respective HST fields.
To compute the stellar mass functions, the model surface density in a given mass bin \(\Sigma_k(r)\) is integrated, using a Monte Carlo method, over the area \(A_j\), which covers a radial slice of the corresponding HST field from the projected distances \(r_j\) to \(r_{j+1}\). This gives the count \(N_{\mathrm{model},k,j}\) of stars within this footprint \(j\) in the mass bin \(k\):
This star count can then be used to compute the Gaussian likelihood:
which is computed separately for each HST program considered.
The error term \(\delta N_{k,j}\) must also account for unknown and unaccounted for sources of error in the mass function counts, as well as the fact that our assumed parametrization of the global mass function may not be a perfect representation of the data. Therefore we include another nuisance parameter (\(F\)) which scales up the uncertainties:
This scaling, rather than adding in quadrature as with the (s^2) nuisance parameter, boosts the errors by a constant factor. This allows it to capture additional unaccounted-for uncertainties (e.g. in the completeness correction or limitations due to the simple parametrization of the mass function) across the full range of values of star counts, while simply adding the same error in quadrature to all values of star counts would lead to negligible error inflation in regions with higher counts.
Pulsar Timings#
Millisecond pulsars have been discovered, in small numbers, in dozens of MW globular clusters. Through extremely precise pulse measurements, the period and the time-derivative of the period is known for a number of these pulsars.
These timing solutions, for pulsars embedded in clusters, follow a specific relation:
where the intrinsic spin-down of pulsars \(\left(\frac{\dot{P}}{P}\right)_{\rm{int}}\), the potential (acceleration) fields of the host cluster and galaxy, and the Shklovskii (proper motion) all combine in the observed spin-down of the pulsar timing solution.
We adopt the MilkyWayPotential2022 potential from gala to model the contribution of the galactic potential.
The intrinsic spin-down of the observed pulsars is assumed to be identical to pulsars found in the galaxy, outside of clusters, and dependant only on their period. The field pulsars, as they are unaffected by the cluster potential, can have their intrinsic timing solutions determined directly. A gaussian kernel density estimator is then computed in the field \(P\)-\(\dot{P}\) space, which is slice along each cluster pulsar’s period to extract a distribution of possible intrinsic values.
The cluster acceleration component, dependant on the model, is complicated by the fact that the 3D position of the pulsar cannot be easily determined, and the line-of-sight position of the pulsar within the cluster potential well is unknown. Instead, a probability distribution of the acceleration can be computed using the relation:
These two distributions are then convolved, alongside a gaussian error distribution representing the measurement uncertainties. Shifting by the galactic and proper motion components (which are small and constant), a final normalized probability distribution is obtained.
The measured timing solution is then interpolated onto this distribution, computing a final likelihood value, for this pulsar. All pulsars in the cluster have their likelihoods summed in the usual manner.
Priors#
The prior likelihood \(\pi\) for some set of parameters \(\Theta\) is given by the product of individual priors on each parameter in \(\Theta\), designed to influence the possible values for each. These priors are defined, a priori, by a few arguments specific to each, which may also be dependant on the values of other parameters.
Individual parameter priors can take a few possible forms:
- Uniform (L, U)
A uniform (flat) distribution defined between two bounds (L, U), with a value normalized to unity
- Gaussian (\(\mu\), \(\sigma\))
A Gaussian normal distribution centred on \(\mu\) with a width of \(\sigma\)
Sampling#
The posterior distribution of the parameter set \(\Theta\) must be
determined through a statistical sampling technique. Two such set of
algorithms are available in GCfit.
MCMC#
The first is Markov Chain Monte Carlo (MCMC) sampling.
MCMC sampling approximates the posterior distribution by generating random samples within parameter space. Each sample is proposed randomly, dependant only on the preceeding sample in the “chain” of samples (resulting in a Markov Chain).
Chains must be initialized to initial positions within parameter space, from which they will evolve over time towards areas of high probability. There are a number of algorithms available dictating the proposal and acceptance of new samples, which determines the random path taken by chains. Samplers which utilize multiple chains run in parallel are known as ensemble samplers.
GCfit utilizes the emcee
MCMC ensemble sampler library.
Nested Sampling#
The second is Dynamic Nested Sampling.
Nested sampling (Skilling 2004) is a Monte Carlo integration method, first proposed for estimating the Bayesian evidence integral \(\mathcal{Z}\), which works by iteratively integrating the posterior over the shells of prior volume contained within nested, increasing iso-likelihood contours.
Samples are proposed randomly at each step, subject to a minimum likelihood constraint corresponding to the current likelihood contour. These samples, and their importance weights (a function of shell amplitude and volume, analogous to the contribution to the typical set), can be used to estimate the posterior, alongside the evidence integral.
Nested sampling has the benefit of flexibility, as the independantly generated samples are able to probe complex posterior shapes, with little danger of falling into local minimums, or of missing distant modes. The sampling also has well defined stopping criterion based on the remaining evidence.
Dynamic Nested Sampling is an extension of the typical nested sampling algorithm designed to retune the sampling to more efficiently estimate the posterior, by spending less time probing the “outer” sections of the prior volume which have little impact on the posterior. In practice this is done by allowing for a fine-tuning of the sample “resolution”, which is increased around the typical set.
GCfit utilizes the dynesty
Dynamic Nested Sampling package.
Footnotes