MathGroup Archive 2009

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

Search the Archive

Re: Frequency data

On May 11, 12:24 pm, suhrob.sulta... at wrote:
Thanks so much everybody for answering my question and solving the
problem, it works :


6.0 for Mac OS X PowerPC (32-bit) (June 19, 2007)


n = 1000;

data = RandomReal[NormalDistribution[0, 1], {n}];

lb = Floor[5*Min[data]]/5.

ub = Ceiling[5*Max[data]]/5.

freq = BinCounts[data, {lb, ub, .2}]/n;



    Histogram[data, HistogramScale -> 1],
    Plot[PDF[NormalDistribution[0, 1], x], {x, lb, ub},
     PlotStyle -> {Red, AbsoluteThickness[2]}]}],
  Histogram[freq, FrequencyData -> True]},
 ImageSize -> 600]

  • Prev by Date: Label Bar Chart from data
  • Next by Date: Re: export Disdyakis Dodecahedron to 3D model (maya)
  • Previous by thread: Re: Frequency data
  • Next by thread: Why is equation set can't solve in Mathematica?