<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ola Lindeberg on Medium]]></title>
        <description><![CDATA[Stories by Ola Lindeberg on Medium]]></description>
        <link>https://medium.com/@ola.magnus.andersson?source=rss-2bd81fe7dd17------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Ola Lindeberg on Medium</title>
            <link>https://medium.com/@ola.magnus.andersson?source=rss-2bd81fe7dd17------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:32:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ola.magnus.andersson/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why you can not be data driven with data alone]]></title>
            <link>https://medium.com/@ola.magnus.andersson/why-you-can-not-be-data-driven-with-data-alone-6be0b27bcb08?source=rss-2bd81fe7dd17------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be0b27bcb08</guid>
            <category><![CDATA[causal-inference]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[data-driven]]></category>
            <dc:creator><![CDATA[Ola Lindeberg]]></dc:creator>
            <pubDate>Mon, 09 Dec 2024 12:44:46 GMT</pubDate>
            <atom:updated>2024-12-09T12:44:46.651Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*13_T8Bfeczq4-0jM" /><figcaption>Photo by <a href="https://unsplash.com/@hostreviews?utm_source=medium&amp;utm_medium=referral">Stephen Phillips - Hostreviews.co.uk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sometime ago I had a teaching session where I showed analysts that you can not be data driven with data alone. This was not my main goal, but it seems like it gave the biggest impression. To paraphrase a seasoned analytics professional during this session, “What! How is that even possible?”. If you work with data and analytics, either as a stakeholder or as an analyst, then this article will be helpful, unless you already know a lot about causal inference. But based on my experience, just mentioning those two words will leave 99% of the readers clueless to what I am talking about. So, I will adhere to the readers that do not need to know any details, but need intuition. A motivating example for analysts and for stakeholders, help on how to interact with analysts.</p><h4>Same data — different conclusions</h4><p>Being data-driven makes sense for me. It should be better to support your decisions with data rather than not having any data. Whether or not it is in your organization or private life. It is also implied that with the help of data we can find the answer to our questions. Then, you would hope that with the same question and data, we will obtain the same answer. But that is not the case! I will show you this later on, but first we will look at an<a href="https://www.sciencedirect.com/science/article/pii/S0749597821000200"> article</a> showcasing this problem. Independent analysts were tasked to answer two hypotheses regarding the effects of scientists’ gender and professional status on verbosity during group meetings. The analysts had the same data and questions to answer. The researchers removed contributions that were not of high enough standard, e.g. statistical errors, no reproducibility. The final sample contained 29 analyses, with “radically different analyses and dispersed empirical outcomes, in a number of cases obtaining significant effects in opposite directions for the same research question”. Even if everything is done correctly from a statistics point of view (statistical significance, big sample sizes and correct applied tests), the conclusion can be wrong. This phenomenon is especially common when working with non-experimental data, which is the vast amount of data available in commercial settings.</p><blockquote>Radically different analyses and dispersed empirical outcomes, in a number of cases obtaining significant effects in <strong>opposite </strong>directions for the same research question</blockquote><h4>Was the campaign successful?</h4><p>Your company has been promoting product A in a recent campaign, where an email was sent to some customers. Marketing wants to know if the campaign was successful or not. What is the easiest way to analyze the campaign? You compare the outcome, bought product A, for customers who received the email and those that did not. In many cases this is a bad idea, but it is very common, <em>especially when analysts are stressed and need to produce answers fast</em><strong>. </strong>Before we go through the different ways we can analyze the campaign we need to know what data that is available.</p><ul><li><strong>Outcome</strong>: If the customer bought product A.</li><li><strong>Promotion: </strong>If we sent an email to the customer.</li><li><strong>Time spent reading reviews</strong>. Assume we can measure how long a customer can read reviews.</li><li><strong>Income: </strong>Approximate level of income for each customer</li><li><strong>Total spend: </strong>How much a customer is buying, including the cost of product A.</li></ul><p>Marketing has decided that customers with a higher income should receive the promotion to a higher extent, since it is known that customers with higher income also buy product A more often. Sadly, product A has received a lot of bad reviews as of lately which hurts the sales. Many of the issues have been fixed, but the bad reviews are still to be seen. The easiest way to visualize how the data points are connected is through a graph.</p><h4>How is it all connected?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*9kBm6lb0NG-_cmKsXLySuw.png" /></figure><p>If you like bubbles (nodes) and arrows (edges), then you are in for a treat! Each bubble and arrow represents how the data is connected and how they affect each other. For instance, promoting the product increases the number of reviews read, which is visualized with a dark green arrow emerging from <em>Promotion Product A</em> and pointing towards <em>Reading reviews</em>. I have colored the arrows, where a green arrow represents increase and red represents a decrease. In this case we only have one red arrow, reading reviews is hurting the number of sales since the product has received low scores by customers.</p><p>If you want to know the effectiveness of the campaign, the correct way to analyze the data based on the graph above is to adjust for customer income since this is a confounder. Stakeholders, make sure that confounders are included in the analysis. Your domain knowledge is key to correct conclusions. It is very helpful, both for the analyst and the stakeholder to draw graphs like the one seen above together. This will serve as a common understanding of the assumptions in the analysis. In this specific case we can even measure how reading reviews are affecting the outcome (indirect effect) as well the direct effect of receiving an email promoting the product. Finally, we are ready to analyze the data and we will analyze it in as many ways as possible. If you want to check out the code, it is available<a href="https://github.com/olamagnusandersson/demo_promotion_analysis/tree/main"> here</a>.</p><h4>Analyzing the data</h4><p>I have analyzed the data in four different ways:</p><ul><li>A simple comparison without any adjustments, customers who received the email (~90.5% conversion) versus customers that did not receive the email (87.6% conversion).</li><li>Correctly analyze the data by adjusting for income</li><li>Include total spend (collider) and income. This is wrong and will bias the data</li><li>Include all data points available. In my experience, this is the second most common approach, only being beaten by doing no adjustments at all.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*rgLGXZHCJy9vZnmwO_bbWg.png" /><figcaption>Image: Author</figcaption></figure><p>This is “How is it even possible?” moment I introduced the article with. In the table above we can see the results ranging from a very positive campaign to a disaster. If we would analyze how much reading the reviews did hurt our sales we would find out that it was the deciding factor. That is possible in this example since we had access to a mediator (time spent on reading reviews) which can give insights on why a campaign is successful or not. Including all variables is especially interesting since all of the parameters were statistically significant, which normally is interpreted as a good sign. This makes it especially hard for an analyst that wants to be purely data driven. If it is significant, then they should be in the model right? It is now that we must remind ourselves that the goal is to evaluate the campaign and not to create statistically significant parameter estimates.</p><h4>Conclusions</h4><p>We have seen that data by itself can not provide a uniform answer to a question, making it impossible to be purely <em>data-driven </em>as sometimes inferred from proponents of this approach. That is not the same as saying that we should give up and only trust our guts and go with the HIPPO ( highest-paid person opinion) approach. Data is very useful but it requires stakeholders and analysts to work closely, especially when you analyze data that is non-experimental. <em>As a stakeholder</em> it is important to understand the method and assumptions that were made by the analyst. You don’t need to know how a logistic regression model works, but rather what was included in the analysis and why. Rule of thumb, make sure that all confounders are included and nothing else. <em>As an analyst </em>you need to think about how the data has been generated and how it can affect the outcome.</p><p>Sometimes it can feel a bit stressful to do everything correct. I like to think of it as a spectrum, where we strive to do better and learning some causal inference is a great tool to do just that. I still learn and a great method is to write articles like this. I hope you found it useful as well!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be0b27bcb08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Decision Engine: What Should I Do with My Customers?]]></title>
            <link>https://medium.com/@ola.magnus.andersson/building-a-decision-engine-what-should-i-do-with-my-customers-2c9b72ce862d?source=rss-2bd81fe7dd17------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c9b72ce862d</guid>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[customer-value-management]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[causal-inference]]></category>
            <dc:creator><![CDATA[Ola Lindeberg]]></dc:creator>
            <pubDate>Wed, 20 Nov 2024 11:45:24 GMT</pubDate>
            <atom:updated>2024-11-24T11:17:03.051Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>Old problems and old solutions?</h3><p>Do you work in an environment where models and rules dictate how to interact with your customers? Perhaps you’ve ventured into AI (formerly known as machine learning) to harness the power of data. Then, let me share a story that requires no prior knowledge of AI, models, or modern technology but at the same time is worth reading, regardless if you have a background in business or technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MdV6ln2pPv2RqWpl" /><figcaption>What path should you take? Photo by <a href="https://unsplash.com/@burst?utm_source=medium&amp;utm_medium=referral">Burst</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>What path should you take?</h4><p>Many years ago, I worked in the armed forces, where I learned to use scenarios for planning sessions: <em>What is the most likely outcome if we take this action? What is the most dangerous one?</em> These scenarios informed our decisions and strategies. I found this approach powerful and still do, especially in the context of personalization and AI.</p><p>Today, I’m interested in how we can build machines to aid decision-making. What if we blended scenario planning, AI, and personalization to achieve business goals? While this isn’t a novel idea — predicting customer behavior and acting on it has been around for <a href="https://home.cs.colorado.edu/~mozer/Research/Selected%20Publications/reprints/churn">almost 25 years</a>— it’s worth exploring how to go beyond these conventional approaches.</p><h3>Designing a decision engine</h3><p>Imagine your company sells three products — A, B, and C. Customers can own one, two, or all three. Your goal is to increase customer value (profits), perhaps by encouraging customers to adopt more products. You’ve developed several offers. Now comes the big question: <em>Which customers should receive which offers?</em></p><p>Decision-making isn’t just about maximizing a single metric like profits; it must align with your business strategy and competitive landscape. For example, if your goal is to reach 3,500 customers with an offer for Product C, how will that affect profits?</p><p>Think of this as adjusting levers: some you can control (e.g., the number of customers you target) and some you cannot (e.g., how many products they buy). Our decision engine must allow us to “pull” these levers and observe outcomes.</p><h4>What data do we need?</h4><p>Start with the outcomes you care about, such as sales, profit, or customer lifetime value. Since profits are a priority, data on revenue and costs is a must. Agreeing on definitions for these metrics can be an exercise in itself but including this data is almost always uncontroversial.</p><p>Many decision systems rely heavily on customer data (e.g., demographics, usage patterns) to predict behaviors like churn or conversion. While sometimes useful, only having outcome and customer data limits us and create some implications that are not often discussed. Sometimes the discussion will revolve around the particular models used. But I have yet to see a situation where the explanation of a model, such as explaining Xtreme Gradient Boosting leads to a better design of a decision engine.</p><p>Instead, consider a broader approach: include data on the offers communicated to customers. After all, we assume that offers influence behavior. If that is not the case, then why are we even building this engine? Yet many systems and articles about decision engines omit this type of data.</p><h3>Building and running the engine</h3><p>For each customer, you have four options: communicate an offer for Product A, B, C, or not communicate at all. Your decision engine must estimate the outcomes of each action.</p><p>Here, two modeling approaches come into play:</p><ol><li><strong>Prediction Modeling</strong>: Calculates the probability of a customer buying Product A (or any other product).</li><li><strong>Uplift Modeling</strong>: Estimates how much an offer changes the likelihood of a customer buying a product.</li></ol><p>Both methods rank customers, but uplift modeling incorporates the impact of past offers. Sometimes this ranking is called customer segmentation.</p><p>Next, we add levers — targets for the number of customers to communicate with for each offer. Once this is added, we are ready to look at how the engine works.</p><h3>Comparing Outcomes</h3><p>Below is an example of results from a decision engine using prediction and uplift models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGjXgVWGVUSwdxqsIZe7dw.png" /><figcaption>Comparison of outcome using prediction and uplift models in a decision engine with levers. Image by author.</figcaption></figure><ul><li><strong>Inputs Used in the Decision Engine</strong>: Set your target for the number of customers you want to communicate with for each product. In this case, our strategy is to prioritize Product C, so we set a higher number as input. The engine is also robust enough to handle unsolvable targets, such as when the total number of customers you want to target exceeds the actual number of customers available.</li><li><strong>Estimated Results</strong>: Uplift models yield higher profits — around 3.5% in this simulation. Your actual results will vary, but uplift models are gaining popularity for good reason.</li><li><strong>Targeted Customers</strong>: Uplift models often suggest targeting fewer customers than prediction models. Why? Overcommunication can backfire, incurring costs (e.g., discounts) or irritating customers.</li><li><strong>Baseline Comparison</strong>:<br>Lastly, the engine provides a comparison with an unrestricted baseline. This baseline maximizes profits without considering any predefined targets or input from decision-makers, offering a useful point of reference.</li></ul><h3>See It in Action</h3><p>I’ve also attached a video demonstrating the decision engine running in real time.</p><p>If this article resonates with you, feel free to connect with me on <a href="http://www.linkedin.com/in/olalindeberg">LinkedIn</a>. Let’s discuss how these concepts can drive value for your business! If you are interested in how I used the different approaches you can check out my <a href="https://github.com/olamagnusandersson/demo_treatment_allocation">code</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAxnQonewPlQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAxnQonewPlQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAxnQonewPlQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d90dc0198e6e5b8b68c47d4a62127486/href">https://medium.com/media/d90dc0198e6e5b8b68c47d4a62127486/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c9b72ce862d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Something about problem solving]]></title>
            <link>https://medium.com/@ola.magnus.andersson/something-about-problem-solving-21745390ce84?source=rss-2bd81fe7dd17------2</link>
            <guid isPermaLink="false">https://medium.com/p/21745390ce84</guid>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[human-behavior]]></category>
            <category><![CDATA[ideas]]></category>
            <dc:creator><![CDATA[Ola Lindeberg]]></dc:creator>
            <pubDate>Tue, 08 Oct 2019 09:52:50 GMT</pubDate>
            <atom:updated>2019-10-08T09:52:50.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w7D1oVjc1P6AFHum8mmgig.jpeg" /></figure><p>Recently I was asked to share some advice on problem solving. If I could give only one piece of advice it would be: Stay on the problem. I could be more specific and talk about the framing of the problem, too narrow definition and so on, but I will keep it as basic as possible. Frankly, many of us have heard about this before, but we still don’t stay on the problem when faced with one. I would argue that it is partially because staying on a problem is hard while spawning solutions and ideas is easier and more fun for the majority of us.</p><p>I would like to remind you to stay on the problem. If you don’t, you will risk to solve something else. The solution might be great, but solving the wrong problem could come with a high price.</p><h3>We love creative solutions</h3><p>One time a class of preschool children were asked to sort leaves that they had found in the forest on a white sheet. One child suggested that they could sort by type and started. This was continued in various forms, such as size, color and so forth. The teacher observed the children and one of them sorted the leaves in a strange way. It was not clear to the teacher how the child sorted the leaves. After a while the teacher asked about the sorting and the child replied — I’m sorting them as a castle!</p><p>We love stories like this, unexpected and creative solutions. I think a lot of us would like to be that person, the one that brings a new perspective and finds a completely new approach. Since we want to solve the problem we focus on the solutions, which can steer us in the wrong direction. If you more or less always do this I would suggest to try to stay on the problem.</p><p>Imagine yourself in a room with a group of people. You are all blindfolded and told that there is a rope hidden in the room. Your task is to find the rope and to make a square. Pause for a second. What would you do and how would you solve it? In my experience most of us start to think about how you make a square with a rope when no one can see anything. But you don’t necessarily need to use the rope to make a square, you could make it however you like it!</p><h3>Stay on the problem</h3><p>When the focus is on understanding the problem, rather than finding solutions, then you are staying on the problem. You should realize that it is hard to not immediately look for solutions and I don’t have a complete guide that will solve this behavior. Secondly, this is not something where you can check a box and be done with it. Some problems will require several rounds of analysis as more information becomes available. If you are not staying on the problem you need to ask yourself why. Is it because of lacking knowledge and techniques or something else? Once you think you know why you don’t stay on the problem it is time to try one solution and evaluate it. There is no point to just analyse problems and never try solutions. It is a spectrum, where on one end you only analyse problems and never try solutions and on the other end you only try solutions and never analyse. You should avoid being at either end. My point is that the mindset is more important than the specific solution that you go after. Next time you face a problem, allow yourself to analyse the problem before you suggest a solution. If you do, maybe you will be the next person that sorts the leaves as a castle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21745390ce84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>