MathGroup Archive 2003

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

Search the Archive

Re: Histogram normalization

  • To: mathgroup at
  • Subject: [mg40014] Re: Histogram normalization
  • From: bobhanlon at (Bob Hanlon)
  • Date: Sun, 16 Mar 2003 02:20:24 -0500 (EST)
  • References: <b4s8m4$iei$>
  • Sender: owner-wri-mathgroup at


data = RandomArray[
      NormalDistribution[5.25, .75], 100];

{m, s} = {Mean[data],  StandardDeviationMLE[data]}

{5.24258, 0.694003}

    Histogram[data, HistogramScale -> 1],
    Plot[PDF[NormalDistribution[m, s], x],
      {x, m-3s, m+3s}, 
      PlotStyle  -> AbsoluteThickness[2]],
    Frame -> True, ImageSize -> 450];

Bob Hanlon

In article <b4s8m4$iei$1 at>, densmore.3 at (Jdensmor) wrote:

Subject:	Histogram normalization
From:		densmore.3 at (Jdensmor)
To: mathgroup at
Date:		Fri, 14 Mar 2003 09:51:00 +0000 (UTC)

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



  • Prev by Date: Re: How to apply one plot range to another plot?
  • Next by Date: Re: Histogram normalization
  • Previous by thread: Re: Histogram normalization
  • Next by thread: Re: Histogram normalization