You are on page 1of 5

QUIZ No 2

Dario Alonso Ramirez Amaya


A. Distribucion normal para una media de 1.2 y una desviacion estandar de 0.4 (Mgalones)
In[1]:= Med = 1.2;

In[2]:= Desv = 0.4;

In[3]:= PDF[NormalDistribution[Med, Desv], x]


2
Out[3]= 0.997356 ⅇ-3.125 (-1.2+x)

2
In[7]:= Plot0.997356 ⅇ-3.125 (-1.2+x) , {x, - 5, 5}, PlotRange → All

1.0

0.8

0.6

Out[7]=

0.4

0.2

-4 -2 2 4

Probabilidad de que x sea menor que 1.5 usando la PDF


In[8]:= Integrate[Out[3], {x, - ∞, 1.5}]
Out[8]= 0.773373

Probabilidad de que x este en 1 y 1.6


In[10]:= Integrate[Out[3], {x, - ∞, 1.6}] - Integrate[Out[3], {x, - ∞, 1}]
Out[10]= 0.532807

El percentil 90 de la de la capacidad
In[50]:= k = 0;

Fori = 1.7, i < 1.8, i = i + 0.001,


a = Integrate[Out[3], {x, - ∞, i}];
Ifk ⩵ 0 && a ≥ 0.9, p90 = i;
k = 1;, f 

In[52]:= p90
Out[52]= 1.713

In[55]:= Integrate[Out[3], {x, - ∞, p90}]


Out[55]= 0.900166

Printed by Wolfram Mathematica Student Edition


2 Quiz2.nb

B. FUNCION DE FRECUENCIA CDF

1
Out[56]= Erfc[1.76777 (1.2 - x)]
2

1
In[58]:= Plot Erfc[1.76777 (1.2 - x)], {x, - 1, 5}
2
1.0

0.8

0.6

Out[58]=

0.4

0.2

-1 1 2 3 4 5

Probabilidad de que x sea menor que 1.5 usando la CDF


In[59]:= x = 1.5;

1
In[60]:= F= Erfc[1.7677669529663684` (1.2` - x)]
2
Out[60]= 0.773373

Probabilidad de que x sea mayor que 1 y menor que 1.6 usando CDF
1
In[61]:= F2 = Table Erfc[1.7677669529663684` (1.2` - x)], {x = 1.6} -
2
1
Table Erfc[1.7677669529663684` (1.2` - x)], {x = 1}
2
Out[61]= {0.532807}

El percentil 90 de la de la capacidad con la CDF


In[63]:= InverseCDF[NormalDistribution[1.2, 0.4], 0.9]
Out[63]= 1.71262

C. Usando la Funcion normal estandar para la PDF


In[64]:= PDF[NormalDistribution[], u]
u2
ⅇ- 2
Out[64]=

Printed by Wolfram Mathematica Student Edition


Quiz2.nb 3

In[65]:= Plot[PDF[NormalDistribution[], u], {u, - 5, 5}]

0.4

0.3

Out[65]= 0.2

0.1

-4 -2 2 4

Probabilidad de que x sea menor que 1.5 usando la PDF estandar


In[84]:= x = 1.5;

u1 = (x - Med) / Desv
Out[67]= 0.75

In[68]:= Integrate[Out[64], {u, - ∞, Out[67]}]


Out[68]= 0.773373

Probabilidad de x mayor que 1 y x menor que 1.6

In[70]:= x1 = 1;

In[71]:= x2 = 1.6;

In[72]:= u1 = (x1 - Med) / Desv


Out[72]= - 0.5

In[73]:= u2 = (x2 - Med) / Desv


Out[73]= 1.

In[74]:= Integrate[Out[64], {u, - ∞, Out[73]}] - Integrate[Out[64], {u, - ∞, Out[72]}]


Out[74]= 0.532807

D. Usando la funcion de frecuencia estandar


In[75]:= CDF[NormalDistribution[], u]

1 u
Out[75]= Erfc- 
2 2

Printed by Wolfram Mathematica Student Edition


4 Quiz2.nb

In[76]:= Plot[Out[75], {u, - 5, 5}]

1.0

0.8

0.6

Out[76]=

0.4

0.2

-4 -2 2 4

Probabilidad de que x sea menor que 1.5 usando la CDF estandar


In[86]:= u = 0.75
Out[86]= 0.75

1 u
In[87]:= Erfc- 
2 2
Out[87]= 0.773373

La probabilidad de x mayor a1 y x menor que 1.6


1 u2 1 u1
In[89]:= Erfc- - Erfc- 
2 2 2 2
Out[89]= 0.532807

El p90 Usando la CDF estandar


In[90]:= InverseCDF[NormalDistribution[], 0.9]
Out[90]= 1.28155

In[91]:= Solve[((x90 - Med) / Desv) == Out[90], x90]


Out[91]= {{x90 → 1.71262}}

E. Usando las tablas de funcion estandar.


x<1.5
In[92]:= p = 0.773
Out[92]= 0.773

1<x<1.6
In[93]:= p = 0.532
Out[93]= 0.532

P90
In[94]:= z = 1.285
Out[94]= 1.285

Printed by Wolfram Mathematica Student Edition


Quiz2.nb 5

In[95]:= Solve[z ⩵ ((x90 - Med) / Desv), x90]


Out[95]= {{x90 → 1.714}}

Printed by Wolfram Mathematica Student Edition

You might also like