Choose the measure and define the cells
Throughout these pages, group 1 contains a people with and b without the event; reference group 0 contains c with and d without it. Thus n1=a+b and n0=c+d. Some sources arrange the letters differently. Follow the labeled groups and outcomes rather than a letter’s position alone.[4]
We consider two independent groups with unweighted person counts. RR requires data that estimate group risks; conventional case-control sampling is insufficient. Both log-Wald calculations here use positive cells a, b, c and d. Matched data, clusters, weights and repeated events require other variance models.[1][4]
The two point estimates have different standard errors.[1]
The right-hand form is algebraically equivalent and avoids subtracting nearly equal reciprocals.[1]
This is the standard error of the natural logarithm of OR, not of OR itself.[1]
Add on the log scale, then exponentiate
θ̂ denotes the chosen positive RR or OR estimate; z is the appropriate standard-normal quantile.[2][3]
For a conventional two-sided 95% interval, z is approximately 1.96. The calculator uses exactly this rounded convention. Select RR or OR, then choose lower bound, upper bound, point estimate or log standard error as the target. Report the two bounds together. This tool computes neither exact intervals nor a p-value.[3]
With unrounded bounds, the estimate is the geometric rather than arithmetic midpoint.[2]
One RR interval and one OR interval
RR for two groups of 200 people
- Given
- Hypothetical complete cohort: a=40, b=160, c=20, d=180, with matching outcome and follow-up. Use z=1.96.
- Find
- Find the estimate, log standard error and both bounds.
Calculate the risk ratio first.
Use the appropriate cells in the RR standard error.
Build both log bounds and transform back.
Result: The approximate 95% log-Wald interval for RR is [1.213421, 3.296466].
Check: The unrounded bounds multiply to RR2=4. Distance from 2 to the upper bound exceeds distance to the lower bound, as expected from the transformation.
An OR interval can include one despite an estimate above one
- Given
- A hypothetical unmatched table of independent individuals has a=30, b=70, c=20 and d=80. Use z=1.96.
- Find
- Calculate the OR interval and compare it with null value 1.
Calculate the cross-product ratio.
All four reciprocal cells enter the OR variance.
Exponentiate the two bounds around ln(OR).
Result: The interval contains 1. This two-sided Wald procedure does not establish a departure from the null at the approximate 5% level.
Check: This establishes neither equality nor absence of an effect. The interval accommodates somewhat smaller as well as substantially larger odds than reference.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
95% describes a procedure
The frequentist interpretation concerns repeated comparable samples: a calibrated 95% procedure would cover the fixed population parameter in about 95% of the resulting intervals over time. After a sample is observed, the fixed parameter is either inside or outside its interval. It does not contain “95% of people” and is not a 95% posterior probability without an additional Bayesian model.[4]
Wald inference is approximate. Positive cells make the formula evaluable but do not guarantee good actual coverage. Very small cells, rare outcomes or dependent data may require another appropriate analysis. Do not silently modify zero cells through a continuity correction. Numerically evaluable output is not automatically suitable statistical inference.[1][2]
Relative risk compares risks, while odds ratio compares odds. Even an interval excluding 1 does not correct systematic bias. Study design, target population and potential confounders remain part of interpretation. Risk difference instead has null value 0 and can be negative; it needs its own uncertainty formula.[4]
Five exercises about calculation and meaning
Calculate · Foundation
For a=80, b=120, c=40 and d=160, calculate the 95% log-Wald RR interval with z=1.96.
Show hint
Calculate RR and the two RR variance contributions.
Learning goal: Calculate log-RR standard error and interval bounds.
Show solution and calculation
RR=2 and SE=√0.0275≈0.165831240.
Bounds are exp(ln2±1.96×SE), about 1.445012 and 2.768142.
Both are positive and their unrounded product is 4.
Rearrange · Application
An unrounded log-Wald interval has bounds L=0.5 and U=8. What is its point estimate?
Show hint
Use the geometric midpoint.
Learning goal: Translate logarithmic symmetry back.
Show solution and calculation
θ̂=√(LU)=√4=2.
The arithmetic midpoint 4.25 is wrong here.
On the log scale both bounds are equally far from ln2.
Interpret · Application
An odds ratio has interval [0.8, 2.4]. Does it prove the two groups are equal?
Show hint
Compare with null value 1 and consider interval width.
Learning goal: Distinguish non-rejection from established equality.
Show solution and calculation
No.
One lies inside, so the corresponding two-sided procedure does not reject its null.
The data also accommodate substantially different ratios.
Lack of significance does not prove equivalence.
Error analysis · Application
For RR=2 and SE(lnRR)=0.25, [2−1.96×0.25, 2+1.96×0.25] is called a log-Wald interval. What is wrong?
Show hint
On what scale is the standard error defined?
Learning goal: Apply a standard error on its correct scale.
Show solution and calculation
The standard error belongs to lnRR.
Correct bounds are [exp(ln2−0.49), exp(ln2+0.49)], about [1.225253, 3.264632].
The symmetric interval [1.51, 2.49] mixes scales.
Transfer · Challenge
Multiply every cell of a sufficiently large table by the same positive integer k. How do RR, OR and log standard errors change under the independent-count model?
Show hint
Track ratios and reciprocal counts in the variance formulas.
Learning goal: Distinguish sample size from artificial data duplication.
Show solution and calculation
Point estimates remain unchanged.
Each log variance divides by k, so its standard error divides by √k.
This requires genuinely additional independent observations; duplicating the same people creates no new information.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 1, 2026
- statsmodels Table2x2 source: log odds/risk ratio standard errors and normal intervals
- Cochrane Handbook, Chapter 6: dichotomous outcomes, risk, odds and absolute effects
- Office for Health Improvement and Disparities: odds ratio, relative risk and logarithmic intervals
- CDC Field Epidemiology Manual, Chapter 8: table orientation, association, confounding and uncertainty
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Authored an individual DE/EN article with original numerical examples, explicit table convention, exercises and model limits.
Cite this reference page
Quanta. Confidence Intervals for Risk Ratios and Odds Ratios. Updated November 1, 2026. https://quanta-study.de/en/formula-sheet/konfidenzintervall-relatives-risiko-odds-ratio
When citing a specific scientific statement, also cite the specialist source linked to that statement.