Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Histogram normalization

  • To: mathgroup at
  • Subject: [mg40026] Re: Histogram normalization
  • From: Nigel King <king at>
  • Date: Sun, 16 Mar 2003 02:22:51 -0500 (EST)
  • References: <b4s8m4$iei$>
  • Sender: owner-wri-mathgroup at

In <b4s8m4$iei$1 at> Jdensmor wrote:
> Hi all,
> 	I have a list of number {1,3,45,6,4,....etc}, I can make a histogram
> of the data, but now I would like to normalize the histogram so that
> the area under the histogram is equal to 1. Is there a way to get the
> number of bins used in making the histogram and the number of
> particles in each bin? Also is there a way to make a function that has
> the shape of the histogram? thanks for your help

I think the following may do what yo want.
In[1]:= Needs["Statistics`DataManipulation`"]; In[2]:= Needs[
"Graphics`Graphics`"]; In[3]:= list = Table[Random[Integer, 20], {100}];
In[4]:= freq = (#*{1/Length[list], 1}) & /@ Frequencies[list]; In[5]:=


  • Prev by Date: Re: gridMathematica
  • Next by Date: Re: Re: Summations with Primes
  • Previous by thread: Re: Histogram normalization
  • Next by thread: Re: Histogram normalization