Hypothesis Testing and Statistical Inference
This tool performs McNemar's test, a statistical test used on paired nominal data to determine if the row and column marginal frequencies are equal.
Explore these real-world scenarios to understand the applications of McNemar's test.
A study tests a new drug. 150 patients are assessed for a symptom before and after treatment. We want to know if the drug significantly changed the presence of the symptom.
a: 60, b: 50
c: 10, d: 30
A company surveys 200 people about their brand preference before and after a new ad campaign. The goal is to see if the campaign significantly shifted preferences.
a: 70, b: 15
c: 35, d: 80
100 students are tested on a concept, then retaught using a new method and tested again. We are analyzing the change in pass/fail rates.
a: 40, b: 5
c: 25, d: 30
An example where there is very little change between the two conditions, testing the calculator's handling of low discordant pair counts.
a: 100, b: 2
c: 3, d: 150
The calculator uses a standard 2x2 contingency table format. You need to input the counts for four specific cells: a) Positive in Condition 1 and Positive in Condition 2 b) Positive in Condition 1 and Negative in Condition 2 c) Negative in Condition 1 and Positive in Condition 2 d) Negative in Condition 1 and Negative in Condition 2. Ensure that you input non-negative integer values.
The test is based on a 2x2 table for paired data:
Condition 2: Positive | Condition 2: Negative | |
---|---|---|
Condition 1: Positive | a | b |
Condition 1: Negative | c | d |
Here, 'a' and 'd' are concordant pairs (no change), while 'b' and 'c' are discordant pairs (change occurred).
Let's use the 'Drug Efficacy Trial' from our examples: a=60, b=50, c=10, d=30.