Chapter 8
Chapter 8
Courses
Search... Tutorials Sign In
Interview Prep
Expected value and variance are fundamental concepts in probability and statistics that help us understand
the behavior of random variables. The expected value, also known as the mean, represents the average
outcome of an experiment repeated many times. Variance, on the other hand, measures the spread or
dispersion of a set of values.
For example, if you were to roll a fair six-sided die, the expected value of the roll would be the average
of all possible outcomes; meanwhile, the variance would give you an idea of how much each roll
deviates from this average value.
Expected Value
The expected value (often denoted as E(X) or μ) of a random variable X is a measure of the central tendency
of its probability distribution. It is essentially the mean value that the variable would take if the experiment
were repeated many times.
The coin is fair (so the probability of Heads = 0.5 and Tails = 0.5).
If you play this game many times, you’ll win ₹5 on average per flip — even though you never actually
win exactly ₹5 in any single flip. That's the expected value.
[Link] 1/7
4/12/26, 8:12 AM Expected Value and Variance - GeeksforGeeks
Expected value can be thought of as the "center of mass" of the probability distribution. It is the point at
which the distribution would balance if it were possible to place it on a scale.
The expected value of a discrete random variable X with possible values x1, x2,..., xn and corresponding
probabilities p1, p2,...,pnis given by:
For a continuous random variable X with probability density function f(x), the expected value is defined as:
Example 1: Find the expected value when rolling a fair six-sided die.
Solution:
Possible outcomes: 1, 2, 3, 4, 5, 6
Probabilities: P(X=i) = \frac{1}{6} for i = 1,...,6
Expected value calculation:
E(X) = \sum_{i=1}^{6} x_i \cdot P(X=x_i) \\E(X)= 1 \cdot \frac{1}{6} + 2 \cdot \frac{1}{6} + 3 \cdot \frac{1}
{6} + 4 \cdot \frac{1}{6} + 5 \cdot \frac{1}{6} + 6 \cdot \frac{1}{6} \\E(X) = \frac{1+2+3+4+5+6}{6} =
\frac{21}{6} = 3. 5
The expected value of a fair die roll is 3.5.
Example 2: Find the expected waiting time when the time is uniformly distributed between 0 and 10 minutes.
Solution:
Some of the properties of expected value are listed in the following table:
Linearity of Expectation The expected value of a linear combination E(aX + bY) = If E(X) = 2 and E(Y) = 3,
of random variables is the linear aE(X) + bE(Y) then E(2X + 3Y) = 2⋅2 +
[Link] 2/7
4/12/26, 8:12 AM Expected Value and Variance - GeeksforGeeks
Non-Negativity for
The expected value of a non-negative E(X) ≥ 0 if X ≥
Non-Negative Random If X ≥ 0, then E(X) ≥ 0.
random variable is non-negative. 0
Variables
Variance
Variance is a statistical measure that indicates the spread or dispersion of a set of data points. It shows how
much the data points in a dataset differ from the mean (average) value.
[Link] 3/7
4/12/26, 8:12 AM Expected Value and Variance - GeeksforGeeks
1/2
A high variance indicates that the data points are spread out widely around the mean, while a low variance
indicates that they are clustered closely around the mean. Variance helps in understanding the variability
within a dataset.
In real-world applications, variance is used in finance to assess risk, in quality control to measure consistency,
and in many other fields to analyze variability.
Where:
Where:
Example: Find the population variance for outcomes of a fair six-sided die.
Solution:
Possible outcomes: X in 1, 2, 3, 4, 5, 6
Probabilities: P(X=i) = \frac{1}{6} \: for \: i = 1,\ldots,6
Mean (from previous): = 3.5
\sigma^2 = \frac{\sum_{i=1}^{6} (x_i - \mu)^2}{6} \\ \sigma^2 = \frac{(1-3.5)^2 + (2-3.5)^2 + \cdots +
(6-3.5)^2}{6} \\ \sigma^2 = \frac{6.25 + 2.25 + 0.25 + 0.25 + 2.25 + 6.25}{6} \\ \sigma^2 = \frac{17.5}{6}
\approx 2.9167
[Link] 4/7
4/12/26, 8:12 AM Expected Value and Variance - GeeksforGeeks
This formula can be expanded to show the relationship between the expected value and variance more
explicitly:
Therefore, the variance of a random variable X can be calculated as the difference between the expected
value of the square of X and the square of the expected value of X:
Var(X) = E[X2]−(E(X))2
Example: A casino game uses a special 4-sided die with the following probability distribution: for outcomes
1, 2, 3, and 4, the probabilities are 0.1, 0.4, 0.3, and 0.2, respectively. Find the variance of the payout.
Solution:
E[X] = \sum x_i P(x_i) \\
E[X] = (1)(0.1) + (2)(0.4) + (3)(0.3) + (4)(0.2) \\
E[X] = 0.1 + 0.8 + 0.9 + 0.8 = 2.6
E[X^2]= \sum x_i^2 P(x_i) \\
E[X^2]= (1^2)(0.1) + (2^2)(0.4) + (3^2)(0.3) + (4^2)(0.2) \\
E[X^2]= (1)(0.1) + (4)(0.4) + (9)(0.3) + (16)(0.2) \\
E[X^2]= 0.1 + 1.6 + 2.7 + 3.2 = 7.6
Var(X) = E[X^2] - (E[X])^2 \\
Var(X) = 7.6 - (2.6)^2 \\
Var(X) = 7.6 - 6.76 \\
Var(X) = 0.84
In computer science, especially in areas like algorithm analysis, machine learning, and data analysis, expected
value and variance are the fundamental concepts with practical significance:
Algorithm Analysis: Analyzing the expected running time or output of an algorithm, especially randomized
algorithms.
[Link] 5/7
4/12/26, 8:12 AM Expected Value and Variance - GeeksforGeeks
Machine learning: Evaluating model performance, optimizing algorithms (e.g., reinforcement learning to
maximize expected rewards), making predictions using probabilistic models, and selecting the best model
based on metrics like expected accuracy or loss.
Data Analysis: Summarizing datasets using expected values to estimate population means.
Gaming & Gambling: Used to determine the probability of winning or losing in games of chance, helping
players and casinos make informed decisions.
Bias-Variance Tradeoff: In machine learning, variance is crucial in understanding the bias-variance tradeoff
– a fundamental concept balancing model complexity and generalization capability.
Related Articles
Standard Deviation
Variance and Standard Deviation
Binomial Distribution
Poison Distribution
Difference Between Variance and Standard Deviation
Comment S somes… 0
Explore
Basic Arithmetic
Algebra
Geometry
Trigonometry & Vector Algebra
Calculus
Probability and Statistics
Practice
[Link] 6/7
4/12/26, 7:54 AM Probability Density Function - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
The probability density function(PDF) is the function that represents the density of probability for a
continuous random variable over the specified ranges. It is denoted by f(x). The PDF is obtained by
differentiating the Cumulative Distribution Function (CDF), and the CDF can be obtained by integrating
the PDF. The PDF does not give the probability at a single point; instead, probability is found over an
interval using the area under the curve.
PDFs are widely used in real-life applications such as rainfall prediction, financial modeling (stock
markets), and income distribution analysis.
⎧2x, 0≤x≤1
If the probability density function is given as: f (x) = ⎨
⎩0,
otherwise
⎧2x, 0≤x≤1
=⎨
⎩0,
Given f (x)
otherwise
[Link] 1/10
4/12/26, 7:54 AM Probability Density Function - GeeksforGeeks
0.6 0.6
P (0.2 ≤ X ≤ 0.6) = ∫0.2 2x dx = [x2 ]0.2 = [0.36 − 0.04] = 0.32
d
f(y) = dy [F (y)]= F'(y)
If we want to calculate the probability for X lying between the interval a and b, then we can use the
following formula:
a
P (a ≤ X ≤ b) = F(b) - F(a) =∫b f (x)dx
Step 1: First check the PDF is valid or not using the necessary conditions.
Step 2: If the PDF is valid, use the formula and write the required probability and limits.
Step 3: Divide the integration according to the given PDF.
Step 4: Solve all integrations.
Step 5: The resultant value gives the required probability.
Probability density function is always positive for all the values of x : f(x) ≥ 0, ∀ x ∈ R
−∞
∫∞ f (x)dx = 1
For a continuous random variable X, probabilities are calculated over intervals. The endpoints of the
interval do not affect the probability:
Probability density function of a continuous random variable over a single value is zero.
a
P(X = a) = P (a ≤ X ≤ a) = ∫a f (x)dx = 0
Probability density function defines itself over the domain of the variable and over the range of the
continuous values of the variable.
Mean of the probability density function refers to the average value of the random variable. The mean
is also called as expected value or expectation. It is denoted by μ or E[X] where, X is random variable.
Mean of the probability density function f(x) for the continuous random variable X is given by:
−∞
E[X] = μ = ∫∞ xf (x)dx
Median is the value which divides the probability density function graph into two equal halves. If x = M
is the median then, area under curve from -∞ to M and area under curve from M to ∞ are equal which
gives the median value = 1/2. Median of the probability density function f(x) is given by:
−∞ M 1
∫M f (x)dx = ∫∞ f (x)dx =
2
Variance of probability density function refers to the squared deviation from the mean of a random
variable. It is denoted by Var(X) where, X is random variable. Variance of the probability density
function f(x) for continuous random variable X is given by:
−∞
Var(X) = E [(X - μ)2] = ∫∞ (x − μ)2 f (x)dx
[Link] 3/10
4/12/26, 7:54 AM Probability Density Function - GeeksforGeeks
Standard Deviation is the square root of the variance. It is denoted by σ and is given by:
σ = √Var(X)
PDF Vs CDF
The key differences between Probability Density Function (PDF) and Cumulative Distribution Function
(CDF) are listed in the following table:
Represents the likelihood of the random variable Represents cumulative probability up to a given
taking on a specific value. value.
The area under the PDF curve over a certain interval The value of the CDF at a specific point gives the
gives the probability that the random variable falls probability that the random variable is less than or
within that interval. equal to that point.
The PDF can be obtained by differentiating the CDF The CDF can be obtained by integrating the PDF
with respect to the random variable. with respect to the random variable.
The probability of a random variable falling within a The probability of a random variable being less than
specific interval (a,b) is given by P (a < X < b) = or equal to a specific value x is given by P (a < X ≤
∫a f (x) dx b) = F (b) − F (a)
b
−λx
Exponential distribution PDF: λe ,x≥0 Exponential distribution CDF: 1−e−λx ,x≥0
Uniform Distribution
Binomial Distribution
Normal Distribution
Chi-Square Distribution
The uniform distribution is the distribution whose probability for equally likely events lies between a
specified range. It is also called as rectangular distribution. The distribution is written as U(a, b) where,
a is the minimum value and b is the maximum value. If x is the variable which lies between a and b,
then formula of PDF of uniform distribution is given by:
1
f (x) = (b−a)
The binomial distribution is the distribution which has two parameters: n and p where, n is the total
number of trials and p is the probability of success.
Let x be the variable, n is the total number of outcomes, p is the probability of success and q be the
probability of failure, then probability density function for binomial distribution is given by:
P (x) = n Cx px q n−x
The normal distribution is distribution that is symmetric about its mean. It is also called as Gaussian
ˉ, σ2) where, x
distribution. It is denoted as N (x ˉis the mean and σ2 is the variance. The graph of the
ˉ is the mean, σ2 is the variance and σ be the
normal distribution is bell like graph. If x be the variable, x
standard deviation, then formula for the PDF of Gaussian or normal distribution is given by:
−1 x−μ 2
1 [ σ ]
ˉ, σ2) = f(x) =
N (x
σ 2π
e
2
In standard normal distribution mean = 0 and standard deviation = 1. So, the formula for the
probability density function of the standard normal form is given by:
−x 2
1
f(x) = e 2
σ 2π
Chi-Squared distribution is the distribution defined as the sum of squares of k independent standard
normal form. IT is denoted as X2(k).
The probability density function for Chi-squared distribution formula is given by:
[Link] 5/10
4/12/26, 7:54 AM Probability Density Function - GeeksforGeeks
k
−1 −x
2 2
f(x) = x k e k , x > 0
2 2 Γ( 2 )
f(x) = 0, otherwise
The PDF is the function defined for single variable whereas joint PDF is the function defined for two or
more than two variables, and other key differences between these both concepts are listed in the
following table:
Probability Density Function is the probability Joint Probability Density Function is the probability
function defined for single variable. function defined for more than one variable.
Read More,
={
x/2 0≤x<4
Example 1: If the probability density function is given as: f (x) . Find P (1 ≤
0 x≥4
X ≤ 2).
[Link] 6/10
4/12/26, 7:54 AM Probability Density Function - GeeksforGeeks
1
P (1 ≤ X ≤ 2) = ∫2 f (x)dx
f(x) = x / 2 for 0 ≤ x ≤ 4
1
⇒ P (1 ≤ X ≤ 2) = ∫2 (x/2)dx
2 2
⇒ P (1 ≤ X ≤ 2) = 12 × [ x2 ]1
⇒ P (1 ≤ X ≤ 2) = 3 / 4
={
c(x − 1) 0<x<5
Example 2: If the probability density function is given as: f (x) . Find c.
0 x≥5
For PDF:
−∞
∫∞ f (x)dx = 1
−∞ 1 5
⇒ ∫1 f (x)dx + ∫5 f (x)dx + ∫∞ f (x)dx = 1
−∞ 1 5
⇒ ∫1 0dx + ∫5 c(x − 1)dx + ∫∞ 0dx = 1
2 5
⇒ 0 + c[ x2 − x]1 + 0 = 1
2 5
⇒ c[ x2 − x]1
⇒ 8c = 1
⇒ c = 18
={
5 2
2
x 0≤x<2
Example 3: If the probability density function is given as: f (x) . Find the
0
otherwise
mean.
4 2
⇒ μ = 52 [ x4 ]1
⇒ μ = (5/2) × (15/4)
⇒ μ = 75/8 = 9.375
={
2x 0≤x<1
Example 4: If the probability density function is given as: f (x) . verify if this
0
otherwise
is a valid probability density function.
[Link] 7/10
4/12/26, 7:54 AM Probability Density Function - GeeksforGeeks
∞
Integrating f(x) over its range:∫−∞∞f(x) dx=∫012x dx=[x2]01=12−02=1.∫−∞ f (x) dx =
1 1
∫0 2x dx = [x2 ]0
= 12 - 02 = 1.
Since both conditions are satisfied, f(x) is a valid PDF.
otherwise
(expected value) of the distribution.
The mean of a continuous random variable X with PDF f(x) is given by:
∞
E(X)= ∫−∞ xf (x) dx.
1
= ∫0 3x3 dx
1
= 3 [ x4 ]
4
= 3 ⋅ 14
= 34
={
3x2 if 0 ≤x≤1
Example 6: Using the same PDF f (x) , find the variance of the
0
otherwise
distribution.
1
= ∫0 x2 ⋅ 3x2 dx
1
= ∫0 3x4 dx
1
= 3 [ x5 ]
5
0
1
=3⋅ 5
= 35 .
[Link] 8/10
4/12/26, 7:54 AM Probability Density Function - GeeksforGeeks
f(x) = 2x for 0 ≤ x ≤ 2
f(x) = 0 otherwise
{
k(1 − x2 ) if − 1 ≤ x ≤ 1
Q 4: Given
ry Geometry the
Linear function
Algebra f (x) = , find the
Trigonometry Logarithms Statistics Probability Calculus value
Discrete of k that makes f(x) Sign
Mathematics a In
0
otherwise
valid PDF.
= {3
1 −x/3
e if x ≥0
Q 5: For the PDF f (x) , calculate the expected value E(X).
0
otherwise
Comment A aayush… 12
Explore
Linear Algebra
Sequence & Series
Calculus
Probability & Statistics
Practice Questions
[Link] 9/10
4/12/26, 8:00 AM Moment Generating Functions - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
Moment Generating Functions (MGFs) are a powerful tool in probability theory used to analyze
random variables. They transform a random variable into a function that simplifies the calculation of
important characteristics, such as the mean, variance, skewness, and kurtosis.
Moments are quantitative measures that describe the shape and characteristics of a probability
distribution:
MX (t) = E[etX ]
Where:
MGFs exist for all values of t in some open interval around 0 where the expectation is finite.
[Link] 1/7
4/12/26, 8:00 AM Moment Generating Functions - GeeksforGeeks
Bernoulli Distribution
MX (t) = pet + (1 − p)
Binomial Distribution
MX (t) = (pet + (1 − p))n
Poisson Distribution
MX (t) = exp(λ(et − 1))
Uniform Distribution e −e ,
tb ta
MX (t) = t(b−a)
=0
t
Normal Distribution σ 2 t2
MX (t) = exp(μt + 2
)
Gamma Distribution
MX (t) = (1 − θt )−k , t<θ
Chi-Square Distribution 1
MX (t) = (1 − 2t)−k/2 , t< 2
(n)
E[X n ] = MX (0)
[Link] 2/7
4/12/26, 8:00 AM Moment Generating Functions - GeeksforGeeks
MX (t) = E[etX ]
The n-th moment of X, E[X n ] , can be obtained by taking the n-th derivative of M_X(t) with respect
to t and evaluating it at t = 0:
(n)
E[X n ] = MX (0)
MX (t) =
λ
λ−t
, t<λ
Step 1: Find the First Moment (Mean, (E[X]))
′
Compute the first derivative of M_X(t): MX (t) = dtd ( λ−t
λ
) = (λ−t)
λ
2
′ 1
At t = 0: E[X] = MX (0) = (λ−0)2 = λ
λ
MX′′ (t) =
d
dt
( (λ−t)
λ
2) =
2λ
(λ−t)3
2λ 2
At t = 0: E[X 2 ] = MX
′′
(0) = (λ−0) 3 = λ2
′′
Second moment: MX (0) = λ22
1
Variance: Var(X) = λ2
1. If Y = aX + b, then
MY(s) = esbMX(as)
3. Let X and Y be the independent random variables. Let Z be equal to X, with probability p, and equal
to Y, with probability 1-p. Then,
[Link] 3/7
4/12/26, 8:00 AM Moment Generating Functions - GeeksforGeeks
Example 1:
1
Let X be a random variable with MGF MX(s) = 1−s (exponential with λ=1).
1−2s
,s < 2
Example 2:
Example 3:
2
and Y∼N(1,1) (normal with mean 1) with MY (s) = es+s /2
In particular, if MX(s) = MY(s) < ∞, for all s ϵ [-a, a], where a is a positive number, then the random
variables X and Y have the same CDF.
For example, let us take an example of two Bernoulli functions, X and Y, both with the same parameter
p = 0.4.
Moment Cumulant and Probability Generating Functions are three different mathematical tools used in
probability theory and statistics to characterize and analyze the properties of random variables and
their distributions.
Each function provides unique insights into the underlying distribution, helping to simplify the
computation and understanding of moments, cumulants, and probabilities.
1. Moment Generating Function (MGF): It is used to calculate the moments of a distribution, which
are useful in understanding the central tendency (mean), spread (variance), and higher-order
properties of the distribution.
MX (t) = E[etX ]
2. Cumulant Generating Function (CGF): This provides a way to calculate cumulants, which describe
the shape of a distribution and are particularly useful for sums of random variables. It is the logarithm
of the MGF and helps in simplifying complex distributional properties. The CGF, denoted as KX(t), is
the natural logarithm of the MGF:
The nth cumulant of a random variable X is given by the nth derivative of the CGF evaluated at t = 0:
∣
dn KX (t)
κn =
dtn
∣t=0
Cumulants are used to describe the shape of the probability distribution, similar to moments, but they
have properties that often make them more convenient for certain types of statistical analysis,
especially when dealing with sums of random variables.
3. Probability Generating Function (PGF): Probability Generating Function (PGF) is another useful
tool in probability theory, particularly for discrete random variables. The PGF of a discrete random
variable X is defined as:
GX (s) = E[sX ] = ∑∞
k=0 P (X = k)s
k
Randomized Algorithms
[Link] 5/7
4/12/26, 8:00 AM Moment Generating Functions - GeeksforGeeks
Performance Modeling
Machine Learning
Cryptography
Related Articles
Comment S somes… 1
Explore
Linear Algebra
Sequence & Series
Calculus
Probability & Statistics
Practice Questions
[Link] 6/7
4/12/26, 8:01 AM Probability Distribution Function - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
Probability Distribution refers to the function that gives the probability of all possible values of a
random [Link] 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:
Note: For probability distribution function the value of the variable lies between 0 and 1: 0 ≤ F(x) ≤
1
Related Reads: Probability Distribution
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,
[Link] 1/7
4/12/26, 8:01 AM Probability Distribution Function - GeeksforGeeks
F(x) = P (X ≤ x)
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:
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:
(x−μ)2
P (x) = 1
2πσ 2
e− 2σ 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.
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:
[Link] 2/7
4/12/26, 8:01 AM Probability Distribution Function - GeeksforGeeks
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
For discrete random variables, the probability distribution is given using the Bernoulli distribution.
Poisson Distribution
Bernoulli Trials
Binomial Distribution
X P(x)
2 1/36
3 2/36
4 3/36
5 4/36
6 5/36
7 6/36
8 5/36
9 4/36
10 3/36
11 2/36
12 1/36
Example 2: The number of old people living in houses on a randomly selected city block is
described by the following probability distribution.
(x) P(x)
3 0.50
4 0.25
5 0.10
6 ?
What is the probability that 6 or more old people live in a randomly selected house?
Solution:
Example 3: When a fair coin is tossed 8 times, then the Probability of:
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
Given,
Number of Trials(n) = 12
Number of Success(r) = 10 (getting 10 heads)
Probability of Single Head(p) = 1/2 = 0.5
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:
Q4: A coin is thrown until a tail appears or the the head appears three times continuously. Find the
probability distribution of tosses.
[Link] 6/7
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
Binomial Distribution is a probability distribution used to model the number of successes in a fixed
number of independent trials, where each trial has only two possible outcomes: success or failure. This
distribution is useful for calculating the probability of a specific number of successes in scenarios like
flipping coins, quality control, or survey predictions.
Example: Imagine we toss a coin 5 times. Each toss can only give us a head or a tail, and the
chance of getting a head stays the same every time. Also, what happens in one toss doesn’t
affect the next one. Now, if we want to know the chance of getting exactly 3 heads out of these
5 tosses, this is a situation where we use the binomial distribution.
Binomial Distribution is based on Bernoulli trials, where each trial has an independent and identical
chance of success.
etic Algebra Set Theory Probability Statistics Geometry Calculus Logarithms Mensuration Matrices Tr Sign In
1. Fixed Number of Trials: There is a set number of trials or experiments (denoted by n), such as
flipping a coin 10 times.
2. Two Possible Outcomes: Each trial has only two possible outcomes, often labeled as "success" and
"failure." For example, getting heads or tails in a coin flip.
3. Independent Trials: The outcome of each trial is independent of the others, meaning the result of
one trial does not affect the result of another.
4. Constant Probability: The probability of success (denoted by p) remains the same for each trial. For
example, if you’re flipping a fair coin, the probability of getting heads is always 0.5.
[Link] 1/10
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
The Binomial distribution is an appropriate model to use for calculating the probabilities of obtaining a
certain number of successes in the given trials.
Where,
Example : A fair coin is tossed 3 times. Find the probability of getting exactly 2 heads.
Solution :
Number of trials, n = 3
Probability of getting head (success), p = 0.5 ; Probability of getting tail (failure), q = 1 − p = 0.5
Required number of successes, r = 2
P(X = r) = nCr pr (1-p) n-r
P(X = 2) = 3C2 (0.5) 2 (0.5) 1 = 3 x 0.25 x 0.5 = 0.375 or 37.5 %
A binomial random variable X counts the number of "successes" in n independent trials, with two
outcomes in each trial: success (with probability p) or failure (with probability 1−p) and constant
probability p across all trials.
Example:
For example, consider a situation where getting 6 is the success of throwing a die. Now if we throw
the die and not get 6 then it is a failure. Now we throw again and do not get 6. Let's say we don't get
6 for three successive attempts and 6 is obtained in the fourth attempt and onwards then the binomial
distribution of the number of getting 6 is called the Negative Binomial Distribution.
[Link] 2/10
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
Where,
The binomial distribution models the number of successes in a fixed number of Bernoulli trials.
The use of the above steps has been illustrated using an example below:
[Link] 3/10
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
To find the Probability of exactly 7 patients responding positively to the treatment when the drug is
tested on 8 patients and has a 90% success rate.
Let's say we toss a coin twice, and getting head is a success we have to calculate the probability of
success and failure then, in this case, we will calculate the probability distribution as follows:
In each trial getting a head that is a success, its probability is given as:
p = 1/2
n = 2 as we throw a coin twice
r = 0 for no success, r = 1 for getting head once and r = 2 for getting head twice
As of now, we know that Binomial Distribution is calculated for the Random Variables obtained in
Bernoulli Trials. Hence, we should understand these terms.
[Link] 4/10
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
The Mean of Binomial Distribution is the measurement of average success that would be obtained in
the 'n' number of trials. The Mean of Binomial Distribution is also called Binomial Distribution
Expectation(Expected Value or Expectation). The formula for Binomial Distribution Expectation is
given as:
μ = n.p
where,
Example: If we toss a coin 20 times and getting head is the success then what is the mean of
success?
Solution:
[Link] 5/10
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
Varianceof Binomial Distribution tells about the dispersion or spread of the distribution. It is given by
the product of the number of trials, probability of success, and probability of failure. The formula for
Variance is given as follows:
σ2 = n.p.q
where
σ2is Variance
n is the Total Number of Trials
p is the Probability of Success in Each Trial
q is the Probability of Failure in Each Trial
Example: If we toss a coin 20 times and getting head is the success then what is the variance of the
distribution?
Solution:
We have, n = 20
Probability of Success in each trial (p) = 0.5
Probability of Failure in each trial (q) = 0.5
Variance of the Binomial Distribution, σ = n.p.q = (20 ⨯ 0.5 ⨯ 0.5) = 5
Standard Deviation of Binomial Distribution tells about the deviation of the data from the mean.
Mathematically, Standard Deviation is the square root of the variance. The formula for the Standard
Deviation of Binomial Distribution is given as
σ= n⋅p⋅q
where,
Example: If we toss a coin 20 times and getting head is the success then what is the standard
deviation?
Solution:
[Link] 6/10
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
We have, n = 20
Probability of Success in each trial (p) = 0.5
Probability of Failure in each trial (q) = 0.5
Standard Deviation of the Binomial Distribution, σ = √n.p.q
⇒ σ = √(20 ⨯ 0.5 ⨯ 0.5)
⇒ σ = √5 = 2.23
Two possible outcomes per trial (success or failure) Infinite possible outcomes within a continuous range
x can take integer values from 0 to n x can take any real number (from −∞ to +∞)
μ = np
μ (mean; center of the curve, given directly)
(n = number of trials, p = success probability)
Used for modeling the number of successes in a Used for modeling continuous data that cluster
fixed number of independent trials around a mean
Flipping coins, quality control (defective items) Heights of people, test scores, measurement errors
Approximates Normal distribution for large n and p Considered the limit of the Binomial Distribution as n
not too close to 0 or 1 becomes large and p is near 0.5
[Link] 7/10
4/12/26, 8:02 AM Binomial Distribution in Probability - GeeksforGeeks
Related Articles
Probability Theory
Probability Distribution Function
Baye's Theorem
Binomial Distribution in Business Statistics
Example 2: A coin is tossed 4 times what is the probability of getting at least 2 heads?
Solution:
Given: n = 4
Probability of getting head in each trial, p = 1/2 ⇒ q = 1 - 1/2 = 1/2
P(X = r) = 4Cr(1/2)r(1/2)4-r
⇒ P(X = r) = 4Cr(1/2)4 {Using the laws of Exaponents}
And we know, Probability of getting at least 2 heads = P(X ≥ 2)
⇒ Probability of getting at least 2 heads = P(X = 2) + P(X = 3) + P(X = 4)
⇒ Probability of getting at least 2 heads = 4C2(1/2)4 + 4C3(1/2)4 + 4C4(1/2)4
⇒ Probability of getting at least 2 heads = (4C2 + 4C3 + 4C4)(1/2)4
⇒ Probability of getting at least 2 heads = 11(1/2)4 = 11/16
Example 3: A pair ofdice is thrown 6 times and getting sum 5 is a success then what is the probability
of getting (i) no success (ii) two success (iii) at most two success
Solution:
Given: n = 6
5 can be obtained in 4 ways (1, 4) (4, 1) (2, 3) (3, 2)
Probability of getting the sum 5 in each trial, p = 4/36 = 1/9
Probability of not getting sum 5 = 1 - 1/9 = 8/9
(i) Probability of getting no success, P(X = 0) = 6C0(1/9)0(8/9)6 = (8/9)6
(ii) Probability of getting two success, P(X = 2) = 6C2(1/9)2(8/9)4 = 15(84/96)
(iii) Probability of getting at most two successes, P(X ≤ 2) = P(X = 0) + P(X = 1) + P(X = 2)
⇒ P(X ≤ 2) = (8/9)6 + 6(85/96) + 15(84/96)
1. A box has 5 red, 7 black,? and 8 white balls. If three balls are drawn one by one with
replacement what is the probability that all,
i) all are white
ii) all are red
iii) all are black
2. What is the probability distribution of the number of tails when three coins are tossed together?
3. A die is thrown three times what is the probability distribution of getting six?
4. A coin is tossed 4 times then what is the probability distribution of getting head.
Comment K kaurba… 6
Explore
Basic Arithmetic
Algebra
Geometry
Trigonometry & Vector Algebra
Calculus
Probability and Statistics
Practice
[Link] 9/10
4/12/26, 8:02 AM Geometric Distribution - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
Geometric Distribution
Last Updated : 7 Jan, 2026
A geometric distribution is a discrete probability distribution that gives the probability that the first
success occurs on a specific trial in a sequence of independent Bernoulli trials, where each trial has
two outcomes—success or failure—and the probability of success p remains constant across trials.
Geometric distributions are probability distributions that are based on three key assumptions.
If you want to find the probability that the first head appears on the 4th toss, this situation
follows a geometric distribution.
The geometric distribution is commonly used in various real-life circumstances. In the financial
industry, it is used to estimate the financial rewards of making a given decision in a cost-benefit
analysis.
[Link] 1/5
4/12/26, 8:02 AM Geometric Distribution - GeeksforGeeks
The likelihood that a discrete random variable, X, will be exactly identical to some value, x, is
determined by the probability mass function.
etic Algebra Set Theory Probability Statistics Geometry Calculus Logarithms Mensuration Matrices Tr Sign In
P (X = x) = (1 - p)x -1p
where, 0 < p ≤ 1.
The probability that a random variable, X, will assume a value that is less than or equal to x can be
described as the cumulative distribution function of a random variable, X, that is assessed at a point, x.
The distribution function is another name for it.
P(X ≤ x) = 1 - (1 - p)x
The geometric distribution's mean is also the geometric distribution's expected value. The weighted
average of all values of a random variable, X, is the expected value of X.
E[X] = 1 / p
Variance is a measure of dispersion that examines how far data in a distribution is spread out about
the mean.
Var[X] = (1 - p) / p2
The square root of the variance can be used to calculate the standard deviation. The standard
deviation also indicates how far the distribution deviates from the mean.
S.D. = √VAR[X]
S.D. = √1 - p / p
Related Articles:
Probability Theory
Binomial Distribution
Negative Binomial Distribution
Probability Distribution Function
Given,
p = 0.2
E[X] = 1 / p
= 1 / 0.2
=5
The expected number of donors who will be tested till a match is found is 5
Problem 2: Suppose you are playing a game of darts. The probability of success is 0.4. What is the
probability that you will hit the bullseye on the third try?
Solution:
Given,
p = 0.4
P(X = x) = (1 - p)x - 1p
P(X = 3) = (1 - 0.4)3 - 1(0.4)
P(X = 3) = (0.6)2(0.4)
= 0.144
The probability that you will hit the bullseye on the third try is 0.144
Problem 3: A light bulb manufacturing factory finds 3 in every 60 light bulbs defective. What is the
probability that the first defective light bulb with be found when the 6th one is tested?
Solution:
Given,
p = 3 / 60 = 0.05
P(X = x) = (1 - p)x - 1p
P(X = 6) = (1 - 0.05)6 - 1(0.05)
P(X = 6) = (0.95)5(0.05)
P(X = 6) = 0.0386
The probability that the first defective light bulb is found on the 6th trial is 0.0368
[Link] 3/5
4/12/26, 8:02 AM Geometric Distribution - GeeksforGeeks
Problem 4: Find the probability density of the geometric distribution if the value of p is 0.42; x =
1,2,3, and also calculate the mean and variance.
Solution:
Problem 5: If the probability of breaking the pot in the pool is 0.4, find the number of breaks before
success and the corresponding variance and standard deviation.
Solution:
Here,
X ∼ geo(0.4)
Hence,
e(x) = 1/0.4 = 2.5
Var(x) = 0.6/0.4²
= 3.75
Hence, standard deviation ( σ) = 1.94
Comment M mande… 2
[Link] 4/5
4/12/26, 8:05 AM Normal Distribution - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
Normal Distribution
Last Updated : 27 Dec, 2025
Normal Distribution is the most common or normal form of distribution of Random Variables, hence
the name "normal distribution." It is also called the Gaussian Distribution in Statistics or Probability.
We use this distribution to represent a large number of random variables. It serves as a foundation for
statistics and probability theory.
It also describes many natural phenomena, forms the basis of the Central Limit Theorem, and supports
numerous statistical methods.
Example: Imagine a class where students take a math test. Most students score close to the
average mark, and only a few score very low or very high. If we want to describe how these
marks are spread around the average in a bell-shaped pattern, this is a situation where we use
the normal distribution.
Normal distribution is a continuous probability distribution that is symmetric about the mean, depicting
that data near the mean are more frequent in occurrence than data far from the mean.
As shown in Fig 1, the distribution is symmetric about its center, which is the mean (0 in this
case). This symmetry means that events equidistant from the mean have equal probabilities. The
density is highest near the mean, resulting in lower probabilities for values farther away from it.
We define Normal Distribution as the probability density function of any continuous random variable
for any given system. Now for defining Normal Distribution suppose we take f(x) as the probability
density function for any random variable X.
[Link] 1/8
4/12/26, 8:05 AM Normal Distribution - GeeksforGeeks
The curve traced by the upper values of the Normal Distribution is in the shape of a Bell, hence
Normal Distribution is also called the "Bell Curve".
where,
x is Random Variable
μ is Mean
σ is Standard Deviation
[Link] 2/8
4/12/26, 8:05 AM Normal Distribution - GeeksforGeeks
The variable is continuous (can take any real value within a range).
The distribution is defined by its mean (μ) - the peak of the curve and standard deviation (σ) - which
controls the spread of the curve.
The Normal Distribution Curve (also called the Bell Curve or Gaussian Curve) is the graphical
representation of this distribution, showing:
Unlike some distributions, the normal distribution is not strictly "bound" to a finite range—it
theoretically spans from −∞ to +∞, though extreme values are highly improbable.
An example of the random variable is, suppose we take a distribution of the height of students in a
class, then the random variable can take any value in this case, but is bound by a boundary of 2 ft to 6
ft, as it is generally forced physically.
For smaller values of the standard deviation, the values in the graph come closer and the graph
becomes narrower.
For higher values of the standard deviation, the values in the graph are dispersed more, and the
graph becomes wider.
Generally, the normal distribution has a positive standard deviation, and the standard deviation divides
the area of the normal curve into smaller parts, and each part defines the percentage of data that falls
into a specific region. This is called the Empirical Rule of Standard Deviation in Normal Distribution.
[Link] 3/8
4/12/26, 8:05 AM Normal Distribution - GeeksforGeeks
Studying the graph, it is clear that using the Empirical Rule, we distribute data broadly in three parts.
Thus, the empirical rule is also called the "68 – 95 – 99.7" rule. The curve is perfectly symmetric
around the mean (μ), which is located at the center and marks the highest point of the curve. This
mean represents the average value of the datasheet. This distribution is commonly used in real-world
statistics to represent things like test scores, height, and measurement errors, where most of the
values tend to cluster around the average, and extreme values are less common.
0.1 0.0398 0.0438 0.0478 0.0517 0.0557 0.0596 0.0636 0.0675 0.0714 0.0753
0.2 0.0793 0.0832 0.0871 0.091 0.0948 0.0987 0.1026 0.1064 0.1103 0.1141
0.3 0.1179 0.1217 0.1255 0.1293 0.1331 0.1368 0.1406 0.1443 0.148 0.1517
etic Algebra Set Theory Probability Statistics Geometry Calculus Logarithms Mensuration Matrices Tr Sign In
0.4 0.1554 0.1591 0.1628 0.1664 0.17 0.1736 0.1772 0.1808 0.1844 0.1879
0.5 0.1915 0.195 0.1985 0.2019 0.2054 0.2088 0.2123 0.2157 0.219 0.2224
0.6 0.2257 0.2291 0.2324 0.2357 0.2389 0.2422 0.2454 0.2486 0.2517 0.2549
0.7 0.258 0.2611 0.2642 0.2673 0.2704 0.2734 0.2764 0.2794 0.2823 0.2852
0.8 0.2881 0.291 0.2939 0.2967 0.2995 0.3023 0.3051 0.3078 0.3106 0.3133
0.9 0.3159 0.3186 0.3212 0.3238 0.3264 0.3289 0.3315 0.334 0.3365 0.3389
[Link] 4/8
4/12/26, 8:05 AM Normal Distribution - GeeksforGeeks
1 0.3413 0.3438 0.3461 0.3485 0.3508 0.3531 0.3554 0.3577 0.3599 0.3621
1.1 0.3643 0.3665 0.3686 0.3708 0.3729 0.3749 0.377 0.379 0.381 0.383
1.2 0.3849 0.3869 0.3888 0.3907 0.3925 0.3944 0.3962 0.398 0.3997 0.4015
1.3 0.4032 0.4049 0.4066 0.4082 0.4099 0.4115 0.4131 0.4147 0.4162 0.4177
1.4 0.4192 0.4207 0.4222 0.4236 0.4251 0.4265 0.4279 0.4292 0.4306 0.4319
1.5 0.4332 0.4345 0.4357 0.437 0.4382 0.4394 0.4406 0.4418 0.4429 0.4441
1.6 0.4452 0.4463 0.4474 0.4484 0.4495 0.4505 0.4515 0.4525 0.4535 0.4545
1.7 0.4554 0.4564 0.4573 0.4582 0.4591 0.4599 0.4608 0.4616 0.4625 0.4633
1.8 0.4641 0.4649 0.4656 0.4664 0.4671 0.4678 0.4686 0.4693 0.4699 0.4706
1.9 0.4713 0.4719 0.4726 0.4732 0.4738 0.4744 0.475 0.4756 0.4761 0.4767
2 0.4772 0.4778 0.4783 0.4788 0.4793 0.4798 0.4803 0.4808 0.4812 0.4817
Anomaly Detection
Outliers are detected if they fall beyond μ ± 3σ.
Used in fraud detection, network security.
Gaussian Blurring
Applies a normal-distributed kernel to smooth images.
Reduces noise while preserving edges.
[Link] 5/8
4/12/26, 8:05 AM Normal Distribution - GeeksforGeeks
Example 1: Find the probability density function of the normal distribution of the following data. x = 2,
μ = 3 and σ = 4.
Solution:
Given,
Variable (x) = 2
Mean = 3
Standard Deviation = 4
2σ 2
Simplifying,
f(2, 3, 4) = 0.09666703
Example 2: If the value of the random variable is 4, the mean is 4, and the standard deviation is 3,
then find the probability density function of the Gaussian distribution.
Solution:
Given,
Variable (x) = 4
Mean = 4
Standard Deviation = 3
2σ 2
Simplifying,
f(4, 4, 3) = 1/(3√2π)e0
f(4, 4, 3) = 0.13301
Related Articles
[Link] 6/8
4/12/26, 8:05 AM Normal Distribution - GeeksforGeeks
Question 2: If a dataset follows a normal distribution with a mean of 100 and a standard deviation of
15, what is the Z-score for a value of 130? Interpret the Z-score.
Question 3: Given a normal distribution with a mean of 70 and a standard deviation of 10, find the
probability that a randomly selected value falls between 60 and 80.
Question 4: In a normally distributed dataset with a mean of 80 and a standard deviation of 10, what
value corresponds to the 90th percentile?
Question 5: A sample of 30 students has an average test score of 78 with a standard deviation of 12.
Assuming the distribution of test scores is normal, what is the probability that the sample mean score
is greater than 82?
Comment S satya… 5
Explore
[Link] 7/8
4/12/26, 8:02 AM Poisson Distribution - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
em and Arithmetic Algebra Set Theory Probability Statistics Geometry Calculus Logarithms Mensuration Matrices Trigonometry
Poisson Distribution
Last Updated : 8 Jan, 2026
The Poisson distribution is a discrete probability distribution that calculates the likelihood of a certain
number of events occurring within a fixed interval of time, assuming the events occur independently.
To model this, the interval is imagined as divided into tiny subintervals where:
It is characterized by a single parameter, λ (lambda), which represents the event's average occurrence
rate in an interval(not a subinterval).
The shape of the Poisson distribution depends on the value of λ. As λ increases, the distribution shifts
to the right and becomes more spread out.
Key Assumptions:
[Link] 1/7
4/12/26, 8:02 AM Poisson Distribution - GeeksforGeeks
e−λ λr
P (X = r) = r!
Where,
P (X = r) = λr P (X = r − 1) f or r ≥ 1
Example:
Calculate the value for P(X = 8) using the recurrence relation and the value for P(X = 7), where
P(X = 7) = 0.0346, λ = 3 and r = 6.
Solution:P (X = 7) = λr P (6) = 36 0.345 = 0.1725
In the Poisson distribution, both the Expectation(mean) and variance are equal and are denoted by the
parameter λ (lambda). This property of equal mean and variance is a distinctive characteristic of the
Poisson distribution and simplifies its statistical analysis.
where
[Link] 2/7
4/12/26, 8:02 AM Poisson Distribution - GeeksforGeeks
σ= λ
where,
Probability Mass Function (PMF) describes the likelihood of observing a specific number of events in
a fixed interval. It is given by:
(e−λ ×λr )
PMF = r! ,r
= 0, 1, 2, …
where,
P ( X = k ) ≥ 0 for all k.
The sum of all probabilities over possible values of k is 1.
Example:
Suppose a hospital receives an average of λ = 4 emergency cases per hour. What is the
probability that exactly 2 cases occur in an hour?
Solution:
Using the Poisson formula:
P (X = 2) = e-4 42 /2! = e-4 ✕ 16/2 = 0.0183 ✕ 16 /2 = 0.1465
Cumulative Distribution Function (CDF): gives the probability that the random variable is less than or
equal to a certain value. It is expressed as:
(e−λ ×λk )
F (x) = ∑k=0
⌊x⌋
k!
[Link] 3/7
4/12/26, 8:02 AM Poisson Distribution - GeeksforGeeks
The Poisson distribution is positively skewed (Skewness > 0) and leptokurtic (Kurtosis > 0), meaning
it has a longer tail on the right side and heavier tails than the normal distribution. However, for large
values of λ, it becomes increasingly symmetric and bell-shaped, resembling a normal distribution.
Note: Leptokurtic refers to a distribution that has a higher kurtosis than the normal distribution.
Kurtosis measures the "tailedness" or sharpness of the peak of a frequency distribution curve.
The event with the highest probability is represented by the peak of the distribution—the mode.
When λ is low, the distribution is much more distributed on the right side of its peak than on its left
(right-skewed).
As λ increases, the distribution starts to appear more and more similar to a normal distribution. When
λ is 10 or greater, a normal distribution is a good approximation of the Poisson distribution.
e−λ λr
P (X = x) = n Cx px (1 − p)n−x P (X = r) = r!
Mean μ = n ⨉ p Mean μ = λ
[Link] 4/7
4/12/26, 8:02 AM Poisson Distribution - GeeksforGeeks
Variance σ2 = n ⨉ p ⨉ (1 - p) Variance σ2 = λ
Assumptions: Fixed number of trials, two possible Assumptions: Probability of success is small,
outcomes, independent trials, constant probability number of trials is large, mean remains constant.
Example: Tossing a coin 5 times: Probability of getting Example: A call center receives 3 calls/min:
exactly 2 heads Probability of exactly 2 calls in a minute
1 −2
P(X = 1) = 2 1!
e
= 2/e2 = 0.27068
Hence the probability that less than 2 items are defective in sample of 50 items is given by:
P( X > 2 ) = P( X = 0 ) + P( X = 1 ) = 0.13534 + 0.27068 = 0.40602
Example 2: If the probability of a bad reaction from medicine is 0.002, determine the chance that out
of 1000 persons, more than 3 will suffer a bad reaction from medicine.
Solution:
1 −2
P(X = 1) = 2 1!
e
= 2/e2
2 −2
P(X = 2) = 2 2!
e
= 2/e2
3 −2
P(X = 3) = 2 3!
e
= 4/3e2
Example 3: If 1% of the total screws made by a factory are defective. Find the probability that less
than 3 screws are defective in a sample of 100 screws.
Solution:
1 −1
P(X = 1) = 1 1!
e
=1/e
2 −1
1 e
P(X = 2) = 2! =1/2e
Example 4: If in an industry there is a chance that 5% of the employees will suffer from coronavirus.
What is the probability that in a group of 20 employees, more than 3 employees will suffer from
coronavirus?
Solution:
1 −1
P(X = 1) = 1 1!e
= 1/e
12 e−1
P(X = 2) = 2! =1/2e
3 −1
P(X = 3) = 1 3!
e
=1/6e
P(X > 3) = 1 - [1/e + 1/e + 1/2e + 1/6e]
⇒ P(X > 3) = 1 - [ 8/3e] = 0.018988
Related Articles:
Poisson
Distribution
| Formula,
Table,
Mean and
Variance
Poisson
Distribution
Examples
with
Solutions
[Link] 6/7
4/12/26, 8:10 AM Mathematics | Weibull Distribution Model - GeeksforGeeks
Courses
Search... Tutorials Sign In
Interview Prep
The Weibull distribution is a versatile probability distribution widely used in reliability engineering,
survival analysis, and failure time analysis. Named after Wallodi Weibull, this distribution is
particularly effective for representing different types of failure rates based on its parameters. This
article provides an in-depth understanding of the Weibull distribution, its properties, applications, and
comparisons to similar models.
Weibull Distribution
The Weibull distribution is defined by its probability density function (PDF) and cumulative
distribution function (CDF). Three key parameters characterize it:
Shape (β): Determines the shape of the distribution, indicating whether the failure rate is increasing,
decreasing, or constant over time.
Location (γ): A location parameter that shifts the distribution along the x-axis. For simplicity, this
article assumes γ = 0.
Given these parameters, the Weibull distribution becomes a flexible tool to model various types of
data.
Otherwise, f (x) =0
This function provides the likelihood of the random variable \( X \) taking on a particular value.
The cumulative distribution function, which gives the probability that \( X \) is less than or equal to a
certain value, is derived as follows:
x β
F (x) = ∫0 αβw β−1 e−αw dw
[Link] 1/4
4/12/26, 8:10 AM Mathematics | Weibull Distribution Model - GeeksforGeeks
β
F (x) = 1 − e−αx
This shows that when \( X \) follows a Weibull distribution, the transformation \( Y = X^\beta \) follows
an exponential distribution.
3. Hazard Function:
The hazard function, or failure rate function, is given by the ratio of the PDF to the survival function (1
- CDF):
f (x)
h(x) = 1−F (x)
= αβxβ−1
This function indicates the rate at which failures occur over time and is crucial in reliability analysis.
1. Expected Value:
The expected value (mean) of the Weibull distribution is found using the formula:
∞
μ = E(X) = ∫0 x ⋅ f (x) dx.
Substituting the PDF into the equation and solving using the gamma function, we get:
μ = α−1/β Γ (1 + β1 )
σ 2 = E(X 2 ) − μ2
2
σ 2 = α−2/β [Γ (1 + β2 ) − (Γ (1 + β1 )) ]
2
σ = α−1/β Γ (1 + β2 ) − (Γ (1 + β1 ))
Example: Suppose the lifetime (in hours) of a backup battery is modeled by a Weibull distribution
with α = 0.1 and β = 0.5
1. Mean Lifetime:
[Link] 2/4
4/12/26, 8:10 AM Mathematics | Weibull Distribution Model - GeeksforGeeks
The probability that a battery lasts more than 300 hours is given by:
0.5
P (X > 300) = 1 − F (300) = e−0.1×300 = 0.177
This shows that there is a 17.7% chance the battery will last more than 300 hours.
Reliability Engineering: To model the life of products and systems, helping in the prediction of
failure rates and maintenance scheduling.
Survival Analysis: Used to study the time until the occurrence of events such as failure or death,
commonly applied in medical research.
Weather Forecasting: Employed to model wind speeds and other meteorological data, aiding in
accurate weather predictions.
Economics: Analyzes income distribution and financial risks, providing insights into economic
behaviors and market trends.
Exponential Distribution: The Weibull distribution generalizes the exponential distribution. When the
shape parameter β=1, the Weibull distribution simplifies to the exponential distribution. However, the
Weibull distribution can model both increasing and decreasing failure rates, unlike the constant failure
rate assumed by the exponential distribution.
Normal Distribution: While the normal distribution is symmetric and suitable for modeling data that
clusters around a mean, the Weibull distribution is more flexible, particularly for modeling skewed
data and varying failure rates over time.
Conclusion
The Weibull distribution is a powerful and flexible tool in probability and statistics, particularly useful
in fields that require modeling of time-to-event data, such as reliability engineering and survival
analysis. Its ability to represent various types of failure rates and model different data shapes makes it
a preferred choice for many applications.
Comment I img20… 1
[Link] 3/4