Está en la página 1de 3

lista = {{598.`, 9.48`}, {228.`, 3.65`}, {560.`, 8.69`}, {405.`, 6.

58`},
{273.`, 4.76`}, {295.`, 5.08`}, {588.`, 8.93`}, {260.`, 5.68`}, {325.`, 5.68`},
{284.`, 4.59`}, {434.`, 7.02`}, {499.`, 6.74`}, {264.`, 5.05`}, {584.`, 8.59`},
{553.`, 8.28`}, {449.`, 7.19`}, {336.`, 5.56`}, {706.`, 7.97`}, {509.`, 6.49`},
{428.`, 5.82`}, {598.`, 7.33`}, {454.`, 6.06`}, {359.`, 7.65`}, {607.`, 7.63`},
{591.`, 7.28`}, {662.`, 7.8`}, {548.`, 6.95`}, {839.`, 10.68`}, {639.`, 8.94`},
{464.`, 7.27`}, {556.`, 8.17`}, {391.`, 6.52`}, {1120.`, 12.84`},
{370.`, 6.3`}, {541.`, 8.03`}, {895.`, 11.13`}, {675.`, 9.27`},
{351.`, 5.99`}, {517.`, 7.72`}, {425.`, 5.84`}, {273.`, 4.96`},
{400.`, 6.52`}, {753.`, 9.86`}, {466.`, 7.2`}, {385.`, 6.35`}, {477.`, 7.31`},
{379.`, 6.27`}, {652.`, 8.97`}, {567.`, 8.18`}, {516.`, 7.69`}};

datosejex = Flatten[Take[lista, All, 1]]


aplana toma todo

{598., 228., 560., 405., 273., 295., 588., 260., 325., 284., 434., 499.,
264., 584., 553., 449., 336., 706., 509., 428., 598., 454., 359., 607., 591.,
662., 548., 839., 639., 464., 556., 391., 1120., 370., 541., 895., 675.,
351., 517., 425., 273., 400., 753., 466., 385., 477., 379., 652., 567., 516.}

datosejey = Flatten[Take[lista, All, - 1]]


aplana toma todo

{9.48, 3.65, 8.69, 6.58, 4.76, 5.08, 8.93, 5.68, 5.68, 4.59, 7.02, 6.74,
5.05, 8.59, 8.28, 7.19, 5.56, 7.97, 6.49, 5.82, 7.33, 6.06, 7.65, 7.63, 7.28,
7.8, 6.95, 10.68, 8.94, 7.27, 8.17, 6.52, 12.84, 6.3, 8.03, 11.13, 9.27,
5.99, 7.72, 5.84, 4.96, 6.52, 9.86, 7.2, 6.35, 7.31, 6.27, 8.97, 8.18, 7.69}

Ordenar datos de menor a mayor

Sort[datosejey]
ordena

{3.65, 4.59, 4.76, 4.96, 5.05, 5.08, 5.56, 5.68, 5.68, 5.82, 5.84, 5.99,
6.06, 6.27, 6.3, 6.35, 6.49, 6.52, 6.52, 6.58, 6.74, 6.95, 7.02, 7.19, 7.2,
7.27, 7.28, 7.31, 7.33, 7.63, 7.65, 7.69, 7.72, 7.8, 7.97, 8.03, 8.17, 8.18,
8.28, 8.59, 8.69, 8.93, 8.94, 8.97, 9.27, 9.48, 9.86, 10.68, 11.13, 12.84}

Mean[datosejey]
media

7.2908

StandardDeviation[datosejey]
desviación estándar

1.76307

GRAFICAR LA CDF (función de distribución acumulada)


se pone 3 y 13 porque al ordenar los datos van con esos límites

Printed by Wolfram Mathematica Student Edition


2 Ejemplo_tesis velocidades.nb

DiscretePlot[CDF[EmpiricalDistribution[datosejey], x], {x, 3, 13}, PlotStyle -> Red]


representación di⋯ fun⋯ distribución empírica estilo de repres⋯ rojo
1.0

0.8

0.6

0.4

0.2

4 6 8 10 12

En el caso que los datos tengan una distribución NORMAL


se realiza de la siguiente manera, de lo contrario como se hizo anteriormente

μ = Mean[datosejey];
media

σ = StandardDeviation[datosejey];
desviación estándar

PDF FUNCION DE DENSIDAD DE PROBABILIDAD

PDF[NormalDistribution[μ, σ], x]
fun⋯ distribución normal
2
0.226277 ⅇ-0.160853 (-7.2908+x)

2
Plot0.226277 ⅇ-0.160853 (-7.2908+x) , {x, - 18.621, 33.2026}, PlotRange → All
representación gráfica rango de repr⋯ todo

0.20

0.15

0.10

0.05

-10 10 20 30

CDF FUNCION DE DISTRIBUCION ACUMULADA

Printed by Wolfram Mathematica Student Edition


Ejemplo_tesis velocidades.nb 3

CDF[NormalDistribution[μ, σ], x]
fun⋯ distribución normal
1
Erfc[0.401065 (7.2908 - x)]
2

1
Plot Erfc0.401065 7.2908 - x, {x, - 22.6295, 37.2111}
2
represe⋯ función error complementaria

1.0

0.8

0.6

0.4

0.2

-20 -10 10 20 30

1
Erfc0.40106485032989303` 7.290800000000001` - x /. x → 0.85
2 función error complementaria

0.000129513

Printed by Wolfram Mathematica Student Edition

También podría gustarte