Skip to content
DraconiticResearch
Search Sources API
276,906 studies31 sourcesUpdated 1 h ago
PreprintCC BY 4.0arXiv

KernelMix: Bayesian kernel machine regression in Python

Abstract

Exposures measured together can have nonlinear associations with an outcome, and the association with one exposure may depend on another. Bayesian kernel machine regression represents these patterns through a flexible exposure-response function. We implement this approach in KernelMix, a Python package. To handle different outcome types, KernelMix combines the exposure function with continuous, binary, count and survival models, including selected extensions for clustered observations and censored event times. For fitted models, it returns posterior summaries, uncertainty intervals, joint predictions and sampling diagnostics. Fitting and prediction use NumPy and SciPy without requiring R. To assess the implementation, we compare selected Gaussian and probit posterior summaries and conditional calculations with installed R bkmr 0.2.2 and check additional model components against independent mathematical calculations. A daily ozone analysis illustrates how these components form an analysis workflow.

Related

  1. Kernel Density Regression Estimation with Covariates on Riemannian Manifolds
    Gharbi Rihab, Salah Khardani, Mohamed Abdillahi Isman +1
    HALPreprintCC BY 4.0Full textStatisticsHAL
  2. Kernel Regression using Persistence Diagrams
    Saksham Aggarwal, James Nichols, Katharine Turner
    arXivPreprintCC BY 4.0Full textGeometry & topologyStatisticsarXiv
  3. Robust Error Bounds for Vector-Valued Kernel Ridge Regression
    Wenbin Wang, Colin N. Jones
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  4. Wrap or Rewrite? Reviving the 1989 GlobalMinimum Bayesian Global-Optimization Library for R and Python
    Audris Mockus
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  5. Kernel Ridge Regression over Hölder Classes: Function and Derivative Losses
    Yuxuan Hou, Yicheng Li
    arXivPreprintarXiv licenceFull textStatisticsarXiv
BibTeX
@misc{chapagain2026kernelmix,
  title = {{KernelMix: Bayesian kernel machine regression in Python}},
  author = {Nilson Chapagain},
  howpublished = {arXiv},
  year = {2026},
  month = nov,
  doi = {10.48550/arxiv.2611.28634},
  eprint = {2611.28634},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28634},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - KernelMix: Bayesian kernel machine regression in Python
AU  - Nilson Chapagain
PY  - 2026
DA  - 2026/11/21
PB  - arXiv
DO  - 10.48550/arxiv.2611.28634
UR  - https://arxiv.org/abs/2611.28634
AB  - Exposures measured together can have nonlinear associations with an outcome, and the association with one exposure may depend on another. Bayesian kernel machine regression represents these patterns through a flexible exposure-response function. We implement this approach in KernelMix, a Python package. To handle different outcome types, KernelMix combines the exposure function with continuous, binary, count and survival models, including selected extensions for clustered observations and censored event times. For fitted models, it returns posterior summaries, uncertainty intervals, joint predictions and sampling diagnostics. Fitting and prediction use NumPy and SciPy without requiring R. To assess the implementation, we compare selected Gaussian and probit posterior summaries and conditional calculations with installed R bkmr 0.2.2 and check additional model components against independent mathematical calculations. A daily ozone analysis illustrates how these components form an analysis workflow.
ER  -