Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Data Visualization
  • Statistics in R
  • Machine Learning in R
  • Data Science in R
  • Packages in R
  • Data Types
  • String
  • Array
  • Vector
  • Lists
  • Matrices
  • Oops in R
Open In App
Next Article:
Compute the Value of F Density in R Programming - df() Function
Next article icon

Compute the Value of Poisson Density in R Programming – dpois() Function

Last Updated : 04 Jan, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

dpois() function in R Language is used to compute the Poisson Density for a set of Integer values. It also creates a density plot of poisson distribution. 

Syntax: dpois(vec, lambda)
Parameters: 
vec: Sequence of integer values 
lambda: Average number of events per interval 


Example 1: 

Python3

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

Output: 

 [1] 0.000000000 0.000000000 0.000000000 0.000000000 0.000000000 0.000000000  [7] 0.000000000 0.000000000 0.000000000 0.000000000 0.006737947 0.033689735 [13] 0.084224337 0.140373896 0.175467370 0.175467370 0.146222808 0.104444863 [19] 0.065278039 0.036265577 0.018132789


Example 2: 

Python3

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

Output: 



Next Article
Compute the Value of F Density in R Programming - df() Function

N

nidhi_biet
Improve
Article Tags :
  • R Language
  • R Statistics

Similar Reads

  • Compute the Value of F Density in R Programming - df() Function
    df() function in R Language is used to compute the density of F Distribution over a sequence of numeric values. It also plots a density graph for F Distribution. Syntax: df(x, df1, df2) Parameters: x: Numeric Vector df: Degree of Freedom Example 1: # R Program to compute # F Density # Creating a seq
    1 min read
  • Compute the Logistic Density in R Programming - dlogis() Function
    dlogis() function in R Language is used to compute logistic density of the distribution. It also creates a plot of the density of the logistic distribution. Syntax: dlogis(vec) Parameters: vec: Vector of x-values for density Example 1: # R program to calculate # logistic density # Create a vector of
    1 min read
  • Compute the Value of Weibull Density in R Programming - dweibull() Function
    dweibull() function in R Language is used to compute the value of Weibull Density over different numeric values for Weibull Distribution. Syntax: dweibull(x, shape) Parameters: x: Numeric Vector shape: Shape Parameter Example 1: # R Program to compute # Weibull Density # Creating a sequence of x-val
    1 min read
  • Compute the Value of Poisson Quantile Function in R Programming - qpois() Function
    qpois() function in R Language is used to compute the value of Poisson Quantile Function. It creates a quantile density plot for poisson distribution. Syntax: qpois(vec, lambda) Parameters: vec: Sequence of integer values lambda: Average number of events per interval Example 1: # R program to comput
    2 min read
  • Compute Randomly Drawn Poisson Density in R Programming - rpois() Function
    rpois() function in R Language is used to compute random density for poisson distribution. Syntax: rpois(N, lambda) Parameters: N: Sample Size lambda: Average number of events per interval Example 1: # R program to compute random # Poisson Density # Setting seed for # random number generation set.se
    1 min read
  • 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 o
    1 min read
  • Compute the value of CDF on Uniform Distribution in R Programming - punif() Function
    In R programming, punif() function is used to compute the value of Cumulative Distribution Function(CDF). Syntax: punif(q, min = 0, max = 1, lower.tail = TRUE, log.p = FALSE) Parameters: q: represents vector of quantiles min, max: represents lower and upper limits of the distribution lower.tail: rep
    1 min read
  • Compute the cosine value which is multiples of pi in R Programming - cospi() Function
    cospi() function in R Language is used to compute the cosine value of x which is the multiples of pi. Syntax: cospi(x) Parameters: x: Numeric value, array or vector Example 1: # R program to illustrate # cospi function # Calling the cospi() function cospi(0) cospi(1) Output: [1] 1 [1] -1 Example 2:
    1 min read
  • Compute Density of the Distribution Function in R Programming - dunif() Function
    dunif() function in R Language is used to provide the density of the distribution function. Syntax: dunif(x, min = 0, max = 1, log = FALSE) Parameters: x: represents vector min, max: represents lower and upper limits of the distribution log: represents logical value for probabilities Example 1: # Cr
    1 min read
  • Compute the value of F Cumulative Distribution Function in R Programming - pf() Function
    pf() function in R Language is used to compute the density of F Cumulative Distribution Function over a sequence of numeric values. It also plots a density graph for F Cumulative Distribution. Syntax: pf(x, df1, df2) Parameters: x: Numeric Vector df: Degree of Freedom Example 1: # R Program to compu
    1 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences