-
-
Step 1: write the what-if question, one measure and two conditions, then lock it with a SHA-256 fingerprint.
-
Step 2: randomized, balanced trials with the built-in reaction test (warm-ups are excluded).
-
Step 3: an honest verdict with 10,000 label shuffles, a 95% range and a practice-effect check (sample data).
-
Works on a 360 px phone screen, fully offline in the browser.
-
Dark mode of the verdict screen; all colors keep contrast of at least 4.5:1.
Inspiration
"I tried it for a week and it worked" is the most common self-experiment story, and the least reliable. A change can look like it helped because of luck, practice, expectation, or regression to the mean. Calculators give you a p-value if you already have clean data, and trackers collect data for weeks, but I could not find a quick tool that protects the design of a personal experiment itself. LuckLab is my small experiment in doing that. (I did not find one in my searches; I am not claiming none exists. Related tools I found include StatKey, A/B calculators, Oatmel, StudyMe and Devpost's "Patterns" app.)
What it does
- Ask and lock: write your what-if, one outcome measure, two conditions, and which direction counts as better. "Lock it" freezes the plan with a timestamp and a SHA-256 fingerprint, so you cannot quietly change the question after seeing results.
- Run: trials are scheduled in randomized balanced blocks (A and B once per block, random order). The first two trials of each condition are warm-ups and are excluded. Use the built-in reaction task or enter your own measurements. Optional blind-code mode hides which condition is which until the end.
- Verdict: 10,000 label shuffles ("parallel worlds") show how often luck alone gives a gap as big as yours. You get the effect with a 95% bootstrap range, a practice-effect check, and one of three honest verdicts: LIKELY REAL, CAN'T TELL (with roughly how many more trials you would need), or LIKELY LUCK (no big effect seen). Too few trials always gives CAN'T TELL.
- Export: result card (PNG), raw trials (CSV), full run (JSON).
Everything runs offline in your browser. No account, no tracking, no data leaves your device.
How I built it
One self-contained HTML file with vanilla JavaScript and CSS, no libraries and no network calls. Timing uses performance.now(), statistics use a seeded random generator so a run is reproducible, and the lock fingerprint uses the Web Crypto API.
Tools and AI disclosure: I used Claude (Anthropic) throughout. Claude Opus wrote the design and statistics spec and later reviewed and tested the build, and Claude Sonnet wrote most of the code. I chose the idea, the scope, and the final decisions, and ran the project. Everything was built during the event window; nothing was reused from an earlier project.
Verification: an independent reviewer re-implemented the permutation test, bootstrap range and rank-correlation check in Python and compared them with the page's output across several datasets (they agreed within Monte-Carlo error). The page includes a built-in self-test (?selftest, 11 checks). I also simulated 300 no-effect runs at 8, 10, 14 and 20 trials per condition: a false "LIKELY REAL" appeared in about 4-5% of runs, as designed.
Challenges
- Keeping the verdict honest. In review I found that my first rule for "LIKELY LUCK" could never trigger at the trial counts the app allows, so the three-way verdict was really a two-way one. I rewrote the rule so it is reachable, and renamed it to say what it can actually claim: a big effect is ruled out, a small one cannot be.
- Browser timing is not lab-grade. Jitter of a frame or more is possible, but it applies equally to both conditions, so comparisons within a run remain meaningful. This is stated in the app and README.
- Accessibility: keyboard-only operation, live announcements, reduced-motion support, contrast of at least 4.5:1, works at 360 px wide.
Accomplishments I'm proud of
A tool that is willing to say "can't tell yet", and a review process that caught a flaw in my own verdict logic before submission.
What I learned
Most of the work was not the statistics but the design around them: locking the question, randomizing order, discarding warm-ups, and refusing to say more than the data supports. Treating "can't tell" as a first-class answer changed how the whole app felt.
Limitations
Single person, single session; expectation and effort can still affect results; browser timing jitter; not medical advice. A permutation test answers only "how surprising is this gap if the condition labels did not matter".
What's next
Multi-day mode, paired designs, and a teacher mode where a class pools results.
Built With
- canvas
- claude
- css3
- html5
- javascript
- web-crypto-api