Yes, you could and often would effectively "inverse" the prior odds if you switch the focus of your hypothesis between the two scenarios.
Let's break it down using Bayes' Theorem in odds form:
Posterior Odds = Prior Odds × Likelihood Ratio
-
Scenario 1: Positive Test Result (Calculating P(Disease | Positive Test))
- Let D = Disease, noD = No Disease, + = Positive Test.
- We want to find the odds of having the disease given a positive test: P(D|+) / P(noD|+).
- Prior Odds (for Disease): P(D) / P(noD)
- Likelihood Ratio Positive (LR+): P(+|D) / P(+|noD) = Sensitivity / (1 - Specificity)
- Posterior Odds (for Disease given Positive Test): [P(D) / P(noD)] × [Sensitivity / (1 - Specificity)]
-
Scenario 2: Negative Test Result (Calculating P(No Disease | Negative Test))
- Let - = Negative Test.
- Here, you're interested in the odds of not having the disease given a negative test: P(noD|-) / P(D|-).
- Notice the switch: the "event of interest" for the posterior is now "noD".
- To be consistent, your Prior Odds should also be for "No Disease": P(noD) / P(D).
- This is indeed the inverse of the prior odds used in Scenario 1 (which was P(D) / P(noD)).
- Likelihood Ratio for "No Disease" given a Negative Test:
- This is P(-|noD) / P(-|D) = Specificity / (1 - Sensitivity). This is often called the Likelihood Ratio Negative (LR-), but it's important to note it's structured to support the hypothesis of "no disease".
- Posterior Odds (for No Disease given Negative Test): [P(noD) / P(D)] × [Specificity / (1 - Sensitivity)]
So, yes, if:
- In the first case (positive test), your prior odds are framed as "Odds of Disease."
- And in the second case (negative test), you want to calculate the posterior odds for "Odds of No Disease."
Then you would use the inverse of the original prior odds as your starting point for the second calculation.
Alternative (and perhaps more common) way to handle the negative test:
You could still keep your focus on "Disease" even with a negative test:
- Scenario 2b: Negative Test Result (Calculating P(Disease | Negative Test))
- We want to find the odds of having the disease given a negative test: P(D|-) / P(noD|-).
- Prior Odds (for Disease): P(D) / P(noD) (same as Scenario 1)
- Likelihood Ratio Negative (LR-): P(-|D) / P(-|noD) = (1 - Sensitivity) / Specificity
- Posterior Odds (for Disease given Negative Test): [P(D) / P(noD)] × [(1 - Sensitivity) / Specificity]
- If you then wanted P(noD|-), you would convert these posterior odds to probability P(D|-) and then calculate P(noD|-) = 1 - P(D|-). Or, you could invert the posterior odds to get P(noD|-) / P(D|-).
Conclusion:
You "inverse the prior odds" when you switch the hypothesis for which you are calculating the prior odds.
- If prior odds for example 1 are P(Disease)/P(No Disease).
- And for example 2 (negative test), you want to directly calculate the posterior odds of P(No Disease)/P(Disease).
Then, yes, your new "Prior Odds for No Disease" would be P(No Disease)/P(Disease), which is the inverse of the first.
It's all about being clear what your "event of interest" or "hypothesis" is when you state your prior odds and when you calculate your posterior odds. If that event switches from "presence" to "absence" (or vice-versa), your prior odds for that new event will be the inverse of the prior odds for the original event.