Shinylive Apps for Statistical Computation
    • All Apps

    • The Inverse CDF Method
    • Newton-Raphson on the Cauchy Likelihood
    • Safeguarded Newton-Raphson for Logistic Regression
    • Comparing Gradient Descent and Newton-Raphson Optimization Algorithms
    • Stochastic Gradient Descent
    • Nelder–Mead
    • The EM Algorithm for a Normal Mixture
    • Conjugate Bayesian Updating
    • A Quadrature Grid Missing the Posterior Mode
    • Adaptive Gauss–Hermite Quadrature
    • Envelope Tightness in Rejection Sampling
    • Rejection Sampling from a Gamma Density with a Cauchy Envelope
    • Adaptive Rejection Sampling
    • The Failure of Importance Sampling
    • Importance Sampling of a Student-t Interval
    • Sorted Importance Weights
    • Hamiltonian Monte Carlo Tuning

Shinylive Apps for Statistical Computation

Author

Longhai Li

Published

October 7, 2026

This is a standalone archive of all 17 interactive Shinylive apps in Elements of Statistical Computation. Each app runs entirely in your browser: the R code is compiled to WebAssembly and executed locally by webR, so nothing is sent to a server and no R installation is needed.

Pick an app from the table below. Every page also carries the app’s full R source and a link back to the section of the book that explains it. The first load of an app takes a few seconds while webR downloads.

App Category
The Inverse CDF Method Monte Carlo Methods
Newton-Raphson on the Cauchy Likelihood Optimization Algorithms
Newton-Raphson for Logistic Regression Optimization Algorithms
Gradient Descent Algorithms Optimization Algorithms
Stochastic Gradient Descent for Neural Network Models Optimization Algorithms
Nelder–Mead Algorithm Optimization Algorithms
EM Algorithm for Normal Mixture EM Algorithms
Conjugate Bayesian Updating Introduction to Bayesian Inference
A Quadrature Grid Missing the Posterior Mode Numerical Quadrature
Adaptive Gauss–Hermite Quadrature Laplace Approximation
Envelope Tightness in Rejection Sampling Rejection Sampling
Rejection Sampling from a Gamma Density with a Cauchy Envelope Rejection Sampling
Adaptive Rejection Sampling Rejection Sampling
The Failure of Importance Sampling Importance Sampling
Importance Sampling of a Student-\(t\) Interval Importance Sampling
Sorted Importance Weights Importance Sampling
Hamiltonian Monte Carlo Tuning Markov Chain Monte Carlo