New in Wolfram
Mathematica
8: Statistical Visualization
◄
previous
|
next
►
Graphics & Visualization
Several Different Distribution Functions
Directly visualize any of several different distribution functions, such as PDF, CDF, survival function, hazard function, and cumulative hazard functions.
In[1]:=
X
data1 = RandomVariate[NormalDistribution[0, 1], 10^3]; data2 = RandomVariate[BinormalDistribution[1/2], 10^3]; dfl = {"PDF", "CDF", "SF", "HF", "CHF"}; Grid[Transpose@{ParallelTable[ Histogram[data1, Automatic, dfl[[i]], ChartStyle -> ColorData[45, i], PlotLabel -> dfl[[i]], BaseStyle -> {FontFamily -> "Helvetica"}, LabelStyle -> Bold], {i, Length[dfl]}], ParallelTable[ SmoothHistogram[data1, Automatic, dfl[[i]], Filling -> Axis, FillingStyle -> ColorData[45, i], PlotLabel -> dfl[[i]], BaseStyle -> {FontFamily -> "Helvetica"}, LabelStyle -> Bold], {i, Length[dfl]}], ParallelTable[ Histogram3D[data2, 15, dfl[[i]], ChartStyle -> ColorData[45, i], ChartBaseStyle -> EdgeForm[Opacity[0.3]], PlotLabel -> dfl[[i]], BaseStyle -> {FontFamily -> "Helvetica"}, LabelStyle -> Bold], {i, Length[dfl]}], ParallelTable[ SmoothHistogram3D[data2, Automatic, dfl[[i]], Filling -> Axis, PlotStyle -> ColorData[45, i], PlotLabel -> dfl[[i]], Lighting -> "Neutral", BaseStyle -> {FontFamily -> "Helvetica"}, LabelStyle -> Bold], {i, Length[dfl]}]}]
Out[1]=