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}]]