http://nl.mathworks.com/matlabcentral/newsreader/view_thread/248171
MATLAB Central Newsreader  Question on Poisson distrbution
Feed for thread: Question on Poisson distrbution
enus
©19942017 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://nl.mathworks.com/images/membrane_icon.gif

Thu, 02 Apr 2009 15:25:04 +0000
Question on Poisson distrbution
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/248171#639744
Ag
Dear people,<br>
<br>
I am working with random variables and I want to generate random values with a Poisson distribution whose ranges are between 0.8 and 1 and with a mean distribution of 5.<br>
<br>
I have tried the following line (10 values vector) but I am not sure if I it is the right line....<br>
<br>
a=0.8 + (10.8) * poissrnd(5,1,10)<br>
<br>
<br>
Can somebody tell me if I am commiting a mistake?<br>
<br>
Thanks a lot for the help!!!<br>
<br>
<br>
Ag

Thu, 02 Apr 2009 15:57:01 +0000
Re: Question on Poisson distrbution
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/248171#639756
Roger Stafford
"Ag" <ag@gmail.com> wrote in message <gr2lcg$kg7$1@fred.mathworks.com>...<br>
> .....<br>
> I am working with random variables and I want to generate random values with a Poisson distribution whose ranges are between 0.8 and 1 and with a mean distribution of 5.<br>
> ......<br>
> a=0.8 + (10.8) * poissrnd(5,1,10)<br>
> ......<br>
<br>
I believe you are confusing the notions of matlab's 'rand' function with those of 'poissrnd'. The output of 'rand' is essentially a continuous, uniform distribution on the interval [0,1], and when you write<br>
<br>
x = a + (ba)*rand<br>
<br>
you get a uniform distribution over the interval [a,b].<br>
<br>
No such result can be obtained from 'poissrnd' using such a computation. In the first place the poisson distribution is discrete with integer values, and in the second place it is unbounded. Like normal distributions, there is no limit to its possible size. The 'a' in your computation could very easily extend far beyond the interval [.8,1].<br>
<br>
You need to rethink what it is you wish to achieve.<br>
<br>
Roger Stafford