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:
Geometric Distribution Formula
Next article icon

Geometric Distribution | Formula, Mean and Examples

Last Updated : 27 May, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Geometric distribution is a probability distribution that defines the number of trials required to get the first success in a series of independent and identically distributed Bernoulli trials, where each trial has two possible outcomes: success or failure. The trials are conducted until the first success is observed, and the probability of success in each trial is constant.

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.

Geometric distributions are probability distributions that are based on three key assumptions.

  • Trials are independent
  • Each trial has one of two outcomes: success or failure
  • For each trial, the probability of success, p, is constant across trials.

Geometric Distribution Formulas

The geometric distribution is characterized by two important functions: the Probability Mass Function (PMF) and the Cumulative Distribution Function (CDF). These formulas help calculate the likelihood of achieving the first success after a certain number of trials. Below are the key formulas associated with the geometric distribution:

Geometric-Distribution-formulas
Geometric Distribution Formulas


Geometric Distribution PMF

The likelihood that a discrete random variable, X, will be exactly identical to some value, x, is determined by the probability mass function.

P (X = x) = (1 - p)x -1p

where, 0 < p ≤ 1.

Geometric Distribution CDF

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

Mean of Geometric Distribution

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 of Geometric Distribution

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

Standard Deviation of Geometric Distribution

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

People Also Read:

  • Probability Theory
  • Binomial Distribution
  • Negative Binomial Distribution
  • Probability Distribution Function

Sample Problems on Geometric Distribution

Problem 1: If a patient is waiting for a suitable blood donor and the probability that the selected donor will be a match is 0.2, then find the expected number of donors who will be tested till a match is found, including the matched donor.

Solution:

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

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:

Given that p = 0.42 and the value of x = 1, 2, 3

The formula of probability density of geometric distribution is

P(x) = p (1 - p) x-1; x =1, 2, 3
P(x) = 0; otherwise
P(x) = 0.42 (1 - 0.42)
P(x) = 0; Otherwise

Mean= 1/p
= 1/0.42
= 2.380

Variance = 1 - p/p2
= 1 - 0.42 /(0.42)2
= 3.287

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


Next Article
Geometric Distribution Formula

M

mandeepsinc16o
Improve
Article Tags :
  • Mathematics
  • School Learning
  • Commerce
  • Probability

Similar Reads

    Geometric Distribution | Formula, Mean and Examples
    Geometric distribution is a probability distribution that defines the number of trials required to get the first success in a series of independent and identically distributed Bernoulli trials, where each trial has two possible outcomes: success or failure. The trials are conducted until the first s
    5 min read
    Geometric Distribution Formula
    Geometric Distribution is a probability distribution that tells the number of independent Bernoulli trials needed to achieve the first success. It is used to analyze situations where each trial has only two possible outcomes (success or failure), and the probability of success remains constant acros
    7 min read
    Area of a Triangle | Formula and Examples
    The area of the triangle is a basic geometric concept that calculates the measure of the space enclosed by the three sides of the triangle. The formulas to find the area of a triangle include the base-height formula, Heron's formula, and trigonometric methods.The area of triangle is generally calcul
    6 min read
    Area and Perimeter of Shapes | Formula and Examples
    Area and Perimeter are the two fundamental properties related to 2-dimensional shapes. Defining the size of the shape and the length of its boundary. By learning about the areas of 2D shapes, we can easily determine the surface areas of 3D bodies and the perimeter helps us to calculate the length of
    10 min read
    Polygon Formula - Definition, Symbol, Examples
    Polygons are closed two-dimensional shapes made with three or more lines, where each line intersects at vertices. Polygons can have various numbers of sides, such as three (triangles), four (quadrilaterals), and more. In this article, we will learn about the polygon definition, the characteristics o
    7 min read
    Distance formula - Coordinate Geometry | Class 10 Maths
    The distance formula is one of the important concepts in coordinate geometry which is used widely. By using the distance formula we can find the shortest distance i.e drawing a straight line between points. There are two ways to find the distance between points:Pythagorean theoremDistance formulaTab
    9 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