Two statistical plots Ad- and Ud-plots derived from the empirical cumulative average deviation function (ecadf), Un(t), which is introduced by Wijesuriya (2025) will be illustrated with examples. Suppose that X1,X2,...,Xn is a random sample from a unimodal distribution. Then for a real number t, the ecadf computes the sum of the deviations of the data that are less than or equal to t, divided by the sample size n. The Ad-plot detects critical properties of the distribution such as symmetry, skewness, and outliers of the data. The Ud-plot, a slight modification of the Ad-plot, is prominent on assessing normality. To create these visualizations, let adplots package be installed, including stats and ggplot2 in R.
The first exhibit, Ad-plot consists of n ordered pairs of the form (xi,Un(xi)) for i=1,2,...,n.
set.seed(2025)
X<-matrix(rnorm(100, mean = 2 , sd = 5))
adplot(X, title = "Ad-plot", xlab = "x", lcol = "black", rcol = "grey60")
Figure 1. Both left and right points from the sample average in Ad-plot are evenly distributed and hence, it indicates the symmetric property of the data distribution. Further, the leftmost data point appears to be an outlier.
Suppose that the random sample is from a normal distribution with mean μ and variance σ2. Then the second illustration, Ud-plot consists of n ordered pairs of the form (xi,Un(xi)/[(1−n−1)s2]) for i=1,2,...,n, where s2 is the sample variance.
set.seed(2030)
X<-matrix(rnorm(30, mean = 2, sd = 5))
udplot(X, npdf = FALSE, lcol = "black", rcol = "grey60", pdfcol = "red")
Figure 4. The points in Ud-plot follow a bell-shaped curve evenly distributed about the sample average. Thus, it captures the symmetric property of the data distribution and confirms normality.
set.seed(2030)
X<-matrix(rnorm(30, mean = 2, sd = 5))
udplot(X, npdf = TRUE, lcol = "black", rcol = "grey60", pdfcol = "red")
Figure 5. The points in the Ud-plot closely follow the estimated normal density curve, indicating that the data are from normal distribution with mean μ and variance σ2 estimated by sample average ˉX and variance s2, respectively. Further, the d-value confirms the degree of proximity of Ud-plot to the estimated normal density curve.