Question: what is the difference between probability mass function and probability density function?
Answer: Probability mass functions are used for discrete distributions. It assigns a probability to each point in the sample space. Whereas the integral of a probability density function gives the probability that a random variable falls within some interval.