Re: GammaDistribution versus PoissonDistribution
- To: mathgroup at smc.vnet.net
- Subject: [mg79096] Re: GammaDistribution versus PoissonDistribution
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Wed, 18 Jul 2007 03:02:03 -0400 (EDT)
On 7/17/07 at 3:23 AM, peter_van_summeren at yahoo.co.uk (P_ter) wrote: >I did this and what I am interested in is, that not always the >graphics is visible in my version 6.0: Manipulate[ Show[{ >ListPlot[Table[{i,PDF[PoissonDistribution[m],i]},{i,0,30}]], >Plot[PDF[GammaDistribution[a,b],x],{x,0,30}] >}, >PlotRange->{-.1,0.2}, >{{m,1,"m"},1,20},{{a,1,"a"},0,30},{{b,1,"b"},0.1,2}] >I hope I typed it all correctly. It looks like you are missing the closing ] after your PlotRange specificat= ion >Any suggestions? Yes, Try PlotRange->All in the Plot command and list it first, i.e., Manipulate[ Show[Plot[PDF[GammaDistribution[a, b], x], {x, 0, 30}, PlotRange -> All], ListPlot[Table[{i, PDF[PoissonDistribution[m], i]}, {i, 0, 30}]]], {{m, 1, "m"}, 1, 20}, {{a, 1, "a"}, 0.001, 30}, {{b, 1, "b"}, 0.1, 2}] Note, you don't need the { and } surrounding Plot and ListPlot. Also, note I've changed the minimum value of a to a small positive value since 0 will cause an error. -- To reply via email subtract one hundred and four