Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Statistics > Descriptive Statistics >
Mathematica > Mathematics and Algorithms > Statistics > Descriptive Statistics >

InverseCDF

InverseCDF[dist, q]
gives the inverse of the cumulative distribution function for the symbolic distribution dist as a function of the variable q.
  • The inverse CDF at q is also referred to as the q^(th) quantile of a distribution.
  • For a continuous distribution dist the inverse CDF at q is the value x such that CDF[dist, x]=q.
  • For a discrete distribution dist the inverse CDF at q is the smallest integer x such that CDF[dist, x]≥q.
  • The value q can be symbolic or any number between 0 and 1.
Inverse CDFs for a normal distribution and a Bernoulli distribution:
Inverse CDFs for a normal distribution and a Bernoulli distribution:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Obtain exact numeric results:
Obtain a machine-precision result:
Obtain a result at any precision for continuous distributions:
Obtain an exact result at any precision q for discrete distributions:
Plot the inverse CDF for a standard normal distribution:
Plot the inverse CDF for a binomial distribution:
Generate a random number from a distribution:
InverseCDF and CDF are inverses for continuous distributions:
Compositions of InverseCDF and CDF give step functions for a discrete distribution:
InverseCDF is equivalent to Quantile for distributions:
Symbolic closed forms do not exist for some distributions:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team