1 / 7

概率统计

概率统计. 常用概率分布. Matlab 统计工具箱提供 20 种概率分布,介绍 8 种常见分布的 Matlab 命令,见下图:. 对每一种分布提供 5 类运算功能,采用下列字符:. 当需要某一分布的某类运算功能时,将分布字符与功能字符连接起来,就得到所要的命令。. 数据的输入. y=normpdf(2.5,2,3) %N(2,9) ,在 x=2.5 处的概率密度。. y=binopdf(3:7,10,0.3) % 二项分布 B(10,0.3),k=3,4,5,6,7 的概率。. y=normcdf([-1 0 1.5],0,2)

pahana
Download Presentation

概率统计

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 概率统计

  2. 常用概率分布 Matlab 统计工具箱提供20种概率分布,介绍8种常见分布的Matlab命令,见下图:

  3. 对每一种分布提供5类运算功能,采用下列字符:对每一种分布提供5类运算功能,采用下列字符: 当需要某一分布的某类运算功能时,将分布字符与功能字符连接起来,就得到所要的命令。

  4. 数据的输入 • y=normpdf(2.5,2,3) %N(2,9),在x=2.5处的概率密度。 • y=binopdf(3:7,10,0.3) • %二项分布B(10,0.3),k=3,4,5,6,7 的概率。

  5. y=normcdf([-1 0 1.5],0,2) % N(0,2^2) x=-1, 0, 1.5处的分布函数。 • [m,v]=normstat(1,4) % N(1,4^2)的期望与方差。

  6. 例:画出几种常用分布的分布函数曲线和概率密度函数曲线。例:画出几种常用分布的分布函数曲线和概率密度函数曲线。 解:x=-6:0.01:6; y1=normpdf(x); z1=normcdf(x); y2=normpdf(x,0,2); z2=normcdf(x,0,2); subplot(1,2,1),plot(x,y1,x,y2); subplot(1,2,2),plot(x,z1,x,z2); gtext(‘N(0,1)’); gtext(‘N(0,2^2)’);

  7. 数据的统计分析 • 例:基本统计函数的使用。 解:A=rand(5,4) A1MAX=max(A) A2MAX=max(A1MAX) AMED=median(A) AMEAN=mean(A) ASTD=std(A)

More Related