Define a Gaussian measurement model
Call the measured depth in bin and its reported standard uncertainty , both in parts per million. The prediction is the apparent photon-binned depth derived in L2. The vector contains temperature, water fraction, cloud pressure, ten-bar radius ratio and, in one model, unocculted cool fraction.
The input is an author-released fitted radius-ratio-squared spectrum. Its upstream light-curve analysis already treated limb darkening and transit geometry. We do not replace it with a uniform-disk fit to the original light curves, which are not inputs here.
For this conditional exercise, assume independent Gaussian errors with the supplied standard deviations. Independence is an additional assumption: the table does not provide a full wavelength covariance. No fitted noise multiplier is added to make residuals look acceptable.
Subtract prediction from observation to obtain a residual. Divide by the reported uncertainty to express that discrepancy in standard-error units. Square these standardized residuals and add them to obtain chi-square.
The Gaussian likelihood is a probability density for observing the data at fixed parameters. Its normalization contains the actual uncertainty of each bin. Retaining this factor distinguishes a specified likelihood from an arbitrary score, even though a parameter-independent factor cancels in a sampling acceptance ratio.
A low chi-square locates a good-fitting part of this model; it does not give the volume of other parameter values that also fit. A single best point therefore cannot stand in for the full posterior, or for a comparison of model evidence.
Reading: Feinstein et al. (2023) · Early Release Science of WASP-39 b with JWST NIRISS · WASP-39 b NIRISS author data · Zenodo 7709712 and fixed repository commit · Rackham, Apai and Giampapa (2019) · The Transit Light Source Effect II · Brogi and Line (2019) · Retrieval with high-resolution cross-correlation spectroscopy
Choose a finite prior and keep its meaning visible
The main exercise uses uniform temperature from 800 to 1600 kelvin; uniform base-ten logarithmic water fraction from minus seven to minus two; uniform base-ten logarithmic cloud pressure from minus four to one, with pressure in bar; and uniform ten-bar radius ratio from 0.130 to 0.145. All intervals are finite, so every prior is proper.
The cloud-only model fixes cool fraction at zero. The contamination model instead gives it a uniform prior from zero to 0.05 at a fixed cool-region temperature of 4500 kelvin. Separate sensitivity runs use 3500 kelvin or a narrower upper fraction of 0.01. These are chosen conditions, not measured spot coverage or a physical prior inferred from stellar monitoring.
Uniform in is not uniform in . A change of variable supplies the inverse-abundance factor below. Each decade of water fraction receives equal prior mass. Changing that choice may change a weakly constrained answer.
Bayes’ rule multiplies likelihood by prior and divides by their integral. That denominator makes the posterior integrate to one. The sampler need not know its numerical value to draw from the normalized distribution, but an evidence calculation would require it. No evidence or Bayes factor is computed in this exercise.
Reading: Heng and Kitzmann (2017) · Transmission spectra and the radius–pressure degeneracy · Brogi and Line (2019) · Retrieval with high-resolution cross-correlation spectroscopy · Rackham, Apai and Giampapa (2019) · The Transit Light Source Effect II
Why several physical changes can fit the same shape
In the thin isothermal limit, a stronger absorber shifts the altitude of a fixed optical-depth contour by a logarithm of its abundance. Raising the reference radius can compensate for reducing abundance. Moving an opaque cloud upward removes lower layers and can suppress the contrast that additional absorbers would otherwise create.
At the saved local scale height of about 828 kilometres, a tenfold increase in abundance would move an idealized contour by about 1910 kilometres. A decrease of similar size in reference radius could offset that shift in the thin approximation. Real bands depart from a common shift because cross sections vary with pressure and temperature, clouds cut off some paths, and different wavelengths saturate differently.
An unocculted cool fraction changes the stellar denominator and adds a wavelength-dependent depth distortion. It can trade off against reference radius and some broad atmospheric shape. The actual 5500-kelvin photosphere and the selected cool spectra constrain the form of this distortion; it is not a freely drawn polynomial.
A posterior ridge is therefore a family of compensating explanations within a chosen model. The ten-bar pressure is fixed here to define the radius convention. This does not mean the data independently measure that pressure, or uniquely identify water fraction.
Reading: Heng and Kitzmann (2017) · Transmission spectra and the radius–pressure degeneracy · Rackham, Apai and Giampapa (2019) · The Transit Light Source Effect II · Chubb et al. (2021) · ExoMolOP cross sections and k-tables
Change the sampling coordinate without changing the radius prior
The radius–abundance ridge makes a naive proposal inefficient: a small change in radius can shift every depth bin together. Let be the dimensionless reference radius ratio, and let collect the other parameters scaled to their finite unit intervals.
For each choice of those other parameters, a deterministic anchor estimates a radius near the mean observed depth. The calculation then samples an offset from that anchor. This shifts the coordinate origin; it keeps every radius in the original interval available and does not substitute a fitted radius for the sampled parameter.
At fixed other parameters and observed data, an interval corresponds to an interval in the radius ratio . This factor converts probability density between the coordinates; it is the relevant Jacobian. Dividing it by the original radius-prior width gives the density below.
The transformed support is 1500 offset units wide and its density is one over 1500. Their product is one. Moving the anchor, even when it uses the observed data, merely moves this complete interval; it creates neither a narrower radius prior nor a Gaussian prior on the offset.
Reading: Heng and Kitzmann (2017) · Transmission spectra and the radius–pressure degeneracy · Vehtari et al. (2021) · Rank-normalized split R-hat and effective sample size
Draw a distribution and check that the chains explored it
The reproducible calculation starts four dispersed Markov chains. A symmetric Gaussian proposal suggests a new point. Under the hard finite prior, a proposal outside the allowed region is rejected. Otherwise the likelihood-and-prior ratio gives its Metropolis acceptance probability. Repeated accepted and repeated rejected positions both belong in the chain.
During 6000 warmup iterations per chain, the proposal covariance and step size adapt. They then remain fixed for at least 16,000 retained iterations per chain. A radius coordinate follows a deterministic conditional anchor to avoid proposing enormous depth shifts; the original uniform radius prior and the exact constant triangular Jacobian are retained. There is no extra Gaussian prior on that coordinate.
Rank-normalized and folded split-chain diagnostics test agreement among chains, including differences in location and spread. Bulk and tail effective sample sizes estimate how much independent information remains after autocorrelation. All four real-data runs pass the frozen targets: split R-hat at most 1.01, and both effective sample sizes at least 400 for every varying parameter.
These checks concern the sampling calculation. They do not establish that the physical model is adequate, that a missing mode is impossible, or that an interval has calibrated real-planet coverage. The same sampler also recovers the known moments of a correlated Gaussian. A separately generated known-truth atmosphere and deliberately separated-chain tests check the physical route and the diagnostics.
Reading: Vehtari et al. (2021) · Rank-normalized split R-hat and effective sample size · Heng and Kitzmann (2017) · Transmission spectra and the radius–pressure degeneracy · Brogi and Line (2019) · Retrieval with high-resolution cross-correlation spectroscopy
A converged posterior can still expose a failed explanation
The actual 74-bin exercise makes this distinction concrete. The cloud-only chain reaches a retained minimum chi-square near 332; allowing 4500-kelvin unocculted regions improves it to about 257. Nevertheless, 28 and 23 measured bins respectively fall outside their central 95 percent replicated-measurement intervals. The median-curve standardized residual RMS remains about 2.13 and 1.88.
Both models push temperature toward the 800-kelvin lower boundary and water fraction toward its one-percent upper boundary. The 4500-kelvin contamination model has a median cool fraction near 0.0224, but its narrow positive interval does not by itself establish that spots were detected: positivity is built into its continuous prior, and the point-null model is a separate model.
Changing the fixed cool temperature to 3500 kelvin moves the median fraction to about 0.0373. Restricting the 4500-kelvin fraction to at most 0.01 pushes it against that new boundary and worsens the fit. These sensitivity results demonstrate dependence on the chosen conditions; all retain substantial predictive failures.
A latent prediction interval describes uncertainty in the model’s noiseless mean. A replicated-measurement interval additionally includes the stated measurement noise. Persistent structured residuals against the latter indicate that the constrained explanation is incomplete. They cannot be repaired by reporting only the best-fitting curve or the tightest parameter interval.
Reading: Feinstein et al. (2023) · Early Release Science of WASP-39 b with JWST NIRISS · Vehtari et al. (2021) · Rank-normalized split R-hat and effective sample size · Brogi and Line (2019) · Retrieval with high-resolution cross-correlation spectroscopy