MathGroup Archive 2010

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

Search the Archive

DiscreteUniformDistribution PDF isn't piecewise?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107642] DiscreteUniformDistribution PDF isn't piecewise?
  • From: "richard.wesley.todd" <richard.wesley.todd at gmail.com>
  • Date: Sun, 21 Feb 2010 04:24:22 -0500 (EST)

A PDF for a discrete uniform distribution, say for a die roll...

In[101]:= PDF[DiscreteUniformDistribution[{1, 6}]]

Out[101]= 1/6 &

... gives 1/6 for all inputs, _not_ just between 1 and 6.   Shouldn't
it be defined piecewise?  This is from Mathematica 7.0.1.0 on
Windows.   The CDF is correct.



  • Prev by Date: Re: multiple variables in pure function used in map.
  • Next by Date: Manipulate piecewise functions,
  • Previous by thread: Re: Why not a standard name used for this common function? DTFT
  • Next by thread: Re: DiscreteUniformDistribution PDF isn't piecewise?