Probability Mass Function(PMF) and Cumulative Distribution Function(CDF)
Hey there! Welcome to KnowledgeKnot! Don't forget to share this with your friends and revisit often. Your support motivates us to create more content in the future. Thanks for being awesome!
Probability Mass Function (PMF) and Cumulative Distribution Function (CDF) are two fundamental concepts in probability theory and statistics. They are used to describe the distribution of discrete random variables and provide valuable information about the probabilities associated with different outcomes.
Probability Mass Function (PMF)
The PMF of a discrete random variable X is a function that gives the probability that X takes on a specific value. It maps each possible value of X to its probability. The PMF is denoted by P(X=x) or p(x), where x is a particular value of X.
Mathematically, the PMF is defined as:
P(X=x)=p(x)
Example:
Let's consider a fair six-sided die. The PMF of the die's outcome X (the number rolled) is:
p(x)={61,0,if x=1,2,3,4,5, or 6otherwise
This PMF indicates that each outcome has an equal probability of 61.
Cumulative Distribution Function (CDF)
The CDF of a random variable X is a function that gives the probability that X is less than or equal to a specific value. It represents the cumulative probability distribution of X. The CDF is denoted by F(x), where x is a particular value of X.
Mathematically, the CDF is defined as:
F(x)=P(X≤x)
Example:
Using the same example of the fair six-sided die, the CDF of the die's outcome X is:
This CDF indicates the probability that the outcome is less than or equal to a specific value. For example, F(3) gives the probability of rolling a number less than or equal to 3, which is 21.
Practice Questions on PMF and CDF
Question 1: PMF of a Biased Coin
A biased coin has a 70% chance of landing heads and a 30% chance of landing tails. Let X be the number of heads obtained in one flip. Find the PMF of X.
Solution:
The PMF of X, where X can be either 0 (tails) or 1 (heads), is:
p(x)={0.7,0.3,if x=1if x=0
This PMF indicates that the probability of getting heads is 0.7 and the probability of getting tails is 0.3.
Question 2: CDF of a Biased Coin
Using the same biased coin from Question 1, find the CDF of X.
Solution:
The CDF of X is:
F(x)=⎩⎨⎧0,0.3,1,if x<0if 0≤x<1if x≥1
This CDF indicates the cumulative probability distribution of X. For example, F(0) gives the probability of getting 0 heads (tails), which is 0.3, and F(1) gives the probability of getting 1 or fewer heads, which is 1.
Question 3: PMF of a Discrete Random Variable
Let X be a discrete random variable representing the number of goals scored by a soccer team in a match, with the following probabilities:
This CDF indicates the cumulative probability distribution of the sum when rolling two dice. For example, F(7) gives the probability of getting a sum of 7 or less, which is 3621.