Cumulative Distribution Function

We can also construct a cumulative distribution function for a random variable. A cumulative distribution function gives the probability that the random variable X is less than or equal to x, for every value x. In case of discrete random variables, the cumulative distribution function is the sum of the probabilities of all outcomes unto and including the specific outcome x.

The cumulative distribution function is expressed as  .

We will build upon our earlier probability distribution example.

xiP(xi)F(xi)
10.20.2
20.30.5
30.40.9
40.11

Probability that X =1 is 0.2

Probability that X = 1 or 2 = 0.2 + 0.3 = 0.5

Probability that X = 1 or 2 or 3 = 0.2 + 0.3 +0.4 = 0.9

Probability that X = 1 or 2 or 3 or 4= 0.2 + 0.3 +0.4 +0.1= 1.0

The histogram for cumulative distribution will look as follows:

The above cumulative distribution was for a discrete random variable. Even a continuous random variable will have a cumulative distribution function.

Related Downloads

Data Science in Finance: 9-Book Bundle

Data Science in Finance Book Bundle

Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.

What's Included:

  • Getting Started with R
  • R Programming for Data Science
  • Data Visualization with R
  • Financial Time Series Analysis with R
  • Quantitative Trading Strategies with R
  • Derivatives with R
  • Credit Risk Modelling With R
  • Python for Data Science
  • Machine Learning in Finance using Python

Each book includes PDFs, explanations, instructions, data files, and R code for all examples.

Get the Bundle for $29 (Regular $57)
JOIN 30,000 DATA PROFESSIONALS

Free Guides - Getting Started with R and Python

Enter your name and email address below and we will email you the guides for R programming and Python.

Data Science in Finance: 9-Book Bundle

Data Science in Finance Book Bundle

Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.

What's Included:

  • Getting Started with R
  • R Programming for Data Science
  • Data Visualization with R
  • Financial Time Series Analysis with R
  • Quantitative Trading Strategies with R
  • Derivatives with R
  • Credit Risk Modelling With R
  • Python for Data Science
  • Machine Learning in Finance using Python

Each book comes with PDFs, detailed explanations, step-by-step instructions, data files, and complete downloadable R code for all examples.