pymc-devs / pymc-examples

Examples of PyMC models, including a library of Jupyter notebooks.
https://www.pymc.io/projects/examples/en/latest/
MIT License
269 stars 234 forks source link

new Interrupted Time Series notebook #444

Closed drbenvincent closed 1 year ago

drbenvincent commented 1 year ago

New notebook for the causal inference section.

It purposefully follows a very similar template to the causal inference notebooks.

Happy to receive suggestions for improvement of course.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

review-notebook-app[bot] commented 1 year ago

View / edit / reply to this conversation on ReviewNB

lucianopaz commented on 2022-10-15T20:07:52Z ----------------------------------------------------------------

I find the names intercept and linear trend highly misleading. The intercept and linear trend should be the names of the random variables that the model learns (which you can beta0 and beta1). These columns are only for a design matrix. I’m not sure what would be a good name for them though. Maybe some generic x_intercept and x_trend?


review-notebook-app[bot] commented 1 year ago

View / edit / reply to this conversation on ReviewNB

lucianopaz commented on 2022-10-15T20:07:53Z ----------------------------------------------------------------

This comment is linked to the one above. It’s very misleading to call the mutable data intercept and linear trend, when they don’t actually represent those two random variables in the model. I suggest that you change the names of the beta variables to intercept and linear trend, and find an alternative for the mutable data. My succession is to leave them as x_intercept,but I’m not super convinced. If you think of a better alternative, that would be great


drbenvincent commented on 2022-10-16T09:56:08Z ----------------------------------------------------------------

Good feedback. I've removed the intercept 1's as data and just have beta0 now. And I've renamed the other variable to time which makes much more sense.