十大概率密度函数

您所在的位置:网站首页 概率密度函数的非负性矩阵 十大概率密度函数

十大概率密度函数

2024-07-01 18:30| 来源: 网络整理| 查看: 265

一.二项分布

x=0:10; y=binopdf(x,10,0.4); plot(x,y,'*')

在这里插入图片描述 二.卡方分布

x=0:0.3:10; y=chi2pdf(x,4); plot(x,y)

在这里插入图片描述 三.非中心卡方分布

x=(0:0.2:10)'; p1=ncx2pdf(x,3,2); p=chi2pdf(x,3); plot(x,p,'-',x,p1,'--')

在这里插入图片描述 四.指数分布

x=0:0.2:10; y=exppdf(x,3); plot(x,y,'-')

在这里插入图片描述 五.正态分布

x=-3:0.2:3; y=normpdf(x,0,1); plot(x,y,'--')

在这里插入图片描述 六.对数正态分布

x=(10:100:125010)'; y=lognpdf(x,log(20000),2.0);plot(x,y) set(gca,'xtick',[0 20000 50000 90000 140000]) set(gca,'xticklabel',str2mat('0','$20000','$50000','$90000','$140000'))代码片

在这里插入图片描述 七.F分布

x=0:0.02:10; y=fpdf(x,5,4); plot(x,y)

在这里插入图片描述 八.非中心F分布

x=0:0.02:10.02; p1=ncfpdf(x,4,20,5); p=fpdf(x,4,20); plot(x,p,'-',x,p1,'--')

在这里插入图片描述 九.负二项分布

x=(0:10)'; y=nbinpdf(x,3,0.5); plot(x,y,'--')

在这里插入图片描述 10.绘制卡方分布密度函数在自由度分布为3,6,9的图形

x=0:0.5:10; y1=chi2pdf(x,3); plot(x,y1,'-'); hold on y2=chi2pdf(x,6); plot(x,y2,'--'); y3=chi2pdf(x,9); plot(x,y3,'-'); axis([0 10 0 0.3])

在这里插入图片描述



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3