Message-ID: <D1665160-F018-4150-8604-8F2395FE7751@gmail.com>
Date: 2012-08-28T11:20:59Z
From: Peter Dalgaard
Subject: Bionomial and possion
In-Reply-To: <1346143404522-4641531.post@n4.nabble.com>
On Aug 28, 2012, at 10:43 , quantum wrote:
> Make a plot in R where you compare the probability distributions for the
> Binomial distributions with N=1000 trials and succes probability 0.005 and
> the Possion Distribution with rate lambda=5.
>
> My answer is
>
> b<-binom(x, 1000, 0.005, log = FALSE)
> plot(b)
>
> p<-dpois(x, lambda, log = FALSE)
> plot(p)
>
> *Is this the right way to solve the problem?*
>
Not quite, but there's a no-homework policy on this list.
Hints (violating the policy slightly...)
- Does the code actually run?
- Are the axes correct (what are the x values)?
- Wouldn't you want to have them in one plot frame for comparison?
--
Peter Dalgaard, Professor
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com