The ultimate guide to A/B testing | Ronny Kohavi (Airbnb, Microsoft, Amazon)

27 Jul 2023 · 1 h 23 min

Ask about this episode

Ask anything about it. ChatGPT or Claude reads this page and answers with the times it was said.

Connect VO and ask about every podcast you hear, including the moments you saved. Add to ChatGPT · Add to Claude

In short

```markdown

Lenny's Podcast

Product | Growth | Career

Episode

The Ultimate Guide to A/B Testing

Guest: Ronny Kohavi Host: Lenny Rachitsky

Overview In this episode, Ronny Kohavi, a leading expert on A/B testing with experience at Airbnb, Microsoft, and Amazon, delves into the nuances of A/B testing, experimentation culture, and data-driven decision-making. He shares insights on fostering experimentation, avoiding pitfalls, and understanding the role of trust in running successful experiments.

Key Topics Covered

  • Fostering a Culture of Experimentation
  • Importance of creating an experimentation-friendly environment.
  • Institutional learning and documentation as crucial components.
  • Common Pitfalls in Experimentation
  • Typical failure rates and what they mean for your organization.
  • Avoiding sample ratio mismatches and other validation errors.
  • Surprising Experiment Results
  • Examples of unexpected outcomes and their implications.
  • How small changes can lead to significant impacts, exemplified by Bing's revenue increase.
  • Trust in Experimentation
  • Building organizational trust in data and experimentation results.
  • The danger of misinterpreting p-values and the importance of reliable statistical methods.
  • When Not to A/B Test
  • Recognizing scenarios where A/B testing isn't feasible or beneficial.
  • Necessary conditions for effective A/B testing.
  • Best Practices for Faster Experiments
  • Implementing variance reduction techniques.
  • Using methods like CUPED for increased sensitivity.
  • The Future of Experimentation
  • Emphasizing the need for a robust experimentation platform.
  • Balancing incremental improvements with high-risk, high-reward ideas.

Notable Moments

  • (04:29) Bing's 12% Revenue Increase: A simple change in ad display led to a significant revenue increase for Bing.
  • (09:00) Opening New Tabs: Testing showed benefits of opening new tabs for search results, a practice adopted across multiple companies.
  • (27:59) Overall Evaluation Criterion (OEC): Discusses how to define what you're optimizing for, balancing short-term revenue with long-term user experience.
  • (51:45) Importance of Trust: Trustworthy results are the backbone of any effective experimentation culture.

Recommendations & Resources

  • Books by Ronny Kohavi: *Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing*.
  • Useful Websites:
  • [GoodUI](https://goodui.org) for patterns and practices.
  • [Rules of Thumb for Website Experimenters](https://exp-platform.com/rules-of-thumb/).

Learnings and Advice

  • On Experimentation: It's crucial to test everything but maintain a balance between incremental and big-bet experiments.
  • On Mistakes and Failures: Recognize that the majority of ideas will fail; use failures as learning opportunities.
  • On Data and Decision Making: Always validate with data, but be prepared for unexpected outcomes.

Links and References

  • Enroll in Ronny’s Maven Class: [Accelerating Innovation with A/B Testing](https://bit.ly/ABClassLenny) (Use Promo Code “LENNYAB” for a discount)
  • Full Transcript and Detailed Show Notes: [Lenny's Newsletter](https://www.lennysnewsletter.com/p/the-ultimate-guide-to-ab-testing)
  • Ronny Kohavi's LinkedIn: [Ronny's LinkedIn](https://www.linkedin.com/in/ronnyk/)

Contact

  • Ronny Kohavi: [Twitter](https://twitter.com/ronnyk), [LinkedIn](https://www.linkedin.com/in/ronnyk/), [Website](http://ai.stanford.edu/~ronnyk/)
  • Lenny Rachitsky: [Twitter](https://twitter.com/lennysan), [LinkedIn](https://www.linkedin.com/in/lennyrachitsky/), [Newsletter](https://www.lennysnewsletter.com)

Closing Thoughts This episode is a masterclass in A/B testing, offering valuable insights into the methodologies and mindsets that shape successful data-driven organizations. Whether you're starting with experiments or looking to refine existing practices, Ronny's experiences provide a wealth of knowledge to draw from.

---

*Note: This summary provides a comprehensive overview of the podcast episode, highlighting key discussions and insights shared by Ronny Kohavi and Lenny Rachitsky.* ```

Written by AI. May contain mistakes. Listen to the episode to check what was said.

Hear the part that matters, and keep it.Open this episode in VO. Double tap your headphones to save a moment as you listen.
Get VO free

Transcript

Automatic transcript. May contain errors.

0:00I'm very clear that I'm a big fan of test everything, which is any code change that you make, any feature that you introduce has to be in some experiment because again, I've observed this sort of surprising result that even small bug fixes, even small changes can sometimes have surprising unexpected impact. And so I don't think it's possible to experiment too much. You have to allocate sometimes to these high risk, high reward ideas. We're going to try something that's most likely to fail, but if it does win, it's going to be a home run. And you have to be ready to understand and agree that most will fail.

0:43And it's amazing how many times I've seen people come up with new designs or a radical new idea. And they believe in it and that's okay. I'm just cautioning them all the time to say, if you go for something big, try it out, but be ready to fail 80 % of the time.

1:05Welcome to Lenny's podcast where I interview world -class product leaders in growth experts to learn from their hard -won experiences building and growing today's most successful products. Today, my guest is Ronnie Kohavi. Ronnie is seen by many as the world expert on AB testing and experimentation. Most recently, USVP and technical fellow of relevance at Airbnb, where he led their search experience team. Prior to that, he was corporate vice president at Microsoft, where he led Microsoft's experimentation platform team, before that he was director of data mining and personalization at Amazon. He's currently a full -time advisor and instructor.

1:40He's also the author of the GoToBook on Experimentation, called Trustworthy Online Control Experiments. And in our show notes, you'll find a code to get a discount on taking his live cohort -based course on Maven. In our conversation we get super tactical about A .B. testing. Ronnie shares his advice for when you should start considering running experiments at your company, how to change your company's culture to be more experiment driven, what are signs your experiments are potentially invalid, why trust is the most important element of a successful experiment culture and platform, how to get started if you want to start running experiments at your company, he also explains what actually is a p -value and something called Twymons Law plus some hot takes about Airbnb and experiments in general.

2:25This episode is for anyone who's interested in either creating an experiment -driven culture at their company or just fine -tuning one that already exists. Enjoy this episode with Ronnie Kohavi after a short word from our sponsors. This episode is brought to you by Mixed Panel. Get deep insights into what your users are doing at every stage of the funnel at a fair price that scales as you grow. Mixed panel gives you quick answers about your users from awareness to acquisition through retention. And by capturing website activity, add data, and multi -touch attribution right in Mixed panel, you can improve every aspect of the full user funnel.

3:03Powered by first -party behavioral data, instead of third -party cookies, Mixed panel is built to be more powerful and easier to use than Google Analytics. Explore plans for teams of every size and see what Mixpanel can do for you at Mixpanel .com slash friends slash Lenny. And while you're at it, they're also hiring. So check it out at Mixpanel .com slash friends slash Lenny. This episode is brought to you by Round. Round is the private network built by tech leaders for tech leaders. Round combines the best of coaching, learning, and authentic relationships to help you identify where you want to go and accelerate your path to get there, which is why their weight list tops thousands of tech execs.

3:46Brown is on a mission to shape the future of technology and its impact on society. Leading in tech is uniquely challenging and doing it well is easiest when surrounded by leaders who understand your day -to -day experiences. When we're meeting and building relationships with the right people, we're more likely to learn, find new opportunities, be dynamic in our thinking, and achieve our goals. Building and managing your network doesn't have to feel like networking. Join round to surround yourself with leaders from tech's most innovative companies. Build relationships, be inspired, take action, visit round .tech, slash apply, and use promo code Lenny to skip the wait list.

4:24That's round .tech slash apply.

4:29Ronnie, welcome to the podcast. Thank you for having me. So you're known by many as maybe the leading expert on AB testing and experimentation, which I think is something every product company eventually ends up trying to do, often badly. And so I'm excited to dig quite deep into the world of experimentation and AB testing to help people run better experiments. So thank you again for being here. Great goal. Thank you. Let me start with kind of a fun question. What is maybe the most unexpected AB test you've run or maybe the most surprising result from an A, B test that you run? Yeah, so I think the opening example that I use in my book and in my class is the most surprising public example we can talk about.

5:17And this is, this was kind of an interesting experiment. Somebody proposed to change the way that ads were displayed on Bing, the search engine. And he basically said, let's take the second line and move it, promote it to the first line, so that the title line becomes larger. And when you think about that, and there's, you know, if you're gonna look in my book or in the class, there's an actual diagram of what happened, the screenshots. But if you think about it, just realistically, it looks like an idea. Like, why would this be such a reasonable, interesting thing to do? And indeed, when we went back to the backlog, it was on the backlog for months and language there, and many things were rated higher.

6:05But the point about this is it's trivial to implement. So if you think about return on investment, we could get the data by having some engineers spend a couple of hours implementing it. And that's exactly what happened. Somebody Ed Bing, who kept seeing this in the backlog and said, my God, we're spending too much time discussing it, I could just implement it. He did. He spent a couple of days implementing it and And as is the common thing that being he launched the experiment, and a funny thing happened. We had an alarm, big escalation, something is wrong with the revenue metric. Now, this alarm fired several times in the past when there were real mistakes where somebody would log revenue twice or there's some data problem.

6:53But in this case, there was no bug. That simple idea increased revenue by about 12%. And this is something that just doesn't happen. We can talk later about payments law, but that was the first reaction, which is, this is too good to be true. Let's find the bug. And we looked for several times, and we replicated the experiment several times, and there was nothing wrong with it. This thing was worth $100 million at the time when Bing was a lot smaller. And the key thing is it didn't hurt the user metrics. So it's very easy to increase revenue by doing the attributes that, you know, displaying more ads is a trivial way to raise revenue.

7:33But it hurts the user experience and we've done the experiments to show that. In this case, this was just a home run that improved revenue didn't significantly hurt the the guardrail metrics. And so I was, we were looking off of, you know, what a trivial change that was the biggest revenue impact of being in all its history. And that was basically shifting in two lines, switching two lines in the search results, right? And this was just moving the second line to the first line. Now, you then go and run a lot of experiments to understand what happened here. Is it the fact that the title line has a bigger your fawn, sometimes different color.

8:14So we ran a whole bunch of experiments, and this is what usually happens. We have a breakthrough. You start to understand more about what can we do? And there was suddenly a shift towards, okay, what are other things we could do that would allow us to improve revenue? We came up with a lot of follow on ideas that helped a lot. But to me, this was an example of a tiny change that was the best revenue generating idea in Bing's history. And we didn't rate it properly, right? Nobody gave this the priority that in hindsight, it deserves, and that's something that happens often. I mean, we are often humbled by how bad we are at predicting the outcome of experiments.

9:00This reminds me of a classic experiment at Airbnb while I was there, and we'll talk about Airbnb in a bit. But the search team just ran a small experiment of what if we were to open a new tab every time someone clicked on a search result instead of just going straight to that listing. And that was one of the biggest wins in search. And by the way, I don't know if you know the history of this, but I tell about this in class, we did this experiment way back around 2008, I think. And so this predates Airbnb. me. And I remember it was heavily debated like, why would you open something in a new tab?

9:36The users didn't ask for it. There was a lot of pushbacks from the designers and we ran that experiment. And again, it was one of these highly surprising results that made it that we learned so much from it. So we first did this. It was done in the UK for opening hotmail. And then we moved it to MSN so it would open search in new tab. And And all the set of experiments were highly, highly beneficial. We published this and I have to tell you when I came to Airbnb, I talked to our joint friend Ricardo about this and it was sort of darn, it was very beneficial and then it was semi -forgotten, which is one of the things you learn about institutional memories.

10:17When you have winners, make sure to address them and remember them. So it was an Airbnb done for a long time before I joined that listings opened in Utah. But other things that were designed in the future were not done and I reintroduced this to the team and we saw big improvements. Shout out to Ricardo or Rachel for any help make this conversation happen. There's this like holy grail of experiments that I think people are always looking for of like one hour of work and it creates this massive result. I imagine this is very rare and don't expect this to happen. I guess in your experience, how often do you find kind of one of these gold nuggets just lying around?

10:57Yeah, so again, this is a topic that's near and dear to my heart. Everybody wants these amazing results. And I show them in chapter one in my book, multiple of these, small effort, huge gain. But as you said, they're very rare. I think most of the time, the winnings are made sort of this inch by inch. And there's a graph that I show in my book, the real graph of how Bing ads has managed to improve the revenue per thousand searches over time. And every month you can see a small improvement and a small improvement. Sometimes a degradation because of legal reasons or other things, you know, there were some concern that we were not marking the ads properly.

11:43So you have to suddenly do something that you know is going to hurt revenue. But yes, I think most results are inch by inch. You improve small amounts, lots of them. I think the best example that I can say is a couple of them that I can speak about. One is at being the relevance team. Hundreds of people all working to improve being relevance. They have a metric. We'll talk about oh, we see the the overall evaussian criterion, but they have a metric that their goal is to improve it by 2 % every year. It's a small amount and that 2 % you can see, here's a point one, here's a point one five, here's a point two, and then they add up to around 2 % every year, which is amazing.

12:28Another example that I am allowed to speak about from Airbnb is the fact that we ran some 250 experiments in my tenure there in search relevance. And again, small improvements added up. So this became overall a 6 % improvement to revenue. You know, so when you think about 6%, it's a big number, but it became out, not of one idea, but many, many smaller ideas that each gave you a small gain. And in fact, I, again, there's another number I'm allowed to say of these experiments, 92 % failed to improve the metric that we were trying to move. So only 8 % of our ideas actually were successful at moving the key metrics.

13:16There's so many threads I want to follow here, but let me follow this one right here. You just mentioned of 92 % of experiments failed. Is that typical in your experience running, seeing experiments run a lot of companies, like what should people expect when they're running experiments? What percentage should they expect to fail? Well, first of all, I published three different numbers for my career. So overall, the Microsoft, about 66 % to thirds of ideas fail. And don't take the 66 as accurate. It's about 2 thirds. And Bengu, which is a much more optimized domain after we've been optimizing it for a while, the failure rate was around 85%.

13:55So it's harder to improve something that you've been optimizing for a while. And then at Airbnb, this 92 % number is the highest failure rate that I've observed. Now, I've quoted other sources that it's not that I work that groups that were particularly bad, booking Google ads, other companies published numbers that are around 80 % and 90 % failure rate of ideas. This is where it's important of experiments. It is important to realize that when you have a platform, It's easy to get this number. You look at how many experiments were run and how many of them launched Not every experiment maps to an idea So it's possible that when you have an idea your first implementation you start an experiment boom, it's Egregiously bad because you have a bug in fact 10 % of experiments tend to be aborted on the first date Those are usually not that the idea is bad but that there is an implementation issue or something we haven't thought about that forces on a board.

15:01You may iterate and pivot again and ultimately if you do two or three or four pivots or bug fixes, you may get to a successful launch, but those numbers of 80 to 92 % failureate order of experiments. Very humbling. I know that every group that starts to run experiments, is they always start off by thinking that somehow they're different and their success rate's gonna be much, much higher and they're all humbled. You mentioned that you have this pattern of clicking a link and opening a new tab as a thing that just worked at a lot of different places. Yeah. Are there other versions of this? Do you collect kind of a list of like, here's things that often work when we want to move?

15:44Yeah, there's some you, some you could share, I don't know if you have a list in your head. Like, you get two resources. is one of them is a paper that we wrote called Rules of Thumb. And what we tried to, at that time, at Microsoft was to just look at thousands of experiments that run and extract some patterns. And so that's one paper that we can then put in the nodes. Perfect. But there's another more accurate, I would say, resource that's useful that I recommend to people. And it's a site called goodgy .org. And good UI .org is exactly the site that tries to do what you're saying at scale. So guy, the name is Jacob Linovsky.

16:28He asks people to send them results of experiments and he derives, he puts them into patterns. There's probably like 140 patterns, I think, at this point. And then for each pattern, he says, well, who hasn't helped? How many times end by how much? So you have an idea of, you know, this work three out of five times and it was a huge win. In fact, you can find that open in you window in there. I feel like you feed that into chat GPT and you have basically a product manager creating a roadmap tool. In general, by the way, this is all about a lot of that is institutional memory, right? Which is can you document things well enough so that the organization and remembers the successes and failures and learns from them.

17:17I think one of the mistakes that some company makes is they launch a lot of experiments and never go back and summarize the learning. So I've actually put a lot of effort in this idea of institutional learning of doing the quarterly meeting of the most surprising experiments. By the way, surprising is another question that people often are not clear about. What is a surprising experiment? But to me, a surprising experiment is one where the estimated result beforehand and the actual result differed by a lot. So that absolute value of the difference is large. Now you can expect something to be great, and it's flat.

17:57Well, you learn something. But if you expect something to be small and it turns out to be great, like the antitalk promotion, then you've learned a lot. or conversely, if you expect that something will be small and it's very negative, you can learn a lot by understanding why this was so negative. And that's interesting. So we focused not just on the winners, but also surprising losers, things that people thought would be a no -brainer to run. And then for some reason, it was very negative. And sometimes, it's that negative that gives you into, I'll actually, you know, I'm just coming up with one example of that that I should mention.

18:36and we were running this experiment that Microsoft to improve the Windows Indexer. And the team was able to show on offline past that it does much better in indexing and they showed some relevance is higher and all these good things. And then they ran, it is an experiment. And you know what happened? Surprising result. Indexing, the relevance was actually high but it killed a battery life. So here's something that comes from left field that you didn't expect it was consuming a lot more CPU on laptops, it was killing the laptops. And therefore, okay, we learned something. Let's document it, let's remember this so that, you know, we now take this other factor into account as we design the next iteration.

19:23What advice do you have for people to actually remember these surprises? You said that a lot of it is institutional. What do you recommend people do so that they can actually remember this when people leave, say, three years later? document that, you know, right, you know, we had a large deck internally of these successors and failures and we encourage people to look at the other thing that's very beneficial is just to have your whole history of experiments and do some ability to search by keywords, right? So I'm, I have an idea, type a few keywords and see if from the thousands of experiments that ran.

19:59And by the way, these are very reasonable numbers. at Microsoft just to let you know, when I left in 2019, we were on a rate of about 20 to 25 ,000 experiments every year. So every working day, we were starting something like a hundred new treatments. Big numbers. So when you're running in a group like Bing, which is running thousands and thousands of experiments, you want to be able to ask, has anybody did an experiment on this or this or this? And so that searching capability is in the platform, but more than that, I think just doing the quarterly meeting of the most successful, most interesting, sorry, not just successful.

20:39Most interesting experiments is very key. And that also helps the flywheel of experimentation. This is a good segue to something I wanted to touch on, which is there's often a, I guess, a weariness of running too many experiments and being too data driven and the sense that that experimentation just leads you to these microoptimizations and you don't really innovate and do big things. What's your perspective on that? And then just can you be too experiment driven in your experience? I'm very clear that I'm a big fan of test everything, which is any code change that you make, any feature that you introduce has to be in some experiment, because again, I've observed this sort of surprising result that even small bug fixes, is even small changes can sometimes have surprising unexpected impact.

21:30And so I don't think it's possible to experiment too much. I think it is possible to focus on incremental changes because some people say, well, if we only tested 17 things around this and you have to think about it's not just, it's like a stock. You need a portfolio. you need some experiments that are incremental that move you in the direction that you know you're going to be successful over time if you just try enough. But some experiments have, you have to allocate sometimes to these high risk, high reward ideas. We're going to try something that's most likely to fail. But if it does win, it's going to be a home run.

22:15And so you have to allocate some efforts to that. And you have to be ready to understand and agree that most will fail. Most of these high enough, it's amazing how many times I've seen people come up with new designs or a radical new idea. And they believe in it. And that's okay. I'm just cautioning them all the time to say, if you go for something big, try it out, but be ready to fail 80 % of the time. Right? I want true example that again, I'm able to talk about because we put it in my book is we were at Bing trying to change the landscape of search and one of the ideas, the big ideas was we're going to integrate with social.

23:01So we hooked into the Twitter, fire those feed and we of the Facebook and we spent 100 person years on this idea. And it failed. You don't see it anymore. It existed for about a year and a half and all the experiments were just negative to flat. And you know, it was an attempt, it was fair to try it. I think it took us a little long to fail, to decide that this is a failure. But at least we had the data. We had hundreds of experiments that we tried. None of them were but breakthrough. And I remember sort of mailing Chi Lu with some statistics, showing that it's time to abort. It's time to fail on this.

23:54And he decided to continue more. That's a million dollar question. You continue. And then maybe the breakthrough will come next month, or do you abort? And a few months later, we, we aborted. That reminds me of Ed Netflix. They tried a social component that also failed at Airbnb early on. There was a big social attempt to make like, here's your friends of state at these airbbs completely not had no impact. So maybe that's one of these learnings that we should talk about. Yeah, this is hard. This is hard. And but that's again, that's the value of experiments, which are this Oracle that gives you the data, you may be excited about things, you may believe it's a good idea, but ultimately the Arbiter, the Oracle, is the control experiment.

24:39It tells you whether users are actually benefiting from it, whether you and the users, the company, and the user. There's obviously a bit of overhead and downsides running in experiments, setting out a lot, and making sure, analyzing the results. Is there anything that you ever don't think is worth A, B testing? First of all, there are some necessary ingredients to A, B testing. And I'll just say, I'll write, not every domain is amenable to A, B testing. You can't A, B test merges in acquisitions, right? Then something happens once you either acquire, you don't acquire. So you do have to have some necessary ingredient.

25:18You need to have enough units, mostly users, in order for the statistics to work out. So yeah, if you're too small, it may be too early to A, B test. But what I find is that in software, it is so easy to run A, B testing, and it is so easy to build a platform, I don't say it's easy to build a platform, but once you build a platform, the incremental cost of running an experiment should approach zero. And we got to that at Microsoft, off, where after a while the cost of running experiments was so low that nobody was questioning the idea that everything should be experimented with. Now, I don't think we were there at Airbnb, for example.

26:02The platform at Airbnb was much less mature and required a lot more analysts in order to interpret the results and to find issues with it. So I do think there's this trade -off. You're willing to invest in the platform. It is possible to get the marginal cost to be close to zero. But when you're not there, it's still expensive and there are, there may be reasons why not to run AB tests. You talked about how you may be too small to run AB tests. And this is a constant question for startups is when should we start running AB tests? Do you have kind of a heuristic or a rule thumb of just like here's a time you should really start thinking about running in a machine.

26:42Yeah, a million dollar question that everybody asked. So I actually, we'll put this in the notes, but I gave a talk last year, what I called it is practical defaults. And one of the things I show there is that unless you have at least tens of thousands of users, the math, the statistics just don't work out for most of the metrics that you're interested. In fact, I gave an actual practical number of a retail site with some conversion rate trying to detect changes that are at least 5 % beneficial, which is something that startups should focus on. They shouldn't focus on the 1%, they should focus on the 5 % and 10%.

27:21Then you need something like 200 ,000 users. So start experimenting when you're in the tens of thousands of users. You'll be able to detect large effects. And then once you get to 200 ,000 users, then the magic starts happening. Then you can start testing a lot more. then you have the ability to test everything and make sure that you're not degrading and getting value of this part of the patient. So you ask for rule of thumb, 200 ,000 users, you're magical. Below that, start building the culture, start building the platform, start integrating so that as you scale, you start to see the value. Love it.

Read the full transcript

28:01Coming back to this kind of concern people have of experimentation keeps you from innovating and taking big bets. I know you have this framework, overall evaluation criterion. And I think that helps with this. Can you talk a bit about that? The OEC or the overall evaluation criterion is something that I think many people that start to dabble in A B testing miss. And the question is, what are you optimizing for? And it's a much harder question that people think because it's very easy to say we're going to optimize for money revenue. But that's the wrong question because you can do a lot of bad things that will improve revenue.

28:45So there has to be some countervailing metric that tells you how to improve revenue without hurting the user experience. So let's take a good example with search. You can put more ads on the page and you will make more money. There's no doubt about it. You will make more money in the short term. The question is, what happens to the user experience and how is that going to impact you in the long term? So we've run those experiments and we were able to map out, you know, this number of ads causes this much increase to turn. This number of ads causes this much increase to the time that users take to find a successful result.

29:28And we came up with an OEC that is based on these metrics that allows you to say, okay, I'm willing to take this additional money if I'm not hurting the user experience by more than this much. Right? So there's a trade off there. One of the nice ways to phrase this as a constraint optimization problem. I want you to increase revenue, but I'm going to give you a fixed amount of average real estate that you can use. So for one query, you can have zero ads. For another query, you can have three ads. For a third query, you can have wider, bigger ads. I'm just going to count the pixels that you take, the vertical pixels.

30:08And I will give you some budget. And if you can under the same budget make more money, you're good to go. Right. So that to me, turns the problem from a badly defined, let's just make more money. Right. Any page can start plastering more ads and make more money short term, but that's not the goal. The goal is long term growth and revenue. Then you need to insert these other criteria and what am I doing to the user experience? One way around it is to put this constraint. And another one is just to have these other metrics again something that we did to look at the user experience How long does it take the user to reach a successful like what percentage of sessions are successful?

30:49These are key metrics that were part of the overall evaluation criteria and that we've used I can give you another example by the way from you know the hotel industry or Airbnb that we both work that You can say I want to improve conversion rate But you can be smarter about it and say it's not just enough to convert a user to buy or to pay for a listing I want them to be Happy with it several months down the road when they actually stay there Right, so that could be part of your OEC to say what is the rating that they will give to that? Listing when they actually stay there and that's if that causes an interesting problem because you don't have this data now Now you're going to have it three months from now when they actually stay.

31:34So you have to build the training set that allows you to make a prediction about whether this user, whether Lenny is going to be happy at this cheap place or whether no, I should offer something more expensive because Lenny likes to stay at nicer places where the water actually is hot and comes out of the faucet. That is true. Okay. So it sounds like the core to this approach is basically have a kind of a drag metric that makes sure you're not hurting something that's really important to the business. and then being very clear on what's the long term metric we care most about. To me, the key here, the key word is lifetime value, which is you have to define the OEC such that it is constantly predictive of the lifetime value of the user.

32:17And that's what causes you to think about things properly, which is am I doing something that just helps me short -term or am I doing something that will help me to longer. Once you put that model of lifetime value, people say, okay, what about retention rates. You can measure that. What about the time to achieve a task we can measure that? And those are these countervailing metrics that make it make the OEC useful. And to understand these longer term metrics, what I'm hearing is use kind of models and forecast and predictions, or would you suggest sometimes use like a long term holdout or some other approach, What do you find is the best way to think and see these long?

32:58There's two ways that I like to think about it. One is you can run long -term experiments for the goal of learning something. So I mentioned that at Bing, we did run these experiments where we increase the ads and decrease the ads so that we will understand what happens to key metrics. The other thing is you can just build models that use some of our background knowledge or use some, you know, data science look at historical. I'll give you another good example of this. When I came to Amazon, one of the teams that reported to me was the email team that it was not the transactional emails when you buy something to get an email, but was the team that sent these recommendations, you know, here's a book by an author that you bought.

33:44Here's a product that we recommend. And the question is, how do we give credit to that team? and the initial version was, well, whenever a user comes from the email and purchases something on Amazon, we're going to give that email credit. Well, turn out, this had no countervailing metric. The more emails you send, the more money you're going to credit the theme. And so that led to spam. Literally, a really interesting problem. The team just ramped up the number of emails that they were sending out and claimed to make more money and their fitness function improved. And then so then we backed up and then we said, okay, that we can either phrase this as a constraint satisfaction problem.

34:26You're a lot to send user an email every X days. Or which is what we ended up doing is let's model the cost of spamming the users. Okay, what's that cost? Well, when they unsubscribe, we can't mail them. Okay, so we did some data science study on the side, then we said, what is the value that we're losing from an unsubscribe, right? We came up with a number of a few dollars, but the point was, now we have this countervalent metric. We say, here's the money that we generate from the emails. Here's the money that we're losing a long -term value. What's the trade -off? And then when we started to incorporate this formula, more than half the campaigns that we're being sent were negative.

35:11it. Okay. So it was a huge insight at Amazon about how to send the right campaigns. And this led and this is what I like about these discoveries. This fact that we integrated the unsubscribe led us to a new feature to say, well, let's not lose their future lifetime value through email. When they unsubscribe, let's offer them by default to unsubscribe from this campaign. So when you get an email, you know, there's a new book by the author, the default unsubscribe would be unsubscribe me from author emails. And so now the negative of the countervailing metric is much smaller. And so again, this was a breakthrough in our ability to send more emails and understand based on what users were unsubscribing from, which ones are really beneficial.

36:05I love the surprising results. We all love them. I mean, this is the humbling reality. People talk about the fact that AB testing sometimes leads you to incremental. I actually think that many of these small insights lead to fundamental insights about which areas to go, some strategies we should take, some things we should develop helps a lot. This makes me think about how every time I've done a full redesign of a product, I don't think ever has it ever been a positive result. And then the team always ends up having to claw back what they just hurt and try to figure out what they messed up. Is that your experience, too?

36:47Absolutely. Yeah, in fact, I've published some of these in LinkedIn posts showing a large set of big launches that redesigns and dramatically fail. And it happens very often. So the right way to do this is to say, yes, we want to do a redesign, but let's do it in steps and test on the way and adjust. So you don't need to take 17 new changes that many of them are going to fail. Start to move incrementally in a direction that you believe is beneficial adjust on the way. Right. The worst part of those experiences I find is it took like, I don't know, three, six months, three to six months to build it.

37:31And by the time it's launched, it's just like, we're not going to unlaunch this. Everyone's been working in this direction. All the new features are assuming this is going to work. And you're basically stuck, right? I mean, this is the SunCost fallacy, right? We invested so many years in it. Let's launch it even though it's bad for the user. No, that's terrible. Yeah. Yeah. So this is the other advantage of recognizing this humble reality that most ideas fail, right? If you believe in that statistics that I published, then doing 17 changes together is more likely to be negative. Do them in smaller increments, learn from, it's called OFAT, one factor at a time.

38:12Do one factor, learn from it, and adjust of the 17 maybe you have four good ideas. those are the ones that will launch and be positive. I generally agree with that and always try to avoid a big redesign, but it's hard to avoid them completely. There's often team members that are really passionate and like we just need to rethink this whole experience. We're not going to incrementally get there. Have you found anything effective in helping people either see this perspective or just making a larger, bit more successful? And by the way, I'm not opposed to large redesigns. I try to give the team the data to say, look, here are lots of examples where big redesigns fail.

38:54Try to decompose your redesign if you can decompose it to one factor of time to a small set of factors at a time. And learn from these smaller changes, what works and what doesn't. Now, it's also possible to do a complete redesign. I'm just as you said yourself, they'd be ready to fail. Right? I mean, do you really want to work on something for six months or a year and then run the AB test and realize that you've hurt revenues or other key metrics by several percentage points and a data driven organization will not allow you to launch. What are you going to write in your annual review? Yeah, but nobody ever thinks it's going to fail.

39:34I think no, we got this through talk to so many people. But I think organizations that start to run experiments are humbled early on from the smaller changes. Right. You're right. Nobody, I'll tell you a funny story. When I came from Amazon, the Microsoft, I joined a group and for one reason or another that group disbanded a month after I joined. And so people came to me and said, look, you just joined the company. You're a partner level. you figure out how you can help Microsoft. And I said, I'm gonna build an experimentation platform because nobody at Microsoft is running experiments and more than 50 % of ideas in Amazon that we tried failed.

40:19And the classical response was, we have better PMs here. Right, there was this complete denial that it's possible that 50 % of ideas is that Microsoft is implementing in a three -year development cycle, by the way. This is how long it took Office to release. It was a classical every three years we released. The data came about showing that being was the first to truly implement experimentation at scale and we shared with the rest of the companies the surprising results. And so when office was, and this was, you know, credit to Chilu and Satchinadella, they were ones that says, Ronnie, you know, you try to get office to run experiments, we'll give you the air support.

41:10And it was hard, but we did it. You know, it took a while, but office started to run experiments and they realized that many of their ideas were failing. You said that there's a site of a failed redesigns. Is that in your book or is that a site that you can point people to to kind of help build this case? It's on I teach us in my class, but I think I've posted this on LinkedIn and answered some questions. I'm happy to put that in the notes. Okay. Cool. We'll put that in the show notes because I think that's the kind of data that often helps convince a team. Maybe we shouldn't rethink this entire onboarding flow from scratch.

41:44Maybe we should kind of iterate towards and learn as we go. This episode is brought to you by Epo. Epo is a next generation AB testing platform built by Airbnb alums for modern growth teams. Companies like DraftKings, Zapier, ClickUp, Twitch, and Cameo rely on Epo to power their experiments. Wherever you work, running experiments is increasingly essential. But there are no commercial tools that integrate with a modern growth team stack. This leads to waste of time building internal tools or trying to run your own experiments through a clunky marketing tool. When I was at Airbnb, One of the things that I loved most about working there was our experimentation platform.

42:20Whereas able to slice and dice data by device types, country, user stage, Epo does all that and more delivering results quickly, avoiding annoying prolonged analytic cycles, and helping you easily get to the root cause of any issue you discover. Epo lets you go beyond basic click -through metrics, and instead use your North Star metrics, like activation, retention, subscription, and payments. EpoSupports test on front end, on the back end, email marketing, even machine learning clients. Check out Epo at GetEPPO .com, that's Getepo .com, and 10X, your experiment velocity. Is it ever worth just going, let's just rethink this whole thing and just give it a shot to break out of a local minima or a local maxima essentially?

43:03Yeah, so I think what you said is fair. I mean, I do want to allocate some percentage of resources to big bets. as you said, we've been optimizing this thing to hell, could we completely redesign it? It's a very valid idea. You may be able to break out of a local minimum. What I'm telling you is 80 % of the time you will fail. So be ready for that, right? What people usually expect is my redesign is going to work. No, you're most likely going to fail, but if you do succeed, it's a breakthrough. I like this 80 % rule of thumb. Is that just like a simple way of thinking about it 80 % your experience?

43:39That's my rule of thumb. And you had, I've heard people say it's 70 % or 80%. But it's in that area where I think when you talk about how much to invest in the known versus the high risk high reward, that's usually the right percentage that most organizations end up doing this allocation. But you interviewed Trey, so I think he mentioned that at Google is like 70 % you know the search and ads and it's a 20 % for some of the apps and new stuff and then it's the 10 % for infrastructure Yeah, I think the most important point there is if you're not running an experiment 70 % of stuff you're shipping is hurting your business Well, not hurting it may it's flat too negative some of them are flat And by the way flat to me if something is not static that's a no ship because you've just introduced more code There is a maintenance overhead to shipping your stuff.

44:39I've heard people say, look, we already spent all this time. The team will be demotivated if we don't ship it. And I'm not that's wrong, guys. Let's make sure that we understand that shipping this project has no value is complicating the codebase. Maintenance costs will go up. You don't ship on flat unless it's a sort of a legal requirement. right? When legal comes along and says you have to do X, Y, you have to ship on flat or even negative and that's understandable. But again, I think that's something that a lot of people make the mistake of saying legal told us we have to do this. Therefore, we're going to take the hits.

45:15No. Legal gave you a framework that you have to work under, try three different things and ship the one that hurts the least. I love that. Reminds me when Airbnb launched the rebrand, even that they ran as an experiment with the entire homepage redesign, the new logo and all that. I think there's a long -term holdout even. I think it was positive in the end, from what I remember. Speaking of Airbnb, I want to chat about Airbnb briefly. I know there's, and you're limited in what you can share, but it's interesting that Airbnb seems to be moving in this other direction where it's becoming a lot more top -down, Brian Vision oriented and Brian's even talked about how he's less motivated to run experiments.

45:58He doesn't want to run as many experiments as they used to. Things are going well. And so, you know, it's hard to argue with the success potentially. You worked there for many years. You ran the search team, essentially. I guess just what was your experience like there? And then roughly, what's your sense of how things are going? Where it's going? As you know, and I'm restricted from talking about AirBnB, I will say a few things that I am allowed to say. One is in my team, in search relevance, everything was a B test. So while Brian can focus on some of the design aspects that people who are actually doing you know the neural networks and the search everything was a B test to help.

46:42So nothing was launching without a B test. We have targets around improving certain metrics and everything was that A because now other teams some did some did not. I will say that you know when you say things are going well, I think we don't know the counterfactual. I believe that had Airbnb kept people like Greg really, which was pushing for a lot more data driven and had Airbnb run more experiments, it would have been in a better state than today, but it's the counterfactual. We don't know. That's a really interesting perspective. Yeah. Airbnb is such an interesting natural experiment of a way of doing things differently, there's like, de -emphasizing experiments.

47:22And also, they turned off paid ads during COVID. And I think, I don't know where it is now, but it feels like it's become a much smaller part of the growth strategy. Who knows if they've ramped it up to back to where it is today. But I think it's going to be a really interesting case study looking back, I don't know, five, 10 years from now. It's a one -off experiment where it's hard to assign value to some of the things that Airbnb is doing. I personally believe it could have been a lot bigger. and a lot more successful if it had run more control experiments. But I can't speak about some of those that I ran and that showed that some of the things that were initially untested were actually negative and could be better.

48:04All right. Mysterious. One more question Airbnb. You were there during COVID, which was quite a wild time for Airbnb with Sunshine on the podcast, talking about all the craziness that went on when travel basically stopped. And there was a sense that our being view is done and travel is not going to happen for years and years. What's your take on experimentation in that world where you have to really move fast, make crazy decisions, make big decisions? What was like during that time? So I think actually in a state like that, it's even more important to run AV tests, right? because what you want to be able to see is if we're making this change, is it actually helping in the current environment?

48:50There's this idea of external generalizability. Is it going to work out now during COVID? Is it going to generalize later on? These are things that you can really answer with the control of experiments. And sometimes it means that you might have to replicate them six months down when COVID is not as impactful as it is. Saying that you have to make decisions quickly, to me, I'll point you to the success rate. Like if in peacetime you're wrong two -thirds to 80 % of the time, why would you be suddenly right in wartime? Right? In COVID time. So I I don't believe in the idea that because bookings went down materially, the company should certainly not be data -driven and do things differently.

49:41I think if every and be stayed the course, did nothing, the revenue would have gone up in the same way. Fascinating. In fact, if you look in one investment, one big investment that was done at the time was online experiences. And the initial data wasn't very promising and I think today it's a footnote. Yeah, what a... Another case study for the history books, Airbnb experiences. I want to shift a little bit and talk about your book, which you mentioned a couple times. It's called Trust Worthy Online Control Experiments. And I think it's basically the book on A, B testing. Let me ask you just what's the price you most about writing this book and putting it out and in the reaction to it?

50:23I was pleasantly surprised that it sold more than what we thought, more than what Cambridge predicted. So when, when, first we were approached by Cambridge after a tutorial that we did to write a book, I was like, I don't know, this is too small of an inch area. And I, you know, they were saying, so you'll be able to sell a few thousand copies and helped the world. I found my call authors which are great. We wrote a book that we thought is not statistically oriented, has fewer formulas than you normally see, and focuses on the practical aspects and on trust which is the key. The book, as I said, was more successful.

51:21It's And so it's great to see that we helped the world become more data driven with experimentation. And I'm happy because of that. I was pleasantly surprised. By the way, all proceeds from the book are donated to charities. So if I'm pitching the book here, there is no financial gain for me from having more copies sold. I think we made that decision, which was a good decision. All proceeds go with the charity. Amazing. I didn't know that. We'll link to the book in the show notes. You talked about how trust, like it's, trust is in the title. You just mentioned how important trust is to experimentation.

51:55A lot of people talk about, how do I run experiments faster? You focus a lot on trust. Weiss trust is so important in running experiments. So to me, the experimentation platform is the safety net. And it's an Oracle. So it serves really two purposes. The safety net means that if you launch something bad, you should be able to abort quickly. Right? safe deployments, safe velocity, there are some names for this. But this is one key value that the platform can give me. The other one, which is the more standard one, is at the end of the two -week experiment, we will tell you what happened to your key metric and do many of the other surrogate and debugging and guardrail metrics.

52:39Trust builds up, it's easy to lose. And so to me, it is very important that when you present this and say, this is science, this is a control experiment, this is the resolve. You better believe that this is trustworthy. And so I focus on that a lot. I think it allowed us to gain the organizational trust that this is really, and the nice thing is when we built all this checks to make sure that the experiment is correct. If there was something wrong with it, we would stop and say, hey, something is wrong with the experiment. And I think that's something that some of the early implementations in other places did not do and it was a big mistake.

53:25I mentioned this in my book, so I can mention this here, optimizely, in its early days, we're very statistically naive. They sort of said, hey, we're real time, we can compute your p -values in real time. And then you can stop an experiment when the p -value is statistically significant. That is a big mistake. That inflates what's called type 1 error or the false positive rate. Materially, so if you think you've got a 5 % type 1 error or you aim for that p -value less than .05, using real time sort of p -value monitoring to optimize the offered, you would probably have a 30 % error rate. So what this led is that people that started using optimizely thought that the platform was telling them they're very successful.

54:15But when they actually started to see, well, I told them this is positive revenue, but I don't see this over time. Like, by now we should have made double their money. So their question started to come up around the trust in the platform. There's a very famous pose that some of you wrote about how optimizely almost got me fired by a person who basically said, look, I'm going to say, I'm going to say, I'm I came to the organ, I said, we have all these successes, but then I said something is wrong. And he tells of how he ran an AA test when there is no difference between the A and the B and optimize the tolem that it was statistically significant.

54:49Too many times, optimized the learned, optimized the, several people pointed. I pointed this out in my Amazon review of the book that the optimized the authors wrote early on. I said, hey, you're not doing the statistics correctly. other, you know, Ramesh, Johari, it's Stanford, pointed this out, became a consultant to the company, and then they fixed it. But to me, that's a very good example of how to lose trust. They lot of trust in the market. They lost all this trust because they built something that had very much inflated error. That is a pretty scary to think about. You've been running all these experiments, and they weren't actually telling you accurate results.

55:34What are signs that what you're doing may not be valid if you're starting to run experiments and then just how do you avoid having that situation? What kind of tips can you share for people trying to run experiments? There's a whole chapter of that in my book, but I'll say maybe one of the things that is the most common occurs by far, which is a sample ratio of mismatch. Now, what is a sample ratio of mismatch? If you designed the experiment to send 50 % of users to control and 50 % of users to the treatment, it's supposed to be a random number or hash function. If you get something off from 50%, it's a red flag.

56:15So let's take a real example. Let's say you're running an experiment and it's large, it's got a million users and you've got 50 .2. So people say, well, I don't know, it's not going to be exactly the same as 50 .2, reasonable or not. Well, there's a formula that you can plug in. I have a spreadsheet available for those that are interested in. And you can tell here's how many users are in control. Here's how many users have in treatment. My design was 5050 and it tells you the probability that this could have happened by chance. Now, in a case like this, you plug in the numbers and it might tell you that this should happen one in half a million experiments.

56:53Unless you run half a million experiment, very unlikely that you would get a 50 .2 versus 49 .8 split and therefore something is wrong with the experiment. Now, people, I remember when we first implemented this check, we were surprised to see how many experiments suffered from this. There's a paper that was published in 2018 and where we share that Ed Microsoft, even though we'd be running experiments for a while, is around 8 % of experiments that suffered from the sample ratio mismatch. And it's a big number. I think about this, you're running 20 ,000 experiments a year. So many of them, 8 % of them are invalid.

57:37And somebody has to go down and understand what happened here. We know that we can't trust the results, but why? So over time, you begin to understand there's something wrong with the pipe data pipeline. There's something that happens with bots. spots are a very common factor for causing a sample ratio of mismatch. So, there's a whole, that paper that was published by my team talks about how to diagnose sample ratio of mismatches. In the last, probably a year and a half, it was amazing to see all these third party companies implement sample ratio of mismatches. And all of them were reporting, oh my god, you know, 6 %, 8%, 10%, so yeah, they were where it's sometimes fun to go back and say, how many of your results were in the past or in valid before you had this ampleration, this much test.

58:32Yeah, this frightening. Is the most common reason this happens is you're signing users in kind of the wrong place in your code? So when you say most common, I think the most common is bots. Somehow they hit the controller, the treatment in different proportions because you changed the website, the Bob may fail to parse the page and try to hit it more often. That's a classical example. Another one is just a data pipeline. We've had cases where we were trying to remove bad traffic under certain conditions and it was skewed because of the control and treatment. I've seen people that start an experiment in the middle of this site on some page, but they don't realize that some campaign is pushing people from the side.

59:13So there's multiple reasons. It is surprising how often this happens. And I'll tell you a funny story, which is, when we first added this test to the platform, we just put a banner saying, you have a sample ratio of mismatch, do not trust these results. And we noticed that people ignored it. They were starting to present results that had this banner. And so we blanked out the scorecard. We put a big, you know, red can't see this result. You have a sample ratio of mismatch click okay to expose the results and why we do we need that okay? We need that okay button because You want to be able to debug the reasons and sometimes the metrics help you understand why you have a sample ratio of mismatch So we blanked out the scorecard we had this button and then we started to see that people pressed the button It's still presented the results of experiments with sample ratio mismatch So we ended up with an amazing compromise which is every number in the scorecard was highlighted with a red line.

1:00:18So that if you took a screenshot, other people could tell you how the sample ratio is less. Freaking product managers. This is intuition. People just say, oh my, it's the realm of small. Therefore I can still present the result. People want to see success. I mean, this is a natural bias. And then we have to be very conscientious and fight that bias and say with something looks to get to be true, investigate. Which is a great segue to something you mentioned briefly, something called, time and law. Yeah. You can talk about that. Yeah, so time is law, you know, the general statement is if any figure that looks interesting or different is usually wrong, it was first said by this person in the UK who worked in radio media, but I'm a big fan of it.

1:01:06And my main claim to people is if the result looks too good to be true, if you suddenly moved your normal movement of an experiment is under 1%, and you suddenly have a 10 % movement, hold the celebratory dinner. It was just your first reaction, right? Let's thank everybody to fancy dinner because we just improved revenue by millions of dollars. hold that dinner, investigate, see because there's a large probability that something is wrong with the result. And I will say that 9 out of 10 when we call a time is law, it is the case that we find some flaw in the experiment. Now there are obviously outliers, right?

1:01:47That first experiment that I should where we promoted the made -long -out titles, that was successful, but that was replicated multiple times and double and triple checked and everything was good about it. Many other results that were so big turn out to be false. So I'm a big, I'm a big, big fan of trying this law. There's a deck I can also give this in a note where I shared some real examples of trying this law. Amazing. I want to talk about rolling this out, accompanying things that you run into, that fail. But before I get to that, I'd love for you to explain just p -value. I know that people kind of misunderstand it and this may be a good time, I'm just, help people understand, what is it actually telling you, P value of say 0 .05?

1:02:29I don't know if this is the right forum for explaining P values, because the definition of a P value is simple. What it hides is very complicated. So I'll say one thing, which is, many people assign one minus P value as the probability that your treatment is better than control. So you ran an experiment, you got a P value of 0 .02, they think there's a 98 % probability that the treatment is better than the control. That is wrong. They say rather than defining p -values, I want to caution everybody that the most common interpretation is incorrect. P -value assumes it's a conditional probability or an assumed probability.

1:03:15It assumes that the null hypothesis is true and we're computing the probability that the data we're seeing matches the hypothesis. There's no hypothesis. In order to get the probability that most people want, we need to apply Bayes rule and invert the probability from the probability of the data given to hypothesis to the probability that hypothesis given the data. For that, we need an additional number, which is the probability, the prior probability that the hypothesis that you're testing is successful or not. That's an unknown. What we do is we can take historical data and say, look, people fail two thirds of the time or 80 % of the time.

1:03:58And we can apply that number and compute that. We've done that in a paper that I will give you the notes so that you can assess the number that you really want that what's called the false positive risk. So I think that's something for people to internalize that what you really want to look as this false positive risk, which tends to be much, much higher than the 5 % of people think. Right? So if you're, I think the classical example in the Airbnb where the failure rate was very, very high is that when you get a statistically significant resolve, let me actually call the note, because I know I have the actual number.

1:04:34If you're at Airbnb, where the success rate of, or Airbnb search where the success rate is only 8%, And if you get a statistically significant result with the p value less than 0 .05, there is a 26 % chance that this is a false positive result. Right? It's not 5%. It's 26%. So that's the number that you should have in your mind. And that's why when I worked at Airbnb, one of the things we did is we said, okay, if you're less than 0 .05, but above 0 .01, rerun, replicate. When you replicate, you can combine the two experiments and get a combined p -value using something called Fisher's method or Staufer's method and that gives you the joint probability and that's usually much, much lower.

1:05:19So if you get 2 .05 or something like that, then the probability that you got them is much, much lower. Wow. I have never heard it described that way. Makes me think about how like even data scientists in our teams are just like, this isn't perfect. like we're not 100 % sure this experiment is positive but on balance if we're launching positive experiments we're probably doing good things it's okay if sometimes we're wrong. It's true on balance you're probably better than 50 -50 but people don't appreciate how much that 26 % that I mentioned is high and the reason that I want to be sure is that I think it leads to this idea of the learning the institutional knowledge which you want to be able to say is share with the Oregon success.

1:06:03And so you want to be really sure that you're successful. So by lowering the P value, by forcing teams to work with the P value maybe below point, one, and do replication or hires, then you can be much more successful. And the false positive rate will be much, much slower. Fascinating. And also shows the value of keeping track of just what percentage of experiments are failing historically at the company or within that specific product. say someone listening wants to start running experiments, say they have tens of thousands of users at this point. What would be the first couple of steps you'd recommend?

1:06:37Well, see, if they have somebody in the org that has previously been involved with the experiment, that's a good way to consult internally. I think that the key decision is whether you want to build or buy. There's a whole series of eight sessions that I posted on LinkedIn where I invited guest speakers to talk about this problem. So if people are interested, they can look at how what the vendors say and what agency said about build versus buy question. And it's usually not at zero one. It's usually a both. You build some and you buy some and it's a question of you build 10 % or do you build a 90 %?

1:07:17I think for people starting the third party products that are available today are pretty good. This wasn't the case when I started working. So when I started building running experiments at Amazon, we were building the platform because nothing existed. Same at Microsoft. I think today there's enough vendors that provide good experimentation platforms that are trustworthy that I would say not a good way to consider using one of those. So you're at a company where there's resistance to experimentation and AB testing, whether it's a startup or a bigger company, whatever you found works in helping shift that culture and how long does that usually take, especially at a larger company?

1:07:57My general experience is with Microsoft where we went with this beachhead of Bing. We were running a few experiments and then we were asked to focus on Bing and we scaled experimentation and build a platform at scalehead Bing. Once being was successful and we were able to share all these surprising results, I think many, many more people in the company were amenable. And it was also the case that helped a lot. There's a usual cross -pollination people from being moved out to other groups and that helped these other groups say, hey, there's a better way to build software. So I think if you're starting out, find a place, find a team where experimentation is easy to run and by that I mean they're launching often right don't go with the team that launches every six months or you know office used to launch every three years go with the team that launches frequently you know they're running on sprints they launch every week or two sometimes they launch data I mean being used to launch multiple times a day and then make sure that you understand the question of the OEC is it clear what they're optimizing for right there are some groups where you You can come up with a good OEC.

1:09:09Some groups are harder. I remember one funny example was the Microsoft .com website, which this is not MSN. This is Microsoft .com. Has multiple different constituencies that are trying to determine this is a support site and this is the ability to sell software through this site and it's and and warn you about about safety and updates. It has so many goals. I remember when the team said we want our own experiments and I brought the group in and some of the managers and I said, do you know what you're optimizing for? It was very funny because they surprised me. They said, Hey Ronnie, we read some of your papers.

1:09:52We know there's this term called OEC. We decided the time on site is OEC. And I said, wait a minute. it. Some of your main goals as support site is people more spending more time in a support site, a good thing or a bad thing. And then half the room thought that more time is better and half the room thought that more time is worse. So, and always seems bad if directionally you can't agree on it. That's a great tip. Along these same lines, I knew you're a big fan of platforms and building a platform to run experiments versus just one off. Experiments can just talk briefly about that to give people a sense of where they probably should be going with their experimentation approach.

1:10:32I think the motivation is to bring the marginal cost of experiments down to zero. The more you self -service, go to a website, set up your experiment, define your targets, define the metrics that you want. People don't appreciate that the number of metrics starts to grow really fast if you're doing things right. And being, you could define 10 ,000 metrics that you wanted to be in your scorecard. Big number. So it was so big and people said it was computationally inefficient. We broke them into templates so that if you were launching a UI experiment, you would get this set of 2 ,000. If you're doing a revenue experiment, you would get this set of 2 ,000 if you're doing.

1:11:15So the point was build a platform that can quickly allow you to set up and run an experiment and then analyze it. I think you know one of the things that I will say to Airbnb is the analysis was relatively weak and so lots of data scientists were hired to be able to compensate for the fact that the platform didn't do enough and so and this happens in other organizations too where there's a straight -off but if you're building a good platform invest in it so that more and more automation will allow people to look at the analysis without the need to involve a data scientist. We published a paper again, I'll give it in the notes with this sort of a nice matrix of six axes and how you move from crawl to walk to run to fly and what you need to build on those six axes.

1:12:08So if one of the things that I do sometimes when I consult is I go into the organization and say, where do you think you are on these six axes? And that should be the guidance for what are the things you need to do next. This is gonna be the most epic show notes episode and we've had yet. Maybe a last question. We talked about how important trust is to any experiments and how even though people talk about speed, trust ends up being most important. Still, I wanna ask you about speed. Is there anything you recommend for helping people run experiments faster and get results more quickly that they can implement?

1:12:40Yeah, so I'll say a couple of things. One is if your platform is good, then when the experiment finishes, you should have a scorecard soon after. They mean it takes a day, but it shouldn't be that you have to wait a week for the data scientist. To me, this is the number one way to speed up things. Now, in terms of using the data efficiently, there are mechanisms out there under the title of variance reduction that help you reduce the variance of metrics so that you need less users so that you can get results faster. Some examples that you might think about are capping metrics. So if your revenue metric is very skewed, maybe you say, well, if somebody purchased over $1 ,000, let's make that $1 ,000.

1:13:27It Airbnb, one of the key metrics, for example, is NightsBook. Well, it turns out that some people book tens of nights, they're like an agency or something, hundreds of nights, You may say, okay, let's just cap this. It's unlikely that people book more than 30 days in a given month. So that various reduction technique will allow you to get statistically significant results faster. And a third technique is called Cupid, which is an article that we published. Again, I can give it in the notes, which uses the pre -experiment data to adjust the result. And we can show that you get the result as unbiased, but with lower variance and health, hence it requires fewer numbers.

1:14:11Ronnie, is there anything else you want to share before we get to our very exciting lightning round? No, I think we've asked a lot of good questions. Hope people enjoy this. I know they will. Lightning round. No, lightning round. Here we go. I'm just going to roll right into it. What are two or three books that you recommended most to other people? There's a fun book called Calling Bullshit, it, which is despite the sort of name, which is a little extreme, I think, for entitled, it actually has a lot of amazing insights that I love. And it sort of embodies, in my opinion, a lot of the time is love showing that things that are too extreme, your bullshit meter should go up and say, hey, I don't believe that.

1:14:54So that was, that's my number one recommendation. There's a slightly older book that I love called Heart Facts, Dangerous Half Truths, and Total Nonsense by the Stanford professors from the Graduate School of Business. Very interesting to see many of the things that we grew up with as well understood, turn out to have no justification. And then, so with Stranger Book, which I love on the verge of psychology, it's called mistakes were made but not by me about all the fallacies and that we fall into and the humbling results from that. The titles of these are hilarious and there's a common theme across all these books.

1:15:43Next question, what is a favorite recent movie or TV show? So I recently saw a short series called Chernobyl on the disaster. I thought it was amazingly well done. Yeah. I highly recommend it. You know, based on true events, you know, as usual, there's some freedom for the artistic movie that it was kind of interesting. At the end they say, this woman in the movie wasn't really a woman. It was a bunch of 30 data scientists, 30 scientists that in real life presented all the data to the leadership of what to do. I remember that. Fun fact, I was born in Odessa, Ukraine, which was not so far from Chernobyl.

1:16:29I remember my dad told me he had to go to work. They called them into work that day to clean some stuff off the trees, I think ash from the explosion or something. It was like far away where I don't think we were exposed. hoes, but yeah, we were in the vicinity. That's pretty scary. My wife thinks I've, every time someone's wrong with me, she's like, oh, that must be a Chernobyl thing. Okay, next question, favorite interview question you like to ask people when you're interviewing them. So it depends on an interview, but I'll give you, when I do a technical interview, which I do less of, but one question that I love that is amazing, how many people it throws away, for languages like C++ is, tell me what the static qualifier does.

1:17:16And for multiple, you know, you can do it for a variable, you can do it for a function. And it is just amazing that I would say more than 50 % of people that interview for engineering job cannot get this and get it awfully wrong. Definitely the most technical answer to this question yet. I love it. Okay, what's a favorite recent product you've discovered? Now you love it. Blink cameras. So, a Blink camera is this small camera. You stick in two AA batteries and it lasts for about six months. They claim up to two years. My experience is usually about six months. But it was just amazing to me how you can throw these things around in the yard and see things that you would never know otherwise.

1:18:08You know, some animals that go by, we had a skunk that we couldn't figure out how it was entering. So I threw five cameras out and I saw where he came in. Where did he come in? He came in under a whole defense that was about this high. I have a video of this thing just squishing underneath. We never would have assumed that it came from there from the neighbor. But yeah, these things have just changed. And when you're away on a trip, it's always nice to be able to say, you know, I can see my house, everything's okay. At one point, we had a false alarm and the cops came in and have this amazing video of how they're entering the house and pulling the guns out.

1:18:56You got to share that on TikTok. That's good content. Well, okay, blood cameras. We'll set those up in my house. Yes. What is something relatively minor you've changed in the way your team's developed product that has had a big impact on their ability to execute? I think this is something that I learned at Amazon, which is a structured narrative. So Amazon has some variants of this, which sometimes, but then the gov than anyone, six page or something. But when I was at Amazon, I still remember that email from Jeff, which is no lower PowerPoint, I'm gonna force you to write a narrative. I took that to heart and many of the features that the team presented instead of a PowerPoint.

1:19:42You start off with a structured document that tells you what you need, the questions you need to answer for your idea, and then we review them as a team. And Amazon, these were like paper -based. Now it's all based on Word or Google Docs where people comment. And I think the impact of that was amazing. I think the ability to give people honest feedback and have them appreciate and have it stay after the meeting was in these notes on the document just amazing. Final question. Have you ever run an A B test on your life, either your dating life, your family, your kids? And if so, what did you try?

1:20:20So there aren't enough units. Remember I said you need 10 ,000 of something. The run through A, B test. I do, I will say a couple of things. One is I try to emphasize to my family and friends and everybody this idea called the hierarchy of evidence. When you read something, there's a hierarchy of trust levels. If something is anecdotal, don't trust it. If there was an experiment, it was observational, given some bit of trust, as you get more up and up to a natural experiment and a control experiments and multiple control experiments, your trust levels should go up. So I think that's a very important thing that a lot of people miss when they see something in the news is where does it come from?

1:21:06I have a talk that I've shared of all these observational studies that people made that were published and then somehow a control experiment was run later on and proved that it was directionally incorrect. So I think there's a lot to learn about this idea of the hierarchy of evidence and share with our family and kids and friends and there's a now I think there's a book that's based on this is like how to read a book. Well, Ronnie, the experiment of us recording a podcast I think is 100 % positive of p value 0 .0. Thank you so much for being here. Thank you so much for inviting me and for great questions.

1:21:47Amazing. I appreciate that. Two final questions working folks, finding online if they want to reach out. And is there anything that listeners can do for you? Finding me online is easy. It's linked in. And what can people do for me? You know, understand the idea of control experiments as a mechanism to make the right data -driven decisions use science. Learn more by reading my book if you want. Again, all proceeds go to charity. And if you want to learn more, there's a class that I teach every quarter. On Maven, we'll put in the notes how to find it and some discount for people who manage to stay all the way to the end of this podcast.

1:22:30Yeah, that's awesome. We'll include that at the top. So people don't miss it. So there's be a code to get a discount on your course. Ronnie, thank you again so much for being here. This was amazing. Thank you so much. Bye, everyone. Thank you so much for listening. If you found this valuable, you can subscribe to the show on Apple Podcasts, Spotify, or your favorite podcast app. Also, please consider giving us a rating or a leaving review, as that really helps other listeners find the podcast. You can find all past episodes or learn more about the show at Lenny'spodcast .com. See you in the next episode!

From the publisher

Brought to you by Mixpanel—Event analytics that everyone can trust, use, and afford | Round—The private network built by tech leaders for tech leaders | Eppo—Run reliable, impactful experiments

—

Ronny Kohavi, PhD, is a consultant, teacher, and leading expert on the art and science of A/B testing. Previously, Ronny was Vice President and Technical Fellow at Airbnb, Technical Fellow and corporate VP at Microsoft (where he led the Experimentation Platform team), and Director of Data Mining and Personalization at Amazon. He was also honored with a lifetime achievement award by the Experimentation Culture Awards in September 2020 and teaches a popular course on experimentation on Maven. In today’s podcast, we discuss:

• How to foster a culture of experimentation

• How to avoid common pitfalls and misconceptions when running experiments

• His most surprising experiment results

• The critical role of trust in running successful experiments

• When not to A/B test something

• Best practices for helping your tests run faster

• The future of experimentation

—

Enroll in Ronny’s Maven class: Accelerating Innovation with A/B Testing at https://bit.ly/ABClassLenny. Promo code “LENNYAB” will give $500 off the class for the first 10 people to use it.

—

Find the full transcript at: https://www.lennysnewsletter.com/p/the-ultimate-guide-to-ab-testing

—

Where to find Ronny Kohavi:

• Twitter: https://twitter.com/ronnyk

• LinkedIn: https://www.linkedin.com/in/ronnyk/

• Website: http://ai.stanford.edu/~ronnyk/

—

Where to find Lenny:

• Newsletter: https://www.lennysnewsletter.com

• Twitter: https://twitter.com/lennysan

• LinkedIn: https://www.linkedin.com/in/lennyrachitsky/

—

In this episode, we cover:

(00:00) Ronny’s background

(04:29) How one A/B test helped Bing increase revenue by 12%

(09:00) What data says about opening new tabs

(10:34) Small effort, huge gains vs. incremental improvements 

(13:16) Typical fail rates

(15:28) UI resources

(16:53) Institutional learning and the importance of documentation and sharing results

(20:44) Testing incrementally and acting on high-risk, high-reward ideas

(22:38) A failed experiment at Bing on integration with social apps

(24:47) When not to A/B test something

(27:59) Overall evaluation criterion (OEC)

(32:41) Long-term experimentation vs. models

(36:29) The problem with redesigns

(39:31) How Ronny implemented testing at Microsoft

(42:54) The stats on redesigns 

(45:38) Testing at Airbnb

(48:06) Covid’s impact and why testing is more important during times of upheaval 

(50:06) Ronny’s book, Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing

(51:45) The importance of trust

(55:25) Sample ratio mismatch and other signs your experiment is flawed

(1:00:44) Twyman’s law

(1:02:14) P-value

(1:06:27) Getting started running experiments

(1:07:43) How to shift the culture in an org to push for more testing

(1:10:18) Building platforms

(1:12:25) How to improve speed when running experiments

(1:14:09) Lightning round

—

Referenced:

• Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing: https://experimentguide.com/

• Seven rules of thumb for website experimenters: https://exp-platform.com/rules-of-thumb/

• GoodUI: https://goodui.org

• Defaults for A/B testing: http://bit.ly/CH2022Kohavi

• Ronny’s LinkedIn post about A/B testing for startups: https://www.linkedin.com/posts/ronnyk_abtesting-experimentguide-statisticalpower-activity-6982142843297423360-Bc2U

• Sanchan Saxena on Lenny’s Podcast: https://www.lennyspodcast.com/sanchan-saxena-vp-of-product-at-coinbase-on-the-inside-story-of-how-airbnb-made-it-through-covid-what-he8217s-learned-from-brian-chesky-brian-armstrong-and-kevin-systrom-much-more/

• Optimizely: https://www.optimizely.com/

• Optimizely was statistically naive: https://analythical.com/blog/optimizely-got-me-fired

• SRM: https://www.linkedin.com/posts/ronnyk_seat-belt-wikipedia-activity-6917959519310401536-jV97

• SRM checker: http://bit.ly/srmCheck

• Twyman’s law: http://bit.ly/twymanLaw

• “What’s a p-value” question: http://bit.ly/ABTestingIntuitionBusters

• Fisher’s method: https://en.wikipedia.org/wiki/Fisher%27s_method

• Evolving experimentation: https://exp-platform.com/Documents/2017-05%20ICSE2017_EvolutionOfExP.pdf

• CUPED for variance reduction/increased sensitivity: http://bit.ly/expCUPED

• Ronny’s recommended books: https://bit.ly/BestBooksRonnyk

• Chernobyl on HBO: https://www.hbo.com/chernobyl

• Blink cameras: https://blinkforhome.com/

• Narrative not PowerPoint: https://exp-platform.com/narrative-not-powerpoint/

—

Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email podcast@lennyrachitsky.com.

—

Lenny may be an investor in the companies discussed.



This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit www.lennysnewsletter.com/subscribe

More from Lenny's Podcast: Product | Career | Growth

All 287 episodes
The ultimate guide to A/B testingLenny's Podcast: Product | Career | Growth · 1 h 23 min
Listen in VO