{"id":4412,"date":"2024-06-12T08:55:27","date_gmt":"2024-06-12T08:55:27","guid":{"rendered":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/"},"modified":"2025-06-05T14:09:36","modified_gmt":"2025-06-05T14:09:36","slug":"how-use-bayesian-inference-a-b-testing","status":"publish","type":"post","link":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/","title":{"rendered":"How to Use Bayesian Inference In A\/B Testing"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>This blog post is a recap of the presentation &ldquo;<a href=\"https:\/\/martech.org\/lies-damn-lies-search-marketing-statistics-smx-advanced-2016\/\" target=\"_blank\" rel=\"noopener\">Lies, Damned Lies, and Search Marketing Statistics<\/a>&rdquo; given by <a href=\"https:\/\/www.vistaprint.com\/\" target=\"_blank\" rel=\"noopener\">Vistaprint<\/a> SEO Manager (North America, Australia, New Zealand) Adria Kyne at the SMX Advanced Conference in Seattle, June 2016. During this presentation, Adria touches on the use of Bayesian methods to infer the results of an A\/B test.<\/p>\n<table border=\"0\" style=\"border-collapse: collapse; width: 100.238%;\">\n<colgroup>\n<col style=\"width: 49.9415%;\">\n<col style=\"width: 50.0604%;\"><\/colgroup>\n<tbody>\n<tr>\n<td>\n<p>Her point was that the sample size for A\/B testing is often too small and experiments are ended too early to be statistically significant. So, before prematurely acting on results we must understand the likelihood that any performance differences we observe are due only to chance rather to the change we are testing.<\/p>\n<p>To this end, Bayesian methods help avoid common pitfalls of statistical testing and make analysis and results easier to understand while enabling better decision-making.<\/p>\n<\/td>\n<td style=\"text-align: center;\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/Thomas_Bayes-1-304x324_en1rly.gif\" width=\"304\" height=\"324\" alt=\"\" style=\"display: block; margin-left: auto; margin-right: auto;\"><sup>Thomas Bayes<\/sup><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Bayesian Inference<\/h2>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Bayesian_inference\" target=\"_blank\" rel=\"noopener\">Bayesian inference<\/a> is used during statistical modeling to update the probability of a hypothesis based upon ongoing data collection. &nbsp;In short, using Bayesian methods allows for communicating that there is a &ldquo;90% probability that campaign B performs better than campaign A&rdquo;.<\/p>\n<p>It starts with identifying prior beliefs &ndash; or &ldquo;prior&rdquo; &ndash; about what results are likely, and then updating those according to the data collected. For example, if the current conversion rate is 5% it is very unlikely to achieve a conversion rate higher than 20%:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/Bayes4-1-1-768x630_sqpqwx.png\" width=\"768\" height=\"630\" alt=\"\" style=\"display: block; margin-left: auto; margin-right: auto;\"><\/p>\n<p>As the data begin compiling, the beliefs are updated. If the incoming data points signal an improvement in the conversion rate, the estimate of the effect can be moved from the prior upwards; the more data that is collected, the more confident one can be in the results moving away from the prior &ndash; then called a &ldquo;posterior&rdquo;, or the likely distribution of the effect.<\/p>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/Bayes3-1-768x595_yj6qef.png\" width=\"768\" height=\"595\" alt=\"\" style=\"display: block; margin-left: auto; margin-right: auto;\"><\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Bayes%27_theorem\" target=\"_blank\" rel=\"noopener\">Bayes&rsquo; Theorem<\/a> actually allows for stopping a test at any time if there is a clear winner or run it for longer if more samples are needed. In Bayesian testing, outputs are easily interpreted quantities &ndash; for example, the probability that version A is better than version B.<\/p>\n<p>The more popular alternative to Bayesian inference is classical significance testing, which draws conclusions based on the data sets&rsquo; comparison to a null hypothesis<\/p>\n<p>There is a great article on Lyst&rsquo;s engineering blog that goes more in depth on the subject of Bayesian A\/B testing.<\/p>\n<h2>Case Study<\/h2>\n<p>The objective is to test PROS&rsquo;s proprietary Dynamic Price Insertion in ad copy and analyze the results using Bayesian Inference.<\/p>\n<h2>Set Up<\/h2>\n<p>Dynamic Price Insertion is a new product that PROS has built which allows for inserting the lowest fare in an airline&rsquo;s ad copy for every route in real-time. &nbsp;To test the tool&rsquo;s efficacy, an experiment was necessarily set up. The goal of the ongoing experiment is to determine if dynamically surfaced data performs better in ads than a static ad.<\/p>\n<p>The ad copy tested was exactly the same for control and experiment, except that a price was added to the headline of the ad copy of the experiment.<\/p>\n<p style=\"text-align: center;\"><strong>Control:<\/strong><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/Bayes1-1_tdpvns.png\" width=\"485\" height=\"100\" alt=\"\"><\/p>\n<p style=\"text-align: center;\"><sup>Static ad for flights from Athens to London<\/sup><\/p>\n<p style=\"text-align: center;\"><strong>Experiment:<\/strong><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/Bayes2-1_n5qvhz.png\" width=\"456\" height=\"107\" alt=\"\"><\/p>\n<p style=\"text-align: center;\"><sup>Dynamic Price Insertion of &euro;62 in same ad for flights from Athens to London<\/sup><\/p>\n<p style=\"text-align: left;\">\n<h2>Analysis of Results using Bayesian Calculator<\/h2>\n<p>The test is still very young as the experiment has been running for four days only. However, we can use Bayesian Inference to determine what the probability of the experiment performing better at this moment than the control.<\/p>\n<p>Using a Bayesian calculator can provide insight as to the outcomes of A\/B testing, even when signals are weak. &nbsp;There are different online Bayesian calculators, but here is the one used for this analysis and an accompanying description of the underlying principles of the calculator.<\/p>\n<p>The results show that after running the experiment for four days only that the probability of the ad copy with dynamic price insertion performing better than the static ad copy is 54%.<\/p>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<colgroup>\n<col style=\"width: 20%;\">\n<col style=\"width: 20%;\">\n<col style=\"width: 20%;\">\n<col style=\"width: 20%;\">\n<col style=\"width: 20%;\"><\/colgroup>\n<tbody>\n<tr>\n<td><strong>Version<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>Trials (Impressions)<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>Successes (Conversions)<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>~ Prob.of being best<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Control<\/td>\n<td>Static-Low Price<\/td>\n<td>82,710<\/td>\n<td>9<\/td>\n<td>46%<\/td>\n<\/tr>\n<tr>\n<td>Experiment<\/td>\n<td>Dynamic Price Insertion<\/td>\n<td>52,974<\/td>\n<td>6<\/td>\n<td>54%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><\/h2>\n<h2>Conclusion<\/h2>\n<p>Using Bayesian Methods is a great communication and A\/B testing analysis tool to better understand marketing results. If we would stop our experiment right now, the probability of the experiment performing better than the original static ad copy is 54%. Bayesian methods allow for getting results and drawing inferences at any time. The experiment has only run for four days, but we are already able to draw conclusions using these methods. However, by continuing to collect more data, the level of confidence in the results will grow meaning we can move further away from our prior.<\/p>\n<p style=\"text-align: left;\"><strong><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Katharina Warzel describes Bayesian Inference in terms of A\/B testing. She guides you through its application and shows you how to interpret results.<\/p>\n","protected":false},"author":60,"featured_media":4411,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[152],"tags":[60,47,46,65,48],"class_list":["post-4412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-industry-airlines","tag-label-blog-post","tag-language-english","tag-type-airlines-blog","tag-type-blog","post-type-blogs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Use Bayesian Inference In A\/B Testing | AI-powered airline retailing and offer management platform<\/title>\n<meta name=\"description\" content=\"Katharina Warzel describes Bayesian Inference in terms of A\/B testing. She guides you through its application and shows you how to interpret results.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Bayesian Inference In A\/B Testing | AI-powered airline retailing and offer management platform\" \/>\n<meta property=\"og:description\" content=\"Katharina Warzel describes Bayesian Inference in terms of A\/B testing. She guides you through its application and shows you how to interpret results.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/\" \/>\n<meta property=\"og:site_name\" content=\"PROS Resources Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PROSInc\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-12T08:55:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-05T14:09:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/blog_Bayesian_Inference_ajujml.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"473\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Katharina Warzel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use Bayesian Inference In A\/B Testing | AI-powered airline retailing and offer management platform","description":"Katharina Warzel describes Bayesian Inference in terms of A\/B testing. She guides you through its application and shows you how to interpret results.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Bayesian Inference In A\/B Testing | AI-powered airline retailing and offer management platform","og_description":"Katharina Warzel describes Bayesian Inference in terms of A\/B testing. She guides you through its application and shows you how to interpret results.","og_url":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/","og_site_name":"PROS Resources Center","article_publisher":"https:\/\/www.facebook.com\/PROSInc","article_published_time":"2024-06-12T08:55:27+00:00","article_modified_time":"2025-06-05T14:09:36+00:00","og_image":[{"width":870,"height":473,"url":"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/blog_Bayesian_Inference_ajujml.jpg","type":"image\/jpeg"}],"author":"Katharina Warzel","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/#article","isPartOf":{"@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/"},"author":{"name":"Katharina Warzel","@id":"https:\/\/pros.com\/learn\/#\/schema\/person\/cb3b691dd785bba12842e5501954e407"},"headline":"How to Use Bayesian Inference In A\/B Testing","datePublished":"2024-06-12T08:55:27+00:00","dateModified":"2025-06-05T14:09:36+00:00","mainEntityOfPage":{"@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/"},"wordCount":781,"publisher":{"@id":"https:\/\/pros.com\/learn\/#organization"},"image":{"@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/#primaryimage"},"thumbnailUrl":"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/blog_Bayesian_Inference_ajujml.jpg","keywords":["industry-airlines","label-blog-post","language-english","type-airlines-blog","type-blog"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/","url":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/","name":"How to Use Bayesian Inference In A\/B Testing | AI-powered airline retailing and offer management platform","isPartOf":{"@id":"https:\/\/pros.com\/learn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/#primaryimage"},"image":{"@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/#primaryimage"},"thumbnailUrl":"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/blog_Bayesian_Inference_ajujml.jpg","datePublished":"2024-06-12T08:55:27+00:00","dateModified":"2025-06-05T14:09:36+00:00","description":"Katharina Warzel describes Bayesian Inference in terms of A\/B testing. She guides you through its application and shows you how to interpret results.","breadcrumb":{"@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/#primaryimage","url":"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/blog_Bayesian_Inference_ajujml.jpg","contentUrl":"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/blog_Bayesian_Inference_ajujml.jpg","width":870,"height":473},{"@type":"BreadcrumbList","@id":"https:\/\/pros.com\/learn\/blog\/how-use-bayesian-inference-a-b-testing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Resources","item":"https:\/\/pros.com\/learn\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/pros.com\/learn\/blog\/"},{"@type":"ListItem","position":3,"name":"How to Use Bayesian Inference In A\/B Testing"}]},{"@type":"WebSite","@id":"https:\/\/pros.com\/learn\/#website","url":"https:\/\/pros.com\/learn\/","name":"PROS Resources Center","description":"AI-powered airline retailing and offer management platform","publisher":{"@id":"https:\/\/pros.com\/learn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pros.com\/learn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pros.com\/learn\/#organization","name":"PROS, Inc.","url":"https:\/\/pros.com\/learn\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pros.com\/learn\/#\/schema\/logo\/image\/","url":"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/social-default.png","contentUrl":"https:\/\/pros.com\/learn\/wp-content\/uploads\/2025\/06\/social-default.png","width":1200,"height":675,"caption":"PROS, Inc."},"image":{"@id":"https:\/\/pros.com\/learn\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PROSInc","https:\/\/www.instagram.com\/pros.inc\/","https:\/\/www.linkedin.com\/company\/pros\/","https:\/\/www.youtube.com\/user\/PROSpricing"]},{"@type":"Person","@id":"https:\/\/pros.com\/learn\/#\/schema\/person\/cb3b691dd785bba12842e5501954e407","name":"Katharina Warzel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/548a514096510e9fce4a94b3e7c3b851f4bd0e6c404a0ce4d30929f13727bf03?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/548a514096510e9fce4a94b3e7c3b851f4bd0e6c404a0ce4d30929f13727bf03?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/548a514096510e9fce4a94b3e7c3b851f4bd0e6c404a0ce4d30929f13727bf03?s=96&d=mm&r=g","caption":"Katharina Warzel"},"url":"https:\/\/pros.com\/learn\/author\/katharina-warzel\/"}]}},"_links":{"self":[{"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/posts\/4412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/comments?post=4412"}],"version-history":[{"count":0,"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/posts\/4412\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/media\/4411"}],"wp:attachment":[{"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/media?parent=4412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/categories?post=4412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pros.com\/learn\/wp-json\/wp\/v2\/tags?post=4412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}