Regarding a post in a closed topic

I believe that the following post by @technocrat in this topic is not right.

I believe in this case he might be confusing pbinom with rbinom, as pbinom indeed gives same result over any number of replications.

pbinom(., n, p) calculates the CDF of Bin(n, p) distribution, whereas rbinom(., n, p) generates (pseudo) random observations from the same distribution. So, to get reproducible results, set.seed can be used. But as CDF uniquely characterizes a distribution, so pbinom will always return the same result.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.