The Wayback Machine - https://web.archive.org/web/20241119212136/https://www.geeksforgeeks.org/probability-mass-function/
Open In App

Probability Mass Function

Last Updated : 05 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Probability mass function i.e., PMF is the probability of discrete random variables with fixed values. In this article we will see the probability mass function along with the PMF definition, probability mass function examples, properties of probability mass function and probability mass function formulas.

We will also discuss the probability mass function table and graph, the difference between the probability mass function and probability density function and solve some examples related to the probability mass function. Let's start our learning on the topic "Probability Mass Function".

What is Probability Mass Function?

Probability function that gives discrete random variables probability equal to an exact value is called the probability mass function. The probability mass function is abbreviated as PMF. The different distribution has different formulas to calculate the probability mass function.

Probability Mass Function Definition

PMF is referred to as the probability of discrete random variable which is equal to a particular value. It is represented as f(x) = P (X = x) where, X is discrete random variable and x is the specified value.

Probability Mass Function Example

Let is dice is rolled then the probability of getting a number equal to 4 is an example of probability mass function. The sample space for the given event is {1, 2, 3, 4, 5, 6} and X be the random variable for getting a 4. The probability mass function evaluated for X = 4 is 1/6.

Probability Mass Function Formulas

The probability mass function for a discrete variable X with its value x is written as: f(x) = P (X = x). The formula for the probability mass function for different distributions are listed below.

Probability Mass Function Formula in Binomial Distribution

Binomial distribution with the number of outcomes, probability of success and probability of failures. The PMF formula in Binomial distribution is given by:

P (X = x) = nCx px (1 - p) n-x

where,

  • n is Number of Outcomes
  • p is Probability of Success
  • (1-p) is Probability of Failure

Probability Mass Function Formula in Poisson Distribution

Poisson distribution deals with the mean and the number of independent events occurred in specific interval of time. The formula for the probability mass function in Poisson distribution is given by:

P(X = x) = [λxeλ] / x!

where,

Probability Mass Function Table and Graph

Table that represents the probability mass function with the value of the random variables is called the probability mass function. Let a coin is tossed two times and X be the random variable representing the number of tails then, the probability mass function table for above event is given below.

x

0{HH}

1{HT, TH}

2{TT}

P(X = x)

1/4

2/4 = 1/2

1/4

Probability mass function graph for above table is given below:

Probability-Mass-Function
Probability Mass Function

Properties of Probability Mass Function

Some properties of the probability mass function are listed below.

  • f(x) = P (X = x) > 0 hence, probability is always positive.
  • ∑x∈ S f(x) = 1 hence, sum of all probabilities equals to 1.
  • P (X ∈ E) = ∑x∈ E f(x) hence, probability of event E is given by sum of probabilities of values of x in E. It is used to determine CDF.

Difference Between Probability Mass Function and Probability Density Function

Differences between the PMF and PDF is explained in the table below:

Characteristics

Probability Mass Function

Probability Density Function

Definition

The PMF is the probability that a discrete random variable takes at an exact value.

The PDF is the probability that a continuous random variable takes at a specified interval.

Type of Variable

The PMF deals with the discrete random variables.

The PDF deals with the continuous random variables.

Evaluation

PMF is evaluated at specific point.

PDF is evaluated at specified interval

Formula

f(x) = P (X = x)

P(x) = F'(x) where, F(x) is CDF

Uses of Probability Mass Function

Probability Mass Function (PMF) is a fundamental concept in probability theory and statistics, particularly when dealing with discrete random variables. Some uses of the PMF are:

  • Describing Discrete Distributions: PMF is used to define the distribution of discrete random variables such as the number of heads in a series of coin flips, the number of customers arriving at a store in a given hour, or the number of defective items in a batch.
  • Calculating Probabilities: PMF allows for the calculation of the probability that a random variable takes on a specific value.
  • Modeling and Simulations: In simulation studies and probabilistic modeling, PMFs are used to generate random samples and to simulate scenarios involving discrete random variables.
  • Information Theory: PMFs play a crucial role in information theory, particularly in the calculation of entropy, which measures the uncertainty or randomness of a random variable.

Related Articles:

Solved Examples on Probability Mass Function

Example 1: Probability mass function is given by: f(x) = ax2 for x = 0, 1, 2 then, find the value of a.

Solution:

To find the value of a we use the PMF property.

∑x∈ S f(x) = 1

f(0) + f(1) + f(2) = 1

a × 02 + a × 12 + a × 22 = 1

a × (02 + 12 + 22) = 1

a × (0 + 1 + 4) = 1

5a = 1

a = 1/5

Example 2: From the below probability mass function table determine CDF.

X

1

2

3

4

P(X = x)

0.2

0.05

0.25

0.5

Solution:

To find the CDF for P(X < 3) we use the property of PMF.

P (X ∈ E) = ∑x∈ E f(x)

P(X < 3) = P(X = 1) + P(X = 2)

P(X < 3) = 0.2 + 0.05

P(X < 3) = 0.25

So, CDF of P(X < 3) = 0.25

Example 3: Table below represents the PMF for a random variable X. Find the value of p.

X

2

4

6

P(X = x)

p

p + 0.5

0.2

Solution:

To find the value of p we use formula.

∑x∈ S f(x) = 1

p + p + 0.5 + 0.2 = 1

2p + 0.7 = 1

2p = 1 - 0.7

2p = 0.3

p = 0.3 / 2

p = 0.15

Example 4: Find probability of good number of products = 8 if there 10 products and the probability of good product is 0.95.

Solution:

We will solve above question using Binomial distribution.

Here, n = 10, x = 8, p = 0.95

PMF of Binomial distribution is given by:

P (X = x) = nCx px (1 - p) n-x

P (X = 8) = 10C8 (0.95)8 (1 - 0.95)10 - 8

P (X = 8) = 45 × 0.663 × (0.05)2

P (X = 8) = 29.835 × 0.0025

P (X = 8) = 0.0746

Probability of 8 good products = 0.0746

Example 5: There are 10 pens, and the probability of defective pens is 0.1 then find the probability of 2 defective pens.

Solution:

Mean = λ = np = 10 × 0.1 = 1

P(X = x) = [λxeλ] / x!

P(X = 2) = [0.12 × e0.1] / 2!

P(X = 2) = (0.01 × 1.105) / 2

P(X = 2) = 0.01105 / 2

P(X = 2) = 0.0055

Probability of 2 defective pens is 0.0055

Practice Questions on Probability Mass Function

Q1. Find the value of q if the PMF is P(x) = 2x2 + 5x - 1 with values of x = 0, 1 and 2.

Q2. Determine the value of b from the probability mass function table.

X

1

2

3

4

P(X = x)

b

2b2

3b

0.3

Q3. From the below PMF table find the CDF P(X ≤ 4).

X

2

3

4

5

P(X = x)

0.2

0.1

0.4

0.3

Q4. What is the probability of 3 orange to be rotten from total 50 oranges if the probability of rotten orange is 0.6.

Q5. The item manufactured by a company is defective has a probability of 0.215 and total number of items manufactured are 200. Find the probability of less than 4 items to be defective.

FAQs on Probability Mass Function

What is Probability Mass Function?

Probability of the discrete random variables that equals to some value is called as the probability mass function.

What is PMF and PDF?

PMF gives the probability of discrete random variables whereas the PDF is the probability of continuous random variables.

What are Properties of Probability Mass Function?

Properties of probability mass function are:

  • f(x) = P (X = x) > 0 i.e., probability is always positive.
  • ∑x∈ S f(x) = 1 i.e., sum of all probabilities equals to 1.
  • P (X ∈ E) = ∑x∈ E f(x) i.e., probability of event E is given by sum of probabilities of values of x in E.

Can Probability Mass Function be Greater Than 1?

Probability mass function cannot be greater than 1 because probability lies between 0 and 1.

Can PMF be Negative?

No, PMF cannot be negative as probability cannot be negative.


Similar Reads

The Total Mass of 1 mole electron is (mass of 1e-=9.1*10-28g)
The total mass of 1 mole of electrons is approximately 5.4858 grams. To calculate the mass of 1 mole of electrons, you need to use Avogadro's number, which is approximately 6.022 x 1023. This number represents the number of particles (atoms, molecules, or in this case, electrons) in one mole of a substance. First, find the mass of one electron, whi
1 min read
Joint Probability Mass Function
Joint Probability Mass Function (PMF) is a fundamental concept in probability theory and statistics, used to describe the likelihood of two discrete random variables occurring simultaneously. It provides a way to calculate the probability of multiple events occurring together. Table of Content Joint Probability Mass FunctionCharacteristics of Joint
11 min read
Probability Sampling vs Non-Probability Sampling
Sampling is a crucial aspect of research that involves selecting a subset of individuals or items from a larger population to infer conclusions about the entire population. Two primary categories of sampling techniques are probability sampling and non-probability sampling. Understanding the differences, advantages, and applications of each method i
4 min read
Conditional Probability and Independence - Probability | Class 12 Maths
Conditional probability and independence are important concepts in probability theory. Conditional probability deals with the likelihood of an event occurring given that another event has already occurred. Independence, on the other hand, refers to situations where the occurrence of one event does not affect the probability of another event. Let B
11 min read
Verification of the Law of Conservation of Mass in a Chemical Reaction
Law of conservation of mass states that "The mass can neither be created nor destroyed in a chemical reaction" French chemist Antoine Lavoisier was the first to state the law of conservation of mass in his book. There is just a rearrangement in the atoms of substances for the formation of compounds. In the chemical process, the law of conservation
7 min read
Formula Mass of Ionic Compounds
There are many known compounds and molecules. The compounds made up only of ions are called ionic compounds. The concept of the formula unit of ionic compounds and the formula mass helps find the atomic masses of the ionic compounds. The formula mass is then calculated in the same way in which the molecular mass is calculated. Since the electrons t
6 min read
The Pressure Flow or Mass Flow Hypothesis
In Plants, the system made sense of the movement of sugars from source to sink alludes to the strain stream speculation. Glucose produced by photosynthesis at the source is switched over completely to sucrose which is moved to the phloem sifter tube cells through the friend cell by dynamic vehicle. The excess vehicle in the phloem is done by the di
6 min read
Growth Of Mass Nationalism
The National Movement of India denotes a huge occasion throughout the entire existence of India. This second assumed an essential part in assisting India with accomplishing Independence. National Development first started in the intensity of 1947. The whole development occurred for over a bunch of years for it to make ideal progress. A great many r
7 min read
How to Calculate the Molar Mass of a Gas?
Molar Mass can be defined as the mass of a sample divided by the number of moles present in the substance. We know that all the particles present in this world are made of smaller molecules known as molecules or atoms. Due to the extremely small size of these particles, it is very difficult to measure the weight of these particles. So for this reas
6 min read
Mass Percent Formula
Mass Percent in chemistry is a unit of concentration, i.e. it tells us about the concentration of solute and solvent in the solution. The mass of a solute and solvent is used to determine the mass percent of the solution. In general, the mass percent is calculated using the formula mass of components divided by the mass of the total substance, and
6 min read
What is the Atomic Mass of Chlorine?
Atomic Mass of Chlorine is .A) 35B) 35.5C) 36D) 34Answer: Option B) 35.5 is correct. Explanation:Chlorine has two stable isotopes Cl-35 and Cl-37 and the general atomic mass of Chlorine is the average of both isotopes in the ratio of their availability in nature. Now, Cl-35 isotope is 75% of the chlorine gas in the atmosphere.Cl-37 isotope is 25% o
1 min read
What is the Atomic Mass of Neon?
Atomic Mass of Neon is___________.A) 19B) 20C) 21D) 20.1797Answer: Option D) 20.1797 is correct. Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Neon, Number of Protons = 10Number of Neutrons = 10Thus, Atomic Mass of Neon = 10 + 10 = 20 Neon is a noble gas and
1 min read
What is the Atomic Mass of Boron?
Atomic Mass of Boron is .A) 10.81B) 10.04C) 11.42D) 14.81Answer:Option A) 10.81 is correct. Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Boron, Number of Protons = 5Number of Neutrons = 6Thus, Atomic Mass of Boron = 5 + 6 = 11 In absolute terms, the average
1 min read
What is the Atomic Mass of Potassium?
Atomic Mass of Potassium is .A) 38B) 39C) 40D) 41Answer: Option B) 39 is correct. Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Potassium, Number of Protons = 19Number of Neutrons = 20Thus, Atomic Mass of Potassium(K) = 19 + 20 = 39 In absolute terms, the ave
1 min read
What is the Atomic Mass of Fluorine?
Atomic Mass of Fluorine is .A) 19B) 18C) 20D) 17Answer:Option A) 19 is correct. Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Fluorine, Number of Protons = 9Number of Neutrons = 10Atomic Mass of Fluorine = 9 + 10 = 19 In absolute terms, the average atomic mas
1 min read
What is the Atomic Mass of Phosphorus?
Atomic Mass of Phosphorus is .A) 30B) 28C) 31D) 32Answer:Option C) 31 is correct. Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Phosphorus, Number of Protons = 15Number of Neutrons = 16Thus, Atomic Mass of Phosphorus = 15 + 16 = 31 In absolute terms, the aver
1 min read
What is the Atomic Mass of Lithium?
Atomic Mass of Lithium is .A) 6B) 5C) 8D) 7Answer:Option D) 7 is correct. Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Lithium, Number of Protons = 3Number of Neutrons = 4Thus, Atomic Mass of Lithium = 4 + 3 = 7 Lithium is the most electropositive element in
1 min read
What is the Atomic Mass of Carbon?
Atomic Mass of Carbon is .A) 10B) 11C) 12D) 13Answer: Option B) 12 is correct. Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Carbon, Number of Protons = 6Number of Neutrons = 6Thus, Atomic Mass of Carbon = 6 + 6 = 12 In absolute terms, the average atomic mass
1 min read
Calculate Molecular Mass of Glucose C6H12O6 molecule.
To calculate the molecular mass of glucose (C6H12O6), we need to sum the atomic masses of all the atoms in the molecule. The molecular formula of glucose shows that it contains 6 carbon (C) atoms, 12 hydrogen (H) atoms, and 6 oxygen (O) atoms. Here's how we calculate the molecular mass of glucose: Find the Atomic Mass: Look up the atomic masses of
1 min read
Sulphur has an Atomic number 16 and a Mass of 32. State the Number of Protons and Neutrons in the Nucleus of Sulphur. Give a simple Diagram to show the Arrangement of Electrons in an Atom of Sulphur.
The number of protons in the nucleus of an atom is equal to its atomic number. In the case of Sulphur (S), which has an atomic number of 16. This means that Sulphur atoms have 16 protons in their nuclei. To find the number of neutrons, we subtract the atomic number from the atomic mass. In this case, the atomic mass of sulphur is 32. Therefore, the
1 min read
Mass Flow Rate Formula
The mass flow rate is the amount of liquid that moves across a unit area in unit time. It remains constant throughout a liquid due to the principle of conservation of mass. It varies directly with density, the velocity of the liquid, and the area of cross-section of pipe or tube through which the liquid is flowing. It is denoted by the symbol m. It
4 min read
Gram Formula Mass
Gram Formula mass is the atomic mass of one mole of an element or a molecular compound, or an ionic compound. To put it another way, the amount of a compound with the same mass in grams as the formula mass in an atomic mass unit is called the gram formula mass. Each element's atom has a unique mass, and each compound's molecule has a unique formula
4 min read
Mass Formula
The mass of an object relates to how much matter it contains. Consider three scales containing a bowling ball, a tennis ball, and a pebble. The bowling ball would undoubtedly have the highest weight rating on the scale among these three. Because a bowling ball is far heavier than a tennis ball or a marble, this is the case. The mass is the most imp
4 min read
Mass Energy Equivalence
The mass-energy equation is one of the critical underpinnings of Physics. German Physicist Albert Einstein set forth this popular regulation. This regulation expresses that mass and energy are comparative with one another. The mass-energy equation clarifies how energy can be changed over into mass and mass into energy. The hypothesis expresses that
5 min read
Relativistic Mass Formula
In physics, the mass idea discourse is quite common. When there are comparisons of length and time in distinct frames, the well-known special theory of relativity says a lot more about relativistic mass. When the body is moving, the relative change in mass is also experienced. This is referred to as relativistic mass. When an item is moving, it exp
3 min read
Difference between Center of Mass and Center of Gravity
Physics has always been a fascinating topic to study. Some of the interesting issues to study include gravity, inertia, distance, displacement, and so on. Science is a comprehensive area that studies various systems such as the human body, the solar system, plant and animal tissue, chemicals, and so on. The center of mass and the center of gravity
5 min read
What is the Atomic Mass of Sulfur?
Atomic Mass of Sulfur is .A) 32B) 30C) 31D) 33Answer: The atomic mass of Sulfur is 32. Therefore, the correct option is A.Explanation:The Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Sulfur, Number of Protons = 16Number of Neutrons = 16Thus, Atomic Mass of Sulfur = Numb
1 min read
What is the Atomic Mass of Hydrogen?
Atomic Mass of Hydrogen is _____________.A) 2B) 3C) 1D) 4Answer: The atomic mass of Hydrogen is 1 amu. Therefore, the correct option is C.Explanation:Atomic Mass of any substance is the number of Nucleons i.e. the sum of the Number of Protons and the Number of Neutrons in the nucleus of that atom. For Hydrogen, Number of Protons = 1Number of Neutro
1 min read
What is the Atomic Mass of Calcium?
Atomic Mass of Calcium is .A) 40B) 39C) 42D) 41Answer: The atomic mass of Calcium is 40u. Therefore, the correct option is A.Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Calcium, Number of Protons = 20Number of Neutrons = 20 Thus, Atomic Mass of Calcium = 20
1 min read
What is the Atomic Mass of Helium?
Atomic Mass of Helium is ____________.A) 6B) 4C) 5D) 3Answer: The atomic mass of Helium is 4amu. Therefore, the correct option is B.Explanation:Atomic Mass of any substance is the sum of the number of protons and the number of neutrons in the nucleus of that atom. For Helium Atom, Number of Protons = 2Number of Neutrons = 2Thus, Atomic mass of Heli
1 min read
three90RightbarBannerImg