STAT 638 (Fall 2026), Lecture 39
Overview
Kendall Grimes, Liberty Cox, and Cale King present a Bayesian logistic model for hepatitis C diagnosis, reporting 93% sensitivity, 99% specificity, and a cost-sensitive threshold of 0.265. Nikki Xiao, Madeha Sattar Khan, and Emilie Bui model censored Texas groundwater arsenic with a spatial Gaussian process, while Gabbie Keh, Tony Owens, and Evan Meade analyze workers’ compensation loss rates with a hierarchical hurdle-gamma model; Samiran Sinha’s questions probe modeling choices, interpretation, and validation across all three projects.
Key takeaways
- For the hepatitis C dataset, a Bayesian logistic model with threshold 0.265 achieved 93% sensitivity, nearly 99% specificity, and AUC 0.957; its posterior probabilities support decisions under asymmetric error costs.
- The hepatitis C stage-specific model’s 100% sensitivity is not a valid initial-screening benchmark because disease stage is unavailable at diagnosis and can directly encode disease status.
- In the Texas arsenic analysis, 62% of measurements are censored below 1 microgram per liter, making a censored likelihood more appropriate than replacing non-detects with exact values.
- The arsenic spatial model estimates the highest exceedance risk in western Texas, but its roughly 6% prediction for the southern High Plains is far below a reported 32%, exposing the consequences of sparse well coverage.
- The workers’ compensation hurdle-gamma model separates zero-loss probability from positive loss severity and estimates occupation-specific risk while accounting for year effects and payroll exposure.
- Bayesian and frequentist workers’ compensation models produce highly similar rankings, with eight shared classes among the top ten and rank correlation above 0.98, but the Bayesian model additionally provides uncertainty about rankings.
Chapters
- Kendall Grimes, Liberty Cox, and Cale King analyze 615 blood-donor and hepatitis C records from the UCI Machine Learning Repository.
- The team drops ALP because about 43% of fibrosis-group values are missing; other variables have less than 5.5% missingness and are handled with complete cases.
- Log transformations address heavy right-skew in liver enzyme predictors, and a roughly 90-to-10 donor-to-disease imbalance motivates Bayesian uncertainty estimates.
- The team fits a Bernoulli Bayesian logistic regression with weakly informative normal priors and samples the posterior using Stan’s NUTS algorithm.
- Four chains and 2,000 iterations per chain produce converged draws; log AST, log ALT, and log GGT are among the biomarkers identified as important.
- A threshold of 0.265, below the default 0.5, yields 93% sensitivity, nearly 99% specificity, an AUC of 0.957, and one false negative among 16 test patients.
- A tighter normal prior lowers sensitivity to 75%, while a more diffuse prior preserves performance; changing the false-negative loss ratio from 2:1 to 5:1 leaves the selected threshold near 0.265.
- The frequentist logistic fit has unstable, much larger coefficients and extreme standard errors, while the Bayesian model supplies graded probabilities and posterior uncertainty for decision thresholds.
- A stage-varying hierarchical model reaches 100% sensitivity by using stage information that would not be available at initial diagnosis; the pooled model is more clinically applicable and misses one test case.
- Kendall Grimes defines sensitivity as the true-positive rate and specificity as the true-negative rate, clarifying the project’s diagnostic metrics.
- Cale King identifies Bayesian probability calibration and recalibration under changing prevalence or costs as advantages over the frequentist comparison.
- Liberty Cox says the team used NUTS because correlated log AST and log ALT predictors can challenge Gibbs sampling, and describes the Bayesian and hierarchical applications as potential novelties.
- Nikki Xiao, Madeha Sattar Khan, and Emilie Bui analyze 570 groundwater wells at 551 locations; about 62% of observations are left-censored below 1 microgram per liter.
- Both models use log arsenic concentrations and a censored Gaussian likelihood; a spatial Gaussian process adds local dependence to a baseline with east-west and north-south trends.
- The squared-exponential covariance uses spatial magnitude and length scale parameters; the team fits models with NUTS through brms and RStan and checks convergence across four chains.
- The model estimates arsenic declines from west to east, with a spatial length scale of about 59 kilometers; the far West has the highest estimated exceedance risk.
- At unsampled locations, the typical prediction is about 1.5 micrograms per liter, while the estimated probability of exceeding 10 micrograms per liter is about 1 in 10 in the far West and 1 in 27 across the grid.
- A heavier-tailed length-scale prior shifts the estimate from 59 to 48 kilometers but barely changes the risk map; leave-one-out validation favors the spatial model by 4.6 standard errors.
- The model underpredicts reported exceedance in the southern High Plains, about 6% versus 32% in the literature, highlighting sparse sampling; a frequentist kriging comparison also handles non-detects less directly.
- Madeha Sattar Khan explains that detected concentrations contribute a Gaussian density and non-detects contribute the probability of falling below the reporting limit.
- The team uses MCMC with NUTS, a Hamiltonian Monte Carlo sampler, and identifies brms and RStan as its R tools.
- Samiran Sinha asks how the censored likelihood carries into the Gaussian process model and probes the interpretation of its spatial parameters.
- Samiran Sinha asks Nikki Xiao about the variogram plot in the project report and how Bayesian Gaussian process results compare with frequentist kriging.
- The discussion distinguishes the Bayesian censored-data likelihood from the frequentist treatment that sets non-detects to the reporting limit.
- The team acknowledges posterior predictive discrepancies, including difficulty reproducing the concentration distribution and isolated hotspots with a smooth Gaussian process.
- Gabbie Keh, Evan Meade, and Tony Owens study 847 observations across 121 occupation classes and seven years, modeling aggregate losses relative to payroll exposure.
- Because about 8% of loss rates are zero, the model uses a Bernoulli component for zero outcomes and a gamma distribution for positive rates.
- Occupation effects are hierarchical, while year effects and payroll exposure help distinguish persistent class risk from annual variation.
- The Bayesian model uses brms and NUTS with four chains; trace plots, R-hat values near 1, effective sample sizes above 400, and posterior predictive checks support the fit.
- Higher payroll exposure is associated with lower loss rates, and classes with higher loss rates are less likely to record zero-loss years.
- The frequentist hurdle-gamma benchmark shares eight of the ten highest-risk classes with the Bayesian model and has a Spearman rank correlation above 0.98.
- A hierarchical Box-Cox alternative produces similar rankings but a less plausible upper tail, with a maximum credible interval extending past 2.5 compared with 0.93 for hurdle gamma.
- Evan Meade explains that the gamma mean describes the central loss rate conditional on a positive outcome, while the shape parameter controls distribution form and the Bernoulli probability models zeros.
- Occupation-specific effects are treated hierarchically, while year effects are fixed across classes; payroll exposure enters the model as a predictor.
- Gabbie Keh says the analysis separates occupation risk from year-to-year variation, though she has not established how extensively the dataset has been studied in prior literature.
Transcript excerpt
0:03 Sinha, Samiran: And start planning. Grimes, Kendall: Okay, can everyone… can you see this? Sinha, Samiran: Yes, I can see it clearly. Grimes, Kendall: Alrighty, I'll go ahead and get started. Grimes, Kendall: My name is Kendall Grimes, this is Group 8, and I'm with, Liberty Cox and Cale King. Grimes, Kendall: And this is our… Grimes, Kendall: presentation, Diagnostic Decision Making for Hepatitis C. We'll go ahead and get right into it, a little bit, overview of the dataset. Grimes, Kendall: pulled from the UCI Machine Learning Repository, looking at blood donors, 615 patients overall, some healthy blood donors, and then Grimes, Kendall: Hepatitis C patients at various stages, you know, hepatitis, fibrosis, cirrhosis, various stages of hep C patients, and then some of the research questions we're going to get into throughout the presentation, in our report.
1:11 Grimes, Kendall: How should a diagnostic threshold be chosen when false negatives are worse than false positives? How much uncertainty is there about sensitivity and specificity, and how does this affect the threshold? Grimes, Kendall: How does that preferred threshold change when you vary how bad false negatives and false positives are? And we'll have a discussion about that in a little bit. Grimes, Kendall: And then does this same threshold work, equally well for early hepatitis versus advanced fibrosis and cirrhosis? Grimes, Kendall: So some of the data preparation that we had to do, wasn't much missing data. A lot of it was in the ALP variable, one of our… Grimes, Kendall: Liver enzymes, there was about 43% missing in fibrosis. We decided just to drop it altogether. We kind of looked, and overall, there was enough data points where there wasn't a significant change, you know, after dropping these. Grimes, Kendall: It was better than doing, like, a complete case analysis that would have dropped about half
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Samiran Sinha.