# \[v5.x\] How to calculate standard deviation from matrix\_stats?

**URL:** <https://discuss.elastic.co/t/v5-x-how-to-calculate-standard-deviation-from-matrix-stats/68617>\
**Category:** Elasticsearch\
**Created:** [December 10, 2016, 9:20am UTC](https://discuss.elastic.co/t/v5-x-how-to-calculate-standard-deviation-from-matrix-stats/68617 "2016-12-10T09:20:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenshine13](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@Kenshine13](https://discuss.elastic.co/u/Kenshine13)\
**Post date:** [December 10, 2016, 9:20am UTC](https://discuss.elastic.co/t/v5-x-how-to-calculate-standard-deviation-from-matrix-stats/68617/1 "2016-12-10T09:20:43Z")

</div>

When executing the below command:  
"aggs": {  
"matrixstats": {  
"matrix\_stats": {  
"fields": ["my\_field"]  
}  
}  
}  
The return result just contains values such as count, mean, variance, skewness, kurtosis, covariance, correlation.  
I would like to get value of standard deviation, min, max... as well.  
Can anyone help to resolve this point? An example will be helpful.  
Thanks in advance..!

---

<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:** [January 7, 2017, 9:20am UTC](https://discuss.elastic.co/t/v5-x-how-to-calculate-standard-deviation-from-matrix-stats/68617/2 "2017-01-07T09:20:59Z")

</div>

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