# Guesstimate Algorithm for Medical Research

This document is aimed at subcontractors doing medical research for me. I am sharing it in the hope it is more broadly useful, but have made no attempts to make it more widely accessible. 

Intro
=====

[Guesstimate](https://getguesstimate.com/) is a tool I have found quite useful in my work, especially in making medical estimates in environments of high uncertainty. It’s not just that it makes it easy to do calculations incorporating many sources of data; guesstimate renders your thinking much more legible to readers, who can then more productively argue with you about your conclusions. 

The basis of guesstimate is breaking down a question you want an answer to (such as “what is the chance of long covid?”) into subquestions that can be tackled independently. Questions can have numerical answers in the form of a single number, a range, or a formula that references other questions. This allows you to highlight areas of relative certainty and relative uncertainty, to experiment with the importance of different assumptions, and for readers to play with your model and identify differences of opinion while incorporating the parts of your work they agree with.

Basics
======

If you’re not already familiar with guesstimate, please watch this [video](https://www.youtube.com/watch?v=hRYmsSZTfaw), which references this [model](https://www.getguesstimate.com/models/17503). The video goes over two toy questions to help you familiarize yourself with the interface.

![](https://lh6.googleusercontent.com/Vdv7hvyg_wg7-8bZtLYhPdTbfYqSq3RgIhZT0mZTQdI38ErGMMhYEGoQl0RtPeA8zhUDlB4M9BjfWzbFwx98_bp4AOEIL7zVSXK8nYpyrOwELtNjUVVRJwri1-rOO3Qla6hirDtofePagwaO-k6rnFw6W7UWGXoHIJT4R9I68GqxCiw1fyVeTvNxig)

The Algorithm
=============

The following is my basic algorithm for medical questions:

1.  Formalize the question you want an answer to. e.g. what is the risk to me of long covid?
2.  Break that question down into subquestions. The appropriate subquestion varies based on what data is available, and your idea of the correct subquestions is likely to change as you work.
    1.  When I was studying long covid last year, I broke it into the following subquestions
        1.  What is the risk with baseline covid?
        2.  What is the vaccine risk modifier?
        3.  What is the strain risk modifier?
        4.  What’s the risk modifier for a given individual?
3.  In guesstimate, wire the questions together. For example, if you wanted to know your risk of hospitalization when newly vaccinated in May 2021, you might multiply the former hospitalization rate times a vaccine modifier. If you don’t know how to do that in guesstimate, watch the video above, it demonstrates it in a lot of detail.
4.  Use literature to fill in answers to subquestions as best you can. Unless the data is very good, these probably include giving ranges and making your best guess as to the shape of the distribution of values.
    1.  Provide citations for where you got those numbers. This can be done in the guesstimate commenting interface, but that’s quite clunky. Sometimes it’s better to have a separate document where you lay out your reasoning. 
    2.  The reader should be able to go from a particular node in the guesstimate to your reasoning for that node with as little effort as possible.
    3.  Guesstimate will use log-normal distribution by default, but you can change it to uniform or normal if you believe that represents reality better.
5.  Sometimes there are questions literature literally can’t answer, or aren’t worth your time to research rigorously. Make your best guess, and call it out as a separate variable so people can identify it and apply their own best guess.
    1.  This includes value judgments, like the value of a day in lockdown relative to a normal day, or how much one hates being sick.
    2.  Or the 5-year recovery rate from long covid- no one can literally measure it, and while you could guess from other diseases, the additional precision isn’t necessarily worth the effort.
6.  Final product is both the guesstimate model and a document writing up your sources and reasoning.

Example: Trading off air quality and covid.
===========================================

The final model is available [here](https://www.getguesstimate.com/models/21014).

Every year California gets forest fires big enough to damage air quality even if you are quite far away, which pushes people indoors. This was mostly okay until covid, which made being indoors costly in various ways too. So how do we trade those off? I was particularly interested in trading off outdoor exercise vs the gym (and if both had been too awful I might have rethought my stance on how boring and unpleasant working out in my tiny apartment is).

What I want to know is the QALY hit from 10 minutes outdoors vs 10 minutes indoors. This depends a lot on the exact air quality and covid details for that particular day, so we’ll need to have variables for that.

For air quality, I used the calculations from [this website](https://jasminedevv.github.io/AQI2cigarettes/) to turn AQI into cigarettes. I found a [cigarette -> micromort](https://acesounderglass.com/2021/08/21/exercise-trade-offs/#:~:text=math%20much%20easier.-,Wikipedia,-lists%20an%20equivalent) converter faster than cigarette -> QALY so I’m just going to use that. This is fine as long as covid and air quality have the same QALY:micromort ratio (unlikely) or if the final answer is clear enough that even large changes in the ratio would not change our decision (judgment call). 

For both values that use outside data I leave a comment with the source, which gives them a comment icon in the upper right corner.

![](https://lh4.googleusercontent.com/W3ZkaMCaCfQNIxQwG5kGXZjUuoyYax26INpqkSFUrxFihsMTwRiVrqlfBCLJEVPiuRduF8k5fs71paclH74jc-mopGd6NmftbHeouiGDEDgRPoEny0nZVkwY4Yn_iTN5xIoVYsTtPjdjm-nQjmIHonp0u0FRs5FP6McQToV3gV-9jhfWttnjLsv6Xg)

But some people are more susceptible than others due to things like asthma or cancer, so I’ll add a personal modifier.  I’m not attempting to define this well: people with lung issues can make their best guess. They can’t read my mind though, so I’ll make it clear that 1=average and which direction is bad.

![](https://lh5.googleusercontent.com/fyBSlALPmwHdlVc_6UeBo3nnpRRXuphqWMZstTX4YsYDlUQjxo9OnJRfOgVv_v_zQdfYk7HW9NpKbXuElBzgz8jXKGRokZbGIBLe3SAZeHO0VHTfeefUk-HVXkFimEUWV38vSSpijeLGpxE433MGnAYZySnJbc2jID3r0z9wVdpAz5ArJZAvUFAfQA)

Okay how about 10 minutes inside? That depends a lot on local conditions. I could embed those all in my guesstimate, or I could punt to microcovid. I’m not sure if [microcovid](https://www.microcovid.org/) is still being maintained but I’m very sure I don’t feel like creating new numbers right now, so we’ll just do that. I add a comment with basic instructions.

![](https://lh3.googleusercontent.com/tf9Ek1537LMbBA78AhiQL-hFgn2smMTryF0bKk0nTIni-5MV7puw5R6Msq8c-MDgTbPvh_UOutju3qp0mtI-ijuXDeFXkznbPdh2pqoSY89ODOSCj77AW39uUsl_UrJg0ZsWNEy4jv7QeWa2GGiLxHP2zkIrZe1_sc35ybbdnhGbT1l0RGdlb1sueA)

How about microcovids to micromorts? The first source I found said 10k per infection, which is a suspiciously round number but it will do for now. I device the micromorts by 1 million, since each microcovid is 1/1,000,000 chance of catching covid.

![](https://lh4.googleusercontent.com/9T_yx3HZU1YL-i9wQvokCZ7aDwCQrVC-hxpkmuB1fXSnY9p9-CtQ3byF0pjPpGUTEJuasF2Xb1hEtn8koO5UZRIdcgiP3TOUuxYMHej2nofDy2q2PiTN0tDPrM2W_WLkX9au8VDh5srzQFR-o_P0P-IKUA5S0aG64kLJJgj90kXqWV6EWbxnral-BQ)
=================================================================================================================================================================================================================================

They could just guess their personal risk modifier like they do for covid, or they could use this (pre-vaccine, pre-variant) [covid risk calculator](https://www.economist.com/graphic-detail/covid-pandemic-mortality-risk-estimator) from the Economist, so I’ll leave a note for that.

![](https://lh4.googleusercontent.com/SA-BdtVEjDoiJu2g-F5uFg5hWGQVZqGYrsV4_H7SedIAa0Y6sHYruuNX4h4wdTgHlyhP_kG3Cr99hnpL5Q-u05hRdQ735vX2Iw6rGTrKFEkqX_qHTVKXDqAUbC5ucwQ8a_OgmOajBKY42yhz9CJArxfNduSrntIkiY19u8ZoJRo-dlBHAY5cIJpYQQ)

But wait- there are two calculations happening in the microcovids -> micromorts cell, which makes it hard to edit if you disagree with me about the risk of covid. I’m going to move the /1,000,000 to the top cell so it’s easy to edit.

![](https://lh3.googleusercontent.com/s8PRrlZUgfuDQLByFmWU8P6IBUyRicDRkYTGycPnzeKFjKhlJ30A3aksDgwz_Qj-nojohUJiau2EZKyw3C6gw56RQ8IBQdEe6ZJMG1f3MDcQ08g0zZxJVk1bwXYfJ3hNAG5vN6fUXqObGALwrEb1fc-VZnSfWhh6CDq_dMAiz13NpdgHJThztas-eQ)

But the risk of catching covid outside isn’t zero. Microcovid says outdoors has 1/20th the risk. I’m very sure that’s out of date but don’t know the new number so I’ll make something up and list it separately so it’s easy to edit

![](https://lh3.googleusercontent.com/NWWPNAawLANP-kGBMM1bwqQFi01AGh234f9rF387T9QGucBhmjOxWL7TENdrO3Dg4893c7L_X5n6oNiEo5wKUeLzJWf4uKHJVjv9caK8HdwWVJIV5Fn0RlX30ax6ojPkvFKDgAB-hK5Td9hPL192gIz2hrzBtoFqx2bL-IHyhMi91fMoFGisIO8u6g)

But wait- I’m not necessarily with the same people indoors and out. The general density of people is comparable if I’m deciding to throw a party inside or outside, but not if I’m deciding to exercise outdoors or at a gym. So I should make that toggleable.

![](https://lh4.googleusercontent.com/hFxWiO84Tc_7qcIZHR8owSIGWPv6H8F2p0qXc6woGDaaOyVheBYY64KqZ7ghpCm-V9VBZscU2tTCVXBK2yOOaBEngNzK45HboI7qldrTyy8Xml5CJwgQlJnkb-TTbETI8Pl9PiGAwj6Cy0wo0C0SolsbgKooZIgL1TK6f_TqeLkX4bkE8MlTqYs7hA)

Eh, I’m still uncomfortable with that completely made up outdoor risk modifier. Let’s make it a range so we can see the scope of possible risks. Note that this only matters if we’re meeting people outdoors, which seems correct.

![](https://lh6.googleusercontent.com/hc3NzZDFeoBGVQoOWLCMWqwsrK-07SMkrXu5cPk2qpLtXpHxQEGDehb8rvdXr0T0Ydcdy6GpjtEiG0rNGQTcrPo23vmBnw8-W7hKpUj4BLPouUmBCreMeemM60XZA683tiWXdA6We455LZ3qM96lt1KJCn7vr6NVced7o4sJdmMyXIxKMV5InvwJPw)

But that used guesstimate’s default probability distribution (log normal). I don’t see a reason probability density would concentrate at the low end of the distribution, so I switch it to normal.

![](https://lh5.googleusercontent.com/GswijACoQ2NRE6ZMsxVCyQ0Wjhe0NfHXrdkFMqe61cXY1cRDHHVkOoFKemQWdIfSA3AOWnCsoCWM6TTVp65fZbRclKG7WaXOP25c1nharzrfGHhLV_EXxjQx_Ieu7mSwo0Kzxv53HmgaY25vGR8VRyn55R5d1Uf-QYo4HClIkEVHdSdN8tiSo-_Cag)

Turns out to make very little difference in practice.

There are still a few problems here. Some of the numbers are more or less made up, and others have sources but I’ve done no work to verify them, which is almost as bad.

But unless the numbers are _very_ off, covid is a full order of magnitude riskier than air pollution for the scenarios I picked. This makes me disinclined to spend a bunch of time tracking down better numbers.

Full list of limitations:

*   Only looks at micromorts, not QALYs
*   Individual adjustment basically made up, especially for pollution
*   Several numbers completely made up
*   Didn’t check any of my sources

Example: Individual’s chance of long covid given infection
==========================================================

This will be based on my post last year, [Long covid is not necessarily your biggest problem](https://acesounderglass.com/2021/08/30/long-covid-is-not-necessarily-your-biggest-problem/), with some modification for pedagogical purposes. And made up numbers instead of real ones because the specific numbers have long been eclipsed by new data and strains. The final model is available [here](https://www.getguesstimate.com/models/20932). 

Step one is to break your questions into subquestions. When I made this model a year ago, we only had data for baseline covid in unvaccinated people. Everyone wanted to know how vaccinations and the new strain would affect things. 

My first question was “can we predict long covid from acute covid?” I dug into the data and concluded “Yes”, the risk of long covid seemed to be very well correlated with acute severity. This informed the shape of the model but not any particular values. Some people disagreed with me, and they would make a very different model. 

Once I made that determination, the model was pretty easy to create: It looked like \[risk of hospitalization with baseline covid\] * \[risk of long covid given hospitalization rate\] * \[vaccination risk modifier\] * \[strain hospitalization modifier\] * \[personal risk modifier\]. Note that the model I’m creating here does not perfectly match the one created last year; I’ve modified it to be a better teaching example. 

The risk of hospitalization is easy to establish unless you start including undetected/asymptomatic cases. This has become a bigger deal as home tests became more available and mild cases became more common, since government statistics are missing more mild or asymptomatic cases. So in my calculation, I broke down the risk of hospitalization given covid to the known case hospitalization rate and then inserted a separate term based on my estimate of the number of uncaught cases. In the original post I chose some example people and used base estimates for them from the Economist data. In this model, I made something up.

Honestly, I don’t remember how I calculated the risk of long covid given the hospitalization rate. It was very complicated and a long time ago. This is why I write [companion documents](https://acesounderglass.com/2021/08/30/long-covid-is-not-necessarily-your-biggest-problem/) to explain my reasoning. 

Vaccination modifier was quite easy, every scientist was eager to tell us that. However, there are now questions about vaccines waning over time, and an individual’s protection level is likely to vary. Because of that, in this test model I have entered a range of vaccine efficacies, rather than a point estimate. An individual who knew how recently they were vaccinated might choose to collapse that down. 

Similarly, strain hospitalization modifiers take some time to assess, but are eventually straightforwardly available. Your estimate early in a new strain will probably have a much wider confidence interval than your estimate late in the same wave. 

By definition, I can’t set the personal risk modifier for every person looking at the model. I suggested people get a more accurate estimate of their personal risk using the [Economist calculator](https://www.economist.com/graphic-detail/covid-pandemic-mortality-risk-estimator), and then enter that in the model.

Lastly, there is a factor I called “are you feeling lucky?”. Some people don’t have anything diagnosable but know they get every cold twice; other people could get bitten by a plague rat with no ill effects. This is even more impossible to provide for an individual but is in fact pretty important for an individual’s risk assessment, so I included it as a term in the model. Individuals using the model can set it as they see fit, including to 1 if they don’t want to think about it.

When I put this together, I get [this guesstimate](https://www.getguesstimate.com/models/20932). \[#TODO screenshot\]. Remember the numbers are completely made up. If you follow the link you can play around with it yourself, but your changes will not be saved. If anyone wants to update my model with modern strains and vaccine efficacy, I would be delighted.

![](https://lh3.googleusercontent.com/m67ABO9Sc4O8Y5IzCNtECzKuC65PKaKq25KNc2-uJ-p96-EDtSpfBJykGABlwiJZey-09F2QszKwDK7HLr3We5zC2fjvK0tklekzLgH_7vOtOIkII9F8Jl_PyPiYUzqdwd54PdccSyYW71LyPI61qUbIo4iTlQHbFHb316ZCHLGBBZQeCkY1-1wX4w)

Tips and Tricks
===============

I’m undoubtedly missing many, so please comment with your own and I’ll update or create a new version later.

When working with modifiers, it’s easy to forget whether a large number is good or bad, and what the acceptable range is. It can be good to mark them with “0 to 1, higher is less risky”, or “between 0 and 1 = less risk, >1 = more risk”

If you enter a range, the default distribution is log-normal. If you want something different, change it. 

The formulas in the cells can get almost arbitrarily complicated, although it’s often not worth it. 

No, seriously, write out your sources and reasoning somewhere else because you will come back in six months and not remember what the hell you were thinking. Guesstimate is less a tool for holding your entire model and more a tool for forcing you to make your model explicit.

Separate judgment calls from empirical data, even if you’re really sure you are right. 

Acknowledgements
================

Thanks to Ozzie Gooen and his team for creating Guesstimate.

Thanks to the FTX Regrant program and a shy regrantor for funding this work.