Download Article
Ace your next statistics test with this helpful walk-through
Download Article
Histograms, or frequency distributions, are statistical graphs that show how often a given value is observed in a set of data. [1] X Research source [v161418_b01. Tuesday, January 24, 2023. To find the median, or middle value, of a histogram, add up every value in your data set, then add 1, and divide the result by 2. If you’re struggling with your stats homework, keep reading to get more detailed equations, plus tips on how to understand them.
Things You Should Know
- Add up all of the frequencies in the histogram. If you don’t have the frequencies yet, multiply the x value range of each bar by their y value (height).
- If the value is odd, add 1 and divide by 2 to find the median. The equation is n +1 / 2 where n equals the total value of frequencies.
- If the value is even, find the average of the middle two numbers. The equation is n / 2 +( n / 2 +1) / 2
Steps
Section 1 of 2:
Finding the Median of a Histogram
-
Determine the values of each bar on the histogram. If your problem doesn’t give you the total value of a given “bin” (the x -axis range, for example, 1-5) of the histograms, multiply the bin by the y -axis value. [2] X Research source
- For example, if you have a bin with a range of 15 (1-15, 15-30, etc.) with a y -axis value of 20, the total value of that bin would be 15x20=300.
- Usually, the bins on a histogram are uniform (all 15 wide, for example), but if you’re working on a homework assignment, your teacher may make the bins different ranges to make it more difficult. [3]
X
Research source
- For example, you may have a bin with a range of 20 and another with a range of 25.
- Consider writing your values in a frequency table. Frequency tables have two columns, one with values and one with how many times that value was recorded. [4] X Research source So if the value “1” was recorded 7 times and the value “2” was recorded 3 times, then the first row of the table would be 1,7 and the second would be 2,3.
-
Add all of the frequencies together. Once you have the value of each bin, add all of them together to get the total value of frequencies on the graph. [5] X Research source
- So if you have 3 bins with ranges of 15, one with a y value of 20, one with a y value of 30, and one with a y value of 40, the total value of frequencies on the graph would be (15x20) + (15x30) + (15x40) = 1350.
- The sum of the frequencies is also the total area of the graph.
Advertisement -
If the value is odd, add 1 to the total value, then divide it by two. In mathematical notation, the equation looks like n +1 / 2 . [6] X Research source The median is the exact middle of a data set, so it’s the value of the number equidistant from 1 to the total sum
- For example, 3 is the median of a data set with a summed value of 5: 5+1 / 2 = 3, 1, 2, 3 , 4, 5.
-
If the value is even, take the average of the middle two numbers. Since even numbers don’t have an exact middle, divide the number by 2, then find the average of that number and the following number. [7] X Research source In mathematical nomination, the equation is n / 2 +( n / 2 +1) / 2 .
- So if your total value were 10, you would find the median by plugging in 5 for n / 2 and 6 for n / 2 + 1. 10 / 2 +( 10 / 2 +1) / 2 = 5+6 / 2 = 5.5.
-
Estimate the exact value by using the equation L + ( n / 2 - F / f ) w . Make L = the lower limit of the bin the median falls in, n = the sum of all the frequencies on the histogram, F = the sum of all the frequencies up to the median bin, f = the y value of the median bin, and w = the x value range of the median bin. [8] X Research source
- F represents a cumulative frequency. Calculate cumulative frequency by adding the total values of each bin up until the bin that the median falls in. So if your median is in the bin "30-40" and your graph starts at zero, add the total values of bins 0-10, 10-20, and 20-30.
- If your histogram’s total value was 180, your median bin had an x
-value of 30-40 and a y
value of 35, and the cumulative frequency up to that bin was 60, then your equation would look like (30+ 180
/ 2
- 60
/ 35
)10 = (30+ 90 - 60
/ 35
)10 = (30+ 30
/ 35
)10 = (30+0.857)10 = 38.57.
- The result of this equation is the value on the x-axis that has equal areas on either side. So the area of the graph on the left is equal to the area of the graph on the right of the value. [9] X Research source
Advertisement
Section 2 of 2:
Finding the Mean of a Histogram
-
Add all of the values in the histogram. Multiply the width of each bin by the height ( x -axis range of each bar by the y -axis value). [10] X Research source Then, add them all together. This is the same as calculating the area of the graph.
-
Divide the sum of the values by the number of data points. To find the average value in the graph, divide the total from the last step by the number of values that were recorded. [11] X Research source So if you have a graph with 15 data points that add up to 300, then the mean would be 300 / 15 = 20.
- It may help to make a frequency table. To make the table, write all of the values that were recorded in one column, then write how many times each given value was recorded in the next column. [12] X Research source
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Expert Interview
Thanks for reading our article! If you’d like to learn more about mathematics, check out our in-depth interview with Sophie Amphlett .
References
- ↑ [v161418_b01. Tuesday, January 24, 2023.
- ↑ https://youtu.be/-haVXyCHMSs?t=422
- ↑ https://youtu.be/85y2Qs-lVc8?t=17
- ↑ https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch11/mean-moyenne/5214871-eng.htm
- ↑ https://youtu.be/-haVXyCHMSs?t=489
- ↑ https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch11/median-mediane/5214872-eng.htm
- ↑ https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch11/median-mediane/5214872-eng.htm
- ↑ https://www2.microstrategy.com/producthelp/current/FunctionsRef/Content/FuncRef/Hist_Median.htm
- ↑ https://youtu.be/85y2Qs-lVc8?t=175
About This Article
Thanks to all authors for creating a page that has been read 25,884 times.
Advertisement