Specify the survey before counting its population
Consider a controlled survey covering five square arcminutes between redshifts 9.5 and 10.5. Its sources have physical Gaussian half-light radius 0.3 kiloparsecs, one prescribed screen and continuum slope, and fixed pixel noise. Measurement receives each true position and profile.
Changing the size of one source explores an individual measurement. A population calculation additionally needs a size distribution and a response appropriate to it. The response below keeps the original calibration fixed.
A selected source also enters a measured brightness bin. Different noise draws can put identical sources into neighbouring bins, or outside either end of the displayed range. Retaining those destinations preserves the probability accounting.
Reading: Sandbox Physics · Sandbox Physics
One response column describes all destinations of a source class
Divide intrinsic absolute magnitude into six bins. Density is constant within bin , in sources per magnitude per cubic megaparsec. Destination denotes eight selected categories or one nonselected category. Selected categories retain bright and faint overflow.
Integrate the probability of each destination over intrinsic magnitude and redshift. A response entry contains the available volume, intrinsic-bin width and destination probability. Its units already include magnitude and volume.
| Intrinsic magnitude interval | Width / mag |
|---|---|
| −22.5 to −21.5 | 1 |
| −21.5 to −20.5 | 1 |
| −20.5 to −19.5 | 1 |
| −19.5 to −18.5 | 1 |
| −18.5 to −17 | 1.5 |
| −17 to −16 | 1 |
Reading: Sandbox Physics · Sandbox Physics
Send density through the response
Several intrinsic bins can feed one measured bin. Multiply each density by its corresponding response and add the contributions. Off-diagonal entries describe brightness migration. Dividing each observed bin by a single completeness number would omit that traffic.
The intrinsic widths are unequal and already integrated into the matrix. Do not multiply them again. Dividing a column by its intrinsic width gives an averaged effective volume for that source class; the matrix itself directly predicts measured counts.
The saved eight selected counts are zero, zero, zero, four, fourteen, eight, zero and zero: twenty-six in total. No observed nonselected count enters the fit. A nonselection destination in a calibration is different from knowing how many unseen objects actually occupied it.
Reading: Sandbox Physics · Sandbox Physics
Let empty bins contribute to the Poisson likelihood
Assume a Poisson source population whose objects independently enter categories with the calibrated probabilities. Independent thinning gives Poisson selected counts. A Poisson distribution describes nonnegative integer counts through one expected number.
The likelihood compares how probable the same observed counts are under different predicted means. Multiplying category probabilities and taking a logarithm gives a convenient sum. A larger value favours predictions that better explain the selected data.
Reading: SciPy · Sandbox Physics · Sandbox Physics
Solve the population scale before its slope
Twenty-six selected sources do not constrain every arbitrary intrinsic-bin density equally well. Choose a restricted Schechter-shaped family with characteristic magnitude fixed at minus 20.6 and vary slope and normalization. Evaluate density at each intrinsic-bin midpoint and hold it constant within that bin.
The midpoint convention defines the fitted family. It differs from integrating a continuous Schechter function exactly within each bin. At a chosen slope, the response predicts counts for unit normalization. One common scale multiplies all those means, so its best value can be derived analytically.
Reading: Sandbox Physics · Sandbox Physics
Read the whole profile around the optimum
Substitute each slope’s best normalization into the likelihood to obtain the profile likelihood. The saved 401 points favour a slope about minus 2.004 and normalization about 0.0004435 per cubic megaparsec. Those values belong to the declared family and calibration.
A drop of 0.5 in log likelihood gives slope endpoints about minus 2.304 and minus 1.725. This describes the profile’s width and has an asymptotic interpretation under suitable large-sample conditions. It supplies no automatic exact coverage guarantee for these small counts. An endpoint reaching the predeclared family boundary must be marked truncated.
The faint intrinsic columns in the response largely flow into nonselection. These data have little direct leverage on them. A restricted family transfers information from brighter sources through its shape assumption. Freer faint densities need deeper measurements, more sources or independent information.
Reading: Sandbox Physics · Sandbox Physics
Recompute the inference from a small download
The package needs selected counts, the complete response, bin edges and the original numerical functions. Extract it and run replay.py in the stated Python environment. It writes the full profile and checks, and refuses to overwrite an existing result so an earlier failure can be kept.
An actual cold run passed thirty-nine checks, including independent Poisson evaluation, a two-parameter optimum, scores, zero counts and invalid input. This replays inference through a fixed matrix. The original response has separate pixel/noise experiments; a real survey needs a calibration of its own observing and selection procedure.
Reading: Sandbox Physics · Sandbox Physics · Sandbox Physics