Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a231b7e95cc05751

Jump to content

Draft:Weighted overlap coefficient

From Wikipedia, the free encyclopedia
  • Comment: some secondary sources would be great imo Astropedian (talk) 17:50, 2 June 2026 (UTC)


The Weighted Overlap Coefficient (WOC) is a statistical method, introduced in 2022, for quantifying the morphological similarity between two two- or three-dimensional scalar fields. It was developed in the context of observational cosmology to compare the spatial distributions of dark matter, member galaxies and intracluster light in simulated galaxy clusters, but the underlying construction is general and can in principle be applied to any pair of co-registered scalar maps.[1]

The method was proposed as an alternative to the Modified Hausdorff Distance (MHD) and to cross-correlation techniques, both of which had previously been used in the astrophysical literature to compare dark-matter and intracluster-light distributions.[1] A reference Python implementation, pywoc, is distributed under the GPL-3.0 license.[2]

Background

[edit]

A recurring problem in extragalactic astrophysics is to decide, in a quantitative way, whether two scalar fields defined on the same spatial domain share the same underlying morphology. For example, comparing the similarity of the spatial distributions of the X-ray and Optical components of a galaxy cluster. Earlier attempts to address this problem in the cluster context fall into three main families:

  • Radial profile comparison. Azimuthally averaged one-dimensional profiles can be compared directly, but this discards all azimuthal information about asymmetries, substructure and merging activity.[1]
  • Modified Hausdorff Distance. The MHD[3] measures the distance between point sets extracted from contours of the two fields and has been used to compare intracluster light with dark matter.[4][5]
  • Cross-correlation. Two-point cross-correlation between weak-lensing mass maps and galaxy density fields has also been employed.[6]

Outside astrophysics, similar problems are addressed by the niche-overlap measures of theoretical ecology[7] and by the Earth mover's distance,[8] the latter of which has become popular as a loss function in some machine learning applications.

The authors of the WOC method argue that when one wishes to compare the shape of two distributions without making any prior assumption about the relation between their absolute amplitudes, the methods above can be biased or insensitive to substructure, motivating a new approach.[1]

Definition

[edit]
Schematic of the Weighted Overlap Coefficient. The reference distribution (solid contours) and the comparison distribution (dashed contours) are sliced at three nested density-threshold levels; at each level the overlap area is evaluated, and the levels are combined with weights based on the contour area and the signal at each level.

The Weighted Overlap Coefficient compares two co-registered scalar maps, denoted (the reference) and , that share the same pixel or voxel grid. The construction proceeds in six steps:[1][2]

  1. Both maps are smoothed on a common spatial scale.
  2. A signal centre is chosen in the reference map (for example, the peak of ), the one-dimensional radial profile of about that centre is computed, and the profile is evaluated at equally spaced radii to give density thresholds.
  3. For each threshold the enclosed region of (the set of pixels above that threshold) is identified, and its total area is recorded; if the level set is disconnected, the areas of the separate components are summed.
  4. In the comparison map , density thresholds are then found that enclose the same total area as the corresponding levels in . These are determined iteratively, starting from the peak of and lowering the threshold in small steps until the area constraint is met. Matching areas rather than thresholds is what allows the comparison to be made independent of the absolute amplitudes of the two fields.
  5. At each level, the area of the intersection of the two regions is evaluated and converted into an overlap fraction.
  6. The level-by-level overlaps are combined into a single similarity score via a weighted sum.

The result is given by

with the weights normalised so that

Here is the fractional overlap area at the -th level, is the area enclosed at level relative to the area of the outermost (-th) contour, and and are the (normalised) density thresholds at level in and respectively. The construction guarantees , with unity reached when the two fields share identical morphology and zero indicating no spatial coincidence at any level.[1]

Because the comparison is built from the geometry of nested contours of equal enclosed area rather than from a pixel-by-pixel intensity match, the WOC is, by construction, sensitive to morphology rather than to overall amplitude. This is intended for cases in which the relation between the signal strengths of the two fields is either unknown or is not the quantity of interest.[1] The estimator can be applied to either two-dimensional images or three-dimensional cubes and supports the use of a binary mask for excluding bad pixels or survey footprints.[2]

Comparison with the Modified Hausdorff Distance

[edit]

In the original presentation, the WOC was benchmarked against the MHD on idealised test cases and on simulated galaxy clusters. The authors report that the WOC remains stable in the presence of multiple substructures, whereas the MHD can be dominated by a small number of outlying contour points, and that the WOC discriminates more clearly between dynamically relaxed and dynamically disturbed cluster configurations.[1]

Application to galaxy clusters

[edit]

The method was applied to six simulated galaxy clusters drawn from the Galaxy Replacement Technique (GRT) simulation,[9] a high-resolution N-body simulation performed with the Gadget3 code[10] in which dark-matter halos that fall into a cluster are replaced by higher-resolution halos containing exponential stellar disks. The six clusters span a range of dynamical states, from systems whose last major merger occurred at high redshift to a system currently undergoing a major merger.[1]

The two-dimensional dark-matter map of each projected cluster was compared, using the WOC, with maps of the satellite galaxies, of all stellar particles, and of the brightest cluster galaxy plus intracluster light (BCG+ICL). The authors report two main findings:

  • Of the visible components considered, the BCG+ICL component most faithfully traces the projected dark-matter distribution.
  • Among the simulated clusters, dynamically relaxed systems show stronger BCG+ICL–dark matter similarity than dynamically young systems, suggesting that the WOC measured between BCG+ICL and a mass map could in principle be used as a dynamical-stage estimator. The same trend is weaker when measured with the MHD.[1]

These results extend earlier work that had argued, on different statistical grounds, for intracluster light as a luminous tracer of dark matter in clusters.[4][5]

Implementation

[edit]

The reference implementation is the open-source Python package pywoc, maintained on GitHub. The package exposes a single high-level function, woc(map1, map2, radii, ...), that accepts two-dimensional or three-dimensional NumPy arrays of identical shape, an optional boolean mask, an explicit pixel size, and parameters controlling the radial profile (number of bins, maximum radius, choice of centre). Optional acceleration via Numba, radial-profile vectorisation and a regression test suite were added in subsequent releases.[2]

The package is installable from the Python Package Index as pywoc, with optional extras for plotting and for the tutorial notebooks distributed with the source repository.[2]

See also

[edit]

References

[edit]
  1. ^ a b c d e f g h i j Yoo, J.; Ko, J.; Sabiu, C. G.; Shin, J.; Chun, K.; Hwang, H. S.; Kim, J.; Jee, M. J.; Kim, H.; Smith, R. (2022). "Comparison of Spatial Distributions of Intracluster Light and Dark Matter". The Astrophysical Journal Supplement Series. 261 (2): 28. arXiv:2205.08161. Bibcode:2022ApJS..261...28Y. doi:10.3847/1538-4365/ac7142.
  2. ^ a b c d e Sabiu, C. G.; Yoo, J. (2022). "WOC: Weighted Overlap Coefficient". GitHub repository.
  3. ^ Dubuisson, M.-P.; Jain, A. K. (1994). A modified Hausdorff distance for object matching. Proceedings of the 12th International Conference on Pattern Recognition. pp. 566–568.
  4. ^ a b Montes, M.; Trujillo, I. (2019). "Intracluster light: a luminous tracer for dark matter in clusters of galaxies". Monthly Notices of the Royal Astronomical Society. 482 (2): 2838–2851. doi:10.1093/mnras/sty2858.
  5. ^ a b Alonso Asensio, I.; Dalla Vecchia, C.; Bahé, Y. M.; Barnes, D. J.; Kay, S. T. (2020). "The intracluster light as a tracer of the total matter density distribution: a view from simulations". Monthly Notices of the Royal Astronomical Society. 494 (2): 1859–1864. doi:10.1093/mnras/staa861.
  6. ^ Hwang, H. S.; Geller, M. J.; Diaferio, A.; Rines, K. J.; Zahid, H. J. (2014). "The Hectospec Cluster Survey (HeCS)". The Astrophysical Journal. 797: 106. doi:10.1088/0004-637X/797/2/106.
  7. ^ Schoener, T. W. (1968). "The Anolis lizards of Bimini: resource partitioning in a complex fauna". Ecology. 49 (4): 704–726. Bibcode:1968Ecol...49..704S. doi:10.2307/1935534. JSTOR 1935534.
  8. ^ Kantorovich, L. V. (1960). "Mathematical methods of organizing and planning production". Management Science. 6 (4): 366–422. Bibcode:1960ManSc...6..366K. doi:10.1287/mnsc.6.4.366.
  9. ^ Chun, K.; Shin, J.; Smith, R.; Ko, J.; Yoo, J. (2022). "The Galaxy Replacement Technique (GRT): a novel approach to study galaxy interactions in clusters". The Astrophysical Journal. 925: 103. doi:10.3847/1538-4357/ac2cbe.
  10. ^ Springel, V. (2005). "The cosmological simulation code GADGET-2". Monthly Notices of the Royal Astronomical Society. 364 (4): 1105–1134. arXiv:astro-ph/0505010. Bibcode:2005MNRAS.364.1105S. doi:10.1111/j.1365-2966.2005.09655.x.
[edit]

Category:Computational astronomy Category:Galaxy clusters Category:Dark matter Category:Free statistical software