# ARC whitening example

This is the covariance example already published in
[issue #2](https://github.com/alignment-research-center/low-probability-estimation/issues/2).
It compares the released expression with the parenthesized centering/transformation step.

Download [whitening.py](whitening.py) and run it in an existing Python environment with PyTorch:

```sh
python3 whitening.py
```

No model weights, external data or network access are used by the script. It generates 200,000
two-dimensional samples in memory. The first printed covariance should be close to
`[[4.0, 1.5], [1.5, 1.0]]`; the second should be close to `[[1, 0], [0, 1]]`.
Exact floating-point output may depend on the PyTorch version and platform.

The snippet is extracted without edits from the posted issue. The November 1, 2026 Pacific
posting record says the example was run before sending. This packaging pass checks source
identity and syntax; it does not rerun the numerical example or reproduce the model results.
The earlier research environment was Python 3.11.6 and PyTorch 2.14.1; this is a historical
environment record, not a newly tested installation recipe.

The example intentionally omits the covariance regularizer present in the full implementation.
It diagnoses centering and transformation only. A passing covariance check is not a test of the
entire estimator, its independence assumption, its other implementation choices or the paper's
results.

Sources:

- [Pinned implementation, line 73](https://github.com/alignment-research-center/low-probability-estimation/blob/43617b8debdb9903907a4417781eff85d6a8169a/lpe/methods.py#L73).
- [Paper, Algorithm 3](https://arxiv.org/html/2410.13211v2).
- [Original public issue and full reported evidence](https://github.com/alignment-research-center/low-probability-estimation/issues/2).
- [Hashes and source mapping](manifest.json).

The author's earlier source and numerical checks were performed by AI agents under his direction.
Source selection and packaging: GPT-6 through Codex. This directory contains no model data or
private correspondence.
