# Problem of prediction

**URL:** <https://discourse.numenta.org/t/problem-of-prediction/4999>\
**Category:** NuPIC\
**Created:** [November 23, 2018, 11:06pm UTC](https://discourse.numenta.org/t/problem-of-prediction/4999 "2018-11-23T23:06:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![way-sal](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/way-sal/32/3028_2.png) [@way-sal](https://discourse.numenta.org/u/way-sal)\
**Post date:** [November 23, 2018, 11:06pm UTC](https://discourse.numenta.org/t/problem-of-prediction/4999/1 "2018-11-23T23:06:09Z")

</div>

hey guys, I have some understandable keys and I need some of help.  
what I know for detect anomaly:

- we training our model with normal data that mean create a model param with the normal data
- then for the tests, we compare the current data with the pretected data. If they are identical, the current data are note anomalies, if not so it 's an anomaly. This data prediction is created by a mode paraml and this model is created with the normal data.  
but if that’s true, why my plot is like this, the anomaly data is also protected  
 ![numenta](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/2X/0/0f303fd48299cac0836bd880e9f3d7933300661b.png)  
I

---

<div class="post-metadata">

**Author:** ![marty1885](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/marty1885/32/1891_2.png) [@marty1885](https://discourse.numenta.org/u/marty1885)\
**Post date:** [November 26, 2018, 9:55am UTC](https://discourse.numenta.org/t/problem-of-prediction/4999/2 "2018-11-26T09:55:59Z")

</div>

> [@way-sal](#):
>
> but if that’s true, why my plot is like this, the anomaly data is also protected

My guess is that TM is bursting due to unseen pattern (and generating high anomaly score). Thus TM predicts some value but you also see anomaly flagged in the bottom graph.

---

<div class="post-metadata">

**Author:** ![way-sal](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/way-sal/32/3028_2.png) [@way-sal](https://discourse.numenta.org/u/way-sal)\
**Post date:** [November 26, 2018, 10:17pm UTC](https://discourse.numenta.org/t/problem-of-prediction/4999/3 "2018-11-26T22:17:01Z")

</div>

yes, I know that my code detects some anomalys, but I think it’s a bad result because there is a problem of prediction.  
so I think the broblem is in my param model
