New in Wolfram
Mathematica
8: Statistical Visualization
◄
previous
|
next
►
Graphics & Visualization
Create Probability Plots with Estimated Distribution Parameters
Create a probability-probability plot that compares the data to the best-fitting distribution of a given type.
In[1]:=
X
data = RandomReal[UniformDistribution[{1, 2}], 25];
In[2]:=
X
Column[MapThread[ ProbabilityPlot[data, # /. HoldForm -> Identity, Filling -> Automatic, ImageSize -> 550, PlotLabel -> Style[#, FontSize -> 13], FillingStyle -> Directive[Thick, Lighter[#2, 0.5]], ReferenceLineStyle -> Directive[Dotted, Thick, Lighter[#2, 0.5]], PlotStyle -> Directive[PointSize[Large], #2], Method -> {"ReferenceLineMethod" -> "Reference"}, BaseStyle -> {FontFamily -> "Helvetica"}, LabelStyle -> Bold] &, {{WeibullDistribution[a, b], EstimatedDistribution[data, WeibullDistribution[a, b]]}, ColorData[37] /@ {11, 6}}]]
Out[2]=