Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Number System and Arithmetic
  • Algebra
  • Set Theory
  • Probability
  • Statistics
  • Geometry
  • Calculus
  • Logarithms
  • Mensuration
  • Matrices
  • Trigonometry
  • Mathematics
Open In App
Next Article:
Probability Distribution Function
Next article icon

Probability Distribution Function

Last Updated : 04 Dec, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Probability Distribution refers to the function that gives the probability of all possible values of a random variable.It shows how the probabilities are assigned to the different possible values of the random variable.
Common types of probability distributions Include:

  • Binomial Distribution.
  • Bernoulli Distribution.
  • Normal Distribution.
  • Geometric Distribution.

Note: A Probability Distribution can also be seen as the set of all possible outcomes of a random experiment, showing how probabilities are distributed across the values of the random variable.

A Probability Distribution Function (PDF) is a mathematical function that describes the likelihood of different outcomes in a random experiment. For any random variable X, where its value is evaluated at the points 'x', then the probability distribution function gives the probability that X takes the value less than equal to x.
We represent the probability distribution as, F(x) = P (X ≤ x)

Probability Distribution Function is also called Cumulative Distribution Function(CDF), The CDF represents the cumulative probability up to a certain value of the random variable.
The cumulative probability for a closed interval(a, b] is given by:

P(a < X ≤ b) = F(b) – F(a)

Note: For probability distribution function the value of the variable lies between 0 and 1: 0 ≤ F(x) ≤ 1

Related Reads: Probability Distribution

Probability Distribution Function (PDF) Formula

The probability distribution function formula gives the probability of all the possible outcomes of any random variable. Depending on the type of random variable (discrete or continuous), the formulas for the probability distribution function can differ.

Different formulas for the probability distribution function are listed beolw:

Probability Distribution of a Discrete Random Variable

Discrete Random Variable is the variable that takes distinct countable values are 0, 1, 2, 3 ... The formula for the probability distribution of a discrete random variable is,

Probability Distribution Function:

F(x) = P (X ≤ x)

Probability Distribution of a Continuous Random Variable

A continuous Random Variable is a variable that takes infinitely many values. The formula for the probability distribution of a continuous random variable is,
Probability Distribution Function: F(x) = P (X ≤ x)

Additionally, the Probability Density Function (PDF) is the derivative of the CDF:

f(x) = d/dx (F(x))

where,

• F(x) = ∫x-∞ f(u)du

Normal Probability Distribution Formula

The Normal Distribution, also known as the Gaussian distribution, is commonly represented by a bell-shaped curve. The formula for a normal probability distribution is:

P(x) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}

where,

• μ is the Mean
• σ is the Standard Distribution
• x is the Normal random variable

Note: If mean(μ) = 0 and standard deviation(σ) = 1, then this distribution is called the Normal Distribution.

Binomial Probability Distribution Formula

The Binomial Distribution describes the probability of exactly r successes in n independent trials, where each trial has a probability p of success and 1 − p of failure. The formula for the binomial probability distribution is:

P(r out of n) = n!/r!(n − r)! × pr(1 − p)n - r = nCr × pr(1 − p)n−r

where,

• n is the Total number of events
• r is the Total number of successful events
• p is the Probability of success on a single trial
• 1 – p is the Probability of failure

Note: The binomial coefficient(nr) is given by: nCr =  n!/r!(n – r)!

Probability Distribution Graph

The graph that plot the Probability Distribution Functions are called the Probability Distribution graphs. These graphs help us to visualize the probability distribution around a random variable and help us to easily find the required solution.

The sum of all the probabilities in any discrete distribution is one and for a continuous distribution of random variables the area under the graph is equal to 1. The distribution graph of the continuous distribution function is added below, where X (the random variable) lies between a and b. It is made using the Probability Density Function

Probability-Density-Function

For discrete random variables, the probability distribution is given using the Bernoulli distribution.

Probability Distribution Function and Probability Density Function

We easily describe the Probability distribution using the Probability Distribution Function and Probability Density Function. Using a probability distribution function is very useful for both continuous probability distribution and discrete probability distribution, while the probability density function(pdf) is only used for continuous probability distribution.

Articles related to Probability Distribution Function:

  • Poisson Distribution
  • Bernoulli Trials
  • Binomial Distribution

Uses of Probability Distribution Function

  • Statistical Inference: PDFs are fundamental in statistical inference, allowing for the estimation of population parameters and hypothesis testing.
  • Modeling and Simulations: PDFs are used to model real-world phenomena and to simulate random processes in fields like engineering, finance, and the natural sciences.
  • Risk Assessment: In finance and insurance, PDFs help assess risks and determine the likelihood of various financial outcomes.

Probability Distribution Function Examples

Example 1: Suppose we toss two dice. Make a table of the probabilities for the sum of the dice. The possibilities are: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12.

Solution:

Probability Distribution Table

XP(x)
21/36
32/36
43/36
54/36
65/36
76/36
85/36
94/36
103/36
112/36
121/36

Example 2: The number of old people living in houses on a randomly selected city block is described by the following probability distribution.

Number of adultsProbability
           (x)    P(x)
30.50
40.25
50.10
6?

What is the probability that 6 or more old people live in a randomly selected house?

Solution:

Sum of all the p(probability) is equal to 1

Probability that six or more old peoples live in a house,

= 1 - (0.50 + 0.25 + 0.10)
= 0.15

Thus, probability that six or more old peoples live in a house is equal to 0.15

Example 3: When a fair coin is tossed 8 times, then the Probability of:

  • Exactly Four Heads
  • At least Four Heads

Solution:

Every coin tossed can be considered as the Bernoulli trial. Suppose X be the number of heads in this experiment,

n = 8
p = 1/2

So,
P(X = x) = nCx pn - x (1 - p)x, x =  0, 1, 2, 3,...n
P(X = x) = 8Cxp8 - x(1 - p)x

P(Exactly 4 Heads)
= P(x = 4)
= 8C4 p4 (1 - p)4
= 8!/4!4!(1/2)4(1/2)4
= (8 × 7 × 6 × 5/2 × 3 × 4) × (1/16) × (1/16)
= 420/1536
= 35/128

Thus, the probability of Exactly Four Heads in a Eight Coin Toss experiment is 35/128

P(At Least 4 Heads)

= P(X >= 4)
= P(X = 4) + P(X = 5) + P(X = 6)+ P(X = 7) + P(X = 8).
= 8C4 p4 (1 - p)4 + 8C5 p3 (1 - p)5 + 8C6 p2 (1 - p)6 + 8C7 p1(1 - p)7 + 8C8(1 - p)8
= 8!/4!4!(1/2)8 + 8!/5!3!(1/2)8 + 8!/6!2!(1/2)8 + 8!/7!1!(1/2)8 + 8!/8!(1/2)8
= 8 × 7 × 6 × 5/4 × 3 × 2 × 256 + 8 × 7 × 6/3 × 2 × 256 + 8/256 + 1/256
= 1680/6144 + 336/1536 + 9/256
= 70/256 +  56/256 + 9/256
= 135/256

Thus, the probability of Atleast Four Heads in a Eight Coin Toss experiment is 135/256

Example 4: Calculate the probability of getting 10 heads, if a coin is tossed 12 times.

Solution:

Given,

  • Number of Trials(n) = 12
  • Number of Success(r) = 10 (getting 10 heads)
  • Probability of Single Head(p) = 1/2 = 0.5

To find nCr =  n!/r!(n – r)!

=  12!/10!(12 – 10)!
=  (12 × 11 × 10!)/10!2!
= 66

To find pr = (0.5)10 = 0.00097665625
So, the probability of getting 10 heads is:

P(x) = nCr pr (1 - p)n - r
= 66 × 0.00097665625 × (1 – 0.5)(12-10)
= 0.0644593125 × (0.5)2
= 0.016114828125

The probability of getting 10 heads = 0.0161...

Example 5: Suppose that each time you take a free throw shot, you have a 35% chance of making it. If you take 25 shots, what is the probability of making exactly 15 of them?

Solution:

Given,

  • n = 25
  • r = 15
  • p = 0.35
  • q = 0.65

Compute
C25,15 (0.35)15 (0.65)10 = 0.165

There is a 16.5% chance of making exactly 15 shots.

Example 6: There is a total of 5 people in the room, what is the possibility that someone in the room shares His / Her birthday with at least someone else?

Solution:

P(s) = p(At least someone shares with someone else)                        

P(d) = p(No one share their birthday everyone has a different birthday)

p(s) + p(d) = 1 or 100%
p(s) =100% - p(d)

There are 5 people in the room, the possibility that no one shares his/her birthday

= (365 × 364 × 363 × 362 × 361) ⁄ (365)5
= (365! ⁄ (365 - 5)!) ⁄ 3655
= (365! ⁄ 360!) ⁄ 3655
= 0.9728

p(d) = 0,9728 or 97.28%

p(s) = 100% - p(d)

= 100% - 97.28% or 1 - 0.9728
= 2.72%  ≈ 0.0272

Practice Questions on the Probability Distribution Function

Q1: Find the Probability Distribution of the the Number of Heads when two coins are tossed Simultaneously.

Q2: What is the Probability Distribution of the of number of Kings when three cards are drawn at random.

Q3: A die is thrown twice. Find the probability of getting a number of sixes.

Q4: A coin is thrown until a tail appears or the the head appears three times continuously. Find the probability distribution of tosses.


Next Article
Probability Distribution Function

C

chhabradhanvi
Improve
Article Tags :
  • Mathematics
  • School Learning
  • Class 12
  • Probability
  • Maths-Formulas
  • Maths-Class-12

Similar Reads

    Probability in Maths
    Probability is the branch of mathematics where we determine how likely an event is to occur. It is represented as a numeric value ranging from 0 to 1. Probability can be calculated as:\text{Probability} = \dfrac{Favourable \ Outcome}{Total \ Number \ of \ Outcomes}Favourable outcomes refer to the ou
    4 min read
    Events in Probability
    Events in Probability- In Probability, an event can be defined as any outcome or set of outcomes from a random experiment. In other words, an event in probability is the subset of the respective sample space.Example:1. If you roll a die, the event could be "getting a 3" or "getting an even number."2
    14 min read

    Types of Event

    Types of Events in Probability
    Whenever an experiment is performed whose outcomes cannot be predicted with certainty, it is called a random experiment. In such cases, we can only measure which of the events is more likely or less likely to happen. This likelihood of events is measured in terms of probability and events refer to t
    13 min read
    Mutually Exclusive Events
    Mutually exclusive events are those that cannot occur at the same time; if one event happens, it eliminates the possibility of the other event occurring. For example, in a cricket match between India and Pakistan, only one team can win. If Pakistan wins, India loses, and vice versa. Therefore, "Indi
    8 min read

    Probability Based on Coin

    Tossing a Coin Probability Formula
    Coin Toss Probability helps us to determine the likelihood of getting heads or tails while flipping a coin. Before diving into the formula, it's essential to understand that when a fair coin is tossed, there are only two possible outcomes: Heads (H) and Tails(T). In the fair coin toss definition, ea
    7 min read
    What are all the possible outcomes if a coin is tossed?
    When a fair coin is tossed then there are two possible outcomes: H (head)T (tail)The probability of occurrence of both events will be 0.5.What is Probability?Probability is a mathematical branch that deals with calculating the likelihood of occurrence of a random event. Its value ranges between 0 (e
    6 min read
    How many possible outcomes would be there if three coins were tossed once?
    Total Possible Outcomes = 2^3 = 8 Explanation:We will learn 2 Methods on how to solve this problem :1) Logical MethodStep 1: First of all try to find out all the possible outcomes when a single coin is toss. When we toss a fair coin then the outcomes are 'Head' or 'Tail'Step 2: Represent them in for
    7 min read
    How to calculate Dice Probabilities?
    Probability is the chance or likelihood of an event happening. It is represented by a number between 0 and 1. The higher the probability, the greater the chances of the event occurring.A probability of 0 means the event is impossible and cannot happen.A probability of 1 means the event is certain to
    5 min read

    Cards

    What is the probability of not picking a king if you choose randomly from a pack of 52 cards?
    In one pack of cards, there are 4 kings in a deck of 52, therefore , the probability of drawing a king is = Probability of an event, P(A) = Favorable outcomes / Total number of outcomes= 4/52= 1/13Hence, the probability of not picking a king P(B) = 1 - P(A)= 1 - 1/13= 12/13Therefore the probability
    7 min read
    Find the probability that if one card drawn from a well-shuffled pack of 52 playing cards is a face card?
    Answer: The probability of getting a face card = Favorable outcomes / Total outcomes = 12 / 52 = 3/13Probability means Possibility. It states how likely an event is about to happen. The probability of an event can exist only between 0 and 1 where 0 indicates that the event is not going to happen i.e
    7 min read
    What is the probability of getting either a red card or King card?
    A probability is a number that expresses the chance or likelihood of an event occurring. Probabilities can be stated as proportions ranging from 0 to 1, as well as percentages ranging from 0% to 100%, where 0 indicates an impossible event and 1 indicates a certain event. The sum of the probabilities
    8 min read
    What is the probability of drawing a black card from a well-shuffled deck of 52 cards?
    Answer: Therefore probability of getting a black card= {total number of black cards in the deck}/{total number of cards in the deck}= 26/52= 1/2A branch of mathematics that deals with the happening of a random event is termed probability. It is used in Maths to predict how likely events are to happe
    5 min read
    Axiomatic Approach to Probability
    Hearing the word "probability" brings up ideas related to uncertainty or randomness. Although the concept of probability can be hard to describe formally, it helps us analyze how likely it is that a certain event will happen. This analysis helps us understand and describe many phenomena we see in re
    10 min read
    Addition Rule for Probability
    Probability is an experimental approach to the game of chances we come across every day in our lives. It is a way to describe these “chances” mathematically and then analyze them. It allows us to measure the chances of something occurring. Probability of Event P(E) = [Number of Favorable Outcomes] /
    9 min read
    Conditional Probability
    Conditional probability defines the probability of an event occurring based on a given condition or prior knowledge of another event. Conditional probability is the likelihood of an event occurring, given that another event has already occurred. In probability, this is denoted as A given B, expresse
    12 min read
    Bayes' Theorem
    Bayes' Theorem is a mathematical formula that helps determine the conditional probability of an event based on prior knowledge and new evidence.It adjusts probabilities when new information comes in and helps make better decisions in uncertain situations.Bayes' Theorem helps us update probabilities
    12 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences