digplanet beta 1: Athena
Share digplanet:

Agriculture

Applied sciences

Arts

Belief

Business

Chronology

Culture

Education

Environment

Geography

Health

History

Humanities

Language

Law

Life

Mathematics

Nature

People

Politics

Science

Society

Technology

Histogram
Histogram of arrivals per minute.svg
First described by Karl Pearson
Purpose To roughly assess the probability distribution of a given variable by depicting the frequencies of observations occurring in certain ranges of values

In statistics, a histogram is a graphical representation of the distribution of data. It is an estimate of the probability distribution of a continuous variable and was first introduced by Karl Pearson.[1] A histogram is a representation of tabulated frequencies, shown as adjacent rectangles, erected over discrete intervals (bins), with an area equal to the frequency of the observations in the interval. The height of a rectangle is also equal to the frequency density of the interval, i.e., the frequency divided by the width of the interval. The total area of the histogram is equal to the number of data. A histogram may also be normalized displaying relative frequencies. It then shows the proportion of cases that fall into each of several categories, with the total area equaling 1. The categories are usually specified as consecutive, non-overlapping intervals of a variable. The categories (intervals) must be adjacent, and often are chosen to be of the same size.[2] The rectangles of a histogram are drawn so that they touch each other to indicate that the original variable is continuous.[3]

Histograms are used to plot the density of data, and often for density estimation: estimating the probability density function of the underlying variable. The total area of a histogram used for probability density is always normalized to 1. If the length of the intervals on the x-axis are all 1, then a histogram is identical to a relative frequency plot.

An alternative to the histogram is kernel density estimation, which uses a kernel to smooth samples. This will construct a smooth probability density function, which will in general more accurately reflect the underlying variable.

The histogram is one of the seven basic tools of quality control.[4]

Contents

Etymology [edit]

An example histogram of the heights of 31 Black Cherry trees.

The etymology of the word histogram is uncertain. Sometimes it is said to be derived from the Greek histos 'anything set upright' (as the masts of a ship, the bar of a loom, or the vertical bars of a histogram); and gramma 'drawing, record, writing'. It is also said that Karl Pearson, who introduced the term in 1891, derived the name from "historical diagram".[5]

Examples [edit]

The U.S. Census Bureau found that there were 124 million people who work outside of their homes.[6] Using their data on the time occupied by travel to work, Table 2 below shows the absolute number of people who responded with travel times "at least 15 but less than 20 minutes" is higher than the numbers for the categories above and below it. This is likely due to people rounding their reported journey time.[citation needed] The problem of reporting values as somewhat arbitrarily rounded numbers is a common phenomenon when collecting data from people.[citation needed]

Histogram of travel time (to work), US 2000 census. Area under the curve equals the total number of cases. This diagram uses Q/width from the table.
Data by absolute numbers
Interval Width Quantity Quantity/width
0 5 4180 836
5 5 13687 2737
10 5 18618 3723
15 5 19634 3926
20 5 17981 3596
25 5 7190 1438
30 5 16369 3273
35 5 3212 642
40 5 4122 824
45 15 9200 613
60 30 6461 215
90 60 3435 57

This histogram shows the number of cases per unit interval so that the height of each bar is equal to the proportion of total people in the survey who fall into that category. The area under the curve represents the total number of cases (124 million). This type of histogram shows absolute numbers, with Q in thousands.

Histogram of travel time (to work), US 2000 census. Area under the curve equals 1. This diagram uses Q/total/width from the table.
Data by proportion
Interval Width Quantity (Q) Q/total/width
0 5 4180 0.0067
5 5 13687 0.0221
10 5 18618 0.0300
15 5 19634 0.0316
20 5 17981 0.0290
25 5 7190 0.0116
30 5 16369 0.0264
35 5 3212 0.0052
40 5 4122 0.0066
45 15 9200 0.0049
60 30 6461 0.0017
90 60 3435 0.0005

This histogram differs from the first only in the vertical scale. The height of each bar is the decimal percentage of the total that each category represents, and the total area of all the bars is equal to 1, the decimal equivalent of 100%. The curve displayed is a simple density estimate. This version shows proportions, and is also known as a unit area histogram.

In other words, a histogram represents a frequency distribution by means of rectangles whose widths represent class intervals and whose areas are proportional to the corresponding frequencies. The intervals are placed together in order to show that the data represented by the histogram, while exclusive, is also continuous. (E.g., in a histogram it is possible to have two connecting intervals of 10.5–20.5 and 20.5–33.5, but not two connecting intervals of 10.5–20.5 and 22.5–32.5. Empty intervals are represented as empty and not skipped.)[7]

Mathematical definition [edit]

An ordinary and a cumulative histogram of the same data. The data shown is a random sample of 10,000 points from a normal distribution with a mean of 0 and a standard deviation of 1.

In a more general mathematical sense, a histogram is a function mi that counts the number of observations that fall into each of the disjoint categories (known as bins), whereas the graph of a histogram is merely one way to represent a histogram. Thus, if we let n be the total number of observations and k be the total number of bins, the histogram mi meets the following conditions:

n = \sum_{i=1}^k{m_i}.

Cumulative histogram [edit]

A cumulative histogram is a mapping that counts the cumulative number of observations in all of the bins up to the specified bin. That is, the cumulative histogram Mi of a histogram mj is defined as:

M_i = \sum_{j=1}^i{m_j}.

Number of bins and width [edit]

There is no "best" number of bins, and different bin sizes can reveal different features of the data. Grouping data is as least as old as Graunt's work in the 17th century, but no systematic guidelines were given[8] until Sturges's work in 1926[9]


Some theoreticians have attempted to determine an optimal number of bins, but these methods generally make strong assumptions about the shape of the distribution. Depending on the actual data distribution and the goals of the analysis, different bin widths may be appropriate, so experimentation is usually needed to determine an appropriate width. There are, however, various useful guidelines and rules of thumb.[10]

The number of bins k can be assigned directly or can be calculated from a suggested bin width h as:

k = \left \lceil \frac{\max x - \min x}{h} \right \rceil.

The braces indicate the ceiling function.

Square-root choice
k = \sqrt{n}, \,

which takes the square root of the number of data points in the sample (used by Excel histograms and many others).[citation needed]

Sturges' formula

Sturges' formula[9] is derived from a binomial distribution and implicitly assumes an approximately normal distribution.

k = \lceil \log_2 n + 1 \rceil, \,

It implicitly bases the bin sizes on the range of the data and can perform poorly if n < 30.[citation needed] It may also perform poorly if the data are not normally distributed.

Rice Rule
h = 2 n^{1/3},

The Rice Rule [11] is presented as a simple alternative to Sturges's rule.

Doane's formula

Doane's formula[12] is a modification of Sturges' formula which attempts to improve its performance with non-normal data.

 k = 1 + log_2( n ) + log_2 ( 1 +  \frac { |g_1| }{\sigma_{g_1}} )

where g_1 is the estimated 3rd-moment-skewness of the distribution and

 \sigma_{g_1} = \sqrt { \frac { 6(n-2) }{ (n+1)(n+3) } }
Scott's normal reference rule
h = \frac{3.5 \hat \sigma}{n^{1/3}},

where \hat \sigma is the sample standard deviation. Scott's normal reference rule[13] is optimal for random samples of normally distributed data, in the sense that it minimizes the integrated mean squared error of the density estimate.[8]

Freedman–Diaconis' choice

The Freedman–Diaconis rule is:[14][8]

h = 2 \frac{\operatorname{IQR}(x)}{n^{1/3}},

which is based on the interquartile range, denoted by IQR. It replaces 3.5σ of Scott's rule with 2 IQR, which is less sensitive than the standard deviation to outliers in data.

Choice based on minimization of an estimated L2[15] risk function


 \underset{h}{\operatorname{arg\,min}} \frac{ 2 \bar{m} - v } {h^2}

where \textstyle \bar{m} and \textstyle v are mean and biased variance of a histogram with bin-width \textstyle h, \textstyle \bar{m}=\frac{1}{k} \sum_{i=1}^{k}  m_i and \textstyle v= \frac{1}{k} \sum_{i=1}^{k} (m_i - \bar{m})^2 .

Remark

A good reason why the number of bins should be proportional to n^{1/3} is the following: suppose that the data are obtained as n independent realizations of a bounded probability distribution with smooth density. Then the histogram remains equally »rugged« as n tends to infinity. If s is the »width« of the distribution (e. g., the standard deviation or the inter-quartile range), then the number of units in a bin (the frequency) is of order n h/s and the relative standard error is of order \sqrt{s/(n h)}. Comparing to the next bin, the relative change of the frequency is of order h/s provided that the derivative of the density is non-zero. These two are of the same order if h is of order s/n^{1/3}, so that k is of order n^{1/3}.

This simple cubic root choice can also be applied to bins with non-constant width.

See also [edit]

References [edit]

  1. ^ Pearson, K. (1895). "Contributions to the Mathematical Theory of Evolution. II. Skew Variation in Homogeneous Material". Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences 186: 343–414. Bibcode:1895RSPTA.186..343P. doi:10.1098/rsta.1895.0010.  edit
  2. ^ Howitt, D. and Cramer, D. (2008) Statistics in Psychology. Prentice Hall
  3. ^ Charles Stangor (2011) "Research Methods For The Behavioral Sciences". Wadsworth, Cengage Learning. ISBN 9780840031976.
  4. ^ Nancy R. Tague (2004). "Seven Basic Quality Tools". The Quality Toolbox. Milwaukee, Wisconsin: American Society for Quality. p. 15. Retrieved 2010-02-05. 
  5. ^ M. Eileen Magnello (December 2006). "Karl Pearson and the Origins of Modern Statistics: An Elastician becomes a Statistician". The New Zealand Journal for the History and Philosophy of Science and Technology. 1 volume. OCLC 682200824. 
  6. ^ US 2000 census.
  7. ^ Dean, S., & Illowsky, B. (2009, February 19). Descriptive Statistics: Histogram. Retrieved from the Connexions Web site: http://cnx.org/content/m16298/1.11/
  8. ^ a b c Scott, David W. (1992). Multivariate Density Estimation: Theory, Practice, and Visualization. New York: John Wiley. 
  9. ^ a b Sturges, H. A. (1926). "The choice of a class interval". Journal of the American Statistical Association: 65–66. JSTOR 2965501. 
  10. ^ e.g. § 5.6 "Density Estimation", W. N. Venables and B. D. Ripley, Modern Applied Statistics with S (2002), Springer, 4th edition. ISBN 0-387-95457-0.
  11. ^ Online Statistics Education: A Multimedia Course of Study (http://onlinestatbook.com/). Project Leader: David M. Lane, Rice University (chapter 2 "Graphing Distributions", section "Histograms")
  12. ^ Doane DP (1976) Aesthetic frequency classification. American Statistician, 30: 181–183
  13. ^ Scott, David W. (1979). "On optimal and data-based histograms". Biometrika 66 (3): 605–610. doi:10.1093/biomet/66.3.605. 
  14. ^ Freedman, David; Diaconis, P. (1981). "On the histogram as a density estimator: L2 theory". Zeitschrift für Wahrscheinlichkeitstheorie und verwandte Gebiete 57 (4): 453–476. doi:10.1007/BF01025868. 
  15. ^ Shimazaki, H.; Shinomoto, S. (2007). "A method for selecting the bin size of a time histogram". Neural Computation 19 (6): 1503–1527. doi:10.1162/neco.2007.19.6.1503. PMID 17444758. 

Further reading [edit]

  • Lancaster, H.O. An Introduction to Medical Statistics. John Wiley and Sons. 1974. ISBN 0-471-51250-8

External links [edit]


Original courtesy of Wikipedia: http://en.wikipedia.org/wiki/Histogram — Please support Wikipedia.
A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia.
29872 videos foundNext > 

Histograms | Histogram | Digital Photography | Camera

This is a quick and simple description of what a histogram is, what it measures, and how it can be used as a tool in photography. Enjoy! For more information...

Histograms

Math.

Photography Histograms Explained

http://cazillo.com/articles/37-photography/100-photography-histograms.html Histograms are the only way when shooting to get an accurate representation of you...

How to Use a Camera's Histogram Part 1

An introduction on how a camera's histogram works and how to use it to get the most from your photographs.

Digital Photography 1 on 1: Episode 33: Histograms

In this episode Mark discusses histograms and how you can use them to correct your exposure.

Histograms

Learn more: http://www.khanacademy.org/video?v=4eLJGG2Ad30 Histograms.

Statistics - How to make a histogram

This example shows how to make a histogram. Remember that the horizontal axis represents the values of the variables. The vertical axis gives us the frequenc...

Photography Tutorial - Perfect Exposures, The Histogram Pt 1

This how-to video from John Mireles of the Photographer's Toolkit is part of a series about using the histogram to create properly exposed images with your c...

Microsoft Excel Histogram Tutorial

Microsoft Excel Histogram Tutorial. This tutorial shows How to Construct a Histogram in Excel 2007.

Creating a Histogram In Excel 2010

http://bit.ly/ZE0Gei Quick tutorial on histograms for DSS 660.

29872 videos foundNext > 

1045 news items

Opposing Views

Opposing Views
Wed, 08 May 2013 22:42:32 -0700

A histogram is a special type of bar graph that reflects how often a given range of outcomes occurs. For example, if you wanted to see how much the day of the week affects your social networking activity, you could track how many times you check a ...

Sydney Morning Herald

Sydney Morning Herald
Sat, 18 May 2013 05:19:29 -0700

... all on your Windows Phone 8 device courtesy of ProShot. This app takes advantage of WP8's new 'lens' feature, and integrates into the built-in camera app to add a variety of features such as program modes, manual focus and a histogram ...

Economic Times

Economic Times
Sat, 18 May 2013 02:10:30 -0700

The MACD on daily chart after a positive divergence in histogram gave a bullish crossover which formed the Head of the Pattern. Both the momentum indicators suggested a rally which got confirmed from the pattern breakout. Page 1 of 2. PrevNext ...

DailyFX

DailyFX
Thu, 16 May 2013 13:23:34 -0700

The Histogram is your tipping point on the currency pair you're considering to trade. When the shorter / faster moving average crosses the larger / slower moving average the MACD will cross the zero line in its respective direction. When the MACD is ...
 
Wired (blog)
Thu, 16 May 2013 05:50:05 -0700

What if I plot a histogram of the differences between cosines calculated by different methods? This won't work since there is a huge variation in differences. Instead, I will plot the natural log of the differences. Oh, one more cheat. A couple of ...
 
Popular Photography Magazine
Wed, 15 May 2013 17:38:30 -0700

The interesting thing is that it doesn't just tweak the histogram. In a picture of me (from 2007 -- I'm not that good looking anymore) it added some blurring to my skin to even it out like a portrait retouching software would. That's pretty advanced ...

The Earth Times

The Earth Times
Thu, 16 May 2013 06:04:51 -0700

Nearest relatives so far include Neolithic Scandinavians and other Europeans, including the modern population. There is no sign of proposed African or Middle Eastern haplotypes beyond the expected common links. Look for yourself on the (b) histogram ...
 
Science 2.0
Thu, 16 May 2013 06:36:14 -0700

I remember writing a document back in 2000 (for a Higgs Jamboree meeting in Harvard) when I discussed how the VV contribution in such a histogram could be used to gain confidence of our selection methods... Thirteen years afterwards, seeing this graph ...
Loading

Oops, we seem to be having trouble contacting Twitter

Talk About Histogram

You can talk about Histogram with people all over the world in our discussions.

Support Wikipedia

A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia. Please add your support for Wikipedia!