stats[statplots, symmetry]
Symmetry Plot
Calling Sequence
Parameters
Description
Examples
stats[statplots, scatterplot](data, format=symmetry)
statplots[scatterplot](data, format=symmetry)
scatterplot(data, format=symmetry)
data
-
statistical list(s)
plotoptions
plot options
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function scatterplot with the formatting option, format=symmetry of the subpackage stats[statplots] gives a symmetry plot of data.
The data in the data parameter are sorted, and missing items are removed. If the data are indexed by data[i], med is the median of the data and n is the total number of observations then a plot of datan+1−i−med versus med−datai for all i is produced together with the y=x line.
If the data set is symmetric (with respect to the median), then the plot will produce points on straight line y=x. For ease of comparison, the symmetry plot includes this comparison line. Thus, a symmetry plot reveals departures from symmetry.
The actual behavior takes into account the various weight of the data.
Although classes are converted to classmarks when generating this type of plot, it is recommended that only data without classes be used. class data may distort results that can be inferred from the graph.
The command with(stats[statplots] allows the use of the abbreviated form of this command.
with⁡stats:
Here is some data that is skewed to the right. Note that the points lie above y=x.
data1≔2.93,2.58,2.85,4.26,2.94,4.33,1.71,4.42,3.59,4.35,2.07,1.16,2.36,1.16,4.72,6:
statplotsscatterplot⁡data1,format=symmetry
Sometimes it is clearer to produce a plot with constrained axes.
with⁡statsstatplots:
plotsdisplay⁡scatterplot⁡data1,format=symmetry,scaling=CONSTRAINED,view=0..2.5,0..2.5
This data is skewed to the left. Note that the points lie below y=x.
data2≔1,4,5,16,17,18,19
scatterplot⁡data2,format=symmetry
This data is symmetric. Note that all points fall on the line y=x.
data3≔1,3,4,5,6,7,9
scatterplot⁡data3,format=symmetry
See Also
Statistics
Statistics[Visualization]
statplots(deprecated)[scatterplot]
stats(deprecated)[data]
stats(deprecated)[statplots]
Download Help Document