Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1285 > unrolled thread

Re: Fit Gaussian function to histogram

Started byBill Rowe <readnews@sbcglobal.net>
First post2011-03-30 09:16 +0000
Last post2011-03-30 09:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Fit Gaussian function to histogram Bill Rowe <readnews@sbcglobal.net> - 2011-03-30 09:16 +0000

#1285 — Re: Fit Gaussian function to histogram

FromBill Rowe <readnews@sbcglobal.net>
Date2011-03-30 09:16 +0000
SubjectRe: Fit Gaussian function to histogram
Message-ID<imusd7$i8s$1@smc.vnet.net>
On 3/29/11 at 6:54 AM, cubsfan334@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}]]

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web