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