nitinjosephrepo / Google-Causal-Impact-Inferring-the-effect-of-an-event

The Causal Impact model lets you examine ecommerce and marketing time series data to understand whether changes have led to a statistically significant performance improvement. Here's how to use PyCausalImpact to analyse changes in marketing activity or in this case on Boeing stock price

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infer the effects of an event(e.g new campaign launch, website redesign) using Google's Causal Impact model

What is Causal Impact Analysis?

Causal Impact Analysis can reduce the noise and provide real statistical insight into your efforts giving you the confidence to move forward with, or revert, marketing initiatives. The Causal Impact model lets you examine ecommerce and marketing time series data to understand whether changes have led to a statistically significant performance improvement. Here's we use PyCausalImpact to analyse changes to Boeing Stock price after Flight 302 Aircrash. I have used publicly availaible datasets here for analysis as using clients marketing data come with potential privacy concerns.

Applications of causal impact modeling in marketing

Some potential applications for this in Digital marketing:

  1. SEO testing: Did changes to the site have a statistically significant impact upon SEO?
  2. Price changes: Has a change in price had a positive or negative impact upon a specific metric?
  3. Site features: Did the addition or removal of a site feature have an impact upon the site performance?
  4. Promotional campaigns: Did a promotion starting or ending have a significant impact on sales?

Additional Resources on Google's CausalImpact

Examining the model outputs

In our example we are inferring the impact the crash of Ethiopian Airlines Flight 302 had on Boeing Stock

Screen Shot 2023-01-03 at 8 49 11 PM

Our model output is showing that if Flight 302 had not crashed Boeing's stock price was expected to be $422.58, 95% CI [397.63, 446.98] but actual stock price in our period of analysis was $369.48. Thus the impact of the accident on Boeing's stock was -$53.1

About

The Causal Impact model lets you examine ecommerce and marketing time series data to understand whether changes have led to a statistically significant performance improvement. Here's how to use PyCausalImpact to analyse changes in marketing activity or in this case on Boeing stock price


Languages

Language:Jupyter Notebook 100.0%