MathGroup Archive 2005

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

Search the Archive

Re: Density plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59591] Re: [mg59569] Density plot
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 13 Aug 2005 03:26:19 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Needs["Graphics`"];
Needs["Statistics`"];

data=RandomArray[
      NormalDistribution[10*Random[]-5, 2*Random[]],
      {100}];

m=Mean[data];
s=StandardDeviationMLE[data];

DisplayTogether[
    Histogram[data,HistogramScale->1],
    Plot[PDF[NormalDistribution[m, s],x],
      {x,m-3s,m+3s},
      PlotStyle->{Blue,AbsoluteThickness[2]}]];


Bob Hanlon

> 
> From: "malghara" <malghara at gmail.com>
To: mathgroup at smc.vnet.net
> Date: 2005/08/12 Fri AM 12:09:32 EDT
> Subject: [mg59591] [mg59569] Density plot
> 
> Hi All
> 
> If i have a sequency of values say {x1,x2,.....xn}. How do i plot the
> probability distribution of these values. In other words, i would like
> to obtain an estimate of the probability density function and plot it.
> 
> Thanks
> Mishal
> 
> 


  • Prev by Date: Re: Unable to obtain value from interpolation function integration
  • Next by Date: Re: Mathematica and Robotics
  • Previous by thread: Re: Density plot
  • Next by thread: Re: hwo to export data to file