Statistics
WeibullPlot
generate Weibull plots
Calling Sequence
Parameters
Description
Options
Examples
Compatibility
WeibullPlot(X, options, plotoptions)
X
-
data
options
(optional) equation(s) of the form option=value where option is one of scale, shape, sorted, reference, showprobabilities, color or legend; specify options for generating the Weibull plot
plotoptions
options to be passed to the plots[display] command
A Weibull Plot is used to verify whether a particular data set follows the Weibull distribution and provides additional information about the estimated shape and scale parameters. It plots the Weibull cumulative probability on the vertical axis and data points on the horizontal axis where the axes are ln⁡−ln⁡1−F⁡x and ln⁡x respectively. Here F⁡x denotes the estimated Weibull cumulative distribution function. The change of variables linearizes the cumulative distribution function and therefore if the data follows a Weibull distribution then a straight line is expected on the Weibull Plot. By default, a reference line is additionally drawn, which indicates where points following the distribution exactly would lie. The plot also contains a horizontal line at probability 0.632 and a vertical line where the horizontal line intersects the reference line. In general the scale parameter represents the 0.632-quantile of the Weibull distribution regardless of the value of shape parameter since F⁡scale=1−ⅇ−1≈0.632 . Therefore, the vertical line indicates the value of the scale parameter.
The first parameter, X, corresponds to the data set to be analysed.
The options argument can contain one or more of the options shown below. All unrecognized options will be passed to the plots[display] command. See plot/options for details.
scale=deduce or realcons
The scale parameter for the Weibull distribution. If scale is set to deduce, the scale parameter will be estimated from the data sample X. The default value is deduce. See Weibull distribution for more details.
shape=deduce or realcons
The shape parameter for the Weibull distribution. If shape is set to deduce, the shape parameter will be estimated from the data sample X. See Weibull distribution for more details. The default value is deduce.
sorted=truefalse
If sorted is set to true, a sorted (ascending) copy of data is used. Otherwise, if false the original data is used. The default value is true.
reference=truefalse
If reference is set to true, a reference line is drawn, which indicates where points following the distribution exactly would lie. The default value is true.
showprobabilities=truefalse
If showprobabilities is true, then the vertical axis is labelled with the appropriate probability values. Otherwise the specially scaled probability values are used for labeling. The default value is true.
color=name or list
This option specifies colors for the points and for the reference line. When a list of colors is given, the set of points and the reference line will be colored with the corresponding colors in the list.
legend=s or list
This option specifies legends for the points and for the reference line. When a list of values is given, the set of points and the reference line will be assigned legend entries with the corresponding values in the list. For more information on how to specify s, see plot/typesetting.
Get a random sample of a Weibull distribution
with⁡Statistics:
X≔RandomVariable⁡Weibull⁡1,0.6:
A≔Sample⁡X,100:
Estimate the parameters.
WeibullPlot⁡A,reference=false,style=line
Using the original parameters.
WeibullPlot⁡A,scale=1,shape=0.6,color=blue,magenta
Plot it against a Weibull distribution with different shape and scale parameters.
WeibullPlot⁡A,scale=0.8,shape=0.5,style=point,color=blue,green,legend=data,reference,color=green,blue
Compare sample generated from a different distribution to the Weibull distribution
Y≔RandomVariable⁡Uniform⁡1,3:
B≔Sample⁡Y,300:
WeibullPlot⁡B,legend=data,reference
The Statistics[WeibullPlot] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
Statistics/Visualization
Statistics[NormalPlot]
Statistics[ProbabilityPlot]
Statistics[QuantilePlot]
Download Help Document