Discrete Probability Distribution
Last Updated :
14 Aug, 2024
Discrete probability distribution counts occurrences with finite outcomes. The common examples of discrete probability distribution include Bernoulli, Binomial and Poisson distributions.
In this article we will explore discrete probability distribution along with discrete probability distribution definition, discrete probability distribution condition and discrete probability distribution formulas.
What is Discrete Probability Distribution?
A probability distribution that gives the finite trials of a discrete random variable at a given point in time is called a discrete probability distribution. The probability distribution gives the different values of a random variable along with its different probabilities. The two types of probability distribution include discrete probability distribution and continuous probability distribution.
Discrete Probability Distribution Definition
Discrete probability distribution is defined as the probability at a specific value for a discrete random variable. The discrete probability distributions represent the probability distributions with finite outcomes.
Conditions for Discrete Probability Distribution
Conditions for the discrete probability distribution are:
- Probability of a discrete random variable lies between 0 and 1: 0 ≤ P (X = x) ≤ 1
- Sum of Probabilities is always equal to 1: ∑ P (X =x) = 1
Discrete Probability Distribution Example
Let two coins be tossed then the probability of getting a tail is an example of a discrete probability distribution. The sample space for the given event is {HH, HT, TH, TT} and X be the number of tails then, the discrete probability distribution table is given by:
x | 0 {HH} | 1 {HT, TH} | 2 {TT} |
|---|
P (X = x) | 1/4 | 1/2 | 1/4 |
|---|
The different formulas for the discrete probability distribution like probability mass function, cumulative distribution function, mean and variance are given below.
PMF of Discrete Probability Distribution
PMF of a discrete random variable X is the value completely equal to x. The PMF i.e., probability mass function of discrete probability distribution is given by:
f(x) = P (X = x)
CDF of Discrete Probability Distribution
CDF of a discrete random variable X is less than or equal to value x. The CDF i.e., cumulative distribution function of discrete probability distribution is given by:
f(x) = P (X ≤ x)
Discrete Probability Distribution Mean
Mean of discrete probability distribution is the average of all the values that a discrete variable can obtain. It is also called as the expected value of the discrete probability distribution. The mean of discrete probability distribution is given by:
E[X] = ∑x P(X =x)
Discrete Probability Distribution Variance
Variance of discrete probability distribution is defined as the product of squared difference of distribution and mean with PMF. The variance of the discrete probability distribution is given by:
Var[X] = ∑(x - μ)2 P(X = x)
How to Find Discrete Probability Function
Steps to find the discrete probability function are given below:
- Step 1: First determine the sample space of the given event.
- Step 2: Define random variable X as the event for which the probability has to be found.
- Step 3: Consider the possible values of x and find the probabilities for each value.
- Step 4: Write all the values of x and their respective probabilities in tabular form to get the discrete probability distribution.
Types of Discrete Probability Distribution
The different types of discrete probability distribution are listed below.
Bernoulli Distribution
A discrete probability distribution with the probability of success p if the value of random variable is 1 and the probability of failure 1-p if the value of random variable is zero is called the Bernoulli distribution. The probability mass function of the Bernoulli distribution is given by:
P (X = x) = \bold{\begin{cases}
\bold{p, \hspace{0.1cm} x = 1}\\
\bold{1-p, \hspace{0.1cm} x = 0}
\end{cases}}
Binomial Distribution
A discrete probability distribution that includes the number of trials n, probability of success and probability of failure is called as Binomial distribution. The probability mass function of the Binomial distribution is given by:
P (X = x) = nCx px (1-p) n-x
Poisson Distribution
A discrete probability distribution that gives the number of events occurred at a specific time period with the help of its mean is called as the Poisson distribution. The probability mass function of Poisson distribution is given by:
P (X = x) = [ƛx × e-ƛ] / x!
Geometric Distribution
A discrete probability distribution that includes the successive failure probability until the success probability is encountered is called as Geometric distribution. The probability mass function of the geometric distribution is given by:
P (X = x) = (1 - p) xp
Solved Examples on Discrete Probability Distribution
Example 1: Construct the discrete probability table when a coin is tossed two times and X be random variable representing the number of one head.
Solution:
Sample space of two coin tossed = 4 i.e., {HH, HT, TH, TT}
X: Number of one head
The below table represents the discrete probability.
X | {HT} | {TH} |
|---|
P (X = x) | 1 / 4 | 1/4 |
|---|
Example 2: Find the value of p from the given discrete probability table.
X | 3 | 4 | 5 | 6 |
|---|
P (X = x) | 0.1 | p | 0.2 | 0.4 |
|---|
Solution:
To find the value of p we will use the discrete probability condition.
∑ P (X =x) = 1
0.1 + p + 0.2 + 0.4 = 1
0.7 + p = 1
p = 1 - 0.7
p = 0.3
Example 3: Find the mean of discrete probability distribution using below table.
X | 2 | 3 | 4 | 5 |
|---|
P (X = x) | 0.16 | 0.45 | 0.32 | 0.07 |
|---|
Solution:
To find the mean of discrete probability distribution we use formula:
E[X] = ∑ [ x P(X =x)]
E[X] = 2 × 0.16 + 3 × 0.45 + 4 × 0.32 + 5 × 0.07
E[X] = 0.32 + 1.35 + 1.28 + 0.35
E[X] = 3.3
Example 4: If there are 15 pens in which 3 pens are defective and the probability of pen is defective 0.5 then, find the discrete probability of pen to be defective.
Solution:
To find the required probability we use Binomial Distribution
P (X = x) = nCx px (1-p) n-x
P (X = 3) = 15C3 p3 (1-p) 15-3
P (X = 3) = 15C3 (0.5)3 (1 - 0.5) 12
P (X = 3) = 455 × (0.5)3 × (0.5) 12
P (X = 3) = 455 × (0.5)15
P (X = 3) = 0.014
Practice Questions on Discrete Probability Distribution
Q1. Construct the discrete probability table when a dice is rolled, and X be random variable representing the numbers greater than equal to 3.
Q2. Find the value of a from the given discrete probability table.
X | 0 | 1 | 2 | 4 |
|---|
P (X = x) | 0.6 | a | 0.1 | 0.3 |
|---|
Q3. Find the expected value of discrete probability distribution using below table.
X | 4 | 5 | 6 | 7 |
|---|
P (X = x) | 0.21 | 0.35 | 0.42 | 0.02 |
|---|
Q4. Determine the probability if the number of trials is 100, number of successes is 94 and the probability of failure is 0.4.
FAQs on Discrete Probability Distribution
What is Discrete Probability Distribution?
A probability distribution at specific time for the values and probabilities of discrete random variables is called discrete probability distribution.
What are Requirements of Discrete Probability Distribution?
Requirements of discrete probability distribution are as follows:
- Probability of discrete random variable lies between 0 and 1: 0 ≤ P (X = x) ≤ 1
- Sum of probabilities is always equal to 1: ∑P (X = x) = 1
What is Discrete and Continuous Probability Distribution?
Discrete probability distribution deals with the values and probabilities of discrete random variables at specific time whereas the continuous probability distribution deals with the values and probabilities of continuous random variables at specified interval.
Can Expected Value of Discrete Probability Distribution be Negative?
Yes, expected value of discrete probability distribution can be negative.
Similar Reads
How to create five-column grid in jQuery Mobile ?
Grids in jQuery Mobile are elements that have 100% width and are completely invisible having no borders, backgrounds, padding, or margins. Inside the grid container, the elements are assigned the classes with the names ui-block-a/b/c/d/e. This makes each "block" element appear in the form of a grid
1 min read
How To Create a Responsive Table in CSS ?
A responsive table in CSS automatically changes to fit any screen size. It stays easy to read on small screens, like phones, by scrolling or adjusting columns as needed. To make a responsive table in CSS, place it inside a <div> with overflow-x: auto;. This lets the table scroll sideways on sm
3 min read
How to Create a Responsive CSS Grid Layout ?
Here are different ways to create a responsive grid layout with CSS. 1. Using auto-fill PropertyThis method can be used CSS Grid for a responsive layout. The grid-template-columns property adjusts columns based on space, keeping a minimum width of 200 pixels. Gaps between items are set with grid-gap
3 min read
CSS min-height Property
The min-height property in CSS is used to set the minimum height of an element. The min-height property is used when the content of the element is smaller than the min-height and if the content is larger than the min-height then it has no effect. This property ensures that the value of the height pr
3 min read
How to find the width of a div using vanilla JavaScript?
To measure the width of a div element we will utilize the offsetWidth property of JavaScript. This property of JavaScript returns an integer representing the layout width of an element and is measured in pixels. Below are the different approaches to finding the width of a div using vanilla JavaScrip
3 min read
Foundation CSS Responsive Embed Aspect Ratios
Foundation CSS is an open-source & responsive front-end framework built by the ZURB foundation in September 2011, which makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. The framework is built on SaaS-like bootstrap.
3 min read
HTML DOM clientHeight Property
The DOM clientHeight property is used to return the viewable height of an element in terms of the pixel. It includes the measurement of the width of padding but does not include the margin, border, and scrollbar property for the measurement of the element width. This property only returns the actual
2 min read
HTML DOM offsetHeight Property
The DOM offsetHeight property is used to return the layout height of an element as an integer. It is measured in pixels. It includes height, border, padding, and horizontal scrollbars but not margin. If the element is hidden then it returns 0. Syntax: element.offsetHeight Return Value: It returns th
2 min read
How to Create Columns with the Same Height in Tailwind CSS ?
Creating columns of equal height is a common design requirement in web development. This need arises in scenarios like displaying a grid of cards or a list of items where each column should have the same height regardless of its content. Tailwind CSS, a utility-first CSS framework, provides several
2 min read
How to Create a Masonry grid with flexbox in CSS?
Masonry Grid in CSS is a layout technique that arranges items in a way that resembles a masonry wall, where items of varying heights are placed in columns, filling in gaps and creating a staggered appearance. This can be done using Flexbox by allowing items to wrap and adjusting their heights to cre
3 min read
How to detect virtual keyboard using JavaScript ?
In this article, we are given an HTML document, the task is to detect a virtual keyboard if it pops up on the device's screen. A virtual keyboard is a tool that helps in the input of characters without the use of the physical keyboard. It is widely used in touchscreen devices. Approach: Unfortunatel
2 min read
jQuery | Dimensions
The JQuery Dimensions is an inbuilt method in jQuery which is used to work with the dimensions of various elements and browser window. There are several dimension methods in JQuery Dimension.jQuery Dimension Methods: width(): This method sets or returns the width of the element excluded padding, bor
3 min read
CSS flex-grow Property
The CSS flex-grow property specifies how much the item will grow relative to the rest of the flexible items inside the same container. It is essential for responsive design, allowing elements to expand based on available space, and ensuring a dynamic and adaptable layout. Note: If the item in the co
3 min read
How to Set Viewport Height & Width in CSS ?
Set viewport height and width in CSS is essential for creating responsive and visually appealing web designs. We'll explore the concepts of setting viewport height and width by using various methods like CSS Units, Viewport-Relative Units, and keyframe Media Queries. Table of Content Setting viewpor
3 min read
How to detect the change in DIV's dimension ?
The change in a div's dimension can be detected using 2 approaches: Method 1: Checking for changes using the ResizeObserver Interface The ResizeObserver Interface is used to report changes in dimensions of an element. The element to be tracked is first selected using jQuery. A ResizeObserver object
4 min read
How to Target Specific Screen Sizes or Devices with CSS ?
In Responsive Web Design, it's crucial to create websites that look great and function well on a variety of devices and screen sizes. CSS media queries are a powerful tool for achieving this. It allows you to apply different styles based on specific conditions such as screen size, resolution, or ori
2 min read
How to create a responsive scrollbox in CSS ?
The purpose of this article is to create a responsive scrollbar in HTML page structure using CSS. In CSS, a responsive scroll box is an interaction technique that contains text, images, or any other elements. They can be scrolled in preset directions, which allows users to scroll if the contents of
3 min read
How to Force Image Resize and Keep Aspect Ratio in HTML ?
To resize an image in HTML while keeping its aspect ratio, you can use simple HTML or CSS techniques. The problem is to ensure that the image scales without distortion or cropping. This can be fixed by applying simple styles that resize the image while keeping its original proportions. Below are the
2 min read
How to Create a div that Contains Multiple Fixed-Size Images?
Creating a div that contains multiple fixed-size images involves defining a container (div) in HTML and applying CSS to set consistent dimensions for the images. This ensures that all images within the container maintain the same width and height, providing a uniform layout. ApproachHTML Structure:
2 min read