What the test that lied for weeks actually tells us
In this article
This article explains what a particular diagnostic test result can and cannot tell you when it appears to be wrong for weeks. It covers the reasons for false positives and false negatives, how to interpret repeated results, and what actions are appropriate.
in t | Test result | - | 1 | 0 in p | Prevalence (0-1) | - | 0.05 | 0 in sens | Sensitivity (0-1) | - | 0.95 | 0 in spec | Specificity (0-1) | - | 0.95 | 0 out ppv | Positive predictive value | % | (sens * p) / (sens * p + (1 - spec) * (1 - p)) * 100 | 1 out npv | Negative predictive value | % | (spec * (1 - p)) / (spec * (1 - p) + (1 - sens) * p) * 100 | 1
Formula
The positive predictive value (PPV) is the probability that a person with a positive test result actually has the condition. It is calculated as:
PPV = (sensitivity × prevalence) / (sensitivity × prevalence + (1 – specificity) × (1 – prevalence))
Where:
- Sensitivity = probability the test is positive when the condition is present (true positive rate)
- Specificity = probability the test is negative when the condition is absent (true negative rate)
- Prevalence = proportion of the population that has the condition
The negative predictive value (NPV) is the probability that a person with a negative test result truly does not have the condition:
NPV = (specificity × (1 – prevalence)) / (specificity × (1 – prevalence) + (1 – sensitivity) × prevalence)
Worked Example
Using the default values from the calculator: prevalence = 0.05 (5%), sensitivity = 0.95 (95%), specificity = 0.95 (95%).
For a positive test result:
PPV = (0.95 × 0.05) / (0.95 × 0.05 + 0.05 × 0.95) = 0.0475 / (0.0475 + 0.0475) = 0.5 = 50%
For a negative test result:
NPV = (0.95 × 0.95) / (0.95 × 0.95 + 0.05 × 0.05) = 0.9025 / (0.9025 + 0.0025) = 0.9972 = 99.7%
So with a 5% prevalence and 95% sensitivity/specificity, a positive test is only 50% likely to be correct, while a negative test is 99.7% likely to be correct.
Why a Test Can Be Wrong for Weeks
When a test result is inconsistent with clinical symptoms or other evidence, it is natural to assume the test is lying. However, several factors can cause a test to remain positive or negative for an extended period:
- Antibody persistence: After an infection, antibodies may remain detectable for weeks or months, even after the person is no longer infectious.
- Antigen shedding: Some tests detect fragments of the pathogen that are no longer viable, leading to prolonged positive results.
- Cross-reactivity: Antibodies from a different, previous infection may bind to the test antigen, causing a false positive.
- Testing too early: If the test is taken before the body has produced enough antibodies, the result may be falsely negative, and the person may retest positive later.
- Technical errors: Improper storage, contamination, or mishandling can produce persistent false results.
How to Read a Test Result Correctly
No test is perfect. The result is a piece of information, not a definitive verdict. To interpret it correctly, you need to consider:
- Pre-test probability: How likely is the condition before the test? This is based on symptoms, exposure, and prevalence in your area.
- Test characteristics: What are the sensitivity and specificity for the specific test you took? These are usually reported in the package insert.
- Clinical context: A positive test in a person with typical symptoms and known exposure is more meaningful than a positive test in a person with no symptoms and no exposure.
For example, a rapid antigen test for a respiratory virus has high specificity but lower sensitivity. A positive result is likely correct, but a negative result may be a false negative, especially early in the infection.
Common Mistakes and Misconceptions
- Assuming a positive result means you are contagious. A positive test may detect non-infectious viral fragments for weeks after recovery.
- Ignoring the prevalence. The same test has different predictive values in a low-prevalence population versus a high-prevalence one.
- Confusing sensitivity and specificity. Sensitivity is about detecting the condition when it is present; specificity is about avoiding false positives when it is absent.
- Retesting too soon. If you test negative immediately after exposure, you may still develop the infection. Follow recommended testing intervals.
- Using the wrong test for the question. A test that detects antibodies is not useful for diagnosing an active infection.
When to Trust a Test Over Symptoms
Sometimes a test result contradicts what you feel. If you have symptoms but a negative test, the test may be wrong, or you may have a different condition. If you have no symptoms but a positive test, the test may be detecting a past infection or a cross-reacting antibody. In general, a positive test with high specificity is more reliable than a negative test with low sensitivity. However, clinical judgment should always override a single test result when they conflict.
For example, if you have classic symptoms of a bacterial infection and a rapid test is negative, a doctor may still prescribe antibiotics based on the clinical picture. Conversely, if you have no symptoms and a positive test for a chronic condition, confirmatory testing is usually recommended before treatment.
Limits of the Formula
The predictive value formula assumes the sensitivity and specificity are known and constant, and that the prevalence is accurate. In reality, these values vary by population, test batch, and timing of the test. Also, the formula gives a probability, not a certainty. A 50% PPV means that out of 100 positive tests, about 50 are true positives—but you cannot know which ones. For individual decisions, additional information (e.g., a second test, imaging, or clinical signs) is needed.
Furthermore, the formula does not account for the possibility of a false negative due to the test being taken too early. In that case, the sensitivity is lower than the stated value, and the NPV would be overestimated.
Frequently Asked Questions
Why is my test still positive after two weeks?
It is common for tests that detect viral RNA or antigens to remain positive for weeks after the acute infection, because the body is still clearing dead virus particles. This does not necessarily mean you are still contagious. The duration varies by test and pathogen; some people shed detectable material for over a month.
Can a test be negative if I actually have the disease?
Yes, especially if the test is taken too early, before the pathogen or antibodies reach detectable levels. The sensitivity of the test also matters—some tests miss up to 30% of true cases. If you have symptoms, a negative test should be repeated after 48–72 hours or confirmed with a more sensitive method.
What does a positive predictive value of 50% mean for me?
It means that if you have a positive test result, there is a 50% chance you actually have the condition and a 50% chance it is a false positive. This is not a diagnosis; further testing or clinical evaluation is needed to determine your true status.
How can I increase the accuracy of my test?
Follow the instructions exactly, use the test at the recommended time after exposure or symptom onset, and consider repeating the test if the result is unexpected. Also, interpret the result in light of your symptoms and exposure history, not in isolation.
Should I trust a positive test or my lack of symptoms?
A positive test with high specificity (e.g., 99%) is usually reliable, even if you have no symptoms. However, if you have no symptoms and the test is positive for a condition that is rare, the false positive rate may be significant. Confirmatory testing is often recommended before making major decisions.