MathGroup Archive 2006

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

Search the Archive

Re: Plot PDF of a Discrete Random Variable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63781] Re: Plot PDF of a Discrete Random Variable
  • From: "Valeri Astanoff" <astanoff at yahoo.fr>
  • Date: Sat, 14 Jan 2006 02:32:24 -0500 (EST)
  • References: <dq7um7$404$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Thomas,

BarChart seems convenient. Example :


In[1]:=<<Statistics`

In[2]:=Needs["Graphics`Graphics`"]

In[3]:=bd=BinomialDistribution[30,.8];

In[4]:=data=Table[ PDF[bd,x] ,{x,16,30}];

In[5]:=ticks=Transpose[{Range[15],Range[16,30]}];

In[6]:=BarChart[data,Ticks -> {ticks,Automatic}]

Out[6]= - Graphics - 



v.a.


  • Prev by Date: Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
  • Next by Date: Re: Plot PDF of a Discrete Random Variable
  • Previous by thread: Plot PDF of a Discrete Random Variable
  • Next by thread: Re: Plot PDF of a Discrete Random Variable