Re: GammaDistribution versus PoissonDistribution
- To: mathgroup at smc.vnet.net
- Subject: [mg79099] Re: GammaDistribution versus PoissonDistribution
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Wed, 18 Jul 2007 03:03:37 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <f7hr6l$qls$1@smc.vnet.net>
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},
---------------------^
A square bracket is missing.
> {{m,1,"m"},1,20},{{a,1,"a"},0,30},{{b,1,"b"},0.1,2}]
> I hope I typed it all correctly.
> Any suggestions?
> with friendly greetings,
> P_ter
Not sure what the problem is: the expression below produces some neat
plot of the functions.
Manipulate[Show[{ListPlot[Table[{i, PDF[PoissonDistribution[m], i]},
{i, 0, 30}]],
Plot[PDF[GammaDistribution[a, b], x], {x, 0, 30}]},
PlotRange -> {-0.1, 0.2}], {{m, 1, "m"}, 1, 20},
{{a, 1, "a"}, 0, 30}, {{b, 1, "b"}, 0.1, 2}]
$Version
6.0 for Microsoft Windows (32-bit) (April 20, 2007)
Regards,
Jean-Marc