Statistics

Biostatistics formulas

Prevalence and incidence, risk ratios, odds ratios, NNT, sensitivity, specificity, predictive values, confidence intervals for ratios and survival.

Cheat sheet · College · Health sciences · 9 sections

1How common is it?

Prevalence

At one point in time.

Example50 people with asthma in a town of 1,000:

Incidence proportion (risk)

Example20 new cases in a year among 980 at risk: per year

Incidence rate

Example12 cases over 2,400 person-years: per 1,000 person-years

Prevalence, incidence and duration

For a rare, stable condition.

Example5 per 1,000 per year, lasting 2 years on average: prevalence

Case fatality rate

Example3 deaths among 60 cases:

2The 2 × 2 table used below

Outcome (disease) yesOutcome noTotal
Exposedaba + b
Not exposedcdc + d

Example used in this section: a = 30, b = 70, c = 10, d = 90 (100 exposed, 100 not exposed).

3Comparing two groups

Risk ratio (relative risk)

Example: the exposed have 3 times the risk

Risk difference (attributable risk)

Example: 20 extra cases per 100 exposed

Odds ratio

The measure for case-control studies; close to the RR when the outcome is rare.

Example

Attributable fraction (exposed)

Example: of cases among the exposed are due to the exposure

4Treatments: how much do they help?

Absolute risk reduction

CER: control event rate; EER: experimental (treated) event rate.

Example20% of controls vs 15% of treated have a stroke:

Relative risk reduction

Example

Number needed to treat

Round up to a whole person.

Example: treat 20 people to prevent one stroke

5Diagnostic tests: the 2 × 2 table

Disease presentDisease absent
Test positiveTP (true positive)FP (false positive)
Test negativeFN (false negative)TN (true negative)

Example used below: TP = 90, FN = 10, FP = 45, TN = 855 (1,000 people, 100 with the disease).

6Diagnostic test accuracy

Sensitivity

How many sick people the test catches.

Example

Specificity

How many healthy people the test clears.

Example

Positive predictive value

Depends on how common the disease is.

Example

Negative predictive value

Example

Positive likelihood ratio

Example

Negative likelihood ratio

Example

7Confidence intervals for ratios (log scale)

Odds ratio

Example, SE :

Risk ratio

Example, SE :

Reading it

If the interval for a ratio contains 1, the data are consistent with no association.

Example(1.77, 8.42) does not contain 1: the association is statistically significant at the 5% level

8Means and samples

Standard error of a mean

Example, : SE

Sample size to estimate a mean

Round up.

Example, ME , 95%:

9Survival

Kaplan–Meier estimate

dᵢ deaths among nᵢ still at risk at each event time.

Example10 at risk, 1 dies: 0.9. Later 8 at risk, 2 die:

Hazard ratio

How fast events happen in one group compared with another, at any moment.

ExampleHR = 0.6: the treated group has events at 60% of the control group's rate

Related