MathGroup Archive 2011

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

Search the Archive

Re: Fit Gaussian function to histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117737] Re: Fit Gaussian function to histogram
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Wed, 30 Mar 2011 04:16:45 -0500 (EST)

On 3/29/11 at 6:54 AM, cubsfan334 at gmail.com (cubsfan334) wrote:

>I realize that I can generate a histogram from a data set using the
>Histogram[{data},bin size] command, yet this only seems to create a
>graphic.  Is there anyway to fit a function (preferably Gaussian) to
>the histogram Mathematica creates?

Is this something like what you want to do?

data = RandomReal[NormalDistribution[], 1000];

Show[Histogram[data, Automatic, "PDF"],
  Plot[PDF[NormalDistribution[], x], {x, -3, 3}]]



  • Prev by Date: Filling Plots to the X-Axis for a Range of X Values
  • Next by Date: Re: Install 8.0.1 without installing 8.0.0 first?
  • Previous by thread: Fit Gaussian function to histogram
  • Next by thread: Re: Fit Gaussian function to histogram