# Any case studies about anomaly detection in time series data?

**URL:** <https://discourse.pymc.io/t/any-case-studies-about-anomaly-detection-in-time-series-data/5043>\
**Category:** Questions\
**Created:** [May 8, 2020, 11:21am UTC](https://discourse.pymc.io/t/any-case-studies-about-anomaly-detection-in-time-series-data/5043 "2020-05-08T11:21:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaudioSmith](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@ClaudioSmith](https://discourse.pymc.io/u/ClaudioSmith)\
**Post date:** [May 8, 2020, 11:21am UTC](https://discourse.pymc.io/t/any-case-studies-about-anomaly-detection-in-time-series-data/5043/1 "2020-05-08T11:21:36Z")

</div>

Hi !  
I ask if any of you know of any examples in pymc3 about this type of cases (mainly fraud in the financial market…)

Thankyou all 🙂

---

<div class="post-metadata">

**Author:** ![ckrapu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ckrapu/32/1366_2.png) [@ckrapu](https://discourse.pymc.io/u/ckrapu)\
**Post date:** [May 8, 2020, 6:18pm UTC](https://discourse.pymc.io/t/any-case-studies-about-anomaly-detection-in-time-series-data/5043/2 "2020-05-08T18:18:27Z")

</div>

This is a broad area of research - are there any specific classes of models or data that you are especially interested in? One of the [tutorial docs](https://docs.pymc.io/notebooks/stochastic_volatility.html) shows how to fit a stochastic volatility model to stock returns; while it may not be immediately apparent how this connects to financial fraud, it suggests a powerful modeling strategy. You can assume that there is some latent process generating the data (potentially the state of the market or the fraudulent/non-fraudulent status of some transactions) and then use the data to determine when the system switches states.

---

<div class="post-metadata">

**Author:** ![ClaudioSmith](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@ClaudioSmith](https://discourse.pymc.io/u/ClaudioSmith)\
**Post date:** [May 8, 2020, 7:25pm UTC](https://discourse.pymc.io/t/any-case-studies-about-anomaly-detection-in-time-series-data/5043/3 "2020-05-08T19:25:40Z")

</div>

Yes ! I’m interesting about detection of money laundering between a normal and a criminal account. Do you know of any specific case by chance?  
I find the link you sent me very interesting, thank you.

---

<div class="post-metadata">

**Author:** ![ckrapu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ckrapu/32/1366_2.png) [@ckrapu](https://discourse.pymc.io/u/ckrapu)\
**Post date:** [May 9, 2020, 6:26am UTC](https://discourse.pymc.io/t/any-case-studies-about-anomaly-detection-in-time-series-data/5043/4 "2020-05-09T06:26:01Z")

</div>

I can be most useful if you provide me a clearer idea of what kind of data you are trying to model. Is it integer-valued daily counts of transactions? Positive-valued sizes of transactions? Do you happen to have additional predictors as well? Are there any clearly labeled fraudulent accounts to learn from? Are these data located on a network? Any other clarifications are helpful!
