Empirical cumulative distribution function (cdf) plot

`cdfplot(`

creates
an empirical cumulative distribution function (cdf) plot for the data in
`x`

)`x`

. For a value *t* in
`x`

, the empirical cdf *F*(*t*) is the proportion of the values in `x`

less
than or equal to *t*.

returns a handle of the empirical cdf plot line object. Use `h`

= cdfplot(`x`

)`h`

to query or modify properties of the object after you create it. For a list of
properties, see Line Properties.

`cdfplot`

is useful for examining the distribution of a sample data set. You can overlay a theoretical cdf on the same plot of`cdfplot`

to compare the empirical distribution of the sample to the theoretical distribution. For an example, see Compare Empirical cdf to Theoretical cdf.The

`kstest`

,`kstest2`

, and`lillietest`

functions compute test statistics derived from an empirical cdf.`cdfplot`

is useful in helping you to understand the output from these functions. For an example, see Test for Standard Normal Distribution.

You can use the `ecdf`

function to find the empirical cdf
values and create an empirical cdf plot. The `ecdf`

function enables
you to indicate censored data and compute the confidence bounds for the estimated cdf
values.