Percentiles in Machine learning

Percentiles
Percentiles are used in statistics data to provide you a number that expresses the value that a given percent of the values are lower than.

Example:We have an array of the ages of all the people that working in same office

ages = [25,31,43,48,50,41,39,60,52,32,27,46,47,55]

What is 75. percentile? The answer is 48, meaning that 75% of the people are 48 or younger.

Example to use the NumPy percentile() method to find the percentiles:

import numpy

ages = [25,31,43,48,50,41,39,60,52,32,27,46,47,55]

x = numpy.percentile(ages, 75)

print(x)

 

Keywords: