---
title: "How a hydrostatic mass bias shifts cosmology from cluster counts"
description: "Derive how a hydrostatic mass bias lowers the fitted clustering amplitude through the steep mass function, add scatter and selection, and compare real clusters."
canonical_url: "https://sandboxphysics.com/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/"
last_modified: "2026-11-22"
---

[Weighing galaxy clusters with X-rays, SZ and lensing](https://sandboxphysics.com/stories/cluster-mass-calibration/)

# How a hydrostatic mass bias shifts cosmology from cluster counts

Sandbox Physics · 2026-11-22

The number of clusters above a mass threshold falls about as the third power of the threshold near $4\times10^{14}\ M_\odot$, and it rises about as the eighth power of $\sigma_8$. A mass scale that is too low by a factor $1-b$ therefore looks like a deficit of clusters, and a fit that trusts the masses lowers $\sigma_8$ by a factor of roughly $(1-b)^{0.35}$. A 20 percent mass bias moves $\sigma_8$ by about 7 percent, more than the statistical error of a large survey. This chapter derives that link, adds scatter and selection, and compares mass estimates from frozen public profiles of two real clusters.

Before this chapter, read [the SZ Compton parameter, lensing shear and a first computable cluster model](https://sandboxphysics.com/stories/cluster-mass-calibration/sz-pressure-and-lensing-shear/). You need logarithmic derivatives, the Gaussian distribution and the error function.

## Why the mass function is steep

The comoving number density of haloes per unit mass is

$$
\frac{\mathrm dn}{\mathrm dM}=f(\sigma)\,\frac{\bar\rho_{\rm m}}{M}\,\frac{\mathrm d\ln\sigma^{-1}}{\mathrm dM},\qquad f(\sigma)=A\left[\left(\frac{\sigma}{b}\right)^{-a}+1\right]e^{-c/\sigma^2},
$$

where $\sigma(M)$ is the root-mean-square fluctuation of the linear density field smoothed on the scale that contains mass $M$, and $A,a,b,c$ are fitted to simulations. [Toward a halo mass function for precision cosmology, Eqs. 2-3](https://arxiv.org/abs/0803.2706v1) Cluster masses sit where $\sigma<1$, on the exponential tail. Since $\sigma\propto\sigma_8$ at fixed mass, both mass and $\sigma_8$ enter through $e^{-c/\sigma^2}$.

The tutorial's mass function at $z=0.2$ (Tinker parameters on an Eisenstein-Hu spectrum, $\Omega_{\rm m}=0.3$, $h=0.7$) gives these cumulative densities $n(>M)$ in ${\rm Mpc^{-3}}$.

**Table 4.1** Cumulative halo number density at $z=0.2$.

| $M_{500}$ | $\sigma_8=0.70$ | $\sigma_8=0.81$ | $\sigma_8=0.90$ |
| --- | --- | --- | --- |
| $2\times10^{14}\ M_\odot$ | $4.53\times10^{-7}$ | $1.19\times10^{-6}$ | $2.01\times10^{-6}$ |
| $4\times10^{14}\ M_\odot$ | $5.39\times10^{-8}$ | $2.09\times10^{-7}$ | $4.40\times10^{-7}$ |
| $10^{15}\ M_\odot$ | $9.59\times10^{-10}$ | $8.41\times10^{-9}$ | $2.82\times10^{-8}$ |

Between $4\times10^{14}$ and $10^{15}\ M_\odot$ at $\sigma_8=0.81$, $n(>M)$ falls as $M^{-3.5}$. Between $\sigma_8=0.70$ and 0.90 at $4\times10^{14}\ M_\odot$, it rises as $\sigma_8^{8.4}$.

## From a mass bias to a cosmology shift

Suppose every mass the analyst uses is $1-b$ times the true mass. The clusters the analyst counts above $M_{\rm cut}$ are really those above $M_{\rm cut}/(1-b)$. Write the local slopes $k=-\mathrm d\ln n/\mathrm d\ln M$ and $p=\mathrm d\ln n/\mathrm d\ln\sigma_8$. The analyst predicts $n(>M_{\rm cut};\sigma_8')$ and matches it to the observed $n(>M_{\rm cut}/(1-b);\sigma_8)$. To first order,

$$
\ln\frac{\sigma_8'}{\sigma_8}=\frac{k}{p}\,\ln(1-b).
$$

With $k\approx3$ and $p\approx8.4$, $\sigma_8'/\sigma_8\approx(1-b)^{0.36}$. In the Lab's default cluster, the X-ray mass is 0.778 of the truth, the count above $4\times10^{14}\ M_\odot$ drops to 0.47 of the true count, and solving the frozen grid exactly gives $\sigma_8'=0.743$ instead of 0.81, a ratio of $0.778^{0.34}$.

## Scatter and selection

Real surveys do not select on mass. Planck selects on SZ signal-to-noise $q>6$. Its 2015 analysis links mass to signal through three pieces: a mean relation for the SZ signal $\bar Y_{500}$ that contains $(1-b)$, a lognormal scatter of $Y_{500}$ around it with $\sigma_{\ln Y}=0.173$, and Gaussian noise in the measured signal. [Planck 2015 results XXIV, Eqs. 7, 9 and 14](https://arxiv.org/abs/1502.01597v3) The probability that a cluster of mass $M$ is detected is

$$
\chi(M)=\int\mathrm d\ln Y\,P(\ln Y\mid M)\,\frac12\left[1-{\rm erf}\left(\frac{q_{\rm cat}-Y/\sigma_{\rm f}}{\sqrt2}\right)\right],
$$

where $\sigma_{\rm f}$ is the filter noise. Scatter matters because the mass function is steep. Near the threshold there are many more clusters just below it than just above, so scatter pushes more clusters up across the cut than down. A model without scatter predicts too few detections at a given $\sigma_8$, so a fit would push $\sigma_8$ up to compensate, an error separate from $b$.

The tutorial's toy survey uses Planck's relation with true $1-b=0.8$, true $\sigma_8=0.81$, that scatter, a noise that grows with cluster angular size, $q_{\rm cat}=6$, 65 percent of the sky and $0<z<1$. It predicts 481.9 detections; 200 Monte Carlo surveys with random masses, scatter and noise average 483.1, consistent within their standard error. Fitting only the total count, the $\sigma_8$ needed depends on the assumed $1-b$.

**Table 4.2** The $\sigma_8$ that matches the toy survey's expected total for each assumed $1-b$.

| assumed $1-b$ | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
| --- | --- | --- | --- | --- | --- |
| inferred $\sigma_8$ | 0.916 | 0.857 | 0.810 | 0.771 | 0.739 |

The count alone cannot tell these apart. Planck used counts binned in redshift and signal-to-noise and external priors on $1-b$ from lensing.

## Comparing mass estimates from frozen public profiles

The tutorial refits X-COP density and pressure profiles of two real clusters, A2029 and A2319, frozen from the public release. [Non-thermal pressure support in X-COP galaxy clusters](https://arxiv.org/abs/1805.00034v2) It forms three mass estimates from the same data, in units of $10^{14}\ M_\odot$.

**Table 4.3** Three mass estimates from frozen X-COP profiles, in $10^{14}\ M_\odot$.

| Cluster | hydrostatic | from gas fraction 0.131 | Planck relation for its $Y_{500}$ | published hydrostatic |
| --- | --- | --- | --- | --- |
| A2029 | 8.28 | 9.22 | 8.44 | 8.65 |
| A2319 | 7.57 | 14.7 | 10.0 | 7.68 |

For A2029 the three agree within 11 percent. For A2319 the hydrostatic gas fraction is 0.187, far above 0.131, and both other estimates are much higher. Eckert and colleagues read excess gas fractions as non-thermal pressure, and they single out A2319 as the clear exception in their sample, a cluster with substantial non-thermal support. Two clusters cannot calibrate a survey. They show what a calibration sample measures: per-cluster ratios with a spread, which a survey then averages into one $1-b$.

## Keep the stages apart

The Lab and the tutorial keep mass calibration and cosmological inference in separate stages. The first stage asks how observed signals relate to true mass for individual clusters. The second takes that relation, with its scatter, as given and fits counts. An error in the first stage passes into the second with no warning. Three separately drawn maps that merely look alike would not be one physical object. The Lab computes all three signals from one model cluster, so any difference between the three masses comes from that cluster's physics.

## Lab tasks

1. In [the cluster mass Lab](https://sandboxphysics.com/labs/galaxy-cluster-mass-calibration/), choose the Large hydrostatic bias preset. Use $k\approx3$ and $p\approx8.4$ to predict the $\sigma_8$ that the X-ray masses imply, then read it.
2. Set the gas motion share to 0 and clumping to 1. Confirm that the X-ray and SZ ratios return to 1 and the inferred $\sigma_8$ to 0.81.
3. Compare the Calm relaxed cluster and Turbulent outskirts presets. Which method's $\sigma_8$ moves least, and why?

## Exercises

1. Derive $\ln(\sigma_8'/\sigma_8)=(k/p)\ln(1-b)$ from a first-order expansion of $\ln n(M,\sigma_8)$.
2. Use the table to compute $k$ between $2\times10^{14}$ and $4\times10^{14}\ M_\odot$ at $\sigma_8=0.81$, and $p$ at $2\times10^{14}\ M_\odot$ between $\sigma_8=0.70$ and 0.90. Does the same bias shift $\sigma_8$ more or less for lighter clusters?
3. From the toy-survey table, fit $\sigma_8\propto(1-b)^{-m}$ between $1-b=0.6$ and 1.0. Planck found that agreement with the primary CMB needs $1-b=0.58\pm0.04$. What $\sigma_8$ would the toy survey give for 0.58?
4. Why does lognormal scatter in $Y$ raise the number of detected clusters even though it is symmetric in $\ln Y$?

Answers

1. Expand $\ln n(M_{\rm cut}/(1-b),\sigma_8)\approx\ln n(M_{\rm cut},\sigma_8)+k\ln(1-b)$ and $\ln n(M_{\rm cut},\sigma_8')\approx\ln n(M_{\rm cut},\sigma_8)+p\ln(\sigma_8'/\sigma_8)$. Setting them equal gives the result.
2. $\ln(2.09/11.9)/\ln2=-2.5$, so $k=2.5$, and $p=\ln(2.01/0.453)/\ln(0.9/0.7)=5.9$. The count changes less, but the count is also less sensitive to $\sigma_8$, so $k/p=0.42$ is larger than 0.36: the $\sigma_8$ shift is slightly larger.
3. $m=\ln(0.916/0.739)/\ln(1/0.6)=0.42$. At $1-b=0.58$: $\sigma_8\approx0.739\times0.58^{-0.42}=0.93$.
4. The mass function rises steeply toward low mass. Symmetric scatter moves equal fractions up and down, but there are many more clusters below the threshold to move up than above it to move down.

Next: [recompute X-COP hydrostatic masses and the toy survey yourself](https://sandboxphysics.com/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/).

## Try it in the Lab

[Weighing a galaxy cluster three ways](https://sandboxphysics.com/labs/galaxy-cluster-mass-calibration/): Pick Large hydrostatic bias and predict the inferred clustering amplitude before you read it.

## Sources

1. [Toward a halo mass function for precision cosmology, Eqs. 2-3](https://arxiv.org/abs/0803.2706v1)
2. [Planck 2015 results XXIV, Eqs. 7, 9 and 14](https://arxiv.org/abs/1502.01597v3)
3. [Non-thermal pressure support in X-COP galaxy clusters](https://arxiv.org/abs/1805.00034v2)

## Keep reading

Weighing galaxy clusters with X-rays, SZ and lensing · Reading path

### From three scales to cluster counts

1. [Article **Why X-rays, the SZ effect and lensing weigh a galaxy cluster differently**](https://sandboxphysics.com/stories/cluster-mass-calibration/three-ways-to-weigh-a-cluster/)
2. [Article **How hot gas weighs a galaxy cluster in hydrostatic equilibrium**](https://sandboxphysics.com/stories/cluster-mass-calibration/hydrostatic-mass-from-x-rays/)
3. [Article **A first computable cluster model with SZ Compton y and lensing shear**](https://sandboxphysics.com/stories/cluster-mass-calibration/sz-pressure-and-lensing-shear/)
4. [You are here **How a hydrostatic mass bias shifts cosmology from cluster counts**](https://sandboxphysics.com/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/)
5. [Article **Recompute X-COP hydrostatic masses and a toy SZ cluster survey**](https://sandboxphysics.com/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/)
6. [Article **How to read the Planck 2015 SZ cluster counts and the mass bias**](https://sandboxphysics.com/stories/cluster-mass-calibration/reading-the-planck-cluster-count-mass-bias/)
