A 3 × 4 contingency table is analysed with a chi-square test. How many degrees of freedom does this test have?
Free Applied Statistics in Healthcare practice question on Non-parametric tests and chi-square for BSN and Post-RN nursing students. Choose your answer, then open the answer and the explanation.
A12
B11
C6
D5
Show answer and explanation
✓ Correct answerC. 6
Explanation
For a chi-square test of independence in a contingency table, the degrees of freedom depend only on the number of rows and columns: df = (rows − 1) × (columns − 1). The number of observations does not change this value. So for a table with 3 rows and 4 columns, df = (3 − 1) × (4 − 1) = 2 × 3 = 6.
Why each option is right or wrong
✗A. 12 — This is simply rows times columns, which counts the cells of the table and ignores the one degree lost in each margin.
✗B. 11 — This subtracts one from the total number of cells, which is the rule for a goodness-of-fit test, not a two-way table.
✓C. 6 — Multiplying one less than the number of rows by one less than the number of columns gives 2 × 3 = 6 degrees of freedom.
✗D. 5 — This is rows plus columns minus two, which treats the margins as if they were added rather than multiplied.
Situation
Degrees of freedom formula
Goodness-of-fit test, k categories
k − 1
Contingency table, r rows × c columns
(r − 1) × (c − 1)
2 × 2 table
(2 − 1) × (2 − 1) = 1
3 × 4 table
(3 − 1) × (4 − 1) = 6
EXAM HINT Each margin loses one degree: (rows − 1) × (columns − 1).
اردو وضاحت
chi-square test میں degrees of freedom کیا ہوتے ہیں؟
chi-square test یہ دیکھنے کے لیے لگایا جاتا ہے کہ دو categorical variables آپس میں جڑے ہوئے ہیں یا نہیں۔ اس کے لیے data کو ایک table میں رکھا جاتا ہے جس میں rows اور columns ہوتے ہیں، اور degrees of freedom صرف اسی table کے سائز سے نکلتے ہیں۔
3 × 4 table کے لیے degrees of freedom کتنے بنیں گے؟
ہر row میں سے ایک اور ہر column میں سے ایک کم کر کے دونوں کو آپس میں ضرب دیں۔ یہاں (3−1) × (4−1) یعنی 2 × 3 = 6 بنتے ہیں۔ صرف cells کی گنتی کرنا یا rows اور columns کو جمع کرنا غلط طریقہ ہے۔