Skip to content

Docs

Every formula and default Veridx uses, step by step.

Inputs

  1. Sensitivity: of the people who have the condition, the share the test calls positive.
  2. Specificity: of the people who do not have it, the share the test calls negative.
  3. Pre-test probability: how likely the condition is before the test — the prevalence in the group you test, or a clinician's estimate for one person.
  4. All three are percentages from 0 to 100. A field out of range turns red and the results wait until it is fixed. “Reset to defaults” puts every field back (90 %, 95 %, 10 %).

The 2×2 table

  1. With prevalence p, sensitivity Se and specificity Sp, the share of people in each cell is: true positive = Se × p, false negative = (1 − Se) × p, false positive = (1 − Sp) × (1 − p), true negative = Sp × (1 − p).
  2. “Out of 1,000 people” multiplies each share by 1,000 and rounds for display. The colored bar shows the four cells in the same order.
  3. Overall accuracy = true positives + true negatives. Share testing positive = true positives + false positives.

Predictive values

  1. PPV = true positives ÷ all positives. It is the probability of having the condition after a positive result.
  2. NPV = true negatives ÷ all negatives. The probability of still having the condition after a negative result is 1 − NPV.
  3. Both depend on the pre-test probability: the same test gives far more false positives in a low-prevalence group. Try 1 % against 30 % to see it.
  4. When no one tests positive (or negative), the value is undefined and shows as “—”.

Likelihood ratios and post-test odds

  1. LR+ = Se ÷ (1 − Sp) and LR− = (1 − Se) ÷ Sp. At 100 % specificity LR+ is infinite and shows as “∞”.
  2. Post-test odds = pre-test odds × likelihood ratio, where odds = p ÷ (1 − p). Converting back, probability = odds ÷ (1 + odds). This gives the same answer as the 2×2 table.
  3. Diagnostic odds ratio = LR+ ÷ LR−. Youden's J = Se + Sp − 1 (0 means the test is no better than chance, 1 means perfect).

Sensitivity and specificity from a study

  1. Open “Get sensitivity and specificity from a 2×2 table” and enter the true positive, false positive, false negative and true negative counts.
  2. Sensitivity = TP ÷ (TP + FN); specificity = TN ÷ (TN + FP). The 95 % confidence interval is the Wilson score interval (Wilson, 1927), which behaves well for small samples and values near 0 or 100 %.
  3. “Use sensitivity and specificity” copies them to the main form. “Also use study prevalence” copies (TP + FN) ÷ total as well — only do that if your patients look like the study's.

Two tests

  1. Serial (both must be positive): Se = Se₁ × Se₂ and Sp = 1 − (1 − Sp₁)(1 − Sp₂). Fewer false positives, more missed cases.
  2. Parallel (either positive counts): Se = 1 − (1 − Se₁)(1 − Se₂) and Sp = Sp₁ × Sp₂. Fewer missed cases, more false positives.
  3. Both formulas assume the tests are conditionally independent — that one test's errors say nothing about the other's. Tests that measure the same thing usually are not, so treat the combined figures as a best case.

What the calculator leaves out

  1. Sensitivity and specificity from a study only carry over if your patients, setting and reference standard are similar (spectrum and verification bias).
  2. Results are point estimates; the intervals shown for a 2×2 table are not carried into the predictive values.
  3. It is for learning, teaching and appraising studies. It is not a medical device and must not be used on its own to diagnose or treat a patient.

Account and workspace

  1. Choose Sign up, then enter your name, email and a password with at least 8 characters, one letter and one number.
  2. You land in your workspace at /app. The calculator there keeps your last inputs in this browser (localStorage); clearing site data removes them.
  3. Use Log out in the top bar when you are done on a shared device. To delete your account, email [email protected].

Account API

  1. POST /api/auth/signup with JSON { name, email, password } → 201 and a session cookie; 409 if the email is taken, 400 on invalid input.
  2. POST /api/auth/login with JSON { email, password } → 200 and a session cookie; 401 on a wrong password, 429 after too many tries.
  3. GET /api/auth/me → 200 with the signed-in user, or 401 when signed out. POST /api/auth/logout ends the session.
  4. Requests that change data must come from the same origin (cookie session, no API keys). The calculator itself has no API — it runs in your browser.

Veridx is a calculator for learning and appraising studies, not a medical device: every number comes from the rates you enter. Do not use it on its own to diagnose or treat anyone.