Shinylive Apps for Statistical Computation
    • All Apps

    • Inverse CDF Method for Generating Random Numbers
    • Newton-Raphson for the Cauchy Location Likelihood
    • Safeguarded Newton-Raphson for Logistic Regression
    • Gradient-Based Methods for Minimizing Test Functions
    • Gradient-Based Methods for Fitting a Gaussian Neural Network
    • Gradient-Based Methods for Fitting a Poisson Neural Network
    • Nelder–Mead Method for Derivative-Free Minimization
    • EM Algorithm for a Normal Mixture
    • EM Algorithm for a Bivariate Normal Mixture
    • Conjugate Updating for Bayesian Posteriors
    • Quadrature and Laplace Approximation for the Marginal Likelihood of a Normal Mean
    • Midpoint, Laplace and Laplace-Adapted Midpoint Rules for the Marginal Likelihood of Normal Data
    • Rejection Sampling with a Laplace Envelope for the Normal Distribution
    • Rejection Sampling with a Cauchy Envelope for the Gamma Distribution
    • Adaptive Rejection Sampling for the Truncated Normal Distribution
    • Adaptive Rejection Sampling on log X for the Truncated Gamma Distribution
    • Importance Sampling for a Bimodal Distribution (Failure Example)
    • Importance Sampling with a Normal Proposal for Student-t Probabilities
    • Gibbs Sampling for the Cauchy Model with Unknown Location and Scale
    • MCMC Simulators by Chi Feng (external)

Shinylive Apps for Statistical Computation

Author

Longhai Li

Published

November 24, 2026

This is a standalone archive of all 19 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
Inverse CDF Method for Generating Random Numbers Monte Carlo Methods
Newton-Raphson for the Cauchy Location Likelihood Optimization Algorithms
Safeguarded Newton-Raphson for Logistic Regression Optimization Algorithms
Gradient-Based Methods for Minimizing Test Functions Optimization Algorithms
Gradient-Based Methods for Fitting a Gaussian Neural Network Optimization Algorithms
Gradient-Based Methods for Fitting a Poisson Neural Network Optimization Algorithms
Nelder–Mead Method for Derivative-Free Minimization Optimization Algorithms
EM Algorithm for a Normal Mixture EM Algorithms
EM Algorithm for a Bivariate Normal Mixture EM Algorithms
Conjugate Updating for Bayesian Posteriors Introduction to Bayesian Inference
Quadrature and Laplace Approximation for the Marginal Likelihood of a Normal Mean Numerical Quadrature, Laplace Approximation
Midpoint, Laplace and Laplace-Adapted Midpoint Rules for the Marginal Likelihood of Normal Data Numerical Quadrature
Rejection Sampling with a Laplace Envelope for the Normal Distribution Rejection Sampling
Rejection Sampling with a Cauchy Envelope for the Gamma Distribution Rejection Sampling
Adaptive Rejection Sampling for the Truncated Normal Distribution Rejection Sampling
Adaptive Rejection Sampling on log X for the Truncated Gamma Distribution Rejection Sampling
Importance Sampling for a Bimodal Distribution (Failure Example) Importance Sampling
Importance Sampling with a Normal Proposal for Student-t Probabilities Importance Sampling
Gibbs Sampling for the Cauchy Model with Unknown Location and Scale Markov Chain Monte Carlo
Comprehensive MCMC Simulators by Chi Feng (external) Markov Chain Monte Carlo