Hi,
While playing with quantile-quantile plots, I wrote up some code which plots something strangely different. Here's the pseudocode:

testhist <- hist(sample_data)
refhist <- hist(rnorm(n, mean=0,sd=1))  # for some large-ish n
cumtest <- cumsum(testhist)
cumref <- cumsum(refhist)

plot(cumref,cumtest)

This produces a straight line of slope 1 for a sample with the same parameters as the reference sample, and produces S-curves for samples with different sigmas. A sample with nonzero mean looks almost exponential (or logarithmic, depending on the sign of the mean).

So my question is: is there a name for this sort of plot, and is it of any real use in statistical analysis?

thanks.
Carl


--

Sent from my Cray XK6
"Quidvis recte factum, quamvis humile, praeclarum."

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to