Professional Documents
Culture Documents
Theory 1
Theory 1
Theory 1
Contingency table
Steps:
1. Make a 2x2 contingency table with a, b, c, d – observed frequencies.
Step1.
Contingency table is shown below.
Handed-
ness Right handed Left handed Total
Sex
Male 25 a 10 b 35
Female 9 c 16 d 25
Total 34 26 60
The numbers of the males, females, and right- and left-handed individuals are
called marginal totals. The grand total (i.e. the total number of individuals represented in the
contingency table) is the number in the bottom right corner.
The table allows users to see at a glance that the proportion of men who are right handed
is about the same as the proportion of women who are right handed although the proportions
are not identical. The significance of the difference between the two proportions can be
assessed with a variety of statistical tests including Pearson's chi-squared test, provided the
entries in the table represent individuals randomly sampled from the population about which
conclusions are to be drawn. If the proportions of individuals in the different columns vary
significantly between rows (or vice versa), it is said that there is a contingency between the two
variables. In other words, the two variables are not independent. If there is no contingency, it is
said that the two variables are independent.
Step2. H0 – X and Y are independent variables and there is no relationship between them.
Handedness doesn’t depend on Sex.
H1 - X and Y are dependent variables and they have a relationship. Handedness
depends on Sex.
Step4.
Step5. a0, b0, c0 and d0-all expected frequencies’ meanings are more than 5, so we don’t use
the Yates's correction, and calculate the chi-square statistic by the formula:
𝑎 ∗ 𝑑 − 𝑏 ∗ 𝑐 25 ∗ 16 − 10 ∗ 9
𝑄= = = 𝟎. 𝟔𝟑
𝑎 ∗ 𝑑 + 𝑏 ∗ 𝑐 25 ∗ 16 + 10 ∗ 9
Step9. Odds ratio. Another important statistic can also be calculated from the contingency
table. It is called the odds ratio (OR) and is calculated as
𝑎∗𝑑
𝑂𝑅 =
𝑏∗𝑐
The odds ratio is used to assess how the chances of positive and negative outcomes are (for
example, the development of an unwanted side effect after using a drug). If OR = 1 (or very
close to 1), it means that the chances of an event in both groups are almost the same.
Step10. Relative risk. Risk is the probability of a certain outcome, such as illness or injury,
depending on a factor. The risk can range from 0 (there is no probability of an outcome) up to 1
(in all cases, an unfavorable outcome is expected). Relative risk is the ratio of the frequency of
outcomes among subjects influenced by the studied factor to the frequency of outcomes among
subjects not influenced by this factor. In the scientific literature, the abbreviated name of the
indicator is often used - RR ("relative risk"). We find the value of the relative risk using the
following formula:
𝑎
𝑅𝑅 = 𝑎 + 𝑏 = 𝑎 ∗ (𝑐 + 𝑑)
𝑐 𝑐 ∗ (𝑎 ∗ 𝑏)
𝑐+𝑑
Where, a, b, c, d are the observed frequencies in the cells of the contingency table.