<?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 EMMANUEL NWANGUMA on Medium]]></title>
        <description><![CDATA[Stories by EMMANUEL NWANGUMA on Medium]]></description>
        <link>https://medium.com/@Emar7?source=rss-02f3a17b5bee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f_ixTe01P6hE-UrVMBR3xw.jpeg</url>
            <title>Stories by EMMANUEL NWANGUMA on Medium</title>
            <link>https://medium.com/@Emar7?source=rss-02f3a17b5bee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:40:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Emar7/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[Ajo Has Run on Trust for Generations. Tokenization Could Let It Run on Proof Instead.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@Emar7/ajo-has-run-on-trust-for-generations-tokenization-could-let-it-run-on-proof-instead-0654a75e072e?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*4WyTfpoJWaBmeYhanJrxWQ.png" width="2735"></a></p><p class="medium-feed-snippet">Nigeria&#x2019;s oldest savings system moves real money for millions of people who formal banks still don&#x2019;t reach.</p><p class="medium-feed-link"><a href="https://medium.com/@Emar7/ajo-has-run-on-trust-for-generations-tokenization-could-let-it-run-on-proof-instead-0654a75e072e?source=rss-02f3a17b5bee------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@Emar7/ajo-has-run-on-trust-for-generations-tokenization-could-let-it-run-on-proof-instead-0654a75e072e?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/0654a75e072e</guid>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 11:24:42 GMT</pubDate>
            <atom:updated>2026-09-26T11:24:42.158Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[There’s A Name Now For The Bug I Kept Finding In My Own Benchmarks: Metric Overfitting]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://generativeai.pub/theres-a-name-now-for-the-bug-i-kept-finding-in-my-own-benchmarks-metric-overfitting-5e5466163caf?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*Bx3PmhSbzT_jRcN5oStWSw.png" width="3720"></a></p><p class="medium-feed-snippet">I caught my own AI judge agreeing with itself instead of the truth. A paper just showed the same failure, formally, at the level of the&#x2026;</p><p class="medium-feed-link"><a href="https://generativeai.pub/theres-a-name-now-for-the-bug-i-kept-finding-in-my-own-benchmarks-metric-overfitting-5e5466163caf?source=rss-02f3a17b5bee------2">Continue reading on Generative AI »</a></p></div>]]></description>
            <link>https://generativeai.pub/theres-a-name-now-for-the-bug-i-kept-finding-in-my-own-benchmarks-metric-overfitting-5e5466163caf?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e5466163caf</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 22:08:29 GMT</pubDate>
            <atom:updated>2026-09-21T01:23:15.562Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AI agents need their own identity system. I built one.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://ai.plainenglish.io/ai-agents-need-their-own-identity-system-i-built-one-212a0da32622?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*-m3sekmBU2YUeUAUKrqCxQ.png" width="3720"></a></p><p class="medium-feed-snippet">Every &#x201C;just give the agent your API key&#x201D; tutorial is a production incident waiting for a name.</p><p class="medium-feed-link"><a href="https://ai.plainenglish.io/ai-agents-need-their-own-identity-system-i-built-one-212a0da32622?source=rss-02f3a17b5bee------2">Continue reading on Artificial Intelligence in Plain English »</a></p></div>]]></description>
            <link>https://ai.plainenglish.io/ai-agents-need-their-own-identity-system-i-built-one-212a0da32622?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/212a0da32622</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 18:57:01 GMT</pubDate>
            <atom:updated>2026-09-18T19:17:33.285Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I built a database migration linter.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.datadriveninvestor.com/i-built-a-database-migration-linter-40d0d4a5ac6f?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*maAb3AmZk-16Zd3VHOVLeg.png" width="3720"></a></p><p class="medium-feed-snippet">locksmith catches dangerous SQL by reading it. lockstep found out that reading isn&#x2019;t enough &#x2014; because the thing that decides safety often&#x2026;</p><p class="medium-feed-link"><a href="https://medium.datadriveninvestor.com/i-built-a-database-migration-linter-40d0d4a5ac6f?source=rss-02f3a17b5bee------2">Continue reading on DataDrivenInvestor »</a></p></div>]]></description>
            <link>https://medium.datadriveninvestor.com/i-built-a-database-migration-linter-40d0d4a5ac6f?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/40d0d4a5ac6f</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 10:20:29 GMT</pubDate>
            <atom:updated>2026-09-15T00:38:06.514Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I Built a Harness Across Six Tools Before The Industry Had a Name For it]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://pub.towardsai.net/i-built-a-harness-across-six-tools-before-the-industry-had-a-name-for-it-7ef943aa2845?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*4qFlOXv9N6d5PAgsfYwguA.png" width="2724"></a></p><p class="medium-feed-snippet">The system around the model turned out to matter as much as the model. I didn&#x2019;t know that was a discipline when I started building it.</p><p class="medium-feed-link"><a href="https://pub.towardsai.net/i-built-a-harness-across-six-tools-before-the-industry-had-a-name-for-it-7ef943aa2845?source=rss-02f3a17b5bee------2">Continue reading on Towards AI »</a></p></div>]]></description>
            <link>https://pub.towardsai.net/i-built-a-harness-across-six-tools-before-the-industry-had-a-name-for-it-7ef943aa2845?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ef943aa2845</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 21:35:41 GMT</pubDate>
            <atom:updated>2026-09-11T07:21:27.718Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Every AI benchmark I’ve published had a bug that would have flipped the headline.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://generativeai.pub/every-ai-benchmark-ive-published-had-a-bug-that-would-have-flipped-the-headline-3fd69237343e?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*YRs-lmU3Fxl75fsbeUDSig.png" width="3720"></a></p><p class="medium-feed-snippet">Not a benchmark I read about. Every benchmark I built, measured, and put my name on.</p><p class="medium-feed-link"><a href="https://generativeai.pub/every-ai-benchmark-ive-published-had-a-bug-that-would-have-flipped-the-headline-3fd69237343e?source=rss-02f3a17b5bee------2">Continue reading on Generative AI »</a></p></div>]]></description>
            <link>https://generativeai.pub/every-ai-benchmark-ive-published-had-a-bug-that-would-have-flipped-the-headline-3fd69237343e?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fd69237343e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Thu, 03 Sep 2026 05:40:08 GMT</pubDate>
            <atom:updated>2026-09-07T03:09:20.639Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Every AI Tool Shows You Sources Now. I Checked Whether They Actually Say What the AI Claims.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://pub.towardsai.net/every-ai-tool-shows-you-sources-now-i-checked-whether-they-actually-say-what-the-ai-claims-83156533f030?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*6ulh8RtieRMzEVywCrF6ng.png" width="3720"></a></p><p class="medium-feed-snippet">The answer is: often not. And catching it turned out to cost nothing.</p><p class="medium-feed-link"><a href="https://pub.towardsai.net/every-ai-tool-shows-you-sources-now-i-checked-whether-they-actually-say-what-the-ai-claims-83156533f030?source=rss-02f3a17b5bee------2">Continue reading on Towards AI »</a></p></div>]]></description>
            <link>https://pub.towardsai.net/every-ai-tool-shows-you-sources-now-i-checked-whether-they-actually-say-what-the-ai-claims-83156533f030?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/83156533f030</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 07:58:48 GMT</pubDate>
            <atom:updated>2026-08-31T02:20:51.159Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The AI Feature That Works in the Demo and Breaks in Production]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://pub.towardsai.net/the-ai-feature-that-works-in-the-demo-and-breaks-in-production-54022f48b999?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*s9S8Q4xFmSXrt0IwevvmVA.png" width="3719"></a></p><p class="medium-feed-snippet">Vendors sell a fix for it. I ran 833 tests across 6 AI models to see whether the fix actually works. Mostly, it didn&#x2019;t.</p><p class="medium-feed-link"><a href="https://pub.towardsai.net/the-ai-feature-that-works-in-the-demo-and-breaks-in-production-54022f48b999?source=rss-02f3a17b5bee------2">Continue reading on Towards AI »</a></p></div>]]></description>
            <link>https://pub.towardsai.net/the-ai-feature-that-works-in-the-demo-and-breaks-in-production-54022f48b999?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/54022f48b999</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 23:46:48 GMT</pubDate>
            <atom:updated>2026-08-24T03:26:26.981Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I Built a Recommender That Learns Per Click. Then It Lost the Benchmark]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://pub.towardsai.net/i-built-a-recommender-that-learns-per-click-then-it-lost-the-benchmark-0d07e895597b?source=rss-02f3a17b5bee------2"><img src="https://cdn-images-1.medium.com/max/2600/1*IaTdcqK6DT-fz-Ev4_E8lA.png" width="2720"></a></p><p class="medium-feed-snippet">It updates inside the request instead of waiting for the nightly retrain. It recovered from drift that a batch model couldn&#x2019;t see. And it&#x2026;</p><p class="medium-feed-link"><a href="https://pub.towardsai.net/i-built-a-recommender-that-learns-per-click-then-it-lost-the-benchmark-0d07e895597b?source=rss-02f3a17b5bee------2">Continue reading on Towards AI »</a></p></div>]]></description>
            <link>https://pub.towardsai.net/i-built-a-recommender-that-learns-per-click-then-it-lost-the-benchmark-0d07e895597b?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d07e895597b</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 07:26:56 GMT</pubDate>
            <atom:updated>2026-08-12T02:51:43.135Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I Built a Causal Inference Engine. The Best Thing it Does is Refuse to Answer.]]></title>
            <link>https://pub.towardsai.net/i-built-a-causal-inference-engine-the-best-thing-it-does-is-refuse-to-answer-1a7fd5493e5e?source=rss-02f3a17b5bee------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a7fd5493e5e</guid>
            <category><![CDATA[causal-inference]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[EMMANUEL NWANGUMA]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 14:09:44 GMT</pubDate>
            <atom:updated>2026-07-28T06:34:41.057Z</atom:updated>
            <content:encoded><![CDATA[<h4>Correlation is easy and usually misleading. Causal inference is hard and usually overclaimed. On the benchmark that matters most, the useful output was no number at all.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2IiH4QEWMPOynxDzqFZhg.png" /></figure><p>A retailer sends a discount to its most valuable customers. Those customers spend more. The report goes out: the discount worked.</p><p>It almost certainly didn’t — or nowhere near as much as the number says. The discount went to people who were already the biggest spenders. The comparison credits it with behavior they would have shown regardless.</p><p>This is one of the most expensive mistakes in business analytics, and it is completely invisible. The correlation is real. The data is clean. The dashboard is correct. The conclusion is wrong.</p><p>An A/B test fixes it by assigning at random. But you frequently cannot run one: the policy already rolled out, the data already exists, randomizing would be unethical, illegal, or impossible.</p><p>So I built a causal inference engine for exactly those cases. And the feature I ended up caring about most is the one that produces nothing: knowing when to decline.</p><h3>The three roles a variable can play</h3><p>Before any estimate, you have to decide which variables to control for. This is where most competent analyses go wrong, because “control for everything you measured” is actively harmful advice.</p><p>A variable can play three roles, and they demand opposite treatment:</p><p><strong>A confounder</strong> causes both the treatment and the outcome. Income drives both who gets the discount and how much they spend. Adjust for it — leaving it out is exactly what produces the fake result.</p><p><strong>A mediator</strong> sits <em>on</em> the causal path. The discount increases engagement, which increases spend. Adjust for engagement and you subtract part of the very effect you are trying to measure. Your estimate shrinks toward zero and you conclude the discount did nothing.</p><p><strong>A collider</strong> is caused by both. Adjust for it and you <em>create</em> an association that does not exist in the data at all.</p><p>So the engine builds a causal graph, classifies every covariate, and drops the dangerous ones automatically — in plain English, before anything is estimated:</p><pre>income       — confounder · Adjust for it<br>engagement   — mediator   · Do not adjust: it sits on the causal path<br>satisfaction — collider   · Do not adjust: it creates a spurious association</pre><p>Writing that classifier surfaced a bug worth mentioning. My first version labelled an <em>instrument</em> as a confounder. The logic checked “does this variable reach the outcome?” — and every cause of the treatment reaches the outcome <em>through</em> the treatment. The fix was to ask whether a path exists that avoids the treatment. Small distinction, completely different adjustment set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTjLgGWlSSvWAPZKed-GmQ.png" /></figure><h3>How do you test a tool whose answers are unknowable?</h3><p>Here is the awkward thing about causal inference: on real data you cannot grade it. Nobody knows the true effect. That is the entire reason you are estimating it.</p><p>So the engine is graded on synthetic data where I build the true effect in myself. Every estimator can then be asked a question with a right answer:</p><pre>dataset        method                  true     naive  estimate  bias cut  expected  ok<br>------------------------------------------------------------------------------------------<br>confounded     psm                    2.000     5.992     2.029     99.3%  recover   yes<br>confounded     ipw                    2.000     5.992     1.715     92.9%  recover   yes<br>heterogeneous  x_learner              1.895     1.961     1.900     91.7%  recover   yes<br>did_panel      did                    3.000     7.214     2.989     99.7%  recover   yes<br>instrumental   ipw (cannot fix this)  1.500     4.122     4.125     -0.1%  fail      yes<br>instrumental   iv                     1.500     4.122     1.665     93.7%  recover   yes<br>no_effect      psm                    0.000     4.198     0.031     99.3%  recover   yes<br>no_effect      ipw                    0.000     4.198     0.102     97.6%  recover   yes<br>realistic      psm                    0.150     1.263     1.068     17.5%  improve   yes<br>realistic      ipw                    0.150     1.263     0.825     39.4%  improve   yes<br>------------------------------------------------------------------------------------------<br>10 of 10 behaved as expected</pre><p>Three rows carry the weight.</p><p><strong>The no-effect row.</strong> The treatment does nothing whatsoever. A raw comparison confidently reports <strong>4.20</strong>, because high-risk units were far likelier to receive it and had worse outcomes regardless. The engine reports <strong>0.03</strong> and marks it non-significant.</p><p>This is the most important test in the suite. A tool that always finds an effect is worse than no tool, because it launders a guess into a number. Proving it stays quiet when nothing is there is the only thing that earns trust when the answer is unknown.</p><p><strong>The instrumental row.</strong> Here the confounder is deliberately absent from the data. Weighting stays wrong at <strong>4.13</strong> no matter how carefully applied — no amount of adjustment fixes a variable you never measured. Only an instrument recovers <strong>1.67</strong>. That row is graded as a <em>successful demonstration of a limitation</em>, which required me to rethink the grading itself.</p><p>My first version marked it as a failure. But the row exists precisely to show that adjustment has limits — reporting a correct demonstration as a defect is just wrong. So rows now declare what they are supposed to do: <em>recover</em> the truth, merely <em>improve</em> on the naive answer, or <em>fail</em>.</p><p><strong>The realistic row.</strong> A small effect against heavy noise, one confounder observed only as a noisy proxy, and another missing entirely. The estimators cut the bias but land at 0.83–1.07 against a true 0.15, with confidence intervals that confidently exclude the truth.</p><p>That is the normal outcome on observational data. I included it deliberately, because publishing only the clean rows would misrepresent what these methods deliver.</p><h3>The heterogeneity nobody asks about</h3><p>An average effect can be positive while the treatment actively harms a large minority.</p><p>On data where the treatment helps one segment strongly, helps a second mildly, and hurts a third, the X-learner recovers all three:</p><pre>A: estimated +5.02 against a true +5.00<br>  B: estimated +1.49 against a true +1.50<br>  C: estimated -1.99 against a true -2.00  (harmed)<br>  correlation with the planted per-unit effect: 0.997</pre><p>The headline average is a positive <strong>+1.9</strong>. Roll the treatment out on that basis and you damage a quarter of your population, and the average will never tell you.</p><p>Targeting the top 30% by predicted effect captures 64% of the total available benefit. That is the number a marketing team can actually act on, and it does not exist anywhere in an A/B test result.</p><h3>Where it says no</h3><p>The strongest test is not synthetic at all.</p><p>The LaLonde job training study is the canonical benchmark in this field. A randomized trial establishes the true effect on earnings at <strong>+$1,794</strong>. LaLonde’s contribution was to throw away the experiment’s control group, substitute an unrelated population survey, and ask whether statistical adjustment could recover the experimental answer from that observational comparison.</p><p>Largely, it could not. Run through my engine, the naive comparison reports <strong>−$15,578</strong>. The program appears to have destroyed fifteen thousand dollars of earnings, when the experiment shows it added eighteen hundred. Wrong by more than seventeen thousand dollars, and in the wrong direction.</p><p>Matching claws most of it back to <strong>−$60</strong>. Weighting barely helps at <strong>−$12,759</strong>.</p><p>But the interesting part is what the engine does <em>before</em> producing any of those numbers. The assumption checks report:</p><ul><li>propensity model AUC of <strong>0.970</strong> — treatment is nearly perfectly predictable from covariates</li><li><strong>47.4%</strong> of units outside common support</li><li><strong>76%</strong> effectively certain to land in one arm</li></ul><p>Verdict: <strong>“This data cannot support a credible causal estimate.”</strong></p><p>The headline refuses to quote an effect size at all. Not a number with a footnote — no number.</p><p>That is the title of this piece, and it is the whole argument. Every one of those estimates is wrong. Matching lands closest and is still off by $1,854. A tool that hands you the closest wrong answer has done you no favor. Declining is the correct output, and it is the one almost nothing produces.</p><h3>Making refusal structural, not decorative</h3><p>It is easy to write caveats nobody reads. So the honesty is built into the structure instead:</p><p><strong>The interface withholds results.</strong> Click “Results” without opening the assumptions page and you get no effect size — only the reason one is being withheld. A number seen first tends to be remembered regardless of what follows it, so the conditions come before the number.</p><p><strong>The PDF leads with the verdict.</strong> Whether the analysis can be trusted appears above the headline, not appended to it.</p><p><strong>Every estimate carries its estimand.</strong> Matching estimates the effect <em>on the treated</em>. Weighting estimates it <em>across everyone</em>. An instrument estimates it <em>only on units it moved</em>. Reporting one as another is a misstatement, not a rounding error, so the type travels with the number everywhere.</p><p><strong>Estimates get attacked.</strong> A placebo test replaces the treatment with random noise. If a comparable effect survives that, the pipeline is manufacturing signal and the result cannot be causal — full stop, regardless of its confidence interval.</p><p>Building that test taught me something. My first version compared the placebo estimate against a fraction of the original — which fails every <em>correct</em> null result, since that fraction is near zero by definition. It reported a correctly detected absence of effect as a failure. The fix was to judge the estimate against the spread of placebo estimates themselves. And a result indistinguishable from random assignment now returns a verdict of no_effect rather than robust, because calling it robust invites someone to act on an effect that was never found.</p><h3>What it still cannot do</h3><p>No statistical method rescues a bad research design:</p><ul><li><strong>Unmeasured confounding.</strong> Everything except the instrumental path assumes you measured what drives both treatment and outcome. Miss one and you are biased, as the instrumental row shows.</li><li><strong>A wrong graph.</strong> The graph is an assumption. Causal structure is not identifiable from observational data without further assumptions, so the default is a documented convention, not a discovery.</li><li><strong>The exclusion restriction.</strong> That an instrument affects the outcome <em>only</em> through the treatment cannot be tested — a violation looks exactly like a real effect. The engine records it as an explicit untestable claim rather than quietly assuming it.</li><li><strong>Small effects in noisy data.</strong> See the realistic row. The methods improve on the naive answer and still miss.</li></ul><h3>The code</h3><p>Open source: <a href="https://github.com/Emart29/causal-inference-engine"><strong>github.com/Emart29/causal-inference-engine</strong></a></p><pre>python -m validation.ground_truth   # the table above, on your machine<br>streamlit run ui/app.py             # the interface</pre><p>Five methods, four robustness checks, sensitivity analysis, plain-English interpretation, and PDF export. Built on scikit-learn, statsmodels, NetworkX, and Streamlit.</p><p>This is the fifth project in an ML platform I’m building in public — after a feature store, a lineage tracker, a canary deployment system, and a real-time anomaly detector. It is the first that answers a business question rather than serving a model: not <em>is the model working</em>, but <em>did the thing we did actually work</em>.</p><p>And the most valuable thing it ever told me was that it didn’t know.</p><p><em>Next: a personalization engine with an online feedback loop — recommendations that update from what people actually do, not what they did last month.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a7fd5493e5e" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/i-built-a-causal-inference-engine-the-best-thing-it-does-is-refuse-to-answer-1a7fd5493e5e">I Built a Causal Inference Engine. The Best Thing it Does is Refuse to Answer.</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>