# Timelion Algorithms

**URL:** <https://discuss.elastic.co/t/timelion-algorithms/87221>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [May 26, 2017, 9:43am UTC](https://discuss.elastic.co/t/timelion-algorithms/87221 "2017-05-26T09:43:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charlotte\_EGM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charlotte_egm/32/13503_2.png) [@Charlotte\_EGM](https://discuss.elastic.co/u/Charlotte_EGM)\
**Post date:** [May 26, 2017, 9:43am UTC](https://discuss.elastic.co/t/timelion-algorithms/87221/1 "2017-05-26T09:43:43Z")

</div>

Hello,

I was wondering what is the algorithm used in Timelion for the .holt() function. Based on the name I would say Holt-Winters ?

Is there any way to customise the algorithm ? (More than the 4-5 parameters ?)  
Can we also implement our own algorithms in Timelion ?

Basically it is to do better forecasting, but i don't think it is the best way to do it in Kibana/Timelion

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 26, 2017, 9:55am UTC](https://discuss.elastic.co/t/timelion-algorithms/87221/2 "2017-05-26T09:55:31Z")

</div>

> [@Charlotte\_EGM](#):
>
> I was wondering what is the algorithm used in Timelion for the .holt() function. Based on the name I would say Holt-Winters ?

Correct, it's [Moving Average Aggregation | Elasticsearch Reference [5.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/search-aggregations-pipeline-movavg-aggregation.html#_holt_winters)

> [@Charlotte\_EGM](#):
>
> Can we also implement our own algorithms in Timelion ?

Yes, see [GitHub - Fermium/mathlion: Mathlion is an advanced math plugin for Kibana's Timelion](https://github.com/fermiumlabs/mathlion)

---

<div class="post-metadata">

**Author:** ![Charlotte\_EGM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charlotte_egm/32/13503_2.png) [@Charlotte\_EGM](https://discuss.elastic.co/u/Charlotte_EGM)\
**Post date:** [May 26, 2017, 10:07am UTC](https://discuss.elastic.co/t/timelion-algorithms/87221/3 "2017-05-26T10:07:42Z")

</div>

Wouah, thanks a lot !

This MathLion seems to be exactly what I was looking for.

---

<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 23, 2017, 10:07am UTC](https://discuss.elastic.co/t/timelion-algorithms/87221/4 "2017-06-23T10:07:49Z")

</div>

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