New in Wolfram
Mathematica
8: Distribuciones de fórmula, no paramétricas y derivadas
◄
previous
|
next
►
Algoritmos de núcleo
Use distribuciones no paramétricas para simular procesos naturales
Una distribución basada en datos creada con datos del géiser Old Faithful. Aquí se visualiza la función de densidad y una muestra al azar a partir de la distribución.
In[1]:=
X
data = ExampleData[{"Statistics", "OldFaithful"}];
In[2]:=
X
\[ScriptCapitalD] = KernelMixtureDistribution[data, "SheatherJones"];
In[3]:=
X
p2 = ListPlot[rng = RandomVariate[\[ScriptCapitalD], 500], PlotRange -> {{1, 6}, {30, 110}}, AspectRatio -> 1, Frame -> True, ImageSize -> 220, PlotStyle -> Blue, PlotLabel -> Text[Style["Simulated Eruptions", FontFamily -> "Verdana", Bold]], Background -> Directive[Opacity[.5], White], Axes -> None]; p1 = Plot3D[ Evaluate[PDF[\[ScriptCapitalD], {x, y}]], {x, 1, 6}, {y, 30, 105}, Mesh -> 25, PlotRange -> All, PlotLabel -> Text[Style["Duration vs. Waiting Time", FontFamily -> "Verdana", Large]], BoxRatios -> 1, PlotPoints -> 100, MeshStyle -> Opacity[.3], ColorFunction -> "TemperatureMap", Boxed -> False, ViewPoint -> {2, -2, 1}, Epilog -> Inset[p2, {Right, Bottom}, {Right, Bottom}], ImageSize -> 570]
Out[3]=