How To Compute Percentiles On A Histogram

A histogram is a graph of a single continuous variable. The variable is first categorized into bins. Then these bins are listed on the x (horizontal) axis. Then a rectangle is placed over the bin, the height of which is proportional to the frequency of the bin.
The percentiles of a distribution are the values that separate the variable into 100 groups of equal frequency.

Step 1

Find the frequency of each bin. You can do this by drawing a horizontal line from the top of each rectangle to the y-axis (the vertical axis) and finding the frequency. You may need to estimate this, if the line is between two tick marks.
Suppose you have a histogram with 5 bins, and the frequencies are 5, 15, 20, 7 and 3.

Step 2

Add the frequencies found in step 1. In the example, the total is 5 + 15 + 20 + 7 + 3 = 50.

Step 3

Divide the frequency for each bin by the total frequency. In the example: 5/50, 15/50, 20/50, 7/50 and 3/50.

Step 4

Divide 100 by the total frequency. In the example 100/50 = 2.

Step 5

Multiply the numerator (top part) of each fraction in step 3 by the quotient in step 4. In the example 52 = 10, 152 = 30, 202 = 40, 72 = 14 and 3*2 = 6.

Step 6

Sum the results cumulatively. That is, add the first two numbers, the first three and so on until you have added them all. These are the percentiles for upper number in each bin. In the example: 10, 10 + 30 = 40, 40 + 40 = 80, 80 + 14 = 94 and 94 + 6 = 100.

Warning

The histogram is not really intended for finding percentiles, and you will often have to approximate.

Cite This Article

MLA

Flom, Peter. "How To Compute Percentiles On A Histogram" sciencing.com, https://www.sciencing.com/compute-percentiles-histogram-8507271/. 24 April 2017.

APA

Flom, Peter. (2017, April 24). How To Compute Percentiles On A Histogram. sciencing.com. Retrieved from https://www.sciencing.com/compute-percentiles-histogram-8507271/

Chicago

Flom, Peter. How To Compute Percentiles On A Histogram last modified March 24, 2022. https://www.sciencing.com/compute-percentiles-histogram-8507271/

Recommended