WorksPhysics and Astronomy
IMF-aware N-body forward modelling of membership selection functions for young open clusters
Abstract
We present an IMF-aware N-body forward-modelling framework, in which the stellar initial mass function (IMF) is an explicit input, to quantify the membership selection functions of open clusters, namely completeness and contamination as functions of magnitude. Accurate derivation of the IMF requires correcting for these selection effects, which otherwise distort the inferred present-day mass function. Our framework simulates clusters with IMF slopes , converts them into synthetic Gaia observations, adds mock field populations, and recovers members with HDBSCAN to mimic observational membership selection. Applying this framework to 35 young open clusters (ages Myr, distances pc), we find declining completeness towards the faint limit; older, more expanded, and more diffuse models have lower completeness and higher contamination. For a given cluster, models with flatter IMFs yield modestly but systematically lower global completeness and higher contamination, despite initial cluster masses calibrated to the same observed member count. These models undergo more stellar evolution mass loss and expand more, resulting in lower projected stellar densities; their lower completeness is consistent with more diffuse clusters being harder to separate from field stars. Corrections derived from a mismatched IMF largely recover the total star counts but leave a larger distortion in the shape of the present-day luminosity function than those derived with the correct IMF. Because membership recovery is tied to a cluster's structural evolution and the specific membership algorithm used, our findings emphasize that selection functions should be inferred jointly with the IMF rather than assumed in advance.
Introduction
The stellar initial mass function (IMF), the distribution of stellar masses at birth, sets the luminosity, lifetime and feedback of a stellar population, and is one of the largest sources of systematic uncertainty in stellar evolution models (Salpeter 1955; Hoppins 2018; Kroupa et al. 2026). It has been described by different mathematical forms, such as multi-part or tapered power laws (Kroupa 2001; De Marchi et al. 2010) and log-normal distributions (Miller & Scalo 1979; Chabrier 2003). Beyond the choice of mathematical form, a long-standing question is whether the IMF is universal (Bastian et al. 2010) or varies systematically with star-forming density and metallicity (Marks et al. 2012; Li et al. 2023). Star clusters are well suited to testing these possibilities, because their members share a common age, distance and chemical composition, and clusters from different environments can be compared (Lada & Lada 2003; Portegies Zwart et al. 2010; Krumholz et al. 2019). Young nearby open clusters are particularly useful: when their ages are short compared with their relaxation times, mass segregation and the preferential loss of low-mass stars have had less time to alter their mass functions (Spitzer 1987; Baumgardt & Makino 2003), and Gaia astrometry [20] allows their mass functions to be measured over a broad mass range (e.g. Cordoni et al. 2023). Recent -body modelling that accounts for dynamical evolution and unresolved bi-
© 2026 The Authors naries suggests tentative cluster-to-cluster scatter in the high-mass IMF slope (Hobart et al. 2026). Whether this scatter reflects genuine IMF variations also depends on how well the incompleteness and field star contamination introduced by membership selection are quantified.
We therefore focus on this selection effect, which affects the mass function derived from any star counting approach. Incompleteness and contamination that are independent of magnitude would only rescale the mass function, whereas those that vary with magnitude, and hence with stellar mass, distort its shape. Faint stars have larger astrometric uncertainties (Lindegren et al. 2021), which broaden their observed distributions in proper motion and parallax. In addition, low mass stars are preferentially found in the outskirts of mass segregated clusters (Tarricq et al. 2022), and many young clusters are observed to be expanding (Della Croce et al. 2024), reducing the density contrast of their members against the field. Both effects make faint members harder to separate from field stars. Correcting the mass function of a cluster therefore requires the completeness , the fraction of true members that are recovered, and the contamination , the fraction of selected stars that are field stars, as functions of magnitude. We refer to these as the membership selection functions; they are specific to both the cluster and the procedure used to identify its members. They differ from the selection function of the Gaia catalogue itself, which describes whether a star is included in the catalogue (Cantat-Gaudin et al. 2023).
Gaia has enabled homogeneous member lists for thousands of open clusters (Cantat-Gaudin et al. 2018; Castro-Ginard et al. 2020, 2022; Hunt & Reffert 2023; Perren et al. 2023), constructed with a range of membership algorithms [8] (Hunt & Reffert 2021; Pera et al. 2021; Van Groeningen et al. 2023). The membership probabilities provided with these lists are specific to each algorithm and are not, in general, calibrated estimates of the completeness and contamination of the lists. Hunt & Reffert (2024) estimated magnitude-dependent completeness for individual clusters and used it to correct their masses, but modelled member recovery from astrometric uncertainties alone, without field star contamination. Hunt et al. (2026) went further: in addition to the probability that a cluster as a whole is detected, they illustrated both completeness and contamination at the membership level with injection–recovery tests, but their synthetic clusters had a fixed Kroupa IMF (Kroupa 2001) and King spatial profiles (King 1962), without dynamical evolution.
Dedicated mass function studies have typically mitigated these effects rather than directly correcting the selection functions of individual member stars. For example, some studies restrict their analysis to magnitude ranges where the survey is complete (Olivares et al. 2018). Others select members conservatively and verify their completeness against deeper surveys (Hobart et al. 2026), or use simulated clusters to demonstrate that their member lists are sufficiently complete and pure without correction (Jiang et al. 2024). Alternatively, some studies avoid strict membership selection altogether by fitting field stars as a separate component in the colour–magnitude diagram (Li et al. 2025, 2026). For existing member stars, completeness and contamination as functions of magnitude, including the effects of cluster evolution and structure, therefore remain largely unquantified.
Measuring these selection functions requires the true membership of every star, which is unknown for observed clusters but known by construction in simulations. Simulating a cluster, however, requires assumptions about its stellar population and structure. The IMF is particularly problematic: if the selection functions depend on it, corrections based on a fixed IMF would partly assume the very quantity they are meant to constrain. The IMF can affect the selection functions directly, by setting how many members lie at each magnitude relative to field stars, and indirectly through the evolution of the cluster, since an IMF richer in massive stars leads to stronger stellar evolution mass loss and expansion [36] (Chernoff & Weinberg 1990; Haghi et al. 2020; Wang & Jerabkova 2021). Capturing this indirect effect requires evolving each simulated cluster from an initial state, rather than imposing a fixed present-day profile. In addition, the selection functions depend on the cluster, its surrounding field and the membership procedure (Hunt & Reffert 2021, 2024), so those derived from generic simulated clusters cannot be transferred directly to a particular member list.
-body models of individual clusters have been used to infer their initial conditions and IMF (Baumgardt et al. 2023; Weis et al. 2025; Hobart et al. 2026) and to calibrate their initial masses (Zheng et al. 2026), but the simulated stars are compared with the observations without passing through the same membership selection as the observed members. Deriving selection functions for a given member stars therefore requires cluster-specific -body models with the IMF as an explicit input, whose simulated stars pass through the same membership selection as the observed members.
We construct such models with an IMF-aware -body forward-modelling framework. For each cluster and each assumed IMF, we evolve an -body model to the cluster age, observe it with the Gaia uncertainties of that cluster and a mock field population, and identify its members with the same clustering algorithm as used for the observed list. The initial cluster mass is calibrated so that the number of recovered members matches the observed one, which fixes the initial mass for each assumed IMF. The completeness and contamination are then measured from the known origin of each simulated star, with their scatter estimated from independent realizations. The framework can be applied to member lists from other algorithms by replacing only the membership identification step. We apply it to 35 nearby young open clusters with HDBSCAN member lists (Hunt & Reffert 2023, 2024), using three IMF slopes above (, , and ), and examine how the selection functions vary with magnitude and between clusters, whether they depend on the assumed IMF, whether corrections derived with a mismatched IMF bias the recovered luminosity function, and how these differences relate to the evolution and present-day structure of the models.
The paper is organized as follows. § 2 describes the observational sample to which we apply the framework. § 3 introduces the IMF-aware -body forward-modelling framework and details its construction. § 4 presents the magnitude-dependent and global completeness and contamination for different IMF slopes, their effect on the recovered present-day luminosity function, and their dependence on cluster properties. § 5 discusses the evolutionary and structural changes associated with the IMF dependence, the dependence on the membership algorithm, and the caveats of this work. § 6 summarizes our conclusions.
Observational sample
Our observational sample consists of 35 nearby young open clusters with distances and ages . The targets are initially selected by cross-matching the clusters studied by Pang et al. (2022) with the Gaia DR3 catalogue of Hunt & Reffert (2024). Of the 37 matched objects, Alessi24 and BH164 are excluded because the mock-field data required for their simulations were unavailable. All observational member lists and reference cluster properties adopted in this work are taken from Hunt & Reffert (2023, 2024). The identifications and adopted properties of the 35 clusters are listed in Table A1 and described in Appendix A.
| HR24 name | P22 name | R.A. (deg) | Decl. (deg) | (pc) | (mas yr) | (mas yr) | (Myr) | () | |
| ASCC 105 | ASCC 105 | 295.472 | 27.386 | 553.4 | 1.370 | -1.618 | 173 | ||
| ASCC 127 | ASCC 127 | 347.302 | 65.183 | 374.2 | 7.410 | -1.645 | 247 | ||
| Briceno 1 | ASCC 16 | 81.083 | 1.696 | 342.1 | 1.384 | -0.016 | 171 | ||
| ASCC 19 | ASCC 19 | 81.978 | -1.856 | 352.1 | 1.168 | -1.182 | 61 | ||
| ASCC 58 | ASCC 58 | 153.706 | -55.020 | 471.4 | -13.302 | 2.760 | 236 | ||
| Alessi 20 | Alessi 20 | 2.643 | 58.757 | 424.3 | 8.117 | -2.427 | 252 | ||
| Alessi 5 | Alessi 5 | 160.902 | -61.112 | 391.8 | -15.400 | 2.544 | 571 | ||
| BH 99 | BH 99 | 159.554 | -59.109 | 440.2 | -14.477 | 0.980 | 643 | ||
| Collinder 135 | Collinder 135 | 109.406 | -36.921 | 295.9 | -10.078 | 6.230 | 209 | ||
| Collinder 140 | Collinder 140 | 110.802 | -32.012 | 376.2 | -8.088 | 4.756 | 203 | ||
| Collinder 69 | Collinder 69 | 83.814 | 9.888 | 393.8 | 1.215 | -2.047 | 1247 | ||
| Theia 13 | Gulliver 6 | 83.132 | -1.753 | 408.8 | 0.104 | -0.222 | 249 | ||
| IC 2391 | IC 2391 | 130.260 | -53.042 | 150.2 | -24.797 | 23.267 | 376 | ||
| IC 2602 | IC 2602 | 160.973 | -64.393 | 150.6 | -17.775 | 10.669 | 638 | ||
| IC 4665 | IC 4665 | 266.532 | 5.635 | 343.3 | -0.881 | -8.532 | 308 | ||
| LP 2383 | LP 2383 | 95.380 | -16.097 | 365.0 | -5.370 | 5.049 | 422 | ||
| ZHBJZ 1 | LP 2439 | 103.947 | -5.791 | 283.7 | -7.318 | -2.445 | 490 | ||
| UPK 640 | LP 2442 | 249.692 | -39.507 | 173.9 | -11.882 | -21.391 | 764 | ||
| NGC 1980 | NGC 1980 | 83.801 | -5.921 | 378.3 | 1.265 | 0.472 | 364 | ||
| NGC 2232 | NGC 2232 | 96.978 | -4.772 | 318.0 | -4.717 | -1.770 | 286 | ||
| NGC 2451A | NGC 2451A | 115.971 | -38.241 | 190.1 | -20.987 | 15.327 | 407 | ||
| NGC 2451B | NGC 2451B | 116.176 | -37.942 | 367.5 | -9.400 | 4.744 | 615 | ||
| NGC 2547 | NGC 2547 | 122.533 | -49.195 | 382.4 | -8.568 | 4.331 | 675 | ||
| NGC 3228 | NGC 3228 | 155.278 | -51.845 | 477.1 | -14.856 | -0.595 | 200 | ||
| NGC 6405 | NGC 6405 | 265.067 | -32.228 | 451.9 | -1.368 | -5.847 | 974 | ||
| NGC 7058 | NGC 7058 | 320.409 | 50.830 | 362.8 | 7.429 | 2.805 | 424 | ||
| NGC 7429 | RSG 7 | 344.090 | 59.912 | 417.4 | 4.771 | -2.245 | 67 | ||
| RSG 8 | RSG 8 | 345.453 | 59.509 | 481.4 | 5.664 | -1.716 | 151 | ||
| Roslund 5 | Roslund 5 | 302.617 | 33.741 | 538.9 | 2.052 | -1.236 | 360 | ||
| Stephenson 1 | Stephenson 1 | 283.578 | 36.881 | 354.7 | 1.121 | -3.018 | 322 | ||
| Stock 23 | Stock 23 | 49.184 | 60.071 | 598.2 | -4.324 | -0.993 | 106 | ||
| Alessi-Teutsch 10 | UBC 19 | 56.331 | 29.742 | 392.6 | 2.671 | -5.238 | 85 | ||
| OC 0280 | UBC 31 | 60.521 | 32.178 | 368.0 | 3.628 | -5.259 | 78 | ||
| Alessi 36 | UBC 7 | 106.565 | -37.596 | 275.3 | -9.669 | 7.046 | 198 | ||
| UPK 82 | UPK 82 | 298.464 | 26.202 | 537.9 | 2.278 | -2.169 | 142 |
Table A1. Identifications and HR24 properties of the 35 clusters in the observational sample. The P22 name column gives the corresponding names used in selecting the sample; all numerical values are from HR24. Ages are shown as medians with the 16th–84th percentile intervals after conversion to linear units. See Appendix A for the matching procedure and property definitions.
This work focuses on the demonstration of the method that can provide the IMF-aware model for the membership selection function, which plays an important role in mass function determination of a given star cluster, rather than on handling as many star clusters as possible. Therefore, the sample needs to contain sufficient clusters to demonstrate the method, and should also consist predominantly of young clusters, which are critical for future IMF measurement studies.
The observational member lists adopted in this work were obtained with HDBSCAN in the all-sky search of Hunt & Reffert (2023). HDBSCAN2 (Hierarchical DBSCAN, Campello et al. [8]) combines the density-based approach of DBSCAN (Density-Based Spatial Clustering of Applications with Noise, Ester et al. (1996)) with hierarchical clustering to effectively handle datasets of varying densities. To search for clusters closer than 750 pc, Hunt & Reffert (2023) divided the sky into 192 level-2 HEALPix (Hierarchical Equal Area isoLatitude Pixelation) pixels and selected sources with mas. Each pixel and its eight nearest neighbours formed a field of approximately , with adjacent fields overlapping. For clusters closer than 150 pc, they instead used a single all-sky field containing stars with photo-geometric distances below 250 pc (see their Section 2.3). Within each HEALPix field, positions, proper motions, and parallaxes were transformed to a coordinate frame centred on the field and rescaled so that all five dimensions had the same median and interquartile range. For the all-sky field, positions and parallaxes were converted to Cartesian coordinates using photo-geometric distances, and proper motions to tangential velocities (their Section 3.1). They adopted the same HDBSCAN hyperparameter values as in their previous study (Hunt & Reffert (2021)), with and . Detections were required to exceed in the cluster significance test before the results from different hyperparameter runs and fields were combined and duplicate detections removed. During this merging, only clusters closer than 175 pc were retained from the all-sky search, whereas those from the level-2 HEALPix search were retained only between 150 and 750 pc. The overlap allowed the better detection to be selected for clusters near the boundary (see their Section 3.2). The minimum cluster size adopted for each object is recorded in the online cluster catalogue, as described in their Table A.1. We use the same HDBSCAN algorithm to recover members in our forward models, as described in § 3.5.1.
Method
Forward-Modelling Framework
We construct an IMF-aware forward model that follows each observed cluster from an assumed initial state to a present-day membership catalogue, as shown in Figure 1. The model combines -body simulation (step 1), synthetic Gaia observations with a mock field population (step 2), and HDBSCAN membership recovery (step 3). The IMF is an explicit input: for each IMF slope , we generate a new set of stellar masses and follow the stellar and dynamical evolution of the resulting cluster in a separate -body model. The output is a simulated counterpart of the observed member list, subject to the same magnitude and footprint cuts as the observed sample. As in Zheng et al. (2026), we calibrate by matching simulated and observed star counts, but after membership recovery rather than within the tidal radius, so that both counts are subject to incompleteness and contamination. We repeat steps 1–3 with trial values of , updating through the adopted mass–radius relation (§ 3.2), until the selected simulated and observed sample counts agree to within 20 per cent (§ 3.5). In step 4, we use the known origin of each simulated star in the accepted model to measure the membership selection functions, namely completeness and contamination functions of magnitude, and repeat the calculation across independent realizations to estimate their scatter.
Figure 1. Forward-modelling framework for a given cluster and IMF slope above 0.5 . Steps 1–3 produce a simulated sample from an initial cluster mass , which is adjusted until the number of selected simulated sample , agrees with the observed member count , to within 20 per cent. Step 4 measures the membership selection functions for the accepted model. The bottom row lists the inputs taken from the observed catalogue (Hunt & Reffert 2023, 2024); section numbers refer to the text.
For a given , the same forward model, which follows the cluster from its initial state to the present day, thus serves both to calibrate the initial mass and to derive the selection functions. For each cluster, we obtain an accepted model for each , all matching the same observed member count within the adopted tolerance. Comparing their selection functions allows us to examine whether and how they vary with the assumed IMF for that cluster.
Initial Conditions and N-body Evolution
We generate the initial cluster models with a modified version of MCLUSTER3 (Wang et al. (2019); Küpper et al. [41]). We adopt a continuous, two-part power-law IMF (Kroupa (2001)),
where is the normalization constant. We consider , , and to compare membership selection functions under different IMFs. We assign stellar masses by optimal sampling (Kroupa et al. (2013)) to reduce stochastic variations in the evolution of low-mass clusters (Wang & Jerabkova (2021)). For each and , we recalculate the discrete mass spectrum and maximum initial stellar mass . In our implementation, and jointly satisfy
Here is the IMF upper limit, while is the mass of the most massive star assigned to the model.
We calibrate the initial cluster mass separately for each (§ 3.5) and set the initial half-mass radius using the mass–radius relation of Marks & Kroupa (2012), pc. For our calibrated masses of –, this gives – pc. Models adopting this relation may remain more compact at the present day than the observed clusters (Zheng et al. (2026)). We nevertheless retain this relation to limit computational cost and avoid parameter degeneracies that would be difficult to resolve if were varied independently alongside and . The clusters are initialized as King models with (King (1966)), scaled to and in virial equilibrium, without primordial mass segregation, fractal substructure, or primordial binaries.
We evolve the clusters with the -body code PeTar4 (Wang et al. (2020b)), which combines the particle–particle/particle–tree () method (Oshino et al. (2011)) with slow-down algorithmic regularization (SDAR; Wang et al. (2020a)) and is parallelized with the Framework for Developing Particle Simulators (FDPS; Iwasawa et al. (2016, 2020)). Stellar and binary evolution, including wind mass loss, stellar-type transitions, mass transfer, and mergers, is followed with the updated SSE/BSE codes (Hurley et al. (2000, 2002); Banerjee et al. 2020), and the Galactic potential is included through galpy (Bovy 2015).
We adopt for stellar evolution and MWPotential2014 for the Galactic potential. For each cluster, a centre-of-mass particle is integrated backwards from the present-day Galactocentric position and velocity derived from the catalogue of Hunt & Reffert (2024). The backward integration time is the catalogue median age rounded down to the nearest Myr (Appendix A). The -body models for all mass and IMF trials of the cluster start from the resulting position and velocity and are evolved forward over this interval to the present day. In the final snapshot, we retain all particles, including remnants and escapers still in the simulation, without any radial or bound-membership cut. This snapshot is the input to the synthetic Gaia observations described in § 3.3.
Synthetic Gaia Observations and Footprint
We use GALEVNB (Pang et al. 2016) to compute absolute , , and magnitudes only for particles with star. type (i.e. main-sequence, Hertzsprung-gap, first-giant-branch, core-helium-burning, and asymptotic-giant-branch stars, and naked helium stars). We assign all stars in each cluster the catalogue median (AV50) from Hunt & Reffert (2024) and convert it into extinction in each band using the corrected polynomial coefficients of Monetiro et al. (2024), with extrapolation where necessary. We then obtain noiseless apparent magnitudes by adding the distance modulus for each star’s simulated heliocentric distance and the corresponding band extinction to its absolute magnitudes.
To reproduce the measurement uncertainties in each cluster, we derive empirical magnitude–uncertainty relations from all of its catalogue members (Hunt & Reffert 2024), rather than adopting general Gaia DR3 astrometric uncertainty models (Lindegren et al. 2021). Using locally weighted scatterplot smoothing (LOWESS), we fit the logarithmic uncertainties of the parallax and proper motions as functions of , and the logarithmic uncertainty in each photometric band as a function of the magnitude in that band. For each mock star, we interpolate these relations at its noiseless magnitudes and add independent zero-mean Gaussian noise with the resulting standard deviations to its parallax, proper motions, and three magnitudes. We then retain sources with mag.
We further restrict the sources to a footprint in sky position, parallax, and proper motion, defined from observed members of each cluster and fixed throughout the trials. The footprint radius is defined as , where encloses 95 per cent of the observed members in projection at the catalogue distance (dist50). The corresponding angular radius is limited to –. The proper motion cut is an ellipse centred on the catalogue proper motion, with semi-axes in each component, where , limited to – mas yr, and corresponds to a transverse speed of at . The parallax window is centred on the cluster parallax , with half-width , limited to – mas. Here and are the 95th percentiles of the members’ absolute offsets from the respective window centres, and and are their median reported uncertainties, the term allows for the cluster’s line-of-sight depth. We retain stars within the angular radius, parallax window, and proper-motion ellipse:
Here, is the angular separation from the catalogue centre, and and are the catalogue proper motions.
We apply the same mag and footprint cuts to the observed members and to the simulated cluster stars combined with mock field stars (§ 3.4), so that both counts refer to the same selection region. The selected simulated sample is then passed to HDBSCAN for membership identification (§ 3.5).
Mock Field Stars
With the synthetic cluster observations prepared, we add stars from the Gaia Early DR3 Mock Stellar Catalogue (GeDR3mock)5 (Rybizki et al. 2020). This catalogue was generated with galaxia (Sharma et al. 2011), combining a Besançon-like Galactic model with 3D extinction maps and stellar evolutionary models. It models the selection effects of the Gaia survey and provides Gaia-like uncertainty estimates.
For each cluster, we download field stars from a region with the same centre as the footprint and twice its angular radius , proper-motion scales , and parallax half-width . Besides, we also apply additional quality criteria as described in Appendix B, those criteria are used only for download the field population, whereas the mag and footprint cuts (§ 3.3) are applied afterwards to both populations. We retain the same field sample for each cluster throughout the calibration trials, providing a common background for the recovery comparison.
Membership Recovery and Initial-Mass Calibration
Membership recovery with HDBSCAN
We adopt HDBSCAN (Campello et al. [8]) because it was used to construct the homogeneous observational catalogue of Hunt & Reffert (2023, 2024) and is efficient for repeated forward calculations. The inputs are , with each dimension standardized by its mean and standard deviation. The main hyperparameters are the minimum cluster size and the number of samples in a neighbourhood . We fix and and use excess of mass (eom) cluster selection, keeping recovery consistent across trials and limiting repeated tuning; the rationale is given in Appendix C1. These settings differ from those used in the all-sky search of Hunt & Reffert (2023) because our footprint selection and subsequent data standardization also differ. Following their procedure more strictly would allow a more rigorous comparison between the simulated and observed member samples. Our aim, however, is to develop an IMF-aware forward-modelling framework and derive IMF-aware selection functions, rather than reproduce the all-sky search.
From the HDBSCAN results obtained with the fixed settings, we identify the simulated target cluster as the non-noise label whose centroid is nearest to the observed cluster centre. Each source in this label receives a membership strength between 0 and 1, reported as a "probability". It is important to note that these values measure relative assignment strength rather than statistical membership probability and cannot be used to weight star counts; retaining all sources in the label would introduce disproportionately high field contamination. A suitable probability threshold must therefore be chosen: only sources that pass it are treated as simulated members in the final count comparison. The best threshold is determined by the maximum difference between membership completeness and contamination:
where selecting sources in the target label with membership strength of at least gives the completeness and contamination (equation (6)). is determined from simulated truth. Figure 2(a) illustrates this threshold selection for ASCC 105. This threshold is crucial because it controls the trade-off between completeness and contamination. It also changes the selected member count, which affects the convergence of mass calibration.
Figure 2. Probability threshold selection and star count comparison for ASCC 105, with and . (a) Completeness and contamination as functions of the hdbscan probability threshold . The vertical dashed lines mark , which maximizes ; circles mark the corresponding values. (b) Counts of all selected sources , correctly recovered members , and field contaminants . The dotted horizontal line marks the observed count , and the shaded band shows its per cent acceptance interval. At , satisfies the star count criterion for mass calibration.
At , we consider a simulated cluster successfully recovered if
where counts all selected sources, both correctly recovered members and field contaminants, while counts all cluster-origin particles passing the photometric and footprint cuts. We test convergence of the calibration only for recovered trials.
Initial cluster mass calibration
If the simulated cluster is recovered, we calibrate the trial against , the observed member count after the same magnitude and footprint cuts, accepting differences of at most 20 per cent of this count. As illustrated in Figure 2(b) for ASCC 105, the selected count at falls within this acceptance interval. To find a mass that meets this criterion, we start from , following Zheng et al. (2026) and Marks & Kroupa (2012), and at each trial mass repeat the forward calculation, recovery, and threshold selection. We first search for a mass interval that brackets the observed count by doubling the trial mass when too few stars are selected, or halving it when too many are selected. We then bisect the bracketed mass interval; this assumes that generally increases with initial mass. Convergence is typically reached after a few simulations, although changes in the HDBSCAN recovery between trials can break this trend and prevent convergence.
If recovery fails, we instead compare counts after only the magnitude cut : for simulated cluster stars with synthetic photometry, and for observed members. If , the trial mass is too low and sets a lower bound for the bracketing interval, so we continue at higher masses; otherwise, we stop because the search direction is ambiguous. Such trials guide the search but are never accepted as calibrated models.
If mass calibration fails to converge with the fixed HDBSCAN settings, we repeat it with a search over 28 hyperparameter combinations at each trial mass: , , and eom or leaf selection. In practice, only a small fraction of our sample required this additional search. For each combination, the target is the label with the most true cluster stars. We retain the combination maximizing the area under the completeness–contamination curve, then reselect using equation (4). The search thus uses simulated truth for both target and hyperparameter selection; details are given in Appendix C2.
Membership Selection Functions
The selection functions compare the simulated samples before and after HDBSCAN membership recovery (§ 3.5.1). Before recovery, counts all cluster-origin particles in the final snapshot (§ 3.2), including remnants and escapers; counts those eligible for synthetic photometry and within the adopted magnitude limits; and counts the subset also inside the footprint, i.e. the cluster stars in the HDBSCAN input. At , the selected sample comprises correctly recovered cluster members and field contaminants, with counts and , respectively, giving . We define the membership selection functions as the magnitudedependent completeness and contamination :
We use equal-frequency magnitude bins defined from the observed sample to accommodate their non-uniform magnitude distribution. Following the Rice rule, we set the number of bins to . The global completeness and contamination are computed using the same ratios, with counts summed over the full adopted magnitude interval.
To improve the statistical robustness of our estimates, we perform 15 additional simulations for each accepted model, using different random seeds to generate the initial stellar masses, positions, and velocities while keeping the calibrated total mass and associated radius, IMF, age, observational-error model and noise seed, field population, and footprint fixed. Each realization is evolved independently and subjected to membership recovery, with reselected but no mass recalibration. For models calibrated through a hyperparameter search, these repeats use the reference model’s final hyperparameters and target identification rule without further searches.
From the accepted model and 15 additional realizations, we retain only those meeting the global recovery criteria (equation (5)) and report the median and 16th–84th percentile range in each magnitude bin, along with the number of valid realizations. These summaries describe scatter among successfully recovered realizations under fixed model and field assumptions, rather than uncertainty in the median or systematic uncertainties.
Results
Magnitude-dependent completeness and contamination
We attempted to calibrate the initial mass of each of the 35 clusters for 3 assumed IMF slopes, , and , giving 105 combinations. The membership recovery procedure was run for 97 combinations: 92 with the fixed HDBSCAN hyperparameters and 5 through the supplementary hyperparameter search. The remaining 8 combinations failed the membership recovery criteria even after this search. The accepted models used in the following selection function analysis therefore cover 34 clusters, all except IC 2391, for which none of the three combinations satisfied the recovery criteria. Results are available for all three IMF slopes for 30 clusters, two slopes for three clusters, and one slope for IC 2602.
Across the full sample shown in Figure 3 and Fig. D1, median completeness typically lies between 0.8 and 1 at , while median contamination is generally below 0.1. Towards the faint limit, completeness declines to – in many clusters, although others retain higher values. Contamination varies substantially between clusters, remaining below 0.1 in many faint bins but exceeding 0.5 in the faintest bins of several clusters, such as NGC 2232. These magnitude-dependent selection effects make corrections for incompleteness and contamination essential when deriving mass functions.
Figure 3. Selection functions for six example open clusters. Upper and lower panels show completeness and contamination versus magnitude, respectively. Blue circles, orange squares, and green triangles denote , , and , respectively. Curves and shading show the medians and 16th–84th percentile ranges across realizations. Alternating grey and white vertical bands mark the -magnitude bins. Legends give the initial cluster masses and numbers of contributing realizations; "free hyper" denotes models with optimized hdbscan hyperparameters.
Since the simulated clusters used to estimate these corrections depend on the assumed IMF, we examine whether and how the selection functions differ among the three values of . For about half of the clusters, the median completeness decreases steadily from to over most of the magnitude range, as illustrated by ASCC 58, Collinder 140, and NGC 2232 in the left-hand column of Figure 3. However, the separations between the medians, typically , are comparable to or smaller than the 16th–84th percentile ranges across realizations, so the realization scatter does not allow us to establish whether this ordering is statistically significant. Moreover, even in these clusters, the shapes of the selection functions do not always follow the same trend for different : at , the curves for the three slopes cross, and the decline in completeness towards the faint limit differs between slopes. For example, in the faintest bin of Collinder 140, the completeness falls to 0.5 for but remains at 0.70–0.75 for the other two slopes. For the remaining clusters, the selection functions show no systematic dependence on , or the scatter is too large to identify one: the medians for the three slopes either nearly coincide, as for BH 99, or cross without a consistent order, as for Roslund 5 and IC 4665 in the right-hand column of Figure 3.
To assess whether these differences matter once the corrections are applied, we test how well they recover the true present-day luminosity function (PDLF) when derived with the correct IMF and with a different one. Because the selection functions are defined in magnitude bins, we perform this test on the luminosity function (LF) itself, without a mass–luminosity conversion. We treat each realization of the models with and in turn as a target and correct its selected sample using the selection functions of other realizations of the same cluster. We compare three cases: no correction; same-IMF corrections, which use the other realizations of the target model; and wrong-IMF corrections, which use the realizations of the model. We use only realizations with valid counts in all magnitude bins, so that every LF is compared with the PDLF over the same full magnitude range.
In each magnitude bin , let be the true number of cluster stars in the target and the recovered number. Without correction, is the selected count, ; with correction, , with and taken from one correction realization. We quantify the recovery with two diagnostics, evaluated for each pair of target and correction realizations and summarized for each cluster by the median over correction realizations and then over targets. The normalization bias,
is the signed relative error in the total number of stars, with positive values indicating overestimated counts. The shape distortion com… pares the LFs after normalizing each to unit total, so it is insensitive to the total number of stars,
where the median is taken in each bin before the absolute value. therefore measures the systematic change in LF shape, rather than the random scatter between realizations. For each cluster, we obtain 95 per cent intervals on and from 5000 bootstrap resamples of its target realizations, with the corrections kept fixed.
Figure 4 shows that the uncorrected LFs are biased in both normalization and shape. Without correction, is negative for almost all clusters, with medians of and per cent for targets with and , respectively, and the median is 2 and 1.5 per cent. Same-IMF corrections reduce both biases: the median becomes close to zero, the median decreases to 0.5 and 0.3 per cent, and the scatter between clusters decreases. Wrong-IMF corrections, which use the models, leave median values of per cent for targets with and per cent for those with . Most of the normalization bias is therefore still removed, but the total counts remain underestimated when the target IMF is flatter than and overestimated when it is steeper. The shape distortion, however, is reduced much less. Figure 4(c) and (d) show that wrong-IMF corrections leave median values of 1.6 and 1.1 per cent, about three times the same-IMF values and only modestly below the uncorrected ones. Besides this higher median, also varies more between clusters than with same-IMF corrections, suggesting that clusters respond differently to the IMF mismatch.
Figure 4. Normalization bias, (top), and shape distortion, (bottom), of the luminosity function (LF) derived from the selected sample before and after selection-function correction, measured relative to the true present-day LF (PDLF) over the full original magnitude-bin range and expressed in per cent. The left and right columns correspond to target models with and , respectively. Uncorrected denotes no correction; Same IMF and Wrong IMF denote corrections derived from independent realizations with the target and with , respectively. Pink open circles show individual clusters, and grey lines connect the same cluster across the three cases. Grey error bars show 95 per cent bootstrap intervals. Boxes show the interquartile ranges across clusters, with black lines marking the medians and whiskers extending to 1.5 times the interquartile range.
Overall, corrections derived with the correct IMF largely recover both the normalization and the shape of the LF, whereas those derived with a mismatched IMF bring the total number of stars close to its true value but still leave a shape distortion.
Global completeness and contamination
Although the selection functions in Figure 3 do not show a clearly resolved ordering with in individual magnitude bins, such an ordering becomes systematic once the counts are integrated over the full magnitude range. Figure 5 shows the resulting global completeness and contamination for the 30 clusters with accepted models at all three IMF slopes. Each point in Figure 5(a) is the median over valid realizations for one cluster at one slope. At fixed , the clusters span a wide range, from 0.77 to 0.98 in completeness, with interquartile ranges of 0.05–0.06. Most grey lines linking the same cluster nevertheless decline in completeness and rise in contamination from to .
Figure 5. Global completeness (top) and contamination (bottom) for the 30 clusters with converged models at all three IMF slopes. (a) Medians over successful realizations for individual clusters. Blue circles, orange squares, and green triangles denote , , and , respectively; grey lines connect the same cluster. Boxes show the interquartile ranges across clusters, with black bars marking the medians. (b) Within-cluster differences, defined as the value at the second slope minus that at the first. Open grey circles show individual clusters; black diamonds and error bars indicate the median differences and their 95 per cent BCa bootstrap intervals, with the median values given near the bottom of each plot. Dashed lines mark zero.
To separate the effect of the IMF from these differences between clusters, we compute, for each cluster, the difference between the values at two slopes, defined as the value at the flatter slope minus that at the steeper one. Figure 5(b) shows these differences and their median across clusters. We estimate a 95 per cent interval on each median from 20 000 bootstrap resamples of the clusters, using the bias-corrected and accelerated (BCa; (Efron 1987)) method. Between and , the median difference is in completeness, with a BCa interval of to , and in contamination, with an interval of 0.008 to 0.021. The completeness is lower at in all 30 clusters, and the contamination is higher in 29 of them. The two intermediate steps show smaller shifts in the same direction, and in completeness, with decreases in 21 and 28 clusters, respectively. Thus, even though the models for each cluster are calibrated against the same observed member count, those with flatter IMFs systematically yield lower global completeness and higher global contamination. When the same observed members are corrected for these selection effects, a flatter IMF therefore implies a larger upward correction of the star counts for incompleteness and a larger downward correction for contamination. This is consistent with the signs of the residual normalization bias for wrong-IMF corrections in Figure 4(a) and (b).
Although systematic, this IMF-dependent offset is modest compared with the differences between clusters at fixed . The median shift of 0.04 in completeness between the two extreme slopes is comparable to the interquartile range across clusters but much smaller than the full range, and the shift of 0.015 in contamination is likewise comparable to its interquartile range of 0.01–0.02. Moreover, the clusters largely retain their relative order across the three slopes, as indicated by the predominantly parallel grey lines in Figure 5(a). We next examine how the differences between clusters relate to their properties.
Figure 6(a) shows that older simulated clusters are recovered less completely and with more contamination. The Spearman coefficients
Figure 6. Dependence of the recovery completeness, (upper panels), and contamination fraction, (lower panels), on (a) cluster age, (b) the cumulative number of half-mass relaxation times, , (c) the ratio of the half-mass radius at the cluster age to its initial value, , and (d) the projected stellar surface density at the cluster age, . Blue circles, orange squares, and green triangles denote , , and , respectively. Points and shading show the medians and 16th–84th percentile ranges of and across successful realizations of each model. Colour-coded annotations give the Spearman rank correlation coefficients of the model medians, with superscripts and subscripts giving the offsets of the 95 per cent BCa intervals.
with age are , , and for completeness and 0.60, 0.50, and 0.70 for contamination, for , , and , respectively; all six 95 per cent BCa intervals exclude zero. However, age only sets how long each model has evolved. Clusters of the same age can be at very different stages of dynamical evolution, depending on their mass and size, so age alone does not identify the underlying physical mechanism.
We therefore further consider a dynamical clock, the cumulative number of half-mass relaxation times, , where is the cluster age and is the half-mass relaxation time (Spitzer 1987) of the simulated cluster at time . For and , completeness decreases with about as strongly as with age, with Spearman coefficients of and . This is consistent with cumulative two-body relaxation contributing to the structural evolution that makes the simulated clusters progressively more difficult to recover. For , however, the coefficient is only , with an interval of to 0.10, and the contamination coefficients are also weaker. One possible reason for the weaker relation6 at is that measures the progress of two-body relaxation, whereas a flatter IMF contains more massive stars, whose stellar evolution mass loss may also contribute to the early expansion of the cluster. This expansion is not driven by two-body relaxation; moreover, the increase in lengthens , reducing the number of relaxation times accumulated by the same age. For the flatter IMF, may therefore be a less reliable proxy for the cluster structure relevant to membership recovery. This suggests that alone may not consistently explain differences in recovery between clusters across the three IMF assumptions.
Rather than relying on age or a dynamical clock as proxies, we next examine the structural evolution of the simulated clusters directly. Figure 6(c) uses the ratio of the half-mass radius at the cluster age to its initial value. More strongly expanded models show lower completeness for all three IMF slopes, with coefficients of , , and , and higher contamination, with coefficients of –. Unlike , the expansion remains closely related to membership recovery even for . This suggests that the structural state of the model, as traced by its expansion, is more consistently associated with recovery than the dynamical clock alone.
Finally, Figure 6(d) uses the projected stellar surface density , where is the projected radius enclosing half of the simulated cluster members. Whereas shows how much a model has expanded relative to its initial state, measures how compact it is at the cluster age. Completeness increases with , with coefficients of , , and , and contamination decreases, with coefficients of , , and . The absolute coefficients are comparable to or slightly larger than those for age and expansion, although their confidence intervals overlap. These trends are consistent with the density-based nature of HDBSCAN: a more diffuse stellar distribution provides less density contrast against the field, making cluster members more difficult to separate from surrounding sources. may therefore serve as a link between the evolution traced in Figure 6(a)–(Figure 6c) and the recovery performance.
Taken together, the four panels of Figure 6 show that recovery is strongly related to age, expansion, and surface density for all three IMF slopes, but not uniformly to . These relations are consistent with a picture in which models expand and become less dense as they evolve, making their members harder to separate from field stars. Because the four quantities are correlated with one another, however, the present analysis cannot isolate the effect of any single one.
Discussion
Effect of the assumed IMF
We now examine whether the systematic completeness offset between the different IMF assumptions is accompanied by changes in the evolution and structure of the simulated clusters. For each cluster, Figure 7 shows the changes from to in stellar evolution mass loss, structure, and global completeness. Because both models of a cluster share its age, orbit, field population, and observed member count, these changes remove the offsets between clusters seen in Figure 6, although they still include the effect of the different initial masses calibrated for the two IMF slopes.
Figure 7. Changes in stellar evolution mass loss, structure, and global completeness from to for the 30 clusters with converged models at both IMF slopes. All axes show , so negative values indicate lower values for the flatter IMF. The panels compare (a) stellar evolution mass loss fraction, , with relative expansion, ; (b) relative expansion with projected stellar density, ; (c) projected density with completeness; and (d) relative expansion with completeness. All quantities are medians over the valid realizations of each model, and the changes are differences between these medians, using their logarithms for the structural quantities. Open circles represent individual clusters, coloured by age. Grey bars show the 16th–84th percentile ranges of differences from 20 000 random pairs of valid realizations, one from each model, indicating realization scatter rather than uncertainties on the medians. In each panel, is the Spearman rank correlation coefficient of the open circles, with superscripts and subscripts giving the offsets of its 95 per cent BCa interval. Dashed lines mark zero change.
We quantify the stellar evolution mass loss by , the cumulative fraction of the initial cluster mass lost by the cluster age through stellar and binary evolution, including mass ejected in mergers; is the total mass of all particles in the simulation at , including remnants and escapers, so that stars escaping from the cluster are not counted as mass loss. As shown in Figure 7(a), in 27 of the 30 clusters the flatter-IMF model has a larger , with –, and expands more relative to its initial half-mass radius, with –. A flatter IMF places a larger fraction of the cluster mass in massive stars, leading to stronger stellar evolution mass loss and, consequently, greater cluster expansion (e.g. [36] (Haghi et al. 2020)). However, the amount of additional mass loss does not scale monotonically with the amount of additional expansion, because the resulting dynamical response also depends on how rapidly and where the mass is lost (e.g. [1] (Hills 1980)).
Regardless of the detailed origin of the expansion, its effect on the present-day structure is clear. Clusters for which the flatter-IMF model expands more strongly also show a systematically larger decrease in , as in Figure 7(b). The Spearman coefficient is and most clusters lie along a narrow sequence. Thus, the differences in expansion between the two IMF assumptions are reflected in the projected stellar densities of the stars passed to membership recovery.
Figure 7(c) shows that larger decreases in tend to accompany larger decreases in completeness, and Figure 7(d) shows a similar tendency for models that expand more. However, the evidence for these trends is limited. The Spearman coefficients are 0.37 and , with 95 per cent intervals of to 0.66 and to 0.00, respectively. For , this is likely because HDBSCAN recovery depends on the density contrast between cluster and field stars in the five-dimensional space , which a projected cluster density alone cannot describe.
Three clusters, ASCC 19, OC 0280, and Alessi–Teutsch 10, have , , and all close to zero in Figure 7. They are younger than 8 Myr and have the lowest calibrated initial masses in our sample, below 60 under both IMF assumptions. Under optimal sampling, these low initial masses imply low maximum stellar masses through equation (2). For the resulting stellar mass distributions, little stellar evolution mass loss has occurred by the cluster ages, even with the flatter IMF. By contrast, other clusters of similar age but higher initial mass already show – and . This contrast suggests that changes in mass loss and expansion between the two IMF assumptions depend on cluster mass as well as age.
Overall, Figure 7 shows that models with generally undergo more stellar evolution mass loss and expand more than those with . Their stronger expansion is closely reflected in lower projected stellar densities, so these models are more diffuse. The systematically lower global completeness at is then consistent with more diffuse clusters being harder to recover. However, clusters with similar structural changes can still differ considerably in their completeness shifts, suggesting that structure is not the only factor behind the completeness difference between the two slopes.
Algorithm dependence and applicability of the framework
Our selection functions are specific to HDBSCAN with the settings described in Section 3.5. Open cluster member lists, however, are constructed with a variety of methods, including DBSCAN (Castro-Ginard et al. 2020, 2022), fastMP (Perren et al. 2023), pyUPMASK (Pera et al. 2021; Qin et al. 2023), STARGO (Yuan et al. 2018; Pang et al. 2022), and other machine-learning approaches (Van Groeningen et al. 2023). Because these methods identify members by different criteria, the resulting lists would differ in their completeness at the faint end and in their levels of field contamination. Even with HDBSCAN, changing the hyperparameters or probability threshold can alter the recovered sample. Selection functions must therefore be derived for the specific procedure used to construct each member list.
The forward-modelling framework developed in this work extends naturally to these algorithm-specific selection functions. Of the four steps in Figure 1, only the membership recovery in step 3 depends on the algorithm. To derive the selection functions of a given member list, step 3 should reproduce the procedure used to construct that list, applied to the simulated sample with the same input variables, preprocessing, hyperparameters, and member selection criteria as for the observed data. The observational inputs to steps 1 and 2 are the initial cluster mass or are then taken from, or recalibrated against, that list. Thus, although the selection functions are specific to one algorithm, the framework from which they are derived can be generalized to others.
Because the origin of each simulated star is known, the framework can also be used to evaluate how well candidate algorithms or settings recover a given cluster, and thus to choose the procedure for determining its membership. Given the close relation between HDBSCAN recovery and cluster structure in § 4.2, such evaluations should use simulations of the target cluster rather than a generic mock sample.
Caveats
The selection functions derived here depend on several model choices. We vary only the IMF slope above 0.5 , keeping the slope below this mass fixed and assigning stellar masses by optimal sampling, so that the differences between the models of a cluster can be attributed to . The slope below 0.5 , which governs the number of the faintest members, is therefore not tested. Optimal sampling also fixes the maximum stellar mass for a given through equation (2). In the three clusters with the lowest , this mass is too low for the models with and to differ appreciably in stellar evolution mass loss, expansion, or completeness, as shown in § 5.1. Stochastic sampling could add more massive stars to such clusters, making their selection functions more sensitive to , and would increase the scatter between realizations.
The initial half mass radii follow the relation of Marks & Kroupa (2012), which describes embedded clusters before gas expulsion, whereas our models start gas-free and in virial equilibrium, without primordial binaries or mass segregation. They may therefore remain more compact than the observed clusters (Zheng et al. 2026), many of which are expanding (Della Croce et al. 2024). As completeness increases with in Figure 6(d), such models would tend to overestimate the completeness, and the offset between and found in § 5.1 may also depend on the adopted initial structure. Gas expulsion and primordial binaries can be added to the -body models without changing the rest of the framework.
As noted in § 3.5.1, our membership recovery follows the
search used to construct the observed member lists only approximately, and is chosen using simulated truth, which is unavailable for observed data. The selection functions therefore describe recovery with an optimally chosen threshold rather than with the criteria of the observed lists. Reproducing the member search of the observed catalogue in full, with the same input variables, preprocessing, hyperparameters, and member selection criteria, would give selection functions that apply directly to the observed lists.
Finally, the calibration matches only . This fixes for each assumed IMF but cannot distinguish between IMFs or uniquely determine the initial structure. The choice of IMF nevertheless matters: Figure 4(c) and (d) show that corrections derived with leave residual distortions in the LF shapes of the target models with and . When correcting an observed cluster, the selection functions should therefore be inferred jointly with its IMF, rather than taken from a model with an IMF assumed in advance. Such joint inference requires observables beyond the member count. Matching the luminosity function and density profile of the selected members would constrain and , respectively; with a larger grid of -body models, the framework could then infer these initial conditions together with and the corresponding selection functions.
Conclusions
In this work, we developed an IMF-aware forward-modelling framework to quantify the membership selection functions—namely, completeness and field star contamination—of open clusters. We evolve cluster models with -body simulations (Wang et al. 2020b), convert their outputs into synthetic Gaia observations, and add mock field stars (Rybizki et al. 2020). We then recover cluster members with HDBSCAN (Campello et al. [8]; Hunt & Reffert 2023) to quantify membership completeness and contamination, examining how these quantities vary with the assumed stellar initial mass function (IMF) and relate to cluster evolution.
Applying our framework to 35 nearby young open clusters with three assumed high-mass () IMF slopes (, , ), we find the following main results:
Magnitude- and cluster-dependent selection: Membership completeness and contamination are highly magnitude-dependent and vary between individual clusters. Faint members are systematically harder to separate from field stars, confirming that accurate derivations of the present-day mass function require corrections that are specific to both the cluster and the precise membership identification procedure used.
IMF dependence of selection functions: The global completeness and contamination depend systematically on the assumed IMF. Models initialized with a flatter IMF () contain a larger fraction of massive stars, leading to stronger stellar evolution mass loss. Consequently, these clusters expand more ([36] (Chernoff & Weinberg 1990; Haghi et al. 2020; Wang & Jerabkova 2021)) and exhibit lower projected stellar surface densities at the present day. This reduced density contrast against the field makes members more difficult to recover, yielding systematically lower global completeness and higher global contamination compared to models with steeper IMFs.
Impact on the recovered luminosity function: Applying completeness and contamination corrections derived from a mismatched IMF can largely remove the normalization bias (recovering the total number of stars), but it leaves residual distortions in the shape of the present-day luminosity function.
Correlation with structural evolution: Cluster recovery performance is strongly tied to the structural state of the model. Completeness significantly decreases and contamination increases for models that have expanded more relative to their initial radii and for those with lower present-day projected stellar surface densities, consistent with the density-based nature of HDBSCAN.
Overall, our results suggest that membership selection functions cannot be universally assumed or derived from generic mock clusters. Because a cluster’s evolution and present-day structure are sensitive to its initial mass distribution, correcting an observed cluster’s mass function using selection functions derived from a mismatched IMF would inherently bias the result. To accurately infer the IMF of an open cluster, these membership selection effects should ultimately be inferred jointly with the IMF and other initial cluster conditions, by incorporating membership selection into -body inferences of these conditions ((Baumgardt et al. 2023; Weis et al. 2025; Hobart et al. 2026; Zheng et al. 2026)).
Acknowledgements
The authors appreciate the valuable comments and suggestions from the reviewer. This work is supported by the National Key Research and Development Program of China No. 2025YFF0511001. L.W. thanks the support from the National Natural Science Foundation of China through grant 12573041 and 12233013, the GuangDong Basic and Applied Basic Research Foundation (2026A1515012460), the High-level Youth Talent Project (Provincial Financial Allocation) through the grant 2023YHSPT0706, the Fundamental Research Funds for the Central Universities, Sun Yat-sen University (2025QNPY04). X.P. acknowledges the financial support of the National Natural Science Foundation of China through grants 12573036 and 12233013, and the China Manned Space Program with grant No. CMS-CSST-2025-A08. H.T. is supported by the National Key R&D Program of China No. 2025YFF0511002 and 2024YFA1611902 and the China Manned Space Project with grant No. CMS-CSST-2025-A11. This work has made use of data from the European Space Agency (ESA) mission Gaia (https://www.cosmos.esa.int/gaia), processed by the Gaia Data Processing and Analysis Consortium (DPAC, https://www.cosmos.esa.int/web/gaia/dpac/consortium). Funding for the DPAC has been provided by national institutions, in particular the institutions participating in the Gaia Multilateral Agreement.
Data availability
Data are available upon request.
Cluster identifications and adopted properties
Table A1 lists the identifications and properties of the 35 clusters in the observational sample described in § 2. All numerical values are taken from the catalogue of Hunt & Reffert (2024); the names used by Pang et al. (2022) are included to document the sample selection. We match these names against the AllNames column of the Hunt & Reffert (2024) catalogue. Where multiple candidate entries are found, we adopt the entry with the smallest angular separation, absolute distance difference, and proper motion difference from the corresponding object in Pang et al. (2022).
Ages from Hunt & Reffert (2024) are expressed in linear units by converting the catalogue columns logAge16, logAge50, and logAge84 using , where denotes the corresponding logarithmic age and . They are reported as t_{50}^{+(t_{84}-t_{50})}_{-(t_{50}-t_{16})}. The simulations use rounded down to the nearest Myr.
The member count is taken from column N of the Hunt & Reffert (2024) catalogue, before the magnitude and observational footprint cuts described in § 2. Cluster masses are taken directly from the MassTot column, whose values already include corrections for completeness and unresolved binaries. The quoted mass uncertainties are taken from e_MassTot. These are present-day total masses, rather than initial cluster masses or masses enclosed within the Jacobi radius.
GeDR3mock query for field stars
Table B1 lists the conditions used to retrieve the mock field stars of each cluster from gedr3mock::main through the TAP service of the GAVO Data Center (https://dc.g-vo.org/tap).
HR24: Hunt & Reffert (2024); P22: Pang et al. (2022). Masses and their uncertainties are taken directly from MassT oT and e_MassT oT, respectively; the masses already include corrections for completeness and unresolved binaries. is the HR24 catalogue member count (column N) before the magnitude and observational footprint cuts applied in this work. Superscript m denotes an HR24 moving-group classification.
HDBSCAN hyperparameter settings
Fixed hyperparameters
By default, we adopt , , and excess of mass (eom) cluster selection for all models. Holding these settings fixed keeps the recovery procedure consistent across mass-calibration trials and limits repeated tuning.
The neighbourhood parameter sets the scale for local density estimation. Larger values make clustering more conservative, generally assigning more sources to noise and restricting detections to denser regions7. We choose as a relatively permissive setting; this value has also been used for open cluster membership identification by Alfonso et al. (2024). The minimum cluster size allows groups with as few as ten sources to remain eligible for recovery, as also adopted by Qin et al. (2023).
The eom method selects structures by their integrated stability in the density hierarchy, while leaf selection produces finer subdivisions. Our aim is to recover the target cluster as a whole, motivating the use of eom. These choices define the recovery procedure for which the selection functions are measured. Each trial must satisfy the recovery criteria in § 3.5.1; if the mass calibration does not converge with these settings, we perform the supplementary hyperparameter search below.
| Quantity | Condition |
| Search limits | |
| Sky position | |
| Parallax | |
| Proper motion | |
| Magnitude | phot_g_mean_mag mag |
| Quality criteria | |
| Visibility periods | visibility_periods_used |
| Population | popid |
| flux | phot_g_mean_flux_over_error |
| flux | phot_bp_mean_flux_over_error |
| flux | phot_rp_mean_flux_over_error |
| Parallax | parallax_over_error |
Table B1. Conditions of the GeDR3mock query for each cluster. The search limits are centred on the footprint centre (§ 3.3); the subscript denotes the download limits defined in § 3.4, and . The magnitude limit is fainter than the adopted mag cut, which is applied after retrieval together with the footprint cuts. The stellar-cluster component of the catalogue is identified by popid = 11.
Free hyperparameter search
The supplementary search covers 28 combinations of , , and eom or leaf selection. For each fit, the target is the non-noise label containing the most true cluster stars; ties favour the smaller label.
We evaluate completeness and contamination at 500 equally spaced membership-strength thresholds over , sort by contamination, and integrate completeness against contamination using the trapezoidal rule. Empty selections are assigned zero contamination for ranking only. We retain the fit with the largest area; ties favour eom over leaf, then increasing and . This completeness–contamination area is not a standard receiver-operating-characteristic area. We then select using the trial-wide criterion in § 3.5.1, without refitting. The supplementary search therefore uses simulated truth for both target and hyperparameter selection, independently of the observed member count.
Selection functions of the full sample
Fig. D1 shows the selection functions of the 28 clusters with accepted models that are not included in Figure 3; together, the two figures cover all 34 clusters used in the selection function analysis. Accepted models are available for only two IMF slopes for NGC 7429, NGC 2451A, and NGC 1980, and only for for IC 2602, for which no comparison between slopes is therefore possible. For IC 2602, only three of the 16 realizations satisfy the recovery criteria in equation (5), so its percentile ranges are poorly sampled.
Figure D1. Selection functions of the 28 clusters with accepted models that are not shown in Figure 3. Panels, symbols, curves, shading, and legends are as in Figure 3.
Figure D1 (continued).
Figure D1 (continued, PDF p. 19).
Figure D1 (continued, PDF p. 20).
References
- [1]Alexander P. E. R., Gieles M., Lamers H. J. G. L. M., Baumgardt H., 2014, Monthly Notices of the Royal Astronomical Society, 442, 1265
- [8]Campello R. J. G. B., Moulavi D., Sander J., 2013, in , Lecture Notes in Computer Science, Springer Berlin Heidelberg, Berlin, Heidelberg, pp 160–172, doi:10.1007/978-3-642-37456-2_14
- [20]Gaia Collaboration et al., 2023, Astronomy & Astrophysics, 674, A1
- [36]Kouwenhoven M. B. N., Goodwin S. P., De Grijs R., Rose M., Kim S. S., 2014, Monthly Notices of the Royal Astronomical Society, 445, 2256
- [41]Küpper A. H. W., Maschberger T., Kroupa P., Baumgardt H., 2011, Monthly Notices of the Royal Astronomical Society, 417, 2300










