Re: Plot PDF of a Discrete Random Variable
- To: mathgroup at smc.vnet.net
- Subject: [mg63806] Re: Plot PDF of a Discrete Random Variable
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sat, 14 Jan 2006 02:34:29 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 1/13/06 at 4:49 AM, thomas.madden at sbcglobal.net (Thomas Madden) wrote: >What is the best way, or the typical way, to plot the PDF of a >discrete random variable? Binomial for example. A way would be as follows: <<Statistics` data=RandomArray[BinomialDistribution[100,.5],100]; ListPlot[{First@#,Length@#}&/@Split[Sort@data],PlotJoined->True]; or <<Graphics` Histogram[data]; -- To reply via email subtract one hundred and four