# Timelion STD use season

**URL:** <https://discuss.elastic.co/t/timelion-std-use-season/85027>\
**Category:** Kibana\
**Created:** [May 9, 2017, 7:54am UTC](https://discuss.elastic.co/t/timelion-std-use-season/85027 "2017-05-09T07:54:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertvervaele](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bertvervaele](https://discuss.elastic.co/u/bertvervaele)\
**Post date:** [May 9, 2017, 7:54am UTC](https://discuss.elastic.co/t/timelion-std-use-season/85027/1 "2017-05-09T07:54:45Z")

</div>

Hello everyone,

I have a question about timelion. I'm trying to do some anomaly detection. I use the holt winter of last 4 weeks to predict the value. But I would like to add 3 time the std to it. But I don't want the std calculated on the points of previous hour but of the same points I calculate the holt winter on.  
This is what I have now:

> .es(_),.es(_).holt(0.25,season=1w).sum(.es(\*).mvstd(4).multiply(3))

but is there a way to do something like  
.es(\*).mvstd(4,season=1w)

or is there a way I can fix it with changing .es() ?

---

<div class="post-metadata">

**Author:** ![rashid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashid/32/12566_2.png) [@rashid](https://discuss.elastic.co/u/rashid)\
**Post date:** [May 9, 2017, 5:19pm UTC](https://discuss.elastic.co/t/timelion-std-use-season/85027/2 "2017-05-09T17:19:12Z")

</div>

Unfortunately `.mvstd()` does not support seasonality.

Also `.holt()` is implemented such that only specifying alpha will result in single exponential smoothing: [http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc431.htm](http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc431.htm). So `season=` won't come into play until you've specified beta and gamma.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 6, 2017, 5:31pm UTC](https://discuss.elastic.co/t/timelion-std-use-season/85027/3 "2017-06-06T17:31:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
