This function uses Bayesian inference to find the optimal linear separator in a binary classification problem. A trained model can then be used to make predictions for new samples by computing a probability that that sample belongs to one of the classes.
Error bars are estimated for the regression coefficients.
This classifier will be useful in situations with noisy data or small sample sizes because a parametric linear model will be less prone to overfitting.
Cite As
James Barrett (2026). Bayesian Linear Classifier (https://www.mathworks.com/matlabcentral/fileexchange/44472-bayesian-linear-classifier), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Regression > Model Building and Assessment > Bayesian Regression >
Find more on Bayesian Regression in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
BLC/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
