Achievable logoAchievable logo
FE Mechanical
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
1. Mathematics
2. Probability & statistics
2.1 Sets & counting
2.2 Laws of probability
2.3 Probability distributions
2.4 Expected value & dispersion
2.5 Common probability distributions
2.6 Hypothesis testing, Z-test & t-test
3. Ethics & professional practice
4. Engineering economics
5. Electricity & magnetism
6. Statics
7. sandbox
Example
Achievable logoAchievable logo
2.3 Probability distributions
FE Mechanical
2. Probability & statistics
Our FE Mechanical course is currently in development and is a work-in-progress.

Probability distributions

4 min read
Font
Discuss
Share
Feedback

Random variables & probability distributions

A random variable provides a numerical description of the outcome of a random experiment, and may be thought of as a function that assigns a numerical value to each outcome in a sample space. For example, if X is the random variable associated with the sum of the results of rolling two fair six-sided dice, then the probability that X=4 is 121​, because of the 36 possible dice rolls, 3 result in a sum of 4: 1+3, 2+2, and 3+1.

There are two types of random variables:

  • Discrete Random Variable: Takes on countable values (finite or countably infinite). For example: the result of dice rolls, the number of children in a household in a town.
  • Continuous Random Variable: Takes on uncountably infinite values (any value in an interval). For example: the time between cars arriving at an intersection, the amount of rain expected tomorrow.

Probability distributions provide a mathematical framework for modeling uncertainty by assigning probabilities to possible values of a random variable. Probability distributions for discrete random variables are described in terms of probability mass functions (PMFs), and those for continuous random variables are described in terms of probability density functions (PDFs).

Probability mass functions (PMFs)

For a discrete random variable X, the probability mass function (PMF) is:

p(x)=P(X=x)

PMFs must satisfy the following properties:

  • p(x)≥0 for all x
  • ∑all x​p(x)=1

Probability density function (PDFs)

For a continuous random variable X, the probability density function (PDF) f(x) satisfies:

P(a≤X≤b)=∫ab​f(x)dx

In other words, the area under the curve f(x) between x=a and x=b is the probability that X is between a and b.

Note that the probability of obtaining any exact value of X is zero: P(X=a)=0 for any specific value a.

PMFs must satisfy the following properties:

  • f(x)≥0 for all x
  • ∫−∞∞​f(x)dx=1

Cumulative distribution functions (CDF)

The cumulative distribution function (CDF) is the function F(x) that describes the probability of random variable X being at or less than a particular value x:

F(x)=P(X≤x)

For discrete random variables:

F(x)=t≤x∑​p(t)

For continuous random variables:

F(x)=∫−∞x​f(t)dt

Properties of CDFs include:

  • 0≤F(x)≤1
  • F(x) is non-decreasing
  • limx→−∞​F(x)=0
  • limx→∞​F(x)=1

The original PMF or PDF may be recovered from the CDF:

  • For discrete X taking on integer values: p(x)=F(x)−F(x−1)
  • For continuous X: f(x)=dxdF(x)​

Note that the PMF of discrete random variables X that do not take on integer values may also be recovered from the CDF by subtracting off the CDF of the next discrete value of X just below the target x.

Some probability problems are more easily solved using CDFs instead of traditional counting techniques. For example, let’s determine the probability p(x) that highest result in rolling n fair six-sided dice is x.

Let X be the random variable the highest result in rolling n fair six-sided dice. Then p(x) is the desired PMF. The CDF F(x)=∑k=1k=x​p(x) thus represents the probability that the highest roll is x or lower. By the multiplication rule, the probability that the highest roll is x or lower is the product of the probability that each of the n rolls results in x is lower:

F(x)​====​P(highest roll is x or lower)P(all n rolls are x or lower)P(a particular roll are is x or lower)n(6x​)n​

Then, we use the formula p(x)=F(x)−F(x−1) to recover the desired PMF:

p(x)​==​F(x)−F(x−1)(6x​)n−(6x−1​)n​

Random variables & probability distributions

  • Random variable: function assigning numerical value to each outcome in sample space
  • Discrete random variable: countable values (e.g., dice rolls)
  • Continuous random variable: uncountably infinite values (e.g., time, measurements)
  • Probability distributions: assign probabilities to random variable values
    • Discrete: probability mass functions (PMFs)
    • Continuous: probability density functions (PDFs)

Probability mass functions (PMFs)

  • For discrete random variable X: p(x)=P(X=x)
  • Properties:
    • p(x)≥0 for all x
    • ∑all x​p(x)=1

Probability density functions (PDFs)

  • For continuous random variable X: P(a≤X≤b)=∫ab​f(x)dx
  • P(X=a)=0 for any specific a
  • Properties:
    • f(x)≥0 for all x
    • ∫−∞∞​f(x)dx=1

Cumulative distribution functions (CDF)

  • F(x)=P(X≤x)
    • Discrete: F(x)=∑t≤x​p(t)
    • Continuous: F(x)=∫−∞x​f(t)dt
  • Properties:
    • 0≤F(x)≤1
    • F(x) is non-decreasing
    • limx→−∞​F(x)=0, limx→∞​F(x)=1
  • Recovering PMF/PDF from CDF:
    • Discrete: p(x)=F(x)−F(x−1)
    • Continuous: f(x)=dxdF(x)​

Using CDFs for probability problems

  • CDF can simplify complex probability calculations
  • Example: highest roll in n dice
    • F(x)=(6x​)n (probability all rolls ≤x)
    • p(x)=F(x)−F(x−1)=(6x​)n−(6x−1​)n
Previous
Next  | 2.4 Expected value & dispersion
All rights reserved ©2016 - 2026 Achievable, Inc.

Probability distributions

Random variables & probability distributions

A random variable provides a numerical description of the outcome of a random experiment, and may be thought of as a function that assigns a numerical value to each outcome in a sample space. For example, if X is the random variable associated with the sum of the results of rolling two fair six-sided dice, then the probability that X=4 is 121​, because of the 36 possible dice rolls, 3 result in a sum of 4: 1+3, 2+2, and 3+1.

There are two types of random variables:

  • Discrete Random Variable: Takes on countable values (finite or countably infinite). For example: the result of dice rolls, the number of children in a household in a town.
  • Continuous Random Variable: Takes on uncountably infinite values (any value in an interval). For example: the time between cars arriving at an intersection, the amount of rain expected tomorrow.

Probability distributions provide a mathematical framework for modeling uncertainty by assigning probabilities to possible values of a random variable. Probability distributions for discrete random variables are described in terms of probability mass functions (PMFs), and those for continuous random variables are described in terms of probability density functions (PDFs).

Probability mass functions (PMFs)

For a discrete random variable X, the probability mass function (PMF) is:

p(x)=P(X=x)

PMFs must satisfy the following properties:

  • p(x)≥0 for all x
  • ∑all x​p(x)=1

Probability density function (PDFs)

For a continuous random variable X, the probability density function (PDF) f(x) satisfies:

P(a≤X≤b)=∫ab​f(x)dx

In other words, the area under the curve f(x) between x=a and x=b is the probability that X is between a and b.

Note that the probability of obtaining any exact value of X is zero: P(X=a)=0 for any specific value a.

PMFs must satisfy the following properties:

  • f(x)≥0 for all x
  • ∫−∞∞​f(x)dx=1

Cumulative distribution functions (CDF)

The cumulative distribution function (CDF) is the function F(x) that describes the probability of random variable X being at or less than a particular value x:

F(x)=P(X≤x)

For discrete random variables:

F(x)=t≤x∑​p(t)

For continuous random variables:

F(x)=∫−∞x​f(t)dt

Properties of CDFs include:

  • 0≤F(x)≤1
  • F(x) is non-decreasing
  • limx→−∞​F(x)=0
  • limx→∞​F(x)=1

The original PMF or PDF may be recovered from the CDF:

  • For discrete X taking on integer values: p(x)=F(x)−F(x−1)
  • For continuous X: f(x)=dxdF(x)​

Note that the PMF of discrete random variables X that do not take on integer values may also be recovered from the CDF by subtracting off the CDF of the next discrete value of X just below the target x.

Some probability problems are more easily solved using CDFs instead of traditional counting techniques. For example, let’s determine the probability p(x) that highest result in rolling n fair six-sided dice is x.

Let X be the random variable the highest result in rolling n fair six-sided dice. Then p(x) is the desired PMF. The CDF F(x)=∑k=1k=x​p(x) thus represents the probability that the highest roll is x or lower. By the multiplication rule, the probability that the highest roll is x or lower is the product of the probability that each of the n rolls results in x is lower:

F(x)​====​P(highest roll is x or lower)P(all n rolls are x or lower)P(a particular roll are is x or lower)n(6x​)n​

Then, we use the formula p(x)=F(x)−F(x−1) to recover the desired PMF:

p(x)​==​F(x)−F(x−1)(6x​)n−(6x−1​)n​

Key points

Random variables & probability distributions

  • Random variable: function assigning numerical value to each outcome in sample space
  • Discrete random variable: countable values (e.g., dice rolls)
  • Continuous random variable: uncountably infinite values (e.g., time, measurements)
  • Probability distributions: assign probabilities to random variable values
    • Discrete: probability mass functions (PMFs)
    • Continuous: probability density functions (PDFs)

Probability mass functions (PMFs)

  • For discrete random variable X: p(x)=P(X=x)
  • Properties:
    • p(x)≥0 for all x
    • ∑all x​p(x)=1

Probability density functions (PDFs)

  • For continuous random variable X: P(a≤X≤b)=∫ab​f(x)dx
  • P(X=a)=0 for any specific a
  • Properties:
    • f(x)≥0 for all x
    • ∫−∞∞​f(x)dx=1

Cumulative distribution functions (CDF)

  • F(x)=P(X≤x)
    • Discrete: F(x)=∑t≤x​p(t)
    • Continuous: F(x)=∫−∞x​f(t)dt
  • Properties:
    • 0≤F(x)≤1
    • F(x) is non-decreasing
    • limx→−∞​F(x)=0, limx→∞​F(x)=1
  • Recovering PMF/PDF from CDF:
    • Discrete: p(x)=F(x)−F(x−1)
    • Continuous: f(x)=dxdF(x)​

Using CDFs for probability problems

  • CDF can simplify complex probability calculations
  • Example: highest roll in n dice
    • F(x)=(6x​)n (probability all rolls ≤x)
    • p(x)=F(x)−F(x−1)=(6x​)n−(6x−1​)n

More from Probability & statistics

  • Sets & counting
  • Laws of probability
  • Expected value & dispersion
  • Common probability distributions
  • Hypothesis testing, Z-test & t-test