MathGroup Archive 1993

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

Search the Archive

Re: Mathematica: Statistics Packages - Discrete & Continuous Distributions


> PDF[ PoissonDistribution[1], {0,1} ]
> 
> returns only some logical checking. The problem seems to be the { } since
> 
> PDF[ PoissonDistribution[1], 1 ]
> 
> is fine but
> 
> PDF[ PoissonDistribution[1], {1} ]
> 
> fails.
> 
> Does anyone have a fix for this?  Many thanks

One "fix" is to define p(x) to be the Poisson pdf

In[26]:=
p[x_] := PDF[ PoissonDistribution[1], x ]

Then apply the function to your list, i.e.,

In[30]:=
p/@{0,1}       to get

Out[30]=
 1  1
{-, -}
 E  E

--larry





  • Next by Date: Double axes in LogPlot?
  • Next by thread: Double axes in LogPlot?