       histograms of identical distribution is different. maybe binnumber is the problem?

• To: mathgroup at smc.vnet.net
• Subject: [mg51298] histograms of identical distribution is different. maybe binnumber is the problem?
• From: sean kim <sean_incali at yahoo.com>
• Date: Thu, 14 Oct 2004 06:35:12 -0400 (EDT)
• Reply-to: sean_incali at yahoo.com
• Sender: owner-wri-mathgroup at wolfram.com

```i found the code attached below in the archives. it
will display two histograms without shading in one
graph.

note both histograms are generated exactly the same
way using exactly the same number of sample points.

for me, at least, it will show a pattern of a few of
the distributions having a lower number of points

what causes this? I think it has to do with the way
histograms are made? is there a way to control bin
width or number in a convenient way?

like..

binwidth-> (numberof points)/(whatever bin number you
want to use)

Do[
normdata = RandomArray[NormalDistribution[], 10000];
h1 = Histogram[normdata, BarEdgeStyle -> Hue,
BarStyle -> {}, DisplayFunction -> Identity];

normdata2 = RandomArray[NormalDistribution[], 10000];
h2 = Histogram[normdata2, BarStyle -> {},
DisplayFunction -> Identity];

DisplayTogether[h1, h2],

{i, 10}]

__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com

```

• Prev by Date: Re: Calculus : limits
• Next by Date: Re: Calculus : limits
• Previous by thread: Re: Mathgroup posting
• Next by thread: Re: histograms of identical distribution is different. maybe binnumber is the problem?