CoreCardio

Blog · Preparation

Statistics for the EECC: the formulas you need, with worked examples

Statistics questions are some of the quickest marks in the EECC. Research methods and statistics sit in the first chapter of the ESC Core Curriculum, and the questions use a small set of formulas: sensitivity and specificity, predictive values, likelihood ratios, and the ways of describing a treatment effect. Learn the formulas below, practise each one a few times, and these questions take a minute each.

Diagnostic tests: the 2×2 table

Almost every diagnostic test question can be answered by drawing this table. Put the test result in the rows and the true disease status in the columns.

Disease presentDisease absent
Test positivea: true positivesb: false positives
Test negativec: false negativesd: true negatives
  • Sensitivity = a ÷ (a + c). Of the people who have the disease, the proportion the test picks up. A very sensitive test, when negative, helps rule the disease out.
  • Specificity = d ÷ (b + d). Of the people without the disease, the proportion the test correctly calls negative. A very specific test, when positive, helps rule the disease in.
  • Positive predictive value (PPV) = a ÷ (a + b). If the test is positive, the chance the person has the disease.
  • Negative predictive value (NPV) = d ÷ (c + d). If the test is negative, the chance the person doesn't have the disease.

Sensitivity and specificity describe the test itself. Predictive values also depend on how common the disease is in the people being tested: the same test has a lower PPV in a low-risk population than in a high-risk one. That point comes up often in questions about screening.

Worked example: a test in a low-prevalence population

A test has a sensitivity of 90% and a specificity of 80%. It is used on 1,000 people, of whom 10% have the disease.

  1. Fill in the columns first. 100 people have the disease and 900 don't.
  2. Use sensitivity on the diseased column. 90% of 100 is 90 true positives, leaving 10 false negatives.
  3. Use specificity on the healthy column. 80% of 900 is 720 true negatives, leaving 180 false positives.
  4. Read across the rows. PPV = 90 ÷ (90 + 180) = 33%. NPV = 720 ÷ (720 + 10) = 98.6%.

So in this population a positive result is still more likely to be wrong than right, while a negative result is very reassuring.

Likelihood ratios

Likelihood ratios tell you how much a result changes the probability of disease, and unlike predictive values they don't depend on prevalence.

  • Positive likelihood ratio = sensitivity ÷ (1 − specificity). In the example above, 0.9 ÷ 0.2 = 4.5.
  • Negative likelihood ratio = (1 − sensitivity) ÷ specificity. In the example, 0.1 ÷ 0.8 = 0.125.
  • Using them: convert the pre-test probability to odds (odds = p ÷ (1 − p)), multiply by the likelihood ratio, then convert back (p = odds ÷ (1 + odds)). A pre-test probability of 10% is odds of 0.11; after a positive test that becomes 0.11 × 4.5 = 0.5, a probability of 33%, which matches the PPV above.

Treatment effects: relative and absolute

Trial questions usually give you the event rate in each group. Call the control group's rate the CER and the treated group's rate the EER.

  • Absolute risk reduction (ARR) = CER − EER.
  • Relative risk (RR) = EER ÷ CER.
  • Relative risk reduction (RRR) = ARR ÷ CER, which is the same as 1 − RR.
  • Number needed to treat (NNT) = 1 ÷ ARR, with the ARR as a proportion. Round up to the next whole number. A number needed to harm (NNH) is worked out the same way from the rise in an adverse event.

Example: 10% of patients on placebo and 8% on a new drug have the primary outcome over 3 years. The ARR is 2% (0.02), the RR is 0.8, the RRR is 20% and the NNT is 1 ÷ 0.02 = 50 over 3 years. Always quote the NNT with its time period, and watch whether the question asks for a relative or an absolute figure: a 20% relative reduction can be a small absolute one.

Odds ratios and hazard ratios

  • Odds ratio (OR). The odds of the outcome in one group divided by the odds in the other. It is the natural measure in case-control studies, where you can't work out risks directly. When the outcome is rare, the OR is close to the RR.
  • Hazard ratio (HR). From time-to-event analyses such as Cox regression, which most cardiovascular outcome trials use. An HR of 0.80 means a 20% lower rate of the event at any given time in the treated group, assuming the effect is constant over follow-up.

Confidence intervals and p values

  • For a ratio (RR, OR, HR), a 95% confidence interval that includes 1 means the result isn't statistically significant at the 5% level. For a difference (ARR, a difference in means), the equivalent is an interval that includes 0.
  • A p value is the probability of a result at least as extreme as the one seen, if there were really no difference. It isn't the probability that the treatment works.
  • Type I error (alpha) is a false positive: finding a difference that isn't real. Type II error (beta) is a false negative: missing a real difference. Power is 1 − beta, usually set at 80% or 90% when a trial is designed.

Trial design terms worth knowing

  • Intention to treat analyses everyone in the group they were randomised to, whatever treatment they actually received. It keeps the benefit of randomisation and is the usual primary analysis in superiority trials.
  • Per-protocol analyses only those who followed the protocol. Non-inferiority trials often report both, because intention to treat can make two treatments look more alike than they are.
  • Non-inferiority trials test whether a new treatment is no worse than the standard by more than a pre-set margin. Check where the confidence interval sits relative to that margin, not relative to 1.
  • Study types: randomised controlled trials test interventions; cohort studies follow exposed and unexposed groups forward and give relative risks; case-control studies start from people with and without the outcome and give odds ratios; cross-sectional studies measure prevalence at one point in time.

Tips for the exam

  • Draw the table every time, even when the numbers look simple. It takes 20 seconds and prevents most mistakes.
  • Turn percentages into proportions before dividing: an ARR of 2% is 0.02, so the NNT is 50, not 0.5.
  • Read what's being asked: relative or absolute, PPV or sensitivity, per year or over the whole trial.

CoreCardio has statistics questions in chapter 1 of the syllabus, with a worked explanation for each.

Sources

Practise with CoreCardio

Single best answer questions on every section of the ESC Core Curriculum, with explanations, flashcards and timed mock exams.