Time Series Causal Impact Analysis in R | Machine Learning

Опубликовано: 17 Апрель 2026
на канале: Grab N Go Info
1,682
22

CausalImpact package created by Google estimates the impact of an intervention on a time series. For example, how does a new feature on an application affect the users' time on the app?

In this tutorial, we will discuss using the R package `CausalImpact` to do time series causal inference. You will learn:

👉 How to set the pre and post periods for the causal impact analysis?
👉 How to conduct causal inference on time series data?
👉 How to summarize the causality analysis results and create a report?
👉 What are the differences between the python and the R packages for CausalImpact?

⏰ Timecodes ⏰
0:00 - Intro
0:32 - Step 1: Install and Import Libraries
1:21 - Step 2: Create Dataset
2:56 - Step 3: Set Pre and Post Periods
3:57 - Step 4: Raw Differences
4:19 - Step 5: Causal Impact Analysis on Time Series
5:39 - Step 6: Time Series Causal Impact Summary
6:13 - Step 7: CausalImpact Package Differences between Python and R

❤️ Blog post with code for this video:   / time-series-causal-impact-analysis-in-r  
📒 Code Notebook: https://mailchi.mp/0b868f28c0c8/hetfo...
🚛 GrabNGoInfo Machine Learning Tutorials Inventory:   / grabngoinfo-machine-learning-tutorials-inv...  

🏪 Purchase data science and computer science themed products in my Amazon store: https://amzn.to/40HUTsl
🙏 Give me a tip to show your appreciation: https://www.paypal.com/donate/?hosted...
✅ Join Medium Membership: If you are not a Medium member and want to support me as a writer to keep providing free content(😄 Buy me a cup of coffee ☕), join Medium membership through this link:   / membership  
You will get full access to posts on Medium for $5 per month, and I will receive a portion of it. Thank you for your support!

🎞️ Causal Inference playlist:    • Causal Inference  

🔥 Check out more machine learning tutorials on my website!
https://grabngoinfo.com/tutorials/
🛎️ SUBSCRIBE to GrabNGoInfo https://bit.ly/3keifBY
📧 CONTACT me at [email protected]
👩🏻‍💻 Follow me on LinkedIn:   / grabngoinfo  

📣 Speech software used in the video: Descript https://www.descript.com/?lmref=h7XYQw

#causalinference #causality #timeseriesanalysis #datascience #machinelearning #machinelearning