


12 Jun 2025 · 21m · 9 chapters

The episode explains why standard A/B testing (difference in means) can be badly biased in non-stationary, interactive systems where actions cause temporal interference and the environment changes over time. It summarizes a research paper proposing a “truncated difference in Q’s” (truncated DQ) estimator: instead of comparing only immediate outcomes at time T, sum outcomes over a short future window T..T+K and compare treatment vs control.
naive DM can have bias as large as the true effect; untruncated DQ can have exploding errors (e.g., ~T-squared); truncated DQ reduces bias by limiting horizon, with variance growing with K (about K-cubed) but manageable for long experiments.
digital health (feature increases doctor workload affecting later patients), ride sharing (pricing change affects driver availability for later riders), emergency department simulator, NYC taxi simulator with Bernoulli switchbacks where naive interval analysis is sensitive to interval length (10/20/30 minutes) but truncated DQ improves robustness.
none mentioned; the episode is a host-led discussion with no specific guest identities.
Written by AI. May contain mistakes.
Explore how temporal interference affects outcomes in A-B testing.
“How do you accurately measure the real impact of a change when the world won't sit still and, well, everything's connected?”
Discover how non-stationarity complicates analysis in systems over time.
“It doesn't matter if they were in the treatment or control group originally.”
Examine the biases of standard methods and the challenges they face.
“They basically treat every observation like it's independent and drawn from some stable, unchanging distribution.”
Learn about a new method to improve the accuracy of treatment effect estimation.
“And it's not always obvious what the right interval links should be beforehand.”
Understand the theoretical basis for the truncated estimator and its practical benefits.
“It sounds, well, pretty straightforward to calculate.”
Review the empirical tests conducted to validate the new method's effectiveness.
“Okay, k cubed variance sounds potentially bad too.”
Learn how the truncated DQ estimator performs in dynamic, non-stationary environments.
“The best K varied a bit depending on the system's mixing speed, but it was always small relative to the total experiment length, which was like T5000.”
Understand the complexities of A-B testing in dynamic systems and the implications of bias.
“A-B testing and dynamic systems think online platforms, marketplaces, ride sharing, digital health, it's genuinely hard.”
Explore future research questions and considerations for improving experimental designs.
“Yeah, chances are there's some bias lurking there due to interference or non-stationarity.”

Get the gist, explore an idea or ask about something said.
On Best AI papers explained, what are the key points of this episode?
Automatic transcript. May contain errors.
0:00A-B testing, it's pretty much the bedrock for making decisions online, wouldn't you say? change something split your users measure the difference seems simple clean yeah on a surface except what if your system isn't simple or clean what if it's like this constantly changing environment where everything affects everything else you know think ride sharing or maybe a busy online marketplace even digital health platforms suddenly those standard ad tests they get complicated they really really do the core assumption you know independence that one user's experience doesn't impact another's or what happens now doesn't affect later, that just completely breaks down.
0:39Right. In these dynamic places, the effects of your test, they sort of ripple through the system over time. And if you ignore that, well, your results can be wildly misleading. Okay. Okay. Let's dig into this then. This deep dive is all about tackling that exact challenge. How do you accurately measure the real impact of a change when the world won't sit still and, well, everything's connected? Yeah. Yeah, and we're looking at some really interesting research here, a paper that dives deep into this problem and actually proposes a maybe surprisingly elegant solution. Oh. Yeah, it suggests that sometimes a simple tweak, like a modification to a standard approach, can actually outperform much more complex methods, especially when you properly account for these real-world dynamics, this interference.
1:24All right, so our mission for this deep dive, understand why standard A-B testing kind of falls apart in these dynamic, non-stationary systems. see the limits of maybe even fancier tools, and then explore this new truncated way of thinking that might give us more accurate, more robust results. Oh, like a plan. So let's picture it. You're running an A-B test, maybe on a recommendation engine or that ride-sharing app, or a digital health service like the sources talk about. You've randomized users or maybe sessions to treatment or control. Why isn't just, you know, comparing the average outcome for group A versus group B across the whole experiment, Why isn't that good enough here?
2:02Well, the main culprit, as the paper really lays out, is this thing called temporal interference. Temporal interference. Okay. Your intervention, your change at one point in time doesn't just affect the immediate outcome for that specific user or group. It actually changes the state of the whole system. Oh. And that altered state then influences outcomes for the next users, the next interactions down the line. It doesn't matter if they were in the treatment or control group originally. The effect spills over into the future. Can you give me a concrete example from the sources maybe? Absolutely.
2:38Yeah. Think about a digital health platform. Say you introduce a new feature for group A patients, making it easier to message their doctor. Okay. That might increase the doctor's workload. Right. More messages. Makes sense. So that increased workload could then slow down response times or maybe even affect the quality of care for the next patient who contacts that same doctor, even if that next patient was in the control group. Ah, okay. So their experience gets messed with because of something that happened to someone else earlier. Exactly. That's the interference. Or ride sharing. A pricing change, the treatment, makes a driver pick up passenger A.
3:13Now, that driver isn't available for passenger B nearby, so passenger B's wait time changes purely because of the action taken on passenger A. Got it. So temporal interference is like these ripples moving forward in time, messing with later observations. The paper also mentions non-stationarity. What does that add to the pain? Right, non-stationarity. That means the fundamental rules, the way the system itself behaves and evolves are actually changing over time. How so? Well, the underlying dynamics aren't fixed. Think about ride sharing again. Rider demand, driver supply. It's totally different during rush hour versus, say, 2 p.m.
3:51on a Tuesday, right? Yeah, definitely. Or patient arrivals in an ER. Huge difference between a weekday afternoon and a Saturday night. These aren't just random blips. They're systematic shifts in how the environment operates. The system isn't steady. It's constantly changing how it transitions from one state to the next. Okay, so interference. Past actions affect the future. Non-stationarity. The rules of the game themselves are shifting. And standard methods, like just looking at the difference in means, the DM estimator, they just kind of ignore all this, pretend it's not happening. Precisely.
4:23They basically treat every observation like it's independent and drawn from some stable, unchanging distribution. Which is clearly not true here. And the consequence. Big bias. The sources point out that the bias you get from using a naive estimator like DM in these situations can be huge, like as large as the true treatment effect you're trying to measure. Wow. So you could think you found a great improvement, but half of it or even all of it is just bias because you ignored the system dynamics. Exactly. That's a massive problem if you're trying to make good decisions based on your experiments.
4:56Okay, so what about, you know, more sophisticated approaches? The paper mentions things inspired by reinforcement learning, like off-police evaluation, OPE, or difference in Q methods. Do they help? Well, many of those methods were originally designed for environments that are stationary, where the rules don't change. Ah, okay. So when you try to apply them to a non-stationary world, the sources show they often struggle too. They can end up with high bias themselves or sometimes just massive variance, making the results really unstable and unreliable. Plus, they frequently need data setups that are hard to get in a typical A-B test, like maybe running the whole experiment multiple times independently or needing perfect visibility into the system's complex state at every single moment, which often isn't practical.
5:43And what about different experimental designs, like switchback experiments? where you flip-flop between treatment and control over time. Switchbacks can be useful, and people definitely use them. They try to handle some non-stationarity by making sure both groups experience different time periods. Right. But the paper notes, they can be tricky too. You often have to pick parameters, like how long each treatment or control period lasts the interval length before you run the experiment. And if you choose an interval length that doesn't quite match the system's natural rhythm or how long interference effects last, Even switchbacks, if you just analyze them naively with DM, can still give you biased results.
6:20And it's not always obvious what the right interval links should be beforehand. Okay, so this is sounding like a pretty big headache. Dynamic systems, non-stationary behavior, standard methods are biased, complex methods have their own issues or assumptions, even clever designs like switchbacks aren't foolproof. What's the new idea this paper brings to the table? This is where it gets kind of cool. The authors found that a surprisingly simple modification to that basic difference in means estimator actually yields really promising results in these tough environments. A simple modification. To DM, tell me more.
6:54Okay, so instead of just looking at the immediate outcome, right to time T when someone gets assigned treatment or control. Yeah. The proposed estimator sums up the outcomes for a fixed window of time after that assignment. Let's see over the next 10 time steps. A window K. So if I get assigned to group A at time T, you don't just look at my outcome then, but you look at my outcome plus the outcome at T plus 1, T plus 2, all the way to T plus K, and you sum all that up. Exactly. You calculate that K-step accumulated reward or cost or whatever you're measuring, and you compare that sum for the treatment group assignment starting at time T versus the control group assignment starting around the same time T.
7:34Okay. They call this the truncated difference in Q's estimator, or truncated DQ, with that truncation size K. And just to check, if K is zero, you're just looking at the immediate outcome at time T. Which is exactly the naive DM estimator. Correct. And if K is the total length of the experiment, T. Then you're looking at the entire future trajectory from that point, which relates back to that untruncated DQ estimator we mentioned earlier, the one that the paper shows struggles badly with non-stationarity. So the magic is in choosing a K that's not zero, but also not the whole experiment length, a truncated window.
8:08That's the core idea, picking a K that's relatively small compared to T. What are the practical advantages here? It sounds, well, pretty straightforward to calculate. That simplicity is a huge plus. Yeah. The paper really highlights this. First, you just need the observed outcomes over time. You don't need some complex model of the system's hidden state at every moment, which many of the OPE methods require. Okay, that's good. Second, you can compute it from the data you get from a single experiment run. No need for multiple independent simulations or anything fancy like that. Just your standard A-B test data, potentially.
8:43Right. And maybe most importantly, you can actually try out different values of K after the experiment is done. You collect the data once, and then you can calculate the truncated DQ estimate for K1, K2, K5, K10, whatever seems reasonable, and see how the estimate changes. Gives you flexibility. Okay, the practical side makes sense. Simple uses standard data, flexible K. But why does summing outcomes over this future window K actually help fix the bias problem, especially in a non-stationary system with all that interference? That's the key question, right? Absolutely. That's the theoretical contribution.
9:18It gets a bit technical in the paper, naturally, involving concepts like policy gradients from reinforcement learning. Okay, let's try to keep it intuitive. Right. So think about the error. The methods that look at the entire future horizon, like KIT, are trying to estimate the total long-term difference. But in a non-stationary system, the rules are changing constantly. The paper shows that the error in trying to project that impact over a really long-changing timeline, T, grows incredibly fast. Like, proportionally to T squared. T squared error. Yeah, you said that sounds bad. It's terrible for long experiments.
9:54Now, the truncated estimator, using a shorter window K, avoids that massive T-squared blowup. It's basically estimating the effect of the treatment over just that shorter K window, starting from each point it was applied. Okay, so it limits the horizon to manage that error. But does it introduce its own errors by not looking at the full future? It does, yes. The bias in the truncated estimator comes mainly from two sources, intuitively speaking. First, there's what you could call the short window error or maybe truncation error. Because you're only looking gaze steps ahead, you might miss some really, really long-term effects that happen after time t plus k.
10:30This part of the error depends on how big k is. If k is bigger, this error might increase. Okay. And the second source? The second source is related to how quickly the system forgets the past. This brings in that mixing time idea the paper discusses, linked to a parameter, gamma. Mixing time. Yeah. Think of it like dropping die in a river. If the river mixes really fast, small gamma, the die spreads out and fades quickly downstream. The river forgets where the die entered relatively fast. If it mixes slowly, large gamma, that streak of die persists for a long time. So a system with fast mixing, a small gamma, means the influence of something that happened way back at time, but I'll be the system's state way out at time plus k, diminishes quickly.
11:13Precisely. The system forgets its past states or actions relatively fast. Now, the second bias component in the truncated estimator is related to this forgetting process. This mixing bias actually shrinks exponentially as you make your window K larger. Ah, okay, wait. Let me see if I get this trade off. Go for it. If I make K really small, my truncation error, the error from cutting off the future is small, but my mixing bias, the error related to the system not fully forgetting the distant past yet, might be larger. But if I make K larger, my truncation error might grow because I'm looking further into a potentially noisy future.
11:52But my mixing bias shrinks because I'm giving the system more time within my window to approach its forgotten state. You've nailed the intuition. The optimal K finds the sweet spot balancing these two sources of bias, plus you have to consider variance. Right, variance, what about that? The paper shows the variance of the truncated estimator does increase as you increase k, roughly like k cubed. So a longer window means a potentially noisier estimate. Okay, k cubed variance sounds potentially bad too. But here's the crucial part. For any fixed k, the variance actually decreases as your total experiment length t gets longer.
12:26So if you run a reasonably long experiment, you can keep the variance under control even if it grows with k. And importantly, it avoids the potentially exploding variance seen in some untruncated methods in non-stationary settings. Okay, so the magic is, in these dynamic non-stationary systems that have this forgetting property, mixing, truncating to a sensible K, drastically cuts down the bias by avoiding that awful T-squared error. And you can manage the variance with a long enough experiment. It captures more than simple DM, co-zero, but avoids the pitfalls of looking too far ahead. That's the essence of it.
13:02It works best when the system mixes reasonably fast. Gamma isn't too close to one. And the actual immediate impact of the treatment isn't overwhelmingly dominant compared to the downstream effects. Theory sounds plausible, even elegant in a way. But does it actually work? You know, the proof is in the pudding. Did they test this? They absolutely did. It was in pretty compelling simulations. First, they used a synthetic simple two-state system just to really isolate the effects clearly. Yeah. The results were frankly stark. Plain DM, K0, had huge bias. The paper reported something like 50 % mean absolute error.
13:37The untruncated DQ, KOT, trying to capture the whole future, it was a complete disaster, often got the sign of the effect wrong, and the errors were astronomical. The table showing over 11 ,000 % MAE in some cases is really something. Wow, over 11 ,000 % error. That's not just wrong, it's meaningless. It really drives home how badly things can go off the rails if you ignore these dynamics. It really does. But the truncated DQ, with a small K, like K1, K3, or K5 in their tests, dramatically slashed that bias, and the variance was kept low and manageable. The best K varied a bit depending on the system's mixing speed, but it was always small relative to the total experiment length, which was like T5000.
14:16Okay, so it worked in the clean synthetic case. What about messier real-world stuff? They had simulators based on real data too, right? The hospital emergency department. Yes, exactly. They used a simulator calibrated with real patient arrival data from an emergency department. And arrivals are super non-stationary, right? Time of day, day of week effects are huge. They simulated an intervention, like a change in clinician efficiency. And again, standard DM and estimators that assume stationarity were significantly biased. But the truncated DQ, especially with K around four or five time steps in their setup, got very close to the known true effect they simulated.
14:52How did it compare to other methods there? It performed really well, comparably, or even slightly better than. A more complex estimator specifically designed for analyzing switchback experiments, which they also tested. But the key advantage was you didn't need to perfectly figure out the optimal switchback interval before running the experiment to use truncated DQ effectively. That's a practical win. What about the ride-sharing one, NYC taxi data? That sounds incredibly complex. Oh, definitely. You've got non-stationary rider demand, drivers moving all over the city, availability changing constantly, a very dynamic state.
15:25They simulated a change in pricing policy. And how did they test it there? In that case, they actually used a common industry approach, a Bernoulli switchback design. This means they randomly switched J-graphic zones between treatment, new price, and control old price over specific time intervals. Then they applied the truncated DQ estimator after the fact as a way to analyze the data coming from this switchback experiment. So using truncated DQ to analyze switchback data, what did they find? This was really interesting. They found that if you just used the naive DM estimator on the data from each switchback interval, your results were highly sensitive to how long you made those intervals.
16:04Pick a 10-minute interval, you get one answer. Pick 30 minutes, you might get a very different, potentially biased answer. Ah, so even with switchbacks, just doing a simple comparison within intervals can be misleading if the interval length isn't quite right for the system's dynamics. Exactly. The timing really matters for naive analysis. But the truncated DQ estimator, when applied as a post-processing step, it consistently reduced the bias across the different switchback interval lengths they tested, 10, 20, 30 minutes. So it made the analysis more robust. Much more robust. It basically helps correct for the fact that the switchback interval might not have been perfectly chosen.
16:42It wasn't always the absolute single best estimator in every scenario, maybe sometimes slightly higher variance, but it significantly improved accuracy and reliability compared to just using plain DM on the switchback data. And again, methods assuming stationarity or requiring full state knowledge struggled. That's a powerful point, using truncated DQ not just for simple AB, but potentially to improve the analysis of more complex designs like switchbacks if you suspect your design wasn't perfectly tuned. Exactly. It acts as a robust analysis tool. The big takeaway from all these signalations is clear.
17:16Truncated DQ isn't just some theoretical idea. It's a practical technique that demonstrably reduces bias in complex, dynamic, non-stationary settings where standard methods fail. Okay, let's try to pull this all together then. Recap time. A-B testing and dynamic systems think online platforms, marketplaces, ride sharing, digital health, it's genuinely hard. Because actions have these ripple effects over time, that's temporal interference. And the system itself, its underlying behavior is constantly changing. That's non-stationarity. Standard methods like simple difference in means get heavily biased because they ignore all that complexity.
17:52Yeah, often leading to wrong conclusions. And even more sophisticated methods, maybe from RL or using specific designs like switchbacks, they often have their own strong assumptions that might not hold, or they can be complex to implement or tune correctly. Exactly. They're not always a silver bullet. And the proposed solution from this deep dive into the research is this truncated DQ estimator. Right. A surprisingly simple adjustment to the basic DM idea. instead of just the immediate outcome, you sum the outcomes over a short future window of size K, starting from when the treatment or control was applied.
18:27And the reason this works, theoretically, is because it manages the bias differently. In systems that have this mixing or forgetting property, it avoids the huge error that comes from trying to project effects over the entire long-changing experiment horizon T. Instead, the bias scales more manageably with the window size K. And critically, the variance is controllable for a fixed K if you run the experiment long enough. It finds a balance. And empirically, the simulations, calibrated on real-world systems like hospital EDs and NYC taxis, show that it really does work. It substantially reduces bias compared to naive methods and those assuming stationarity.
19:07And it proves more robust, even improving the analysis of common practical designs like switchbacks, when they might not be perfectly tuned. So the bottom line for you, the listener, if you're running experiments on any platform where users interact sequentially, where the system state changes based on past actions or where strong daily or weekly patterns exist, you really need to question if your standard A-B test results are telling the whole story. Yeah, chances are there's some bias lurking there due to interference or non-stationarity. And knowing that a technique like this truncated DQ estimator exists something relatively simple to implement using standard data that can provide a much more accurate estimate of the true effect that's incredibly valuable for making better decisions.
19:48Getting that gate, the global average treatment effect, right, is crucial. Absolutely. And as the paper points out, there's still more to explore. Yeah. Like how do you best choose K automatically from the data? That's a big practical question. Right. Or how do you best incorporate pretreatment information, covariates, into this framework? And more detailed comparisons to other adaptive experimental designs. Lots of interesting future work. For sure. But here's maybe a final thought for you to chew on from this deep dive. If you are working with one of these dynamic systems, have you ever really stopped to think about its inherent rhythm?
20:22Like, how quickly does the effect of some intervention or change tend to wash out or get forgotten by your specific system? Could understanding that natural mixing time, that gamma property for your platform, be the key? Not just for choosing the right K if you use this estimator, but maybe even for designing better experiments in the first place. Something to think about.
This academic paper introduces a novel truncated Difference-in-Q’s (DQ) estimator designed for A/B testing in dynamic, nonstationary environments. Unlike traditional methods that struggle with temporal interference and changing system dynamics, this estimator effectively measures the global average treatment effect (GATE) by considering truncated outcome trajectories. The authors theoretically demonstrate that their approach offers reduced bias and variance compared to existing estimators, particularly in scenarios where conditions are not constant over time. Empirical validations using simulated emergency department and ride-sharing systems further confirm the estimator's practical utility and robustness in real-world, fluctuating settings. The research highlights the estimator's ease of implementation and its independence from full state observability, making it a valuable tool for practitioners.