Displaying 2 results from an estimated 2 matches for "dudewicz".
Did you mean:
drewicz
2000 May 12
1
Geometric Distribution at prob=c(0,1)
...t:
If I do
> rgeom(1,prob=1)
I get:
[1] NaN
Warning message:
NAs produced in: rgeom(n, prob)
And if I do:
> rgeom(1,prob=0)
I get:
[1] NaN
Warning message:
NAs produced in: rgeom(n, prob)
I was expecting to get 0 and Inf respectively.... Should I expect that?
Going back to my textbooks (Dudewicz and Mishra 1988, primarily), they
describe the geometric dist as the dist of a random variable that gives
the number of the trail that an event occurs, with a constant probability
p (or prob). Contrary to R, my textbooks have x = 1, 2, 3, ...
My intuition says that with this interpretation, a pro...
2000 May 25
4
Needed: Understading runif() output :-)
Dear all,
I have been trying to understand what runif() is telling me.
I am generating lots of numbers (billions and billions (wow, I''ve dreamed
about saying that for many years... :-) ), for a distribution that has the
following quantile function:
1 / (2 * sqrt(1 - p))
(that is, the distribution has a lower cutoff)
As you can imagine, this has rather heavy upper tail. I was