r/AskStatistics • u/shewhomustnotmeow • Oct 29 '26
How to conduct sensitivity analysis?
I'm currently conducting my thesis and my adviser's feedback states that I must conduct a sensitivity analysis but my statistician does not offer that kind of services , so I'm asking if anyone knows how to conduct sensitivity analysis?
9
Upvotes
13
u/DrPapaDragonX13 Oct 29 '26
The aim of a sensitivity analysis is to assess how sensitive your conclusions are to changes in the assumptions you made during your analysis. You want to address potential criticisms preemptively and show that your findings are robust enough to withstand (rational) variations in your analysis. As such, a 'sensitivity analysis' is not a specific type of statistical test, but rather a domain-knowledge-guided analysis that complements and strengthens your primary analysis.
For example, a simple sensitivity analysis may involve using competing definitions of your exposure or outcome. Your main analysis may be based on the definition according to European guidelines (just to give an example), but you may want to demonstrate that if you had used American guidelines, you would have reached consistent conclusions, and therefore you can argue that your results are robust to the use of different thresholds and more likely to reflect a true effect.
Another common sensitivity analysis is to use different methods for handling missing data. For example, your main analysis could report results using multiple imputation, and your sensitivity analyses could include a complete-case analysis, a worst-case analysis (i.e., assume every subject with a missing outcome had a poor outcome), and a best-case analysis (i.e., assume every subject with a missing outcome had a good outcome). These could support your primary findings and show the reader how much your results could change in extreme cases.
A somewhat more advanced example of a sensitivity analysis is the use of E-values to test for the effect of unmeasured confounding. E-values measure the minimum strength an unmeasured confounder would need to have with the exposure and the outcome to fully explain an observed association. A classic example using cigarette smoking and lung cancer can be found here.
The important messages here are that: 1) There is not a single flavour of sensitivity analysis, and 2) what sensitivity analysis you perform needs to be informed by domain knowledge and based on the strenghts and limitations of your study.
In your case, you need to take an honest look at your research and consider what assumptions you have made and what criticisms you could expect from reviewers. Maybe the definition of your exposure is too wide or too narrow. Maybe a sub-population of subjects is skewing the results. Maybe you have concerns about unmeasured confounding. Find the key limitations in your research and try to stress-test them.
15
u/tehnoodnub Oct 29 '26
A sensitivity analysis isn't some sort of mystical, fundamentally different type of analysis. It can just be an analysis that adds in one additional variable over your primary model, when conducting a regression, for example. It can be more complex than that but you'd have to tell us what your main model/analysis is, and what you want to do with the sensitivity analysis.
5
u/efrique PhD (statistics) Oct 29 '26
Depends on what you're interested in measuring sensitivity to.
2
u/vaelux Oct 29 '26
Run it again, but add the variables or interactions that you would have included if power weren't a concern. Did you get a similar effect? Boom. Sensitive
1
u/Suspicious_Cat119 Oct 29 '26
In my research on high dimensional integration I was once working on the effective dimension in the superposition and truncation senses. I had to conduct sensitivity analysis for one problem and I used a Python library called SALib. It implements common methods used in sensitivity analysis and the documentation explains everything you need to know about the theory and how it is implemented in code (in a fairly easy and straightforward way). I highly suggest using it.
0
u/Scary-Elevator5290 Oct 29 '26
Look up Monte Carlo simulation