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.