Next: Log-linear models for two-dimensional
Up: Introduction
Previous: Independence
The odds-ratio is a measure that describes the degree of
association in a 2 x 2 table. If a joint probability distribution is given
in a 2 x 2 table
| Y |
| X |
|
1 | 2 |
|
| 1 |
p11 |
p12 |
p1. |
| 2 |
p21 |
p22 |
p2. |
| |
p.1 |
p.2 |
|
|
within row 1 the odds is W
1 = p12 / p11,
and within row 2 the odds is W
2 = p22 / p21
(similarly we could start from column 1 and column 2).
The odds-ratio is
|
q | = |
W1
W2
|
= |
p22
p21
|
/ |
p12
p11
|
= |
p11 p22
p12 p21
|
. |
| (2.11) |
If independence is true, in an r x c table, pij
= pi. p.j and, in a 2 × 2 table,
| q | = |
p11 p22
p12 p21
|
= 1 . |
|
(2.12) |
For demonstration, let us consider row 1 in the 2 x 2 table
(similarly we could start from row 2, or column 1 or column 2).
When independence is true,
p11 = p1. p.1, and
p12 = p1. p.2, that is,
p1. = p11 / p.1, and
p1. = p12 / p.2.
Hence,
| p1. = |
p11
p.1
|
= |
p12
p.2
|
, |
| (2.13) |
from which it follows that p11 p.2
= p12 p.1, where
p.2 = p12 + p22, and
p.1 = p11 + p21. Thus the result is
p11 p22 = p12 p21.
Hence, if independence is true,
In most applications the population probabilities pij
are unknown and hence is q.
For sample cell frequencies {nij} a sample analogue of
q is
|
^
q |
= |
|
= |
| = |
n11
n22 n12
n21 |
. |
|
The log transformation is
| log( |
^ q |
)
= log(n11) + log(n22)
- log(n12) - log(n21) . |
|
| If independence is true,
|
^ q | = 1, hence log( |
^ q | ) = 0
. |
| If log( |
^ q | ) > 0 |
, then there is a
positive covariation of the two cross-classified variables. |
| If log ( |
^ q |
) < 0 |
,
then there is a negative covariation. |
Next: Log-linear models for two-dimensional
Up: Introduction
Previous: Independence
.
ODL-Team
Wed Jan 12 2000