Target population¶
This analysis applies to adults aged 30-70 years (the primary analysis uses a 40-year-old baseline) drawn from the general population rather than specifically high-risk groups, with estimates derived primarily from US and European cohorts. Individuals with nut allergies (~1-2% of the population) are excluded. The model does not cover secondary prevention (existing CVD), the very elderly (80+), or non-Western populations.
Monte Carlo uncertainty propagation algorithm¶
The analysis uses a hierarchical forward sampling model with non-centered parameterization. Since there is no likelihood function linking to outcome data, inference is via direct Monte Carlo sampling from priors rather than MCMC.
Priors: Nutrient effects follow from Table 2; the hierarchical shrinkage scale follows ; standardized deviations follow ; and the confounding fraction follows .
Justification for τ ~ HalfNormal(0.03): The scale parameter 0.03 constrains nut-specific deviations to approximately ±6% on the log-RR scale at 2 standard deviations (95% prior interval). This was calibrated through pilot analyses. Setting τ ~ HalfNormal(0.01) produced excessive shrinkage, making all nuts nearly identical despite known compositional differences. Setting τ ~ HalfNormal(0.10) produced implausibly wide between-nut variation (±20% deviations), larger than compositional differences would justify. The chosen value of τ ~ HalfNormal(0.03) balances information sharing across nuts with nut-specific flexibility, allowing walnuts to differ from almonds by the magnitude seen in RCT residual effects (~10-15%).
Model:
Compute nutrient-predicted effect:
Add hierarchical deviation (non-centered):
Apply nut-specific adjustment:
Where is the adjustment exponent from the table below (e.g., walnut CVD )
On log scale:
For protective effects (RR < 1), adjustments amplify the effect
Apply confounding:
Convert to RR:
Monte Carlo sampling: The model draws 10,000 forward samples from priors (no MCMC is needed since there is no likelihood). A fixed seed of 42 ensures reproducibility, and runtime is approximately 30 seconds using pure NumPy with no external inference library required.
Lifecycle integration: For each of the 10,000 samples, the model extracts pathway-specific RRs (already confounding-adjusted), computes age-weighted mortality reduction using CDC life tables, applies EQ-5D quality weights by age (population norms), and computes discounted QALYs at a 3% annual rate.
Nut-specific adjustment priors¶
These adjustment factors are priors used in the hierarchical model. The adjustment is applied as an exponent on the RR scale: . On the log-RR scale, this is multiplicative: . For protective effects (RR < 1), adjustments > 1 amplify the effect. For example, walnut’s CVD adjustment of 1.25 applied to a nutrient-predicted RR of 0.80 yields (a 25% mortality reduction becomes a 25% stronger effect, yielding 25% × 1.25 ≈ 31% reduction).
Derivation of adjustment values¶
Adjustments capture residual effects from nut-specific RCTs after accounting for nutrient composition. The derivation for walnut’s CVD adjustment illustrates the method:
In the PREDIMED RCT Ros et al., 2008, the nut intervention arm (which included 15g walnuts, 7.5g almonds, and 7.5g hazelnuts daily, not walnuts alone) showed approximately 30% CVD risk reduction. The nutrient-predicted effect, based on 2.5g ALA × (-0.05 log-RR/g) plus other nutrients, accounts for approximately 15% reduction. The residual 15% additional benefit, combined with polyphenol effects observed in the walnut-specific WAHA trial Rajaram et al., 2021 (which measured lipid subclasses rather than clinical CVD events), yields an adjustment of exp(0.22) ≈ 1.25 (25% stronger than nutrients alone). The wide SD (0.15) on this adjustment reflects uncertainty in attributing the mixed-nut PREDIMED result to walnuts specifically.
Almonds serve as the reference nut (adjustment = 1.00) because their RCT effects are well-explained by nutrient composition (vitamin E, fiber, MUFA). This ensures adjustments represent genuine “beyond-nutrient” effects rather than artifacts.
Independence from nutrient priors: The nutrient priors (Table 2) use effect estimates from studies that pool across food sources (e.g., Naghshi 2021 for ALA includes fish and plant sources). The nut-specific adjustments use residual effects from nut-only RCTs, avoiding double-counting.
| Nut | CVD Adj | Cancer Adj | Other Adj | Evidence | Rationale |
|---|---|---|---|---|---|
| Walnut | 1.25 (0.15) | 1.05 (0.10) | 1.10 (0.10) | Strong | PREDIMED, WAHA residual effects beyond nutrients |
| Pistachio | 1.12 (0.08) | 1.02 (0.10) | 1.05 (0.10) | Moderate | Del Gobbo: lipid improvements exceed predictions |
| Almond | 1.00 (0.06) | 1.05 (0.08) | 1.00 (0.06) | Strong | Reference nut, effects well-explained by nutrients |
| Pecan | 1.08 (0.10) | 1.00 (0.12) | 1.00 (0.12) | Moderate | Hart et al. (2025), Guarneiri et al. (2021) |
| Macadamia | 1.08 (0.10) | 1.00 (0.15) | 1.05 (0.12) | Moderate | FDA qualified health claim, MUFA profile |
| Peanut | 0.98 (0.06) | 1.00 (0.08) | 0.98 (0.08) | Strong | Bao et al. (2013) (n=118,962) |
| Cashew | 0.95 (0.12) | 0.95 (0.12) | 0.95 (0.12) | Limited | Mah et al. (2017), wider CIs reflect uncertainty |
Note on cancer adjustments: Previous versions applied a 10% cancer penalty to peanuts based on aflatoxin concerns. However, US FDA regulations limit aflatoxin to <20 ppb, and epidemiological studies show no excess cancer risk in US peanut consumers Wu & Khlangwiset, 2010. The cancer adjustment is now set to 1.00 (neutral). Similarly, macadamia and pecan cancer adjustments are set to 1.00 given insufficient evidence for deviation from nutrient predictions.
Nuts with limited evidence (macadamia, pecan, cashew) receive higher SD values to reflect greater uncertainty.
Confounding prior derivation¶
I adopt a symmetric, weakly informative Beta(2.5, 2.5) prior with mean 0.50 and 95% interval: 12-88%. This prior reflects genuine uncertainty about the causal fraction rather than a precise calibration.
Three evidence sources inform this choice:
| Source | Implied Causal % | Interpretation |
|---|---|---|
| LDL pathway calibration | ~12% (floor) | Mechanistic, most direct; but only one of many causal pathways |
| Sibling comparisons | 50-70% | Genetic confounding control; no nut-specific studies exist |
| Golestan cohort (Iran) | ≥50-100% | Cross-cultural, shows effect persists without Western healthy-user bias |
The LDL pathway provides a floor on the causal fraction (not a ceiling), since nuts affect multiple causal pathways beyond LDL. The Golestan cohort shows effects at least as large as Western estimates, consistent with a high causal fraction. The symmetric Beta(2.5, 2.5) represents an agnostic stance that allows the full range of possibilities.
Sensitivity analysis: Beta(1.5, 4.5) with mean 0.25 is presented as a skeptical alternative. Rankings remain stable across prior specifications (see Table 7 in main text).
Cost-effectiveness model¶
Data sources¶
The cost-effectiveness model draws on CDC National Vital Statistics (2021) life tables for age-specific mortality, age-varying health-related quality of life weights from Sullivan et al. (2006), a 3% annual discount rate (standard for NICE, ICER, and WHO-CHOICE), and USDA ERS retail prices (2024) for cost data.
Lifecycle model¶
For a 40-year-old beginning daily nut consumption, the model estimates 0.22-0.96 additional life years (2.6-11.5 months) across nut types, corresponding to 0.14-0.59 undiscounted QALYs (life years weighted by age-specific EQ-5D quality weights) and 0.04-0.19 discounted QALYs (at 3% annual discounting over the remaining lifespan). ICERs range from approximately $11,900/QALY (peanuts) to $57,000/QALY (cashews).
E-value analysis¶
Per VanderWeele & Ding (2017), the E-value quantifies the minimum strength of association an unmeasured confounder would need with both exposure and outcome to fully explain an observed association.
For a protective exposure with hazard ratio , I first convert to relative risk , then calculate:
For HR = 0.78:
An unmeasured confounder would need RR ≥ 1.88 with both nut consumption and mortality to fully explain the observed effect.
Pathway-specific mortality effects¶
From Aune et al. (2016):
| Cause of Death | Relative Risk | 95% CI | Deaths in Meta-Analysis |
|---|---|---|---|
| CHD | 0.71 | 0.63-0.80 | 20,381 |
| CVD | 0.79 | 0.70-0.88 | — |
| Cancer | 0.87 | 0.80-0.93 | 21,353 |
| Other | 0.90 | 0.85-0.95 | Assumed |
Note: CHD = coronary heart disease; CVD = cardiovascular disease (broader category). The model’s “CVD pathway” incorporates both CHD and broader cardiovascular effects.
Age-varying cause fractions¶
Cause-of-death proportions vary by age (CDC WONDER 2021):
| Age | CVD | Cancer | Other |
|---|---|---|---|
| 40 | 20% | 25% | 55% |
| 50 | 25% | 35% | 40% |
| 60 | 30% | 35% | 35% |
| 70 | 35% | 30% | 35% |
| 80 | 40% | 20% | 40% |
CVD fraction increases with age; CVD has the lowest RR (0.75).
Comparison with direct meta-analysis sampling¶
An alternative approach samples cause-specific relative risks directly from meta-analysis estimates (e.g., log-normal distributions based on Aune et al. (2016)) rather than deriving them from nutrient composition. This simpler approach yields broadly comparable results because the nutrient-derived priors are calibrated to match meta-analysis estimates.
The nutrient-derived approach used in this analysis provides several advantages over direct meta-analysis sampling. First, it offers mechanistic interpretability by attributing effects to specific nutrients (ALA, fiber, magnesium). Second, poorly-evidenced nuts shrink toward nutrient-predicted effects through principled hierarchical shrinkage. Third, each prior is traceable to independent meta-analyses, ensuring transparency. Fourth, compositional differences drive differential estimates across nut types—for example, the model can distinguish walnuts from almonds based on ALA content rather than relying on a single pooled nut estimate.
Both approaches use forward Monte Carlo sampling (no MCMC is needed since there is no likelihood function). The nutrient-derived approach is preferred for its mechanistic transparency and ability to differentiate nuts based on composition.
Limitations¶
The 50% causal fraction estimate is uncertain (95% interval: 12-88%), and the true value could be higher or lower. Most source studies come from Western populations (US, Europe, Australia), limiting generalizability. The model assumes 28g/day, though effects may be non-linear above this threshold. RCT evidence for cashews, pecans, and macadamias remains limited relative to walnuts and almonds. The base case assumes daily consumption; intermittent intake would reduce estimated benefits proportionally. Finally, competing risks from other mortality causes limit the achievable gains in elderly populations.
- Ros, E., Núñez, I., Pérez-Heras, A., Serra, M., Gilabert, R., Casals, E., & Deulofeu, R. (2008). Effects of a Mediterranean Diet Supplemented with Nuts on Cardiovascular Risk Factors. Archives of Internal Medicine, 168(22), 2449–2458. 10.1001/archinte.168.22.2449
- Rajaram, S., Sala-Vila, A., Valls-Pedret, C., Cofan, M., Sabaté, J., Serra-Mir, M., Pérez-Heras, A. M., & Ros, E. (2021). Effects of Walnut Consumption for 2 Years on Lipoprotein Subclasses Among Healthy Elders: Findings from the WAHA Randomized Controlled Trial. Circulation, 144, 1083–1085. 10.1161/CIRCULATIONAHA.121.054051
- Hart, M. T., Kris-Etherton, P. M., & Petersen, K. S. (2025). Consuming pecans as a snack improves lipids/lipoproteins and diet quality compared with usual diet in adults at increased risk of cardiometabolic diseases: a randomized controlled trial. American Journal of Clinical Nutrition. 10.1016/j.ajcnut.2025.01.024
- Guarneiri, L. L., Paton, C. M., & Cooper, J. A. (2021). Pecan-Enriched Diets Alter Cholesterol Profiles and Triglycerides in Adults at Risk for Cardiovascular Disease in a Randomized, Controlled Trial. Journal of Nutrition, 151(10), 3091–3101. 10.1093/jn/nxab248
- Bao, Y., Han, J., Hu, F. B., Giovannucci, E. L., Stampfer, M. J., Willett, W. C., & Fuchs, C. S. (2013). Association of nut consumption with total and cause-specific mortality. New England Journal of Medicine, 369(21), 2001–2011. 10.1056/NEJMoa1307352
- Mah, E., Schulz, J. A., Kaden, V. N., Lawless, A. L., Chun, J., Turber, A., Falk, M. C., Kris-Etherton, P. M., & Berryman, C. E. (2017). Cashew consumption reduces total and LDL cholesterol: a randomized, crossover, controlled-feeding trial. American Journal of Clinical Nutrition, 105(5), 1070–1078. 10.3945/ajcn.116.150037
- Wu, F., & Khlangwiset, P. (2010). Aflatoxin B1 and hepatocellular carcinoma: a potential public health concern. Critical Reviews in Toxicology, 40(10), 790–803. 10.3109/10408444.2010.508723
- VanderWeele, T. J., & Ding, P. (2017). Sensitivity Analysis in Observational Research: Introducing the E-Value. Annals of Internal Medicine, 167(4), 268–274. 10.7326/M16-2607
- Aune, D., Keum, N., Giovannucci, E., Fadnes, L. T., Boffetta, P., Greenwood, D. C., Tonstad, S., Vatten, L. J., Riboli, E., & Norat, T. (2016). Nut consumption and risk of cardiovascular disease, total cancer, all-cause and cause-specific mortality: a systematic review and dose-response meta-analysis of prospective studies. BMC Medicine, 14, 207. 10.1186/s12916-016-0730-3