Functions for Learning Bayesian Inference
Contour plot of a bivariate density function
Computes the posterior for normal sampling and a mixture of normals pr...
Selection of Normal Prior Given Knowledge of Two Quantiles
Log posterior density for mean and variance for normal sampling
Log posterior of mean and log standard deviation for Normal/Normal exc...
Posterior predictive simulation from Bayesian normal sampling model
Simulation from Bayesian normal sampling model
Gibbs sampling for a hierarchical regression model
Predictive distribution for a binomial sample with a beta prior
Bayesian test of a proportion
Posterior distribution for a proportion with discrete priors
Predictive distribution for a binomial sample with a discrete prior
Log posterior of Poisson/gamma exchangeable model
Computes the posterior for Poisson sampling and a mixture of gammas pr...
Plot of predictive distribution for binomial sampling with a beta prio...
Construct discrete uniform prior for two parameters
Bird measurements from British islands
Random draws from a Dirichlet distribution
Computes the log posterior of a normal regression model with a g prior...
Collapses a matrix by summing over rows
Rejecting sampling using a t proposal density
Random number generation for inverse gamma distribution
Random number generation for multivariate normal
Random number generation for multivariate t
Gibbs sampling for a robust regression model
Simulates from a truncated probability distribution
Random walk Metropolis algorithm of a posterior distribution
Batting data for Mike Schmidt
Simulated draws from a bivariate density function on a grid
Sampling importance resampling
Hitting statistics for ten great baseball players
Goals scored by professional soccer team
Data from Stanford Heart Transplanation Program
Baseball strikeout data
Student dataset
Log posterior of a Pareto model for survival data
Plot of prior, likelihood and posterior for a proportion
Log posterior of a Weibull proportional odds model for survival data
Log posterior for a binary response model with a logistic link and a u...
Log posterior with Poisson sampling and gamma prior
Log posterior with Poisson sampling and normal prior
Marathon running times
Bayesian test of one-sided hypothesis about a normal mean
Bayesian test of a two-sided hypothesis about a normal mean
School achievement data
Team records in the 1964 National League baseball season
Observation sensitivity analysis in beta-binomial model
Bayesian regression model selection using G priors
Simulates from a probit binary response regression model using data au...
Computation of posterior residual outlying probabilities for a linear ...
Bermuda grass experiment data
Selection of Beta Prior Given Knowledge of Two Quantiles
Log posterior of logit mean and log precision for Binomial/beta exchan...
Log posterior of mean and precision for Binomial/beta exchangeable mod...
Logarithm of integral of Bayes factor for testing homogeneity of propo...
Bayes factor against independence assuming alternatives close to indep...
Computes the posterior for binomial sampling and a mixture of betas pr...
Bird measurements from British islands
Birthweight regression study
Simulation from Bayesian linear regression model
Simulates values of expected response for linear regression model
Simulates values of predicted response for linear regression model
Simulates fitted probabilities for a probit regression model
Log posterior of a Bradley Terry random effects model
Survival experience of women with breast cancer under treatment
Calculus grades dataset
Cancer mortality data
Setup for Career Trajectory Application
Log posterior of median and log scale parameters for Cauchy sampling
Chemotherapy treatment effects on ovarian cancer
Bayes factor against independence using uniform priors
Darwin's data on plants
Highest probability interval for a discrete distribution
Posterior distribution of two parameters with discrete priors
Posterior distribution with discrete priors
The probability density function for the multivariate normal (Gaussian...
Probability density function for multivariate t
Donner survival study
Poll data from 2008 U.S. Presidential Election
Florida election data
Game outcomes and point spreads for American football
Metropolis within Gibbs sampling algorithm of a posterior distribution
Log posterior of normal parameters when data is in grouped form
Heart transplant mortality data
Gibbs sampling for a hierarchical regression model
Density function of a histogram distribution
Logarithm of Howard's dependent prior for two proportions
Importance sampling using a t proposal density
Independence Metropolis independence chain of a posterior distribution
Admissions data for an university
Hitting data for Derek Jeter
Summarization of a posterior density by the Laplace method
Logarithm of bivariate normal density
Log posterior of difference and sum of logits in a 2x2 table
A collection of functions helpful in learning the basic tenets of Bayesian statistical inference. It contains functions for summarizing basic one and two parameter posterior distributions and predictive distributions. It contains MCMC algorithms for summarizing posterior distributions defined by the user. It also contains functions for regression models, hierarchical models, Bayesian tests, and illustrations of Gibbs sampling.