# Which transits survive detrending?

TESS Sector 1 injection-and-recovery pilot · 1 December 2026

## Scope

Six selected light curves, 288 imposed signals, four processing choices, and 1152 paired method-trials. This is an exploratory photometric pipeline benchmark on calibrated aperture flux.

## Measurements

| Processing | Recovered / eligible | Rate | Target-cluster bootstrap 95% interval | Median transfer |
| --- | --- | --- | --- | --- |
| Normalization only | 65 / 288 | 22.6% | 11.5%–31.6% | 1.000 |
| Savitzky–Golay · 0.5 d | 148 / 288 | 51.4% | 39.9%–62.5% | 0.640 |
| Savitzky–Golay · 2 d | 140 / 288 | 48.6% | 42.4%–55.9% | 0.924 |
| Running median · 2 d | 132 / 288 | 45.8% | 37.8%–55.6% | 0.981 |

Intervals resample all trials of each target as a cluster, with 2,000 deterministic bootstrap draws. With six targets they describe sensitivity within this selected sample and are unstable estimates of broader population uncertainty.

Coverage exclusions were 0 method-trials. Control coincidences were 0. Of 24 searches on uninjected observations, 22 exceeded the nominal SNR threshold. These may include real variability and instrumental signals; this is not a false-alarm estimate.

![Recovery by period and depth](recovery.png)

![Recovery and signal transfer](depth-and-transfer.png)

## Interpretation

All three tested detrending configurations recovered more injections in this sample than normalization alone (65/288).

The 0.5-day Savitzky–Golay configuration recovered 148/288, compared with 140/288 for its 2-day counterpart. Their paired rate difference was 2.78 percentage points; the target-cluster bootstrap interval was -6.60 to 15.28 points. This selected six-target sample does not establish a general ranking between these two configurations.

The corresponding median imposed-signal transfer coefficients were 0.640 and 0.924. The 2-day running median's coefficient was 0.981. The shorter polynomial filter attenuated the imposed signal more strongly even though it recovered more ephemerides in aggregate. Detection and depth preservation therefore need separate assessment.

No method ranking was used to change sample selection, injection grid, or processing choices. The diagnostic normalization correction is documented in the protocol amendment.

## Sample

| TIC | TESS magnitude | Raw SAP 90% range [ppm] | Retained native cadences |
| --- | --- | --- | --- |
| 358069236 | 8.16 | 2464 | 18275 |
| 39081480 | 9.51 | 3947 | 18274 |
| 278861481 | 9.87 | 6047 | 18279 |
| 382200208 | 11.17 | 7565 | 18274 |
| 259719914 | 10.53 | 13717 | 18276 |
| 33877402 | 10.75 | 27968 | 18278 |

The 24 candidates were sampled with seed 20261201 from the sorted official Sector 1 download index. Six were selected at evenly spaced variability ranks among eligible candidates. SAP variability combines astrophysical and instrumental effects. It is not a stellar-activity classification.

## Method and limitations

The full recorded choices and validation amendment are in [protocol.md](protocol.md), and primary-source notes are in [methods-sources.md](methods-sources.md). Injections are multiplicative trapezoids at native cadence before binning or detrending. Flux and uncertainties share the same trend normalization. Searches use a common blind BLS grid from 0.8 to 9 days. Known injected times are used only for scoring and the paired transfer diagnostic. Half/double-period candidates are not credited as exact recovery.

The sample is a convenience sample, with four epochs per period and one sector. The shapes have no limb darkening, dilution model, planet-radius conversion, pixel-level recovery, or additional photon-noise realization. No known-planet or eclipsing-binary catalog veto was applied. Controls reveal native candidates and flag matching injection ephemerides. This analysis does not estimate mission completeness, occurrence rates, or calibrated detection significance.

## Reproduce

Run from this directory with uv installed.

```sh
uv sync
uv run python fetch_data.py
uv run python study.py
uv run python summarize.py
```

The dependency versions are pinned in uv.lock. The FITS manifest records source URIs and SHA-256 checksums. run.json records protocol and script fingerprints. trials.csv contains every method-trial, including failures and exclusions; controls.csv contains uninjected searches. summary.json contains derived aggregates and deterministically selected illustrative examples.

## Sources

- [MAST TESS bulk downloads](https://archive.stsci.edu/tess/bulk_downloads.html)
- [Astropy Box Least Squares](https://docs.astropy.org/en/stable/timeseries/bls.html)
- [SPOC data products](https://heasarc.gsfc.nasa.gov/docs/tess/data-products.html)
- [Lightkurve transit search tutorial](https://lightkurve.github.io/lightkurve/tutorials/3-science-examples/exoplanets-identifying-transiting-planet-signals.html)
