Machine learning / Percentile / Centile Calculation

It is a measure used in statistics indicating the value below which a given percentage of observations in a group of observations falls.

Example: Let us take a data set of some numbers
Ds= [40,10,20,25,24,40,40,14,16]
Number of points in the data set = 9
Percentiles value = 40.0

Statistical Calculation Python Program Output
Percentiles import numpy
ds = [40,10,20,25,24,40,40,14,16]
Percentilecal = numpy.percentile(ds, 90)
print(Percentilecal)
40.0


Home     Back