New in Wolfram
Mathematica
8: Visualización estadística
◄
previous
|
next
►
Gráficos y visualización
Varias funciones diferentes de distribución
Visualice directamente cualquiera de las varias funciones diferentes de distribución, como PDF, CDF, función de supervivencia, función de riesgo y funciones de riesgo acumulativas.
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]=