Saturday, January 14, 2017

Discrete histogram

The usual histogram is a graphical representation of the distribution of numerical data. It also implies that you have regular intervals for the resulting distribution. What happens if you are looking for distribution over discrete elements, like day of the week, month, or any possible word...

Here is an example.
  • How many coins are gold or silver?
  • How many coins from each country we have?
  • ... year?
   gold     1    1986  USA                 American Eagle
   gold     1    1908  Austria-Hungary     Franz Josef 100 Korona
   silver  10    1981  USA                 ingot
   gold     1    1984  Switzerland         ingot
   gold     1    1979  RSA                 Krugerrand
   gold     0.5  1981  RSA                 Krugerrand
   gold     0.1  1986  PRC                 Panda
   silver   1    1986  USA                 Liberty dollar
   gold     0.25 1986  USA                 Liberty 5-dollar piece
   silver   0.5  1986  USA                 Liberty 50-cent piece
   silver   1    1987  USA                 Constitution dollar
   gold     0.25 1987  USA                 Constitution 5-dollar piece
   gold     1    1988  Canada              Maple Leaf