Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1993
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1993

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

Search the Archive

Re: Mathematica: Statistics Packages - Discrete & Continuous Distributions

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: Mathematica: Statistics Packages - Discrete & Continuous Distributions
  • From: "Prof. L. Seiford, IEOR, UMass, 413/545-1658" <SEIFORD at ecs.umass.edu>
  • Date: Sat, 02 Oct 1993 10:49:43 -0500

> 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?