# Changepoints detection and magnitude in a time series

**URL:** <https://discourse.pymc.io/t/changepoints-detection-and-magnitude-in-a-time-series/10953>\
**Category:** version agnostic\
**Tags:** modeling\
**Created:** [December 5, 2022, 4:23am UTC](https://discourse.pymc.io/t/changepoints-detection-and-magnitude-in-a-time-series/10953 "2022-12-05T04:23:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![drbenvincent](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/drbenvincent/32/4313_2.png) [@drbenvincent](https://discourse.pymc.io/u/drbenvincent)\
**Post date:** [December 6, 2022, 9:44am UTC](https://discourse.pymc.io/t/changepoints-detection-and-magnitude-in-a-time-series/10953/2 "2022-12-06T09:44:14Z")

</div>

Hi. There are a number of other threads here on change point models which could be useful. Eg.

> [@Hierarchical changepoint detection](https://discourse.pymc.io/t/hierarchical-changepoint-detection/10789):
>
> I’m trying to build a changepoint detection model where both the number of changepoints is sampled as well as their respective locations. From what I understand, this would mean the number of switch statements within the defined model is dynamic, depending on the number of changepoints sampled. So far, this kind of hierarchical model can’t be expressed with PyMC. Am I correct, or is there a way to express this model in PyMC?

---

_[View the full topic](https://discourse.pymc.io/t/changepoints-detection-and-magnitude-in-a-time-series/10953)._
