Documentos de Académico
Documentos de Profesional
Documentos de Cultura
DISTRIBUCIONES DE PROBABILIDAD
Distribución Alias
Ingeniería Electrónica y Telecomunicaciones
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
PREFIJOS
Para cada distribución, hay 4 funciones relacionadas:
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
PREFIJOS
Por ejemplo, dexp(x) es la función de densidad de una distribución exponencial de media 1
mientras que rbinom(100, 1, 0.5) genera 100 números aleatorios con distribución \( B(1,0.5) \).
Ingeniería Electrónica y Telecomunicaciones
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
PREFIJOS
Ingeniería Electrónica y Telecomunicaciones
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
DISTRIBUCIÓN NORMAL
Si \( X \) es una v.a. con distribución normal de media 3 y desviación típica 0,5, la probabilidad de que \( X
\) sea menor que 3,5 se calcula mediante
Ingeniería Electrónica y Telecomunicaciones
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
DISTRIBUCIÓN NORMAL
El valor \( z_\alpha \) que aparece en muchas de las fórmulas para intervalos y contrastes se obtiene con el
comando qnorm(1-alfa). Algunos ejemplos:
Ingeniería Electrónica y Telecomunicaciones
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
DISTRIBUCIÓN NORMAL
Para generar una muestra de tamaño 100 de una población normal de media 10 y desviación típica 1 (y
guardarla en un vector x):
> x <- rnorm(100, mean = 10, sd = 1)
Ingeniería Electrónica y Telecomunicaciones
>x
[1] 10.270489 9.342568 9.742820 10.793621 11.787485 9.420786 10.473976
[8] 10.906662 10.867441 7.378624 9.943060 9.493377 9.604790 10.648327
[15] 9.746262 10.121922 10.249346 9.063545 9.231311 9.877223 10.008458
[22] 10.510142 11.154903 11.550844 10.559776 8.766899 10.827492 10.348586
[29] 10.329171 9.100435 9.559118 11.155556 11.681381 8.033603 9.028267
[36] 9.756002 10.097906 8.793969 9.548453 10.059939 9.515441 9.766785
[43] 10.839446 7.482272 9.934896 8.411591 11.024177 9.809864 9.238214
[50] 7.724927 10.224613 11.210016 8.227661 10.004223 9.688808 10.737474
[57] 9.584559 8.467993 9.593726 9.595595 11.496037 9.731835 9.570179
[64] 10.398195 9.242805 8.897972 12.204371 10.764432 10.606277 10.379252
[71] 9.631444 9.061559 10.671584 10.711841 10.539844 10.792887 10.614750
[78] 7.597788 8.788836 9.943384 8.196605 9.082060 10.548065 9.187169
[85] 10.119665 9.408041 8.778162 9.017981 10.800107 8.123404 8.726689
[92] 9.665232 11.388700 9.596151 11.767084 11.874796 10.513654 10.943831
[99] 9.839900 8.873339
PROGRAMACIÓN PARA INGENIERÍA
DISTRIBUCIÓN NORMAL
> mean(x)
[1] 9.890127
> sd(x)
Ingeniería Electrónica y Telecomunicaciones
[1] 1.02405
> hist(x)
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
DISTRIBUCIÓN NORMAL
> boxplot(x)
Ingeniería Electrónica y Telecomunicaciones
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
DISTRIBUCIÓN NORMAL
> hist(x, freq = FALSE) # freq = FALSE para que el área del hist. sea 1
> curve(dnorm(x, mean = 10, sd = 1), from = 7, to = 13, add = TRUE)
Ingeniería Electrónica y Telecomunicaciones
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
EJERCICIO
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
EJERCICIO
Fuente: https://rpubs.com/joser/distribuciones
PROGRAMACIÓN PARA INGENIERÍA
REFERENCIAS
https://rpubs.com/
Ingeniería Electrónica y Telecomunicaciones
DATOS DE CONTACTO
Mg. Ing. Jesús Martín Bravo Suclupe jbravo@untels.edu.pe