Re: Plot PDF of a Discrete Random Variable
- To: mathgroup at smc.vnet.net
- Subject: [mg63795] Re: Plot PDF of a Discrete Random Variable
- From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
- Date: Sat, 14 Jan 2006 02:33:07 -0500 (EST)
- References: <dq7um7$404$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Use BinomialDistribution (which is in Statistics`DiscreteDistributions`) to generate the data, and use Histgram (which is in Graphics`Graphics`) to plot the data. Here is an example of how to do this: <<Graphics`Graphics` <<Statistics`DiscreteDistributions` bdist = BinomialDistribution[34, 0.3]; bdistdata=RandomArray[bdist,100]; Histogram[bdistdata]; Steve Luttrell "Thomas Madden" <thomas.madden at sbcglobal.net> wrote in message news:dq7um7$404$1 at smc.vnet.net... > What is the best way, or the typical way, to plot the PDF of a discrete > random variable? Binomial for example. > > Thanks for any help. >