{"id":15674,"date":"2021-07-30T13:45:00","date_gmt":"2021-07-30T20:45:00","guid":{"rendered":"https:\/\/devwww.3cloudsolutions.com\/post\/using-an-event-study-for-causal-analysis-in-power-bi-3\/"},"modified":"2024-01-08T11:35:29","modified_gmt":"2024-01-08T19:35:29","slug":"using-an-event-study-for-causal-analysis-in-power-bi","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/using-an-event-study-for-causal-analysis-in-power-bi\/","title":{"rendered":"Using an Event Study for Causal Analysis in Power BI"},"content":{"rendered":"<p>Anyone who took a statistics course in college likely heard the oft-repeated phrase \u201ccorrelation doesn\u2019t equal causation\u201d. We may have fully embraced this mantra after graduation, but in business, it can be difficult to assess whether two real-world items share a causal relationship or are merely correlated. Treating correlation as if it is causation can have comical or catastrophic implications for an organization. In this article, I discuss how an event study may be the solution to determine once and for all if A causes B.<\/p>\n<h2><img decoding=\"async\" style=\"width: 848px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/12\/Untitled-design17-1.png\" alt=\"Untitled design(17)\" width=\"848\" \/><\/h2>\n<h2><span style=\"color: #007cba;\">About Causal Analysis<\/span><\/h2>\n<p>There are many, complicated ways to conduct a causal analysis; however, an event study is particularly well suited for a tool like <span style=\"color: #007cba;\"><a style=\"color: #007cba;\" href=\"\/blog\/top-10-tips-for-a-successful-power-bi-implementation\" target=\"_blank\" rel=\"noopener\">Microsoft\u2019s Power BI<\/a><\/span>. Similar business intelligence software are better known for describing <em>what happened<\/em> through visualizations rather than <em>why <\/em>something happened. I have written about <a href=\"\/blog\/the-ultimate-list-of-ai-features-in-power-bi\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #007cba;\">the AI features in Power B<\/span>I<\/a> before, but even visuals like <span style=\"color: #007cba;\"><a style=\"color: #007cba;\" href=\"\/blog\/exploring-power-bis-key-influencers\" target=\"_blank\" rel=\"noopener\">Key Influencers<\/a><\/span> and AutoML use pattern recognition instead of identifying a causal pathway. The solution, therefore, is to create an event study.<\/p>\n<h3><strong><img decoding=\"async\" style=\"width: 300px; float: right; margin: 19px 0px 0px 30px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/Picture1-4.png\" alt=\"Picture1-4\" width=\"300\" \/><\/strong><\/h3>\n<h3><span style=\"color: #000000;\"><strong>For Example<\/strong><\/span><\/h3>\n<p>To understand the way an event study works, let me describe how it can be applied to a specific business problem. Imagine there is a bank wanting to understand how customers respond to having valid credit card transactions declined for suspicion of fraud. Consider the figure to the right where each row represents a different bank customer over time. Some customers have a transaction declined by the bank (occurring at the \u201cX\u201d mark) and some customers close their account (occurring at the lock icon). The question is how to determine if transaction declines <em>cause<\/em> account closures or whether the two are merely <em>correlated<\/em>.<\/p>\n<h3><span style=\"color: #000000;\"><strong>The Traditional Approach<\/strong><\/span><\/h3>\n<p>A traditional analysis in Power BI would compare the daily number of account declines against account closures. This could result in a spurious correlation, such as a growing company that concurrently experiences an increase in declines, as well as an increase in account closures due to there simply being more users overall. Ultimately, there is a loss of information when aggregating to the calendar date level, where we do not know if those with declines are the same customers as those closing their accounts.<\/p>\n<h3><img decoding=\"async\" style=\"width: 400px; float: left; margin: 25px 25px 55px 0px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/Picture2-1.png\" alt=\"Picture2-1\" width=\"400\" \/><\/h3>\n<h3><\/h3>\n<h3><span style=\"color: #000000;\"><strong>Why an Event Study?<\/strong><\/span><\/h3>\n<p>An event study, on the other hand, considers what if all events happened on the same day. This is visualized in the figure to the left where the time series for customers who closed their accounts (denoted in blue) are aligned on the date of the closure. And the customers who did not close their accounts (in orange) are not aligned but may still have had a declined transaction. This allows us to make two critical comparisons: \u201cAre those who experience declines more likely to close an account?\u201d and \u201cIs customer behavior before a transaction decline different than behavior after a decline?\u201d. Between these we can identify if one event causes the other, and if so, estimate the size of the effect.<\/p>\n<h3><span style=\"color: #000000;\"><strong>The Solution<\/strong><\/span><\/h3>\n<p>The result looks similar to the below figure, where Day 0 represents when a declined transaction occurs for the blue customers, or an accepted transaction occurs for the orange customers. The horizontal time axis represents the number of positive or negative days from Day 0 while the vertical axis shows the number of account closures each day for the two groups.<\/p>\n<p><img decoding=\"async\" style=\"margin-left: auto; margin-right: auto; display: block; width: 700px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/image-png-Jul-27-2021-03-26-01-48-PM.png\" width=\"700\" \/><\/p>\n<p>We can easily see from the event study how an accepted transaction for the orange customers does not lead to a meaningful change in account closures following Event 0, while a declined transaction for the blue customers is associated with increased account closures for the blue customers. This is consistent with a causal effect that declined transactions do in fact lead customers to close their bank account.<\/p>\n<h3><span style=\"color: #000000;\"><strong>Optional Improvements<br \/>\n<\/strong><\/span><\/h3>\n<p>There are additional specifications and expansions to the model that can improve the modeling. First, is to ensure there are no confounding factors in the sample groups. In this example, it is important that the orange group does not include customers who had declined transactions close to Event 0. Additionally, the blue group could be decomposed into different groups according to the number of declines that had to see if cumulative declines have a larger effect than a single instance. The event study could also be expanded to measure different outcomes, such as the number (or value) of transactions each day, the daily percent of accounts used, or the number of days since the last transaction.<\/p>\n<h2><span style=\"color: #007cba;\">In Conclusion<\/span><\/h2>\n<p>Event studies are a relatively common form of causal analysis within the fields of finance, economics, and marketing. If you ever need to understand the relationship between two events in a way that is easy to understand and visually appealing, then I strongly recommend using an event study for your next Power BI report.<\/p>\n<p>3Cloud offers a variety of <a href=\"\/resources\/\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #007cba;\">resources<\/span><\/a>\u00a0to help you learn how you can best leverage Modern Data Analytics to meet your business needs.<\/p>\n<p>If it sounds like your business could benefit from causal event study services in order to reach your goals with your modern analytics initiatives,\u00a0<a href=\"\/get-started\/\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #007cba;\">contact us<\/span><\/a> directly to see how we can help you explore your options and accelerate your business value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many, complicated ways to conduct a causal analysis; however, an event study is particularly well suited for a tool like Microsoft\u2019s Power BI. Similar business intelligence software are better known for describing what happened through visualizations rather than why something happened.<\/p>\n","protected":false},"author":21,"featured_media":12546,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[394,260],"tags":[309,303,305],"class_list":["post-15674","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-intelligence","category-data-ai","tag-modern-ai-ml","tag-modern-analytics","tag-modern-bi","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=15674"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15674\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/12546"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=15674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=15674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=15674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}