BAYES决策的MATLAB程序设计.pdf
第23卷 第4期 北 京 建 筑 工 程 学 院 学 报 Vo1.23 NO.4
2007年12月 Journal of Bei]ing University of Civil Engineering and Architecture Dec.2007
文章编号:1004—6011(2007)04—0050—03
BAYES决策的MATLAB程序设计
王燕京
(北京建筑工程学院电气与信息工程学院,北京 100044)
摘 要:利用MATLAB语言,可以完成贝叶斯决策的程序设计.贝叶斯决策有严谨的思路,是决
策者经常使用的一种决策方法,贝叶斯决策在情况不明的状态下,能够做出得到最佳效果的决策,
关键词:贝叶斯决策;程序设计;MATLAB;算法
中图分类号:TP311 文献标志码:A
Bayes Decision Procedure Bases on MATLAB Progame
Wang Yanjing
(School of Electricity and Information Engineering,BUCEA Beijing 100044)
Abstract:The program design with the language of MATLAB on Bayes decision procedure is
introduced in the paper,Bayes decision has a careful way of thinking,which is a kind of decision
method used by the decision—maker.The people can get the best decision by Bayes decision under an
unidentified appearance of circumstance.This text introduced the basic concept of the Bayes decision
and the calculate way of the program design,and instructed you how to use the language of MATLAB
to complete the Bayes decision of the program’S design.
Key words:Bayes decision;program design;MATLAB language;arithmetic
贝叶斯方法是系统决策常用的方法之一.人们
的思维支配着言行,大脑思维的决策一般是建立在 1 贝叶斯决策的概念
对环境情况了解的基础之上所做出来的.但是有些
时候也要面对情况不明之时作出必要的决策,并且 假设某人生活工作在某地,家与工作单位距离
希望取得最佳的结果.贝叶斯Bayes决策就是在情 较远,一个位于城东,一个位于城西,在不堵车的情
况不确定的情况下而给出最佳决定的方法.这一方 况下行程用时半小时,因为城市道路交通的不畅通,
法涉及到概率和数理统计的概念.利用概率论中的 路上用时很通难准确确定,因此决定几点钟出门上
贝叶斯定理解决对环境情况不明所作决策的这类问 班,便成了问题.单位大门8点钟准时打开,早到等
题,即贝叶斯决策.对于风险决策问题有两种描述 着开门浪费时间;迟到了又要扣工资.为了把问题
和解决的方法,一是决策矩阵法;一是决策树法.文 简单化,假设7点或7点30分两个时刻出门.到达
中采用前一种方法. 单位存在着两种状态,一是迟到,另一是不迟到