<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zain Hakeem on Medium]]></title>
        <description><![CDATA[Stories by Zain Hakeem on Medium]]></description>
        <link>https://medium.com/@dr.zainhakeem?source=rss-191dbaae7134------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_JElYC9GHXXVvqb0</url>
            <title>Stories by Zain Hakeem on Medium</title>
            <link>https://medium.com/@dr.zainhakeem?source=rss-191dbaae7134------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:34:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dr.zainhakeem/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Interpreting diagnostic testing for COVID-19]]></title>
            <link>https://medium.com/@dr.zainhakeem/interpreting-diagnostic-testing-for-covid-19-90c3eccc3cb7?source=rss-191dbaae7134------2</link>
            <guid isPermaLink="false">https://medium.com/p/90c3eccc3cb7</guid>
            <category><![CDATA[medical-testing]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[covid-19-testing]]></category>
            <category><![CDATA[bayesian-inference]]></category>
            <category><![CDATA[bayes-theorem]]></category>
            <dc:creator><![CDATA[Zain Hakeem]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 05:58:45 GMT</pubDate>
            <atom:updated>2020-04-18T09:55:36.630Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Update 04/18/2020:</strong> Added a final section on my recommendations.</p><p>Hey all, this will be a (long) nerd post, just to promote understanding of a topic that’s not as well understood as I’d like — the implications of testing strategy on testing accuracy.</p><p>This is directed at physicians (and interested non-physicians) who already understand the concept of Bayes’ Theorem as applied to medical testing.</p><p><strong>For those who’d like to get up to speed rapidly, please see my YouTube Video:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtxWNQGNkeqY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtxWNQGNkeqY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtxWNQGNkeqY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf1980aebccf2b9a32751af94606d150/href">https://medium.com/media/cf1980aebccf2b9a32751af94606d150/href</a></iframe><p>Specifically, this article will focus on the interpretation of testing in the context of COVID-19, and how that interpretation will change according to testing strategy (and why the CDC guidelines, and the testing shortages, are doing perhaps even more harm than we realize).</p><h3>My mental model is that there are 3 subtypes of “diagnosis” -</h3><ol><li><strong>Definition by Trained opinion</strong>: a pathologist looks and thinks the cells look malignant. Although this does have an error rate, and thus a sensitivity/specificity, on a practical level, this basically equates to a diagnosis of cancer.</li><li><strong>Test-based estimates</strong>: a patient has myalgia, fatigue, coryza, and anosmia. Now we run a COVID swab PCR, and it’s negative. We can use the sensitivity and specificity characteristics of the swab PCR (if we know them, which we don’t) to estimate how likely it is that the patient actually has COVID, vs the test result being a false-positive or false-negative</li><li><strong>Definition of syndrome</strong>: fibromyalgia is a great example of this. We observe some cluster of symptoms and signs, group them, create a scoring system, and declare that if a patient scores above a certain cutoff, they have the “diagnosis”. There’s no way to argue about this because the disease is <em>defined</em> as a score above a certain amount. So there isn’t a sensitivity/specificity, because the “disease” is just defined into existence. (as an aside, most diseases start this way, as COVID did, until we’re able to isolate some other testing method. Diabetes was at one point just a symptom cluster of polyuria, polydipsia, glucosuria, and weight loss, treated best with opiates — see Osler).</li></ol><p>As you might be able to tell, in the current environment, because we do not have good quality data on the test performance of the COVID-RT-PCR, we are essentially acting like the swab result is a Hakeem-class1 diagnosis (I will be using this nomenclature throughout the article for my own entertainment), instead of Hakeem-class2 diagnosis.</p><p>But we know that this isn’t really right. Just as the influenza PCR has a sensitivity and specificity, we can assume the COVID-PCR will as well.</p><p>Here we run into a problem — finding out the accuracy of a test requires a “gold standard” with which to compare. Right now, the PCR is it’s own gold standard, which is why it’s being treated as a Hakeem-class1 diagnostic method.</p><p>However, some studies (<a href="https://pubs.rsna.org/doi/full/10.1148/radiol.2020200432">like this</a>) are already helping us move it into the Hakeem-class2 territory.</p><p>So here’s the weird part — in the long run, what we’ll probably do is come up with some sort of Hakeem-class3 diagnostic critera. Some combination of CT findings, ultrasound findings, PCR, signs/symptoms, and retrospective disease course (timeline) will be made into a weighted scoring system (probably using Bayesian random-effects models?), and that will become the gold standard. We will then compare individual elements (e.g. PCR) against that gold standard to figure out the sensitivity and specificity of the test.</p><p>But, right now, we don’t have that available, so for the most part, we are using PCR as the <em>definition of the disease</em>. And, in that context, it doesn’t make much sense to talk about false positives and false negatives. But, on the other hand, we know they exist…</p><h3>Section 2 (skip this if not math-inclined … I’ll summarize in Section 3)</h3><p>The PCR concept has been used for other viruses … like influenza. We know that the technique isn’t perfect. We know that the core technique of acquisition, and the core technology are the same, whether the virus is influenza or COVID.</p><p>Certainly the detection of COVID-specific DNA is based on a set of assumptions about bindings and genes, which will probably be refined into better accuracy as we learn more (or less accuracy if the virus mutates in certain ways, I guess). But, overall, we could assume that this behaves similarly.</p><p>In <a href="https://www.ncbi.nlm.nih.gov/pubmed/28869986">this study</a>, influenza PCR for flu A and B is in the range of 92–95%. Specificity is usually high for PCR techniques, around 98%.</p><p>In the study mentioned above, a lower rate of sensitivity is given for COVID-19 PCR, 71% (<a href="https://pubs.rsna.org/doi/full/10.1148/radiol.2020200432">link</a>). I’ve seen estimates as low as 65% in commentaries, though I couldn’t determine the source of those estimates.</p><p>Regardless, this forms some basis on which to work.</p><p>South Korea has published their case-rate data, see <a href="https://doi.org/10.1148/radiol.2020200432">here</a>, using a much more transparent reporting method than the US. At the time of writing, today, April 8, 2020, they are reporting 468,145 tests performed (not counting test results still pending), of which 457,761 are negative, and 10,384 are positive. This gives a positive rate of 2.2% (10384/468145).</p><p>If we assume the test sensitivity is 71% (as per the radiology study estimate), we can use the following equations:</p><pre>Total Tests = 468145<br>True Positives (A)+ False Positives (C)= 10384<br>True Negatives (D) + False Negatives (B)= 457761</pre><pre>A = B* (sensitivity / (1-sensitivity))<br>D = C * (specificity / (1-specificity))</pre><p>Assuming Sensitivity = 71%, Specificity = 98%, we can solve the serial equations to obtain the true positive rate (true prevalence in the sample).</p><pre>1. C = 10384 - A<br>2. A = B * (.71/.29)</pre><pre>Combining 1 &amp; 2:<br>3. C = 10384 - (B * 2.448)</pre><pre>4. B = 457761 - D<br>5. D = C (.98/.02)</pre><pre>Combining 4 &amp; 5<br>6. B = 457761 - (C * 49)</pre><pre>Combining 3 &amp; 6<br>7. B = 457761 - ((10384 - (B * 2.448)) * 49)</pre><pre>Solving, B = 429<br>Thus, A = 1051</pre><p>And we can get the true prevalence in the sample,</p><pre>(True Positives + False Negatives) = (A + B)<br>1051 + 429 = 1480</pre><p>1480 out of 468,145 tests performed gives a prevalence rate of 0.3% of the sample.</p><p>Using the same logic, we can calculate the prevalence if the test sensitivity is more similar to influenza (93% sensitive), which would give us a true prevalence of 1126, which is a prevalence rate of 0.24% of the sample.</p><p>Let’s compare that to the US strategy (using the same math).</p><p>I’ll use local data for Travis County in Austin, which is reporting a 12.5% positive rate, out of 2000 cases run (skipping for the moment that the US is not counting cases transparently — see <a href="https://ourworldindata.org/covid-testing">here</a> for commentary on that).</p><p>Using the same math, if the test is 71% sensitive, 98% specific, then Austin will have 215 true positives, 88 false negatives, and a true prevalence in the sample of 15%.</p><h3><strong>Section 3:</strong></h3><p><em>Summary of Section 2:</em> The PCR for COVID-19 has test characteristics that make it probably between 71% and 93% sensitive (I’m going to use 71% since that is the best COVID-specific figure I could find, and the test has not been refined as much as influenza), and probably about 98% specific. South Korea reports that 2.5% of their tests are positive, while Travis County in Austin reports 12.5% percent of our tests are positive. That means that among the sample tested, South Korea probably had a prevalence of 0.3%, while Austin has a prevalence <em>(in the sample tested)</em> 15%.</p><p>So what?</p><p>Here’s the problem — we know that 15% of our entire county population isn’t infected, because our hospitals would be overrun, which they aren’t. The reason the sample has such a high positive rate is because we are strictly limiting testing to people with symptoms and travel or exposure. In other words, <strong>we’re only testing those we already consider “high risk”.</strong></p><p>As a healthcare worker with a low-level exposure in the hospital, but no symptoms, I was unable to get testing through Austin’s Dept of Public Health. When I raised the point to the leader of that department (Jason Pickett) on a physician Facebook group, I received the same silence as my request for testing had received.</p><p>So, the real prevalence of COVID-19 in our population is unknown, because we are using a screening test to filter out those who are not “high probability”.</p><p>But this strategy (which is good for non-COVID testing) is a strategy designed to make the test <em>more accurate. </em><strong><em>That’s not the right strategy!!!</em></strong></p><h3><strong>We don’t want the test to be more accurate — we want the test to keep us safe.</strong></h3><p>And in this situation, those are different. Let me show you why.</p><p>Using my pet project, <a href="https://rxbayes.com/">(Link:) Rx-Bayes</a>, we can obtain the following (I’ve added COVID-19 testing to the free section of the app so that it’s publicly available):</p><p>First, consider the South Korean strategy of widely available testing. We calculated above that their true prevalence was 0.3%. If the test is 71% sensitive, the testing results look like this:</p><figure><img alt="South Korea test accuracy assuming 71% sensitivity with a prevalence of 0.3%, giving a negative predictive value of 0.08%" src="https://cdn-images-1.medium.com/max/626/1*F_PrrVoQew6XrpqjxqL8tw.png" /><figcaption>South Korea, with a 0.3% prevalence, if the test is 71% sensitive, has a false-negative rate of 0.08%</figcaption></figure><p>Travis County’s strategy, meanwhile, looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*sd8WIWa7EtkHBJ2Mo3mPcQ.png" /><figcaption>Travis County, with a 15% sample prevalence based on strict screening pre-qualification, guided by the CDC, has an almost 5% false negative rate.</figcaption></figure><p>What does this mean?</p><p>Well, as an aside, it does make me wonder about the true “asymptomatic rate”. How many “asymptomatic” patients are actually just false positive tests? Probably a significant number.</p><p>But more importantly, it means that a person getting a negative test result in Travis County has a 5% chance that the test is wrong, and he or she actually still has the disease. Even if the test were 93% sensitive, there would still be a 1% chance, because of the strategy of testing only high-risk individuals (high pre-test probability). By contrast, a South Korean with a negative test has only a 0.08% chance that the test is wrong. Again, this difference is solely driven by the differences in strategy on <em>who should be tested</em>.</p><p>Put in comparative terms, it means that when a Travis County/US citizen finally gets tested, and the test is negative, he or she has a <em>62 times</em> higher chance that that negative test is wrong, vs his or her South Korean counterpart.</p><p>Now, certainly if the test is positive, it’s much (MUCH) more accurate in the US (86% accuracy vs 9%).</p><p>But I think we all know — the negative testing accuracy is WAY more important than the positive test accuracy. <strong>We would much prefer to have a tremendous number of false positives than a tremendous number of false negatives.</strong></p><p>This partly reflects our cultural biases — most of the time, medical testing is geared toward getting the most accurate result for the individual. Here, we don’t care about getting accurate results for the individual; we care about getting the most <em>useful results for the population.</em></p><h3><strong>We only care about getting the False Negative Rate to be as low as possible.</strong></h3><p>And to do that, regardless of how accurate the test is (which we really cannot control), we need broader, wider testing.</p><p>Right now, we are missing <strong><em>5% (1 in 20) </em></strong><em>of cases that test negative</em>. South Korea’s miss rate (among those tested) is 0.08%. That’s a tremendous difference, and it’s part of the reason that they are flattening their curve.</p><p><strong>It’s not a mystery that the US screwed up its testing</strong>. We refused to accept tests that were offered to us, and we haven’t been able to produce enough of our own.</p><p>But even worse, at least at the local level, I can’t even get information from our local officials.</p><p>I, and other physicians, have tried repeatedly to engage with the Austin Public Health department, <strong>specifically Jason Pickett</strong>, and been met with a stonewall of corporate-speak, and when that fails, silence.</p><p>I mentioned above that I was not able to get testing through the Austin Public Health department, despite their claim that they would prioritize healthcare staff.</p><h3><strong>Here are some other bits that don’t make sense</strong></h3><p>We’ve been told that the current strategy of testing only high risk cases is being used because we are running low on test kits, swabs, and reagents (again, offered from other nations … we’re low because our elected official have chosen for us to run low, just like we’re low on masks because Trump chose not to renew the maintenance contracts for the stockpiles). But, <em>we’re also told that we’re running fewer tests than our capacity.</em></p><p>We’ve been told that our “lofty goal” for Travis County is to run 1000 tests per day. My best estimate (coordinated with other physicians) is that 1000/day is short by a factor of 150%.<strong> South Korea has tested 0.9% of their entire population. We’ve tested 0.01%</strong>.</p><p>We are consistently missing the mark, and not by small amounts. We’re off by TREMENDOUS figures. <strong>Even our goals are off by tremendous figures.</strong></p><p>Here’s another oddity … if we are in fact running below capacity … then capacity should inherently increase by the deficit. If we’re able to produce 300 tests per day, and we only run 200, then we should be adding testing capacity at a rate of 100/day. At some point, we should probably start using that capacity to start running more tests (assuming we’ve been told the truth, and the limiting factor is swabs/supplies).</p><p>Is this going to be “unveiled” with fanfare, as if we have reached our target of 1000 tests/day? With no actual production increase?</p><p>Along those lines, we’ve been told that the supply of test kits/swabs/reagent is the bottleneck. But that doesn’t explain the wait times on tests that have already been performed. Many people are waiting weeks to get their results back (which makes them singularly useless). If the virus has to incubate for 5 days before you get symptoms, AND you only test symptomatic people, AND the test takes 7 days or more (11+ in some cases) … then you get a very minimal benefit over not testing at all (quarantine for symptoms, no testing, wait out the 14 days).</p><p>This seems to be a problem mostly with national labs (LabCorp, Quest), because they are inundated with testing from all over the nation… and yet, APH has not thought to switch to local labs that are able to manage a turnaround time of 48 hours.</p><h3>As I said, we all know that our elected officials at every level have screwed up the testing process.</h3><p>Largely that’s because they are faced with a situation that requires science, and they are trying to manage it with “optics”.</p><p>The current response seems to be “deny, hand-wave, and avoid”, to hide the fact that not only have the screwed up, but they are continuing to screw up, and in the process, costing American lives.</p><p>I see the same process in our hospitals. Administrators are worried about marketing, while physicians and nurses are worried about saving lives (including their own).</p><p>We’ve ended up in a crisis specifically because we’ve managed to elect, promote, and reward people who look good, and talk smoothly, but lack the intellect, fortitude, and education to face a true crisis.</p><p>When are we going to stop listening to these people, tell them to go sit in a corner, and stop killing Americans?</p><p>Addendum 04/18/2020.</p><p>So, as I sit here in the hospital covering a night shift, I was thinking about this article and feeling like I maybe took some cheap shots.</p><p>It’s easy to complain (and FUN!), but it’s also not really productive. My hope was to help the process of shaming those currently running this disaster to ramp up testing and make it widely available. So far so good.</p><p>But, I left an important question unaddressed — if our current strategy isn’t a useful deployment of our (limited) testing capability, what is?</p><p>I am going to be brief, because I know there’s essentially zero chance that anyone will follow my recommendations. But, I actually feel it’s morally wrong to complain without offering a solution. So, here’s my solution:</p><ol><li>Anyone who currently would qualify for testing on the basis of symptoms is assumed to have the disease and is quarantined for 14 days. NO TESTING. As I’ve shown above, these people have a high pre-test probability of having it, the test isn’t strong enough to rule it out, so there is absolutely no point in wasting tests.</li><li>Anyone who has a high-risk exposure (&lt;6ft of a presumed COVID patient, for &gt; 30 min) should self-isolate for 14 days, unless they are asymptomatic AND work in a hospital that is currently short-staffed. In the latter case, they isolate for 5 days, then if they remain asymptomatic, they can be tested and resume working if negative.</li><li>Anyone who is a contact of the first two groups, or a contact of a contact, gets tested, regardless of symptoms. This group has a low enough pretest probability that a negative test would be fairly reliable.</li><li>If we have tests left over, or (as I suspect) we are too incompetent to institute step 3, then we start testing at random in the population, <a href="https://reason.com/2020/04/03/what-we-should-have-learned-from-icelands-response-to-covid-19/">like in Iceland</a>, irrespective of symptoms, to get an accurate estimate of the spread and the rate of spread. Use all tests available daily.</li></ol><p>Although I know that this will not be followed, because the impulse to “confirm” our suspicions will lead us to test people who we suspect have the disease, this is my recommendation for testing deployment of our limited test supplies.</p><p>Obviously, this won’t be enough — in order to reopen our economy, we MUST have widespread, cheap testing, and remove all financial penalties for self-isolation (we need to massively expand our payroll support so that a positive test lets people say “hey, I get 2 weeks off paid”, not “I’m not going to risk taking the test … what if it’s positive?”). But, this is a necessary first step to getting the prevalence rate to stay low enough that we’re not facing a catastrophe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90c3eccc3cb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>