# Compute the Cumulative Poisson Density in R Programming – ppois() Function

`ppois()` function in R Language is used to compute the cumulative density function for Poisson distribution.

Syntax: ppois(vec, lambda)

Parameters:
vec: Sequence of integer values
lambda: Average number of events per interval

Example 1:

 `# R program to compute  ` `# Cumulative Poisson Density ` ` `  `# Sequence of x-values ` `x <``-` `seq(``-``10``, ``10``, by ``=` `1``) ` ` `  `# Calling ppois() Function ` `y <``-` `ppois(x, ``lambda` `=` `5``) ` `y `

Output:

```  0.000000000 0.000000000 0.000000000 0.000000000 0.000000000 0.000000000
 0.000000000 0.000000000 0.000000000 0.000000000 0.006737947 0.040427682
 0.124652019 0.265025915 0.440493285 0.615960655 0.762183463 0.866628326
 0.931906365 0.968171943 0.986304731
```

Example 2:

 `# R program to compute  ` `# Cumulative Poisson Density ` ` `  `# Sequence of x-values ` `x <``-` `seq(``1``, ``20``, by ``=` `1``) ` ` `  `# Calling ppois() Function ` `y <``-` `ppois(x, ``lambda` `=` `10``) ` ` `  `# Plot a graph ` `plot(y) `

Output: My Personal Notes arrow_drop_up Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.