-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
Description
I'm trying to use percentile rank metrics and it works quite odd. ElasticSearch docs say - "Percentile rank show the percentage of observed values which are below certain value." which is exactly what I need, though it gives queer results even for small set of docs (5-10 docs)
{
"responses": [
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 7,
"max_score": 0,
"hits": []
},
"aggregations": {
"1": {
"values": {
"22.0": 70.12987012987013,
"23.0": 50
}
}
}
}
]
}
Set of numbers I use: 20, 5, 10, 25, 14, 27, 13
I don't get how it's possible that value 23 shows lower percentage than value 22. Do I misunderstand idea of percentile ranks or it's a bug?
I am using Elastic search 1.4.4
oryband and rcrezende