Professional Documents
Culture Documents
Media:
xi
i=1
Datos agrupados: 1 x= n
k k
ni xi =
i=1 i=1
fi xi
Mediana: Moda:
1.2
Valor que deja a izquierda y derecha el mismo nmero de observaciones, una vez orde-
Medidas de dispersin:
Datos sin agrupar: 1 vx = n 1 (xi x) = n i=1
2 k 2 ni x2 i x = i=1 i=1 n n 2 x2 i x i=1
Varianza:
Datos agrupados: vx = 1 n
k 2 fi x2 i x
Desviacin tpica:
vx
Covarianza:
2.2
(xi x)(yi y ) =
i=1
1 n
xi yi xy
i=1
Recta de regresin
E.C.M. =
Y
n
sobre
es la recta
y = a + bx
1 n
(yi a bxi )2
i=1
y = a + bx = y
Varianza residual:
.
sobre
Varianza residual = vy 1
2.3
(covx,y )2 vx vy
= vy (1 r2 )
Modelo general:
Denimos T = g (X ), hallamos la recta de regresin de Y sobre T y deshacemos el cambio para obtener la curva pedida.
y = a + b log x y = aebx
3 Probabilidad
Unin de probabilidades: Regla de Laplace:
P (B ) =
i=1 n
P (n i=1 Ai ) =
i=1 k
P (Ai )
i<j
P (bi ) =
k = n
Probabilidad condicionada: Sucesos independientes: Regla de la multiplicacin: Regla de la probabilidad total: Regla de Bayes:
P (Aj |B ) =
P (A|B ) =
P (A B ) P (B )
P (A B ) = P (A)P (B )
n1 P (n i=1 Ai ) = P (A1 )P (A2 |A1 )P (A3 |A1 A2 ) . . . P (An | i=1 Ai ) n
P (B ) =
i=1
P (Ai )P (B |Ai )
n i=1
4 Variables aleatorias
P (A) = P (X A) = P { : X ( ) A}
F (x) = P (, x] = P { : X ( ) x}
i = 1, . . . , n . . .
xi P (xi )
Varianza: 2 = V (X ) = E [(X )2 ] =
i
(xi )2 P (xi ) =
i
2 2 2 x2 i P (xi ) = E [X ]
Desviacin tpica:
Variables contnuas:
Funcin de densidad: a) f (x) 0, x b) f (x)dx = 1 P (A) =
A
f (x)dx f (x)dx = 0
{x}
P (x) =
Funcin de distribucin:
x
F (x) = P (, x] =
f (x)dx
5 Vectores aleatorios
P (A) = P ((X, Y ) A) = P { : (X ( ), Y ( )) A}
Funcin de distribucin:
F (x, y ) = P {(t, u)
2
: t x, u y } = P { : X ( ) x, Y ( ) y }
(x, y )
Vectores discretos:
Funcin de masa conjunta: P (X = xi ; Y = yj ) = P { : X ( ) = xi , Y ( ) = yj } Funcin de masa marginal:
n
i = 1, . . . , m; j = 1, . . . n
P (X = xi ) =
j =1 m
P (X = xi ; Y = yj )
i = 1, . . . , m
P (Y = yj ) =
i=1
P (X = xi ; Y = yj )
j = 1, . . . , n
i = 1, . . . , m; j = 1, . . . , n
Cov (X, Y ) = 0)
i = 1, . . . , m
Vectores continuos:
Funcin de densidad conjunta: f (x, y ) 0 (x, y ) f ( x, y ) dxdy =1 2 P (A) =
A 2
f (x, y )dxdy
Funcin de densidad marginal: f (x) = f (y ) = Covarianza: Cov (X, Y ) = E [(X E [X ])(Y E [Y ])] = E [XY ] E [X ]E [Y ] X e Y son
independientes
x y
si
x , y Cov (X, Y ) = 0 (incorreladas)
f (x, y ) = f (x)f (y )
x , f (y ) > 0
Propiedades:
a) E [kX ] = kE [X ] b) E [X + Y ] = E [X ] + E [Y ] c) V (kX ) = k2 V (X ) d) Si X e Y estn incorreladas: E [XY ] = E [X ]E [Y ] e) V (X1 + + Xn ) = V (X1 ) + + V (Xn ) + 2 i<j Cov (Xi , Xj ) f) Si X1 , . . . , Xn estn incorreladas: V (X1 + + Xn ) = V (X1 ) + + V (Xn ) g) V (X Y ) = V (X ) + V (Y ) 2Cov (X, Y ) h) Si X e Y estn incorreladas: V (X Y ) = V (X ) + V (Y )
E [X ] = p V (X ) = E [X 2 ] p2 = p p2 = p(1 p)
6.2
P (X = x) =
n x p (1 p)nx k
para x = 0, 1, ..., n
6.3
P (X = x) = (1 p)x p
para x = 0, 1, ... 1p p
E [X ] =
x=0
x(1 p)x p =
P (X = x) = E [X ] =
x+r1 r p (1 p)x x
para x = 0, 1, ...
r(1 p) p
6.4
Distribucin de Poisson
Lmite de B(n;p) cuando
n , p 0, np (0 < < ) ( n 30 y p 0, 1)
P (X = x) =
e x x!
para x = 0, 1, ...
E [X ] = lim np = V (X ) = lim(np)(1 p) =
6.5
Distribucin hipergeomtrica
X=nmero de xitos obtenidos en n observaciones al azar sin reemplazamiento (de una
P (X = x) = nD N
D x
N D nx N n
E [X ] =
6.6
Distribucin normal N (; )
f (x) = 1 1 exp 2 2 x
2
para todo x
Propiedades
a) E [X ] = b) V (X ) = 2 c) P (X < z ) = P (X > + z ) d) X N (; ) Z = X N (0; 1) e) n (y p jo) B (n; p) N (np; np(1 p)) ( n 30 y 0, 1 < p < 0, 9) f) Si X1 N (1 ; 1 ), ..., Xn N (n ; n ) son independientes:
X1 + + Xn X1 X2 N ( = 1 + + n ; = N ( = 1 2 ; =
2 + + 2 ) 1 n
2 + 2 ) 1 2
6.7
6.7.1 Distribucin
n 2 Xi i=1
de Pearson
6.7.3 Distribucin
1 m 1 n m 2 i=1 Xi n 2 i=1 Yi
de Fisher-Snedecor
6.8
1 f (x, y ) = ( 2 )2
1 x 1 exp (x 1 , y 2 )1 2 y 2 ||
Propiedades
a) Distribucin marginal de X: N ( = 1 ; = 1 ) b) Distribucin marginal de Y: N ( = 2 ; = 2 ) c) Distribucin de (Y|X=x):
N = 2 + Cov (X, Y ) (x 1 ); = 2 2 1 1 2
Intervalo ...
1 para
Condiciones
conocida desconocida
Frmula
I = x z/2 n s I = x tn1;/2 n I= (n 1)s2 (n 1)s2 , 2 2 n1;/2 n1;1/2
1 para 2
X B (1, p)(1)
1 para p
I = x z/2
x(1 x) n
X P oisson()(1)
1 para
I = x z/2
x n
Y N (2 ; 2 )
1 = 2 desconocidas
I = x y tm+n2;/2 sp
1 1 + m n
(3)
1 = 2 desconocidas
2 2 1 para 1 /2
I = x y tf ;/2
2 s2 1 /s2
s2 s2 1 + 2 m n
I=
Fm1;n1;/2
s2 1 Fn1;m1;/2 s2 2
1 n1
(Xi X )2 =
i=1
1 n1
2 (Xi nX ) i=1
2 /n)2 (S2 n1
10
Hiptesis
H0 : = 0
Condiciones
conocida desconocida
Frmula
R= |x 0 | > z/2 n s |x 0 | > tn1;/2 n x 0 > z n s x 0 > tn1; n x 0 < z1 n s x 0 < tn1;1 n n1 2 2 / [2 n1;1/2 , n1;/2 ] 2 s 0 n1 2 2 2 s > n1; 0 n1 2 2 2 s < n1;1 0
R=
H0 : 0
conocida desconocida
R=
R=
H0 : 0
conocida desconocida
R=
R=
H0 : = 0
R=
H0 : 0
R=
H0 : 0
R=
X B (1, p)(1)
H 0 : p = p0
R=
|x p0 | > z/2
p0 (1 p0 ) n
H 0 : p p0
R=
x p0 > z
p0 (1 p0 ) n p0 (1 p0 ) n
H 0 : p p0
R=
x p0 < z1
X P oisson()(1)
H0 : = 0 H0 : 0 H0 : 0
0 /n}
0 /n} 0 /n}
11
Frmula
R = |x y | > z/2 R= 2 2 1 2 + n1 n2 1 1 + n1 n2 s2 2 (3)
(2)
Y N (2 , 2 )
1 = 2
1 = 2
s2 1 n1
n2
H0 : 1 2
1 , 2 conocidas
n1
2 2
n2 1 1 + n1 n2
(2)
1 = 2
1 = 2
R = x y > t f ; R = x y < z1 R=
(3) 2 s2 s 1 + 2 n1 n2 2 2 1 2 + n1 n2 1 1 + n1 n2 s2 2 (3)
(2)
H0 : 1 2
1 , 2 conocidas
1 = 2
1 = 2
R = x y < tf ;1
s2 1 n1
n2
H0 : 1 = 2 H0 : 1 2 H0 : 1 2
2 R = {s2 / [Fn1 1;n2 1;1/2 , Fn1 1;n2 1;/2 ]} 1 /s2 2 R = {s2 1 /s2 > Fn1 1;n2 1; } 2 R = {s2 1 /s2 < Fn1 1;n2 1;1 }
(2) s2 p =
2 ( s2 2 /n2 ) n2 1
12
X B (1, p1 )
H 0 : p1 = p2
R=
|x y | > z/2
p(1 p)
1 1 + n1 n2
(4)
Y B (1, p2 )
H 0 : p1 p2
R=
x y > z
p(1 p)
1 1 + n1 n2
(4)
H 0 : p1 p2 xi + yi n1 x + n2 y = n1 + n 2 n1 + n2
R=
x y < z1
p(1 p)
1 1 + n1 n2
(4) p =
13
11 Contrastes 2
11.1 Contraste de la bondad del ajuste (primer caso)
modelo de probabilidad X es P
si:
i=1
(Oi ei )2 = ei
i1
2 Oi n > 2 k1; ei
11.2
P si:
i=1
(Oi ei )2 = ei
i1
2 Oi n > 2 k1r ; ei
11.3
si:
j =1 i=1
j =1 i=1
11.4
Contraste de independencia
e Y son independientes
si:
j =1 i=1
j =1 i=1
14
12.1.1 Inuencia de
sobre
> tn2;/2
> tn2;
< tn2;1
12.1.2 Prediccin de
I = y+
donde
2 SR =
1 n2
(yi y )2
i=1
siendo
y =y covx,y covx,y x+ x0 vx vx
12.2
F =
m i=1
Tabla de anlisis de la varianza: Fuente de variacin Entre grupos Dentro de los grupos Suma de cuadrados
m i=1
G.l.
m1
Cuadrado medio
m i=1
Estadstico
ni (xi. x.. )2
ni j =1 (xij
ni (xi. x.. )2 m1
ni j =1 (xij
m i=1
xi. )2
nm
m i=1
xi. )2
nm
15