Calculate and visualize PMF for discrete random variables and PDF for continuous random variables
The Bernoulli distribution is a discrete probability distribution of a random variable which takes the value 1 with probability p and the value 0 with probability q = 1 - p.
The Probability Mass Function (PMF) gives the probability that a discrete random variable X is exactly equal to some value x.
For a fair coin toss where X = 1 represents "heads" and X = 0 represents "tails":
The Probability Density Function (PDF) describes the relative likelihood that a continuous random variable X takes on a given value x.
Unlike the PMF, the PDF does not directly give probabilities. Instead, the probability that X takes a value in an interval [a, b] is given by:
For a random variable X that is uniformly distributed between a and b:
Property | Probability Mass Function (PMF) | Probability Density Function (PDF) |
---|---|---|
Type of Random Variable | Discrete | Continuous |
Values | Direct probabilities | Density values (not probabilities) |
Calculation of P(X = x) | P(X = x) = PMF(x) | P(X = x) = 0 (for any single point) |
Range Probabilities | P(a ≤ X ≤ b) = ∑x∈[a,b] PMF(x) | P(a ≤ X ≤ b) = ∫ab PDF(x) dx |
Sum/Integral | ∑all x PMF(x) = 1 | ∫-∞∞ PDF(x) dx = 1 |
PMFs and PDFs are used to model financial returns, assess investment risks, and price options. The normal distribution's PDF is often used to model stock price changes.
PMFs like the binomial distribution model success/failure in clinical trials, while PDFs like the normal distribution describe the distribution of physical measurements in a population.
The Poisson PMF models call arrivals at a call center, while exponential PDFs model the time between consecutive calls or data packet arrivals in networks.
PDFs like the exponential or Weibull distribution model component lifetimes, while PMFs help analyze discrete failure counts in complex systems.
1. Which of the following statements is true about the probability mass function (PMF)?
2. For a continuous random variable X, what is P(X = a) where a is any specific value?