ecdf2D: Bidimensional Empirical Cumulative Distribution Function
Description
Compute the empirical cumulative distribution function for a bivariate continuous distribution.
Usage
ecdf2D(x, y)
Value
The result is returned as a matrix of dimension (n*n) where the entry (i,j) corresponds to Fn(xi,yj), i=1, ...,n,
j=1, ...,n.
Arguments
x, y
the two continuous variables. Must be of same length.
Details
The bidimensional e.c.d.f. (empirical cumulative distribution function) Fn is a step function with jumps i/n at observation values, where i is
the number of tied observations at that value.
For observations (x1,y1), ..., (x_n,y_n), Fn is defined as
$$Fn(t1,t2) = 1/n sum_{i=1}^n Indicator(xi<=t1,yi<=t2)$$
See Also
indeptest; the bivariate package also provides plots for the
bidimensional e.c.d.f.