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 como cualquier otra distribución
Se estima la distribución del largo de partes de discurso normal en inglés y el largo de un sustantivo estimado se calcula a partir de
HistogramDistribution
.
In[1]:=
X
partOfSpeech = WordData[All, "PartsOfSpeech"]; data = Table[ StringLength /@ i, {i, (WordData[All, #] & /@ partOfSpeech)}];
In[2]:=
X
Framed[Grid[ Partition[ Table[Plot[ Evaluate[PDF[HistogramDistribution[data[[i]]], x]], {x, 0, 30}, PlotLabel -> Style[partOfSpeech[[i]], Bold, FontFamily -> "Verdana"], PlotRange -> All, Exclusions -> None, PlotPoints -> 500, Filling -> Axis, PlotStyle -> {Thick, Black}, FillingStyle -> ColorData[14, 8], ImageSize -> 175, Ticks -> {Range[0, 30, 10], None}, Axes -> {True, False}], {i, Length[partOfSpeech]}], 3]], RoundingRadius -> 10, FrameMargins -> 10, Background -> GrayLevel[.95]]
Out[2]=
In[3]:=
X
Expectation[len, len \[Distributed] HistogramDistribution[data[[1]]]] // N
Out[3]=