Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Strange Result from Histogram in V6

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83307] Re: [mg83256] Strange Result from Histogram in V6
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Sat, 17 Nov 2007 05:21:02 -0500 (EST)
  • References: <13988352.1195214049581.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

According to Help:

"The area of each bar in the histogram is proportional to the frequency 
with which the data falls in that category."

Needs["Histograms`"]

hist = Histogram[{1/4, 1/3, 1/2, 1/4, 1, 1/4, 1/2, 1/3, 1/4},
    HistogramCategories -> {0, 1/4, 1/3, 1/2, 1, 2}];
Column@Cases[hist,
   Rectangle[{a_, 0}, {b_, c_}] :>
    StringForm["The bar for interval: [``,``) has area ``", a, b,
     c (b - a)], Infinity]

The bar for interval: [1/4,1/3) has area 4
The bar for interval: [1/3,1/2) has area 2
The bar for interval: [1/2,1) has area 2
The bar for interval: [1,2) has area 1

Bobby

On Fri, 16 Nov 2007 04:29:09 -0600, Scott <sguthery at gmail.com> wrote:

> The command:
>
> Histogram[{1/4, 1/3, 1/2, 1/4, 1, 1/4, 1/2, 1/3, 1/4},
> HistogramCategories -> {0, 1/4, 1/3, 1/2, 1, 2}]
>
> seems to find 48 values between 0 and around .2 and 12 values between
> around .2 and .5 in Version 6.
>
> Very strange.
>
> Any insight?
>
> Cheers, Scott
>
>



-- 

DrMajorBob at bigfoot.com


  • Prev by Date: Re: Mathematica, Graph Theory
  • Next by Date: Re: RegionPlot ignores the AxesLabel Option?
  • Previous by thread: Strange Result from Histogram in V6
  • Next by thread: Re: Strange Result from Histogram in V6