       Re: Histogram normalization

• To: mathgroup at smc.vnet.net
• Subject: [mg40014] Re: Histogram normalization
• From: bobhanlon at aol.com (Bob Hanlon)
• Date: Sun, 16 Mar 2003 02:20:24 -0500 (EST)
• References: <b4s8m4\$iei\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Needs["Graphics`Graphics`"];
Needs["Statistics`NormalDistribution`"];
Needs["Statistics`DescriptiveStatistics`"];

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

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

{5.24258, 0.694003}

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

Bob Hanlon

In article <b4s8m4\$iei\$1 at smc.vnet.net>, densmore.3 at nd.edu (Jdensmor) wrote:

<<
Subject:	Histogram normalization
From:		densmore.3 at nd.edu (Jdensmor)
To: mathgroup at smc.vnet.net
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

JMD

>>

```

• 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