Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Una Propuesta de Corrección de Continuidad Asimétrica para Tablas de Contingencia (2x2) Con Totales Marginales Fijos
Una Propuesta de Corrección de Continuidad Asimétrica para Tablas de Contingencia (2x2) Con Totales Marginales Fijos
por
JOSÉ MARÍA MONTERO LORENZO
Departamento de Economía y Empresa (Área de Estadística)
Universidad de Castilla-La Mancha
RESUMEN
1. INTRODUCCIÓN
(1) Véase RUIZ-MAYA PÉREZ, L.; MARTIN PLIEGO, F.J.; MONTERO LORENZO, J.M.;
URIZ TOMÉ, P. (1995): "Análisis Estadístico de Encuestas: Datos Cualitativos". A.C., Madrid.
UNA PROPUESTA DE CORRECCIÓN DE CONTINUIDAD ASIMÉTRICA PARA TABLAS DE CONTIGENCIA (2X2) CON … 31
P ( N - Ê
ij ij
)
≥ nij - Êij , para cualquier ij
(2) Véase FISHER, R.A. (1935). "The design of experiments". 8ª ed. 1966. Oliver and Boyd.
Edinburgh.
(3) Véase RUIZ-MAYA PÉREZ, L.;MARTIN PLIEGO, F.J.; MONTERO LORENZO, J.M.; URIZ
TOMÉ, P. (1995): "Análisis Estadístico de Encuestas: Datos Cualitativos". A.C., Madrid.
32 ESTADÍSTICA ESPAÑOLA
distribución de probabilidad discreta, por estar fijados los totales marginales de los
dos factores involucrados en la tabla bifactorial.
(n - 1) (n 11 n 22 - n 12 n 21)
2
P χ12 ≥
n 1. n 2. n .1 n .2
(n - 1) (n 11 n 22 - n 12 n 21)
2
(n - 1) (nij - Êij)2
χ 2ajd = =
n
∑ ∑
n 1. n 2. n .1 n .2 i j Êij
y que consiste en restar 0,5 a las desviaciones positivas de las frecuencias obser-
vadas (nij) respecto de las estimaciones de las esperadas bajo la hipótesis de
independencia ( Êij ) , y sumar 0,5 en caso de que dichas desviaciones sean negati-
vas, y ello siempre antes de elevar al cuadrado las anteriores desviaciones. En
otros términos, la corrección de continuidad de Yates consiste en restar 0,5 al valor
absoluto de las diferencias entre nij y Êij , obteniéndose una aproximación a la
"probabilidad exacta", ya corregida de continuidad, mediante
(4) Ibidem.
2 2
(5) En realidad se opera en el estadístico χ
, pero se expone sobre el estadístico χajd
por ser este último más apropiado para llevar a cabo el contraste de la hipótesis de indepen-
dencia en este diseño. La demostración de la equivalencia de las dos expresiones expuestas
2
del estadístico χajd puede verse en RUIZ-MAYA PEREZ, L.;MARTIN PLIEGO, F.J.; MONTERO
LORENZO, J.M.; URIZ TOME, P; LOPEZ ORTEGA, J. (1990): "Metodología Estadística para el
Análisis de Datos Cualitativos". C.I.S., Madrid.
UNA PROPUESTA DE CORRECCIÓN DE CONTINUIDAD ASIMÉTRICA PARA TABLAS DE CONTIGENCIA (2X2) CON … 33
(n - 1) ( n - Ê
ij ij - 0,5 )
2
P χ12 ≥
n
∑∑
i j Êij
o bien a través de
[
P Nij − Êij ≥ nij − Êij ]=
[ ] [ ]=
P Nij − Êij ≤ − nij − Êij + P Nij − Êij ≥ nij − Êij
P[N ≤ Ê − n − Ê ]+ P[N ≥ Ê + n − Ê ]
ij ij ij ij ij ij ij ij
y si nij ≤ Êij
[ ] [
P Nij ≤ Êij − nij − Êij + P Nij ≥ Êij + nij − Êij ]=
[ ( )] [ (
P Nij ≤ Êij + nij − Êij + P Nij ≥ Êij − nij − Êij )] =
P[N ≤ n ]+ P[N ≥ 2Ê − n ]
ij ij ij ij ij
y si nij ≥ Êij
[ ] [
P Nij ≤ Êij − nij − Êij + P Nij ≥ Êij + nij − Êij ]=
[ ( )] [ ( )] =
P Nij ≤ Êij − nij − Êij + P Nij ≥ Êij + nij − Êij
1
P Nij − Êij ≥ nij − Êij − =
2
1 1
P Nij´ −Êij ≤ − nij − Êij + + P Nij − Êij ≥ nij − Êij − =
2 2
1 1
P Nij ≤ Êij − nij − Êij + + P Nij ≥ Êij + nij − Êij −
2 2
1 1 1
P | Nij - Êij | ≥ | nij - Êij | - = P Nij ≤ nij + + P Nij ≥ 2 Êij - nij -
2 2 2
1 1 1
P | Nij - Êij | ≥ | nij - Êij | - = P Nij ≤ 2 Êij - nij + + P Nij ≥ nij -
2 2 2
1
(6) En dicha casuística podríamos haber separado el caso en que 2 Êij - nij = θ + , pero
2
hemos preferido no hacerlo por no extendernos en demasía. Dicho caso será tratado como
caso particular de las situaciones A1), A2), B1) y B2).
UNA PROPUESTA DE CORRECCIÓN DE CONTINUIDAD ASIMÉTRICA PARA TABLAS DE CONTIGENCIA (2X2) CON … 35
Caso A.1)
nij ≤ Êij
y además
1
θ < 2 Êij - nij ≤ θ +
2
[ ] [
P Nij ≤ nij + P Nij ≥ 2Êij - nij ] ya que nij ≤ Êij
con
1
2
[
P Nij = nij ]
2) Sobreestimación
1
(
)
θ + - 2Êij - nij P [ Nij = θ ]
2
1 1
P Nij ≤ nij + + P Nij ≥ 2 Êij - nij - ya que nij ≤ Êij
2 2
1) Se corrige la infraestimación
[ (θ + 1) - (2 Ê - n ) ] P [ N = θ ]
ij ij ij
Tabla 1
Factor A
Factor B Nivel 1 Nivel 2
Nivel 1 2 8 10
Nivel 2 9 12 21
11 20 31
donde
1
Ê11 = 3,5483871 ; n11 ≤ Ê11 ; θ < 2 Ê11 - n11 < θ +
2
UNA PROPUESTA DE CORRECCIÓN DE CONTINUIDAD ASIMÉTRICA PARA TABLAS DE CONTIGENCIA (2X2) CON … 37
Gráfico 1
P (N11 = n11)
Caso A.2)
nij ≤ Êij
y además
1
θ+ ≤ 2Êij - nij < θ + 1
2
1) Infraestimación:
1
2
[
P Nij = nij ]
2) Infraestimación:
( ) 1
2Êij - nij - θ + P [ Nij = θ + 1 ]
2
P [ Nij = nij ]
1
2
2) Se incurre en sobreestimación:
[(θ + 1) - (2 Ê - n )] P [ N = θ ]
ij ij ij
Caso A.3)
nij ≤ Êij
1
(8) La segunda es nula cuando 2 Êij - nij = θ +
2
UNA PROPUESTA DE CORRECCIÓN DE CONTINUIDAD ASIMÉTRICA PARA TABLAS DE CONTIGENCIA (2X2) CON … 39
y además
2Êij - nij = θ
1) Infraestimación:
1
2
[
P Nij = nij ]
2) Infraestimación:
1
2
[ ]
P Nij = 2Êij - nij = P [ Nij = θ ]
1
2
nij ≥ Êij
y además
1
θ < 2Êij - nij ≤ θ +
2
[ ] [ ]
P Nij ≤ 2 Êij - nij + P Nij ≥ nij ya que nij ≥ Êij
con
1) Infraestimación:
P [ Nij = nij ]
1
2
2) Infraestimación:
1
(
)
θ + - 2Êij - nij P [ Nij = θ ]
2
1 1
P Nij ≤ 2 Êij - nij + + P Nij ≥ nij - ya que nij ≥ Êij
2 2
se tiene que
1
2
[
P Nij = nij ]
2) Se incurre en sobreestimación
[ (2 Ê - n )- θ] P [ N = θ + 1 ]
ij ij ij
Caso B.2)
nij ≥ Êij
y además
1
θ+ ≤ 2 Êij - nij < θ + 1
2
1
(9) La segunda nula cuando 2 Êij - nij = θ +
2
UNA PROPUESTA DE CORRECCIÓN DE CONTINUIDAD ASIMÉTRICA PARA TABLAS DE CONTIGENCIA (2X2) CON … 41
1) Infraestimación
1
2
[
P Nij = nij ]
2) Sobreestimación
( ) 1
2 Êij - nij - θ + P [ Nij = θ + 1 ]
2
si bien, como viene siendo habitual, la segunda distorsión, en este caso la sobrees-
1
timación, se anula en caso de que 2 Êij - nij = θ + .
2
1) Se corrige la infraestimación
[ (2 Ê - n )- θ] P [N = θ + 1]
ij ij ij
Caso B.3)
nij ≥ Êij
y además
2 Êij - nij = θ
1
2
[
P Nij = nij ]
42 ESTADÍSTICA ESPAÑOLA
2) Infraestimación
1
2
[ ]
P Nij = 2Êij - nij = P [ Nij = θ ]
1
2
Como puede apreciarse, salvo en los casos A.3 y B.3, en los que las estimacio-
nes de las frecuencias esperadas bajo la hipótesis de independencia son múltiplos
de 0,5,(10) la utilización de la corrección de continuidad de Yates no conduce a
buenas aproximaciones de la probabilidad exacta.
1
(
Pexacta ≅ P Nij ≤ nij + + P Nij ≥ 2 Êij - nij + ∆
2
)
B) Si nij ≥ Êij
( )
1
Pexacta ≅ P Nij ≤ 2 Êij - nij + ∆ + P Nij ≥ nij -
2
siendo
O bien
A) Si nij Êij
1
* D̂ij + * ∆ - D̂ij
2
Pexacta ≅ P ξ ≤ +P ξ ≥
n1. n2. n.1n.2 n1. n2. n.1n.2
n2 (n - 1) n2 (n - 1)
B) Si nij Êij
1
* ∆ - D̂ij * D̂ij -
2
Pexacta ≅ ξ ≤ +P ξ ≥
n1. n2. n.1n.2 n1. n2. n.1n.2
n2 (n - 1) n2 (n - 1)
siendo D̂ij = nij - Êij , * una normal estándar y û una cantidad que se calcula como
1
∆=θ+ - 2Êij + nij
2
En el caso A:
∆ - D̂ij
Si 2 Êij - nij > min (n1. n2. n.1n.2) entonces P ξ* ≥ =0
n1. n2. n.1n.2
n2 (n - 1)
En el caso B:
∆ - D̂ij
Si 2Êij - nij < 0 entonces P ξ* ≤ =0
n1.n2.n.1n.2
n2 (n - 1)
ellas cabe destacar dos formuladas por Cochran (correcciones I y II) y otra elabora-
da por de Mantel(11).
En el caso que nos ocupa, aquéllas con Nij≤2 ó Nij≥7,0967742, es decir las ta-
blas T0, T1, T2, T6, T7, T8, T9 y T10, siendo Ti la tabla con N11=i.
La probabilidad exacta (suma de las probabilidades de las tablas especificadas)
se cifra en 0,2617(12). La aproximaciones de la probabilidad exacta computadas
han sido las siguientes:
a) Mediante el estadístico χ2ajd : 0,2224 (Infraestimación: 0,0393).
(11) Su desarrollo puede verse en RUIZ-MAYA, L; MARTIN PLIEGO, F.J.; MONTERO LO-
RENZO, J.M.; URIZ TOME, P. (1995) "Analisis Estadistico de Encuestas: Datos Cualitativos",
A.C., Madrid.
(12) La probabilidad de la tabla Ti, con los totales marginales fijos, y bajo el supuesto de
independencia, se calcula como
n 1. !n 2. !n .1 !n .2 !
Pi =
n!n 11 !n 12 !n 21 !n 22 !
UNA PROPUESTA DE CORRECCIÓN DE CONTINUIDAD ASIMÉTRICA PARA TABLAS DE CONTIGENCIA (2X2) CON … 45
REFERENCIAS
COCHRAN W. G. (1942). «The 2x2 Correction for Continuity». Iowa State College
Journal of Science, 16, 421-436.
COX, D.R. (1970). «The continuity correction». Biometrika, 57, 217-219.
FISHER, R.A. (1935). «The design of experiments». 8ª ed. 1966. Oliver and Boyd.
Edinburgh.
UPTON, G.J.G. (1992). «Fisher's Exact Test». Journal of the Royal Statistic Society,
Ser. A, Part 3, 395-402.
46 ESTADÍSTICA ESPAÑOLA
YATES, F. (1934). «Contingency Tables Involving Small Numbers and the X2 Test».
Journal of the Royal Statistical Society, Ser. B, Supp. Vol.1, 217-235.
SUMMARY