Bayesian decision theory is often used in pattern recognition, which is the most commonly used matlab original program for Bayesian decision making.