ppiplan
Plan the human sample of a prediction-powered (mixed-subjects) study from a small pilot.
Studies that combine human answers with language model predictions size their human sample from the pilot correlation between predictions and answers. Choosing the model, prompt or persona format with the highest pilot correlation and then planning with that same correlation makes the plan too optimistic: in our data the delivered correlation is about 0.12 lower and realized power falls from 0.80 to about 0.73. ppiplan plans with the average of standardized predictions from configurations fixed before the pilot, so the pilot is never used to choose, and it reports the power a study would have if the true correlation were lower.
Install
pip install git+https://github.com/Nyxius-Labs/ppiplan
Use
from ppiplan import plan
p = plan(y_pilot, predictions_pilot, effect=0.2)
p.n_human
p.share_saved
p.power_if_rho_is
predictions_pilot is an array with one column per configuration fixed in advance. For a two-arm experiment, pass arm to plan for the treatment effect, and pass lower_bound=True for a conservative plan. python examples/simulate.py reproduces the comparison between the average and choosing on the pilot.
Reference
Crainic, J., and Yee, B. Choosing a Language Model on the Pilot Overstates the Savings of Mixed-Subjects Designs. Extended abstract, 2026.
License
MIT
Metadata
Release files for ppiplan 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ppiplan-0.1.0.tar.gz | 3.6 kB | With provenance | Details for ppiplan-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ppiplan-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ppiplan-0.1.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / ppiplan-0.1.0.tar.gz
| Download URL | ppiplan-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47177f61bf1a57c4a6703af7e0b421d903690a353907ffe21b851be74fcd64b1
|
|
BLAKE2b-256 checksum How to use checksums |
0d38158ffc0e2687a53afa34a52acec222978d801361508b279ed1302b636a00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / ppiplan-0.1.0-py3-none-any.whl
| Download URL | ppiplan-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02354ff8236ad3558354ed0d370eb0a69a5f3f873c17db03df2c5b9da38797ac
|
|
BLAKE2b-256 checksum How to use checksums |
65293493ee7eb401e4b9d13b4a434078f8f46503c9ffa5ccb0a62e4d93fbb836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for ppiplan 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ppiplan-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.