MathGroup Archive 2008

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

Search the Archive

Re: Superimposing Normal on a Histogram of data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91570] Re: [mg91563] Superimposing Normal on a Histogram of data
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 28 Aug 2008 03:15:04 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Needs["Histograms`"];

data = RandomReal[NormalDistribution[5, 2], {100}];

{mu, sigma} = {Mean[data], StandardDeviation[data]}

{5.21122,1.84401}

Show[{Histogram[data, HistogramScale -> 1],
  Plot[PDF[NormalDistribution[mu, sigma], x],
   {x, mu - 3 sigma, mu + 3 sigma},
   PlotStyle -> Red]},
 PlotRange -> All]


Bob Hanlon

---- ouadad <desmier.pe at forces.gc.ca> wrote: 

=============
Can someone point me to an algorithm that allows me to plot a normal curve over a histogram of residuals?  I just want to show how close my residual distribution approximates a normal distribution.




  • Prev by Date: RE: Plotting against Normal
  • Next by Date: How to get result in shape of fraction in Mathematica 4.2
  • Previous by thread: Superimposing Normal on a Histogram of data
  • Next by thread: Re: Superimposing Normal on a Histogram of data