Description
The Cumulative Distribution Function(CDF) is the probability that a distribution function of X will take a value less than or equal to x. The CDF of a continuous random variable X is expressed as
(1)The Sage cell below calculates the CDF for the exponential distribution when $\lambda=4$ and $X<.75$.
Sage Cell
Code
l=4
f(X)=l * exp( -l* x)
CDF=integral(f(X),x,0,.75)
CDF
Options
CDF for Discrete Distributions
The CDF of a discrete probability distribution function is
(2)The Sage cell below calculates the CDF of the poisson distribution when $\lambda=15$ and $x<12$.
Code
lamb = 15
x=12
var('k')
f(k)=exp( -lamb) * (( lamb^k ) / ( factorial(k)))
CDF=sum(f(k) , k, 0, x)
numerical_approx(CDF)
Tags
Primary Tags:
Secondary Tags:
A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.
Related Cells
Any related cells go here. Provide a link to the page containing the information about the cell.
Attribute
Permalink:
Author:
Date: 16 Oct 2018 16:54
Submitted by: James A Phillips