<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pradyumn Pottapatri on Medium]]></title>
        <description><![CDATA[Stories by Pradyumn Pottapatri on Medium]]></description>
        <link>https://medium.com/@pottapatri?source=rss-7298bda09dc6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-8hhWCHD3g4vRg7DM2Wk_g.jpeg</url>
            <title>Stories by Pradyumn Pottapatri on Medium</title>
            <link>https://medium.com/@pottapatri?source=rss-7298bda09dc6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:58:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pottapatri/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Ran a Causal Inference Study on Myself: Here’s What 52,000 Flashcard Reviews Revealed]]></title>
            <link>https://medium.com/learning-data/i-ran-a-causal-inference-study-on-myself-heres-what-52-000-flashcard-reviews-revealed-0d55d9668154?source=rss-7298bda09dc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d55d9668154</guid>
            <category><![CDATA[causal-inference]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[experimentation]]></category>
            <dc:creator><![CDATA[Pradyumn Pottapatri]]></dc:creator>
            <pubDate>Tue, 05 May 2026 01:36:45 GMT</pubDate>
            <atom:updated>2026-05-22T21:43:03.672Z</atom:updated>
            <content:encoded><![CDATA[<p><em>If you’ve ever wanted to run a real experiment but don’t have access to production traffic, this is how you do it with your own data.</em></p><p>If you can’t read this story, click on this link.</p><p><a href="https://pottapatri.medium.com/i-ran-a-causal-inference-study-on-myself-heres-what-52-000-flashcard-reviews-revealed-0d55d9668154?source=friends_link&amp;sk=87bd92b98c755ccf63759aacdb64ef77">https://pottapatri.medium.com/i-ran-a-causal-inference-study-on-myself-heres-what-52-000-flashcard-reviews-revealed-0d55d9668154?source=friends_link&amp;sk=87bd92b98c755ccf63759aacdb64ef77</a></p><h3>The Problem: My Retention Was Too Good</h3><p>My retention rate was 99.2%.</p><p>Sounds great, until I realized it made causal inference nearly impossible.</p><p>I’ve been learning Japanese with Anki for 16 months. Every time I press Good, Hard, or Again on a card, Anki writes a row to a SQLite database: the card ID, timestamp, ease rating, response time in milliseconds, and the card’s difficulty score. After 52,000 reviews, that’s a lot of signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwjxydfAc3iUyoSDUIKfCg.png" /><figcaption>The review volume over time</figcaption></figure><p>So I decided to treat my own learning data as a causal inference problem. But with a 0.8% failure rate, there was almost no variation to explain. The interesting findings came from asking different questions and from catching my own methodological mistakes along the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0rN3rZngf_umNp7MXN7nA.png" /></figure><h3>The Data</h3><ul><li><strong>52,948 reviews</strong> across 449 days (January 2025 — April 2026)</li><li><strong>9,037 unique cards</strong> from a single deck: <em>Human Japanese Intermediate Shared</em></li><li><strong>Source:</strong> SQLite database at collection.anki2, readable directly in Python</li></ul><h3>Did Time of Day Matter?</h3><p><strong>Question:</strong> Does reviewing in the morning improve retention compared to the evening?</p><p>I defined morning as 5am–11am, evening as 5pm–11pm. The raw comparison was confounded, morning sessions had different card maturity profiles and ease factor distributions. So I used propensity score matching: logistic regression on observable covariates, nearest-neighbour matching with a 0.2 SD caliper.</p><p><strong>Results:</strong> 1,375 matched morning-evening pairs. Average treatment effect = −0.07 percentage points. p = 0.827.</p><p>This is a null result and it’s a real finding. With 99.2% retention, time of day has no detectable effect on whether I remember a card. This holds even under substantial unmeasured confounding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZIRRYHe9wX2NQ4TCIvZ9Gg.png" /><figcaption>Propensity score overlap</figcaption></figure><p><strong>Takeaway:</strong> I can schedule reviews whenever it’s convenient. Morning vs. evening doesn’t matter.</p><h3>Which Cards Actually Fail?</h3><p>This is where the data got interesting.</p><p>I modelled time-to-first-lapse as a survival problem. Each card enters observation at its first review. The event is its first lapse (pressing “Again”). Cards that never lapse are right-censored.</p><p>I stratified by ease factor quartile. The bottom quartile contains cards Anki has internally degraded below its default ease of 2.5, meaning the algorithm considers them structurally harder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9DM8iUfY7BW_vdQNA3Vfg.png" /><figcaption>Kaplan-Meier curves by quartile</figcaption></figure><p>Quartile Lapse Rate:</p><ul><li>Q1: 7.47%</li><li>Q2: 0.61%</li><li>Q3: 0.45%</li><li>Q4: 0.43%</li></ul><p><strong>Q1 cards lapse at nearly 20× the rate of every other group.</strong> And here’s the kicker: Q1 is 30% of my deck but accounts for 86% of all failures.</p><p>Cox proportional hazards: HR = 2.06, p &lt; 0.001. For every 1-unit increase in ease factor, the hazard of lapsing drops by half.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ey6wzgH-NNYlh6rl0xlJSw.png" /><figcaption>Cox hazard ratios</figcaption></figure><h3>The Methodological Trap I Fell Into</h3><p>After survival analysis, I had a clearer question: do those hard cards also take longer to answer in the morning?</p><p><strong>Version 1 (flawed):</strong> I defined “hard card” as cards.factor ≤ 2.65 :</p><ul><li>The bottom quartile of the <em>current</em> ease factor snapshot. The result looked significant: ATE = +1,111ms, p &lt; 0.0001.</li></ul><p>Then I checked the covariate distributions. 82% of the “hard card” reviews in the matched sample came from early 2025, when I was a beginner and <em>everything</em> was hard. The PSM was picking up my learning curve, not card difficulty.</p><p><strong>Version 2 (corrected):</strong> I switched to revlog.factor &lt; 2.5:</p><ul><li>Ease factor <em>at the time of the review</em>, not the current card state. I also added calendar month as a covariate to control for skill progression.</li></ul><p><strong>Results:</strong> 309 matched pairs. ATE = +1,084ms (95% CI: [+209, +1,924]). Mann-Whitney p = 0.0045.</p><p>Hard cards reviewed in the morning take about 1 second longer than the same cards reviewed in the evening. The result is significant, but one residual concern: temporal balance after matching was slightly above the 0.1 SMD threshold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SB9UEB6hM4AdoG18N-pdVA.png" /><figcaption>ATE Comparision</figcaption></figure><p><strong>The lesson:</strong> Using current state instead of historical state introduced a confound that looked like a clean result. This is the kind of mistake that ships to production if you’re not careful.</p><h3>The Live Experiment (Running Now)</h3><p>The survival analysis gave me an actionable finding: Q1 cards cause almost all my failures. The natural next question: can I do something about them?</p><p>I designed a 60-day randomized controlled experiment on myself.</p><h3>Setup</h3><ul><li>3,490 cards randomly assigned 50/50 (seed=42)</li><li><strong>Treatment (1,745 cards):</strong> marked with ★ and I read the sentence aloud before rating</li><li><strong>Control (1,745 cards):</strong> reviewed silently as normal</li></ul><p>The ★ marker was applied by writing directly to the Anki SQLite database via Python script.</p><h3>Outcome Definition</h3><p>Anki’s standard lapse definition (ease = 1, “Again”) gives a 0.8% lapse rate: barely 1–2 events per 200 reviews. I redefined lapse as ease ≤ 2 (Again or Hard), which gives a 17% lapse rate and enough events to actually measure something.</p><h3>Power Analysis</h3><p>At 17% baseline lapse rate and ~3,360 reviews per group over 60 days:</p><ul><li>15% relative reduction in lapses → 82% power</li><li>20% reduction → 97% power</li></ul><p>In plain terms: if reading aloud reduces lapses by 15%, I have an 82% chance of detecting it.</p><h3>Live Monitoring</h3><p>I built a Streamlit dashboard that reads from the SQLite database and tracks:</p><ul><li>Daily lapse rate by group</li><li>Response time distributions</li><li><strong>Bayesian A/B test:</strong> Beta-Binomial model showing P(treatment &gt; control), more interpretable than p-values with small samples</li><li><strong>Sequential testing:</strong> Bonferroni-corrected checkpoints at days 14, 28, 42, 60, allows early stopping without inflating false positives</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16wkY5uq9so6KkD6na6BaA.png" /><figcaption>Streamlit Dashboard</figcaption></figure><h3>Honest Limitations</h3><ul><li>Response time will mechanically be longer for treatment cards (speaking takes time). That’s not a finding, it’s physics.</li><li>If the effect is smaller than 15% relative reduction, the study is underpowered. A null result won’t mean read-aloud doesn’t work, it’ll mean the effect is small.</li></ul><h3>What I Learned About Running Experiments on Yourself</h3><p><strong>1. Your retention rate can be too high to study.</strong> 99.2% retention sounds great. For causal inference it’s a problem, there’s no variation in the outcome. The signal was in response time and survival analysis, not in whether I remembered things.</p><p><strong>2. Current state vs. historical state is a real methodological trap.</strong> Using cards.factor (current ease) instead of revlog.factor (ease at review time) introduced a learning-curve confound that looked like a clean result. Always ask: is this feature measured at the right point in time?</p><p><strong>3. Null results are findings.</strong> Morning vs. evening had no effect. That’s worth knowing, I can schedule reviews whenever it’s convenient.</p><p><strong>4. The infrastructure matters.</strong> A live dashboard, a randomization script with a fixed seed, pre-registered checkpoints, all of this exists so the analysis at day 60 isn’t susceptible to cherry-picking. Design the experiment like someone is watching.</p><p><em>The contents of external submissions are not necessarily reflective of the opinions or work of </em><a href="http://mavenanalytics.io/"><em>Maven Analytics</em></a><em> or any of its team members.</em></p><p><em>We believe in fostering lifelong learning and our intent is to provide a platform for the data community to share their work and seek feedback from the Maven Analytics data fam.</em></p><p><a href="https://medium.com/learning-data/how-to-get-your-work-published-by-learning-data-with-maven-analytics-7df21e466a3e?source=friends_link&amp;sk=020dfac485597d602e218968d9ffb395"><em>Submit your own writing here</em></a><em> if you’d like to become a contributor.</em></p><p><em>Happy learning!</em></p><p><em>-Team Maven</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d55d9668154" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learning-data/i-ran-a-causal-inference-study-on-myself-heres-what-52-000-flashcard-reviews-revealed-0d55d9668154">I Ran a Causal Inference Study on Myself: Here’s What 52,000 Flashcard Reviews Revealed</a> was originally published in <a href="https://medium.com/learning-data">Learning Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>