Skip to content

Comparison notebook: Why flexibility matters?#703

Open
cetagostini wants to merge 4 commits intomainfrom
cetagostini/causalimpact_v_causalpy
Open

Comparison notebook: Why flexibility matters?#703
cetagostini wants to merge 4 commits intomainfrom
cetagostini/causalimpact_v_causalpy

Conversation

@cetagostini
Copy link
Contributor

Add a new Jupyter notebook to docs demonstrating a comparison between Interrupted Time Series (ITS) approaches and Synthetic Control methods. The notebook loads CausalPy's built-in sc dataset, sets up plotting and RNG seed, and walks through applying CausalImpact and CausalPy to the same data (treated unit 'actual', controls a–g, treatment at time 73) to highlight when synthetic control is the more appropriate method.

Add a new Jupyter notebook to docs demonstrating a comparison between Interrupted Time Series (ITS) approaches and Synthetic Control methods. The notebook loads CausalPy's built-in `sc` dataset, sets up plotting and RNG seed, and walks through applying CausalImpact and CausalPy to the same data (treated unit 'actual', controls a–g, treatment at time 73) to highlight when synthetic control is the more appropriate method.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@cursor
Copy link

cursor bot commented Feb 9, 2026

PR Summary

Low Risk
Docs-only change that adds a toctree entry; no runtime or library behavior is affected.

Overview
Adds a new documentation example notebook, its_causalpy_vs_causalimpact.ipynb, to the Comparative Interrupted Time Series section by linking it in docs/source/notebooks/index.md.

Written by Cursor Bugbot for commit a1d4a88. This will update automatically on new commits. Configure here.

@read-the-docs-community
Copy link

read-the-docs-community bot commented Feb 9, 2026

Documentation build overview

📚 causalpy | 🛠️ Build #31356419 | 📁 Comparing a1d4a88 against latest (278e947)


🔍 Preview build

Show files changed (3 files in total): 📝 2 modified | ➕ 1 added | ➖ 0 deleted
File Status
404.html 📝 modified
notebooks/index.html 📝 modified
notebooks/its_causalpy_vs_causalimpact.html ➕ added

@codecov
Copy link

codecov bot commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.35%. Comparing base (278e947) to head (a1d4a88).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #703   +/-   ##
=======================================
  Coverage   94.35%   94.35%           
=======================================
  Files          44       44           
  Lines        7517     7517           
  Branches      456      456           
=======================================
  Hits         7093     7093           
  Misses        262      262           
  Partials      162      162           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant