# Kibana result machine learning job contain negative values

**URL:** <https://discuss.elastic.co/t/kibana-result-machine-learning-job-contain-negative-values/274525>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [May 31, 2021, 2:43pm UTC](https://discuss.elastic.co/t/kibana-result-machine-learning-job-contain-negative-values/274525 "2021-05-31T14:43:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oskr](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@Oskr](https://discuss.elastic.co/u/Oskr)\
**Post date:** [May 31, 2021, 2:43pm UTC](https://discuss.elastic.co/t/kibana-result-machine-learning-job-contain-negative-values/274525/1 "2021-05-31T14:43:19Z")

</div>

Hi,  
I have a question about the results obtained when I run my machine learning job, when I check the anomalies I find that in typical values there are negative values but in my index I don't have negative values.

Why this behavior is occurring?

 ![negative values](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75f11701604a3d7dbbe365f94337567ae8d96ac3.png)

---

<div class="post-metadata">

**Author:** ![walterra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/walterra/32/139867_2.png) [@walterra](https://discuss.elastic.co/u/walterra)\
**Post date:** [June 1, 2021, 8:52am UTC](https://discuss.elastic.co/t/kibana-result-machine-learning-job-contain-negative-values/274525/2 "2021-06-01T08:52:06Z")

</div>

Hi Oscar,

If there aren't any erroneous negative values in the source data, still, not all distribution models are constrained to have only positive values. If the algorithm selects one of these models as the most appropriate it can report negative values even if the data being fitted are all positive, for example, if the values are very skewed and many are close to zero. The unsupervised model is technically not aware of any domain knowledge of the source data like a range of values all above zero.

---

<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 29, 2021, 8:52am UTC](https://discuss.elastic.co/t/kibana-result-machine-learning-job-contain-negative-values/274525/3 "2021-06-29T08:52:26Z")

</div>

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