This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Bayesian Linear Regression Models

Posterior estimation and simulation using conjugate, semiconjugate, diffuse priors, or more flexible empirical or custom priors

Bayesian linear regression models treat regression coefficients and the disturbance variance as random variables, rather than fixed but unknown quantities. This assumption leads to a more flexible model and intuitive inferences. For more details on Bayesian linear regression, see Bayesian Linear Regression.

To start a Bayesian linear regression analysis, create a model object that best describes your prior assumptions on the joint distribution of the regression coefficients and disturbance variance. Then, using the model and data, you can estimate characteristics of the posterior distributions, simulate from the posterior distributions, or forecast responses using the predictive posterior distribution.

Using Objects

conjugateblmBayesian linear regression model with conjugate prior for data likelihood
semiconjugateblmBayesian linear regression model with semiconjugate prior for data likelihood
diffuseblmBayesian linear regression model with diffuse conjugate prior for data likelihood
empiricalblmBayesian linear regression model with samples from prior or posterior distributions
customblmBayesian linear regression model with custom joint prior distribution


bayeslmCreate Bayesian linear regression model object
estimateFit parameters of Bayesian linear regression model to data
summarizeDistribution summary statistics of Bayesian linear regression model
plotVisualize prior and posterior densities of Bayesian linear regression model parameters
simulateSimulate regression coefficients and disturbance variance of Bayesian linear regression model
sampleroptionsCreate Markov chain Monte Carlo (MCMC) sampler options
forecastForecast responses of Bayesian linear regression model


Bayesian Linear Regression

Learn about Bayesian analyses and how a Bayesian view of linear regression differs from a classical view.

Bayesian Linear Regression Workflow

Use the Bayesian multiple linear regression framework to estimate posterior distribution features and forecast observations using the posterior predictive distribution.

Posterior Estimation and Simulation Diagnostics

Tune Markov Chain Monte Carlo sample for adequate mixing and perform a prior distribution sensitivity analysis.

Specify Gradient for HMC Sampler

Set up a Bayesian linear regression model for efficient posterior sampling using the Hamiltonian Monte Carlo sampler.

Tune Slice Sampler For Posterior Estimation

Improve a Markov Chain Monte Carlo sample for posterior estimation and inference of a Bayesian linear regression model.

Compare Robust Regression Techniques

Address influential outliers using regression models with ARIMA errors, bags of regression trees, and Bayesian linear regression.

Bayesian Lasso Regression

Perform variable selection using Bayesian lasso regression.

Implement Bayesian Variable Selection

Implement stochastic search variable selection (SSVS), a Bayesian variable selection technique, and compare the performance of several supported MCMC samplers.

Was this topic helpful?