ppois function
This function finds the probability that a certain number of successes or less occur based on an average rate of success, In other words, we can say as this function returns the value of the inverse Poisson cumulative density function.
Syntax: ppois(q, lambda)
Parameters:
- q: number of successes
- lambda: average rate of success
Example:
In this example, we are finding the probability using the ppois function to get sales or less if the person makes 30 sales each hour in the R.
R
ppois (q=12, lambda=30) |
Output:
[1] 0.0001676976
A Guide to dpois, ppois, qpois, and rpois in R
In this article, we will be looking at a guide to the dpois, ppois, qpois, and rpois methods of the Poisson distribution in the R programming language.