Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 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[2]],
    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