# Probability Function

The probability function P maps the events in the sample space of a random experiment to a number in the interval [0, 1]. The output P(A) of the function is the probability measure of an event A in the sample space S.

The probability function takes the form of probability mass function to represent the probabilities of a discrete random variable and probability density function which is used to determine the probabilities for a continuous random variable.

Probability function is thus the super set which includes all functions that are used for determining the probability under various contexts.