How to Find the Median and Mean of a Histogram + Examples

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] 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
Section 1 of 2:

Finding the Median of a Histogram

Download Article
  1. How.com.vn English: Step 1 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]
    • 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]
      • 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] 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.
  2. How.com.vn English: Step 2 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]
    • 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
  3. How.com.vn English: Step 3 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] 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.
  4. How.com.vn English: Step 4 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] 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.
  5. How.com.vn English: Step 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]
    • 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]
  6. Advertisement
Section 2 of 2:

Finding the Mean of a Histogram

Download Article
  1. How.com.vn English: Step 1 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] Then, add them all together. This is the same as calculating the area of the graph.
  2. How.com.vn English: Step 2 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] 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]
  3. 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
      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.

      About This Article

      How.com.vn English: Jake Adams
      Co-authored by:
      Academic Tutor
      This article was co-authored by Jake Adams and by How.com.vn staff writer, Carmine Shannon. Jake Adams is an academic tutor and the owner of Simplifi EDU, a Santa Monica, California based online tutoring business offering learning resources and online tutors for academic subjects K-College, SAT & ACT prep, and college admissions applications. With over 14 years of professional tutoring experience, Jake is dedicated to providing his clients the very best online tutoring experience and access to a network of excellent undergraduate and graduate-level tutors from top colleges all over the nation. Jake holds a BS in International Business and Marketing from Pepperdine University. This article has been viewed 6,110 times.
      3 votes - 67%
      Co-authors: 4
      Updated: March 4, 2024
      Views: 6,110
      Categories: Mathematics
      Thanks to all authors for creating a page that has been read 6,110 times.

      Did this article help you?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement