Bayesian Linear Classifier

Linear binary classification.

You are now following this Submission

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://nl.mathworks.com/matlabcentral/fileexchange/44472-bayesian-linear-classifier), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0