matlab函数和命令的用法

matlab函数和命令的用法

ID:34102957

大小:484.00 KB

页数:22页

时间:2019-03-03

matlab函数和命令的用法_第1页
matlab函数和命令的用法_第2页
matlab函数和命令的用法_第3页
matlab函数和命令的用法_第4页
matlab函数和命令的用法_第5页
资源描述:

《matlab函数和命令的用法》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、--Binocdf二项式累积分布函数语法格式Y=binocdf(X,N,P)函数功能Y=binocdf(X,N,P)计算X中每个X(i)的二项式累积分布函数,其中,N中对应的N(i)为试验数,P中对应的P(i)为每次试验成功的概率。Y,N,和P的大小类型相同,可以是向量、矩阵或多维数组。输入的标量将扩展成一个数组,使其大小类型与其它输入相一致。ThevaluesinNmustallbepositiveintegers,thevaluesinXmustlieontheinterval[0,N],andthevaluesinPmustlieontheinterv

2、al[0,1].ThebinomialcdfforagivenvaluexandagivenpairofparametersnandpisTheresult,y,istheprobabilityofobservinguptoxsuccessesinnindependenttrials,wheretheprobabilityofsuccessinanygiventrialisp.TheindicatorfunctionI(0,1,...,n)(i)ensuresthatxonlyadoptsvaluesof0,1,...,n.示例若一个棒球队在一个赛季要比赛1

3、62场,每场比赛取胜的机会是50-50,则该队取胜超过100场的概率为:>>1-binocdf(100,162,0.5)ans=0.0010433相关函数binofit

4、binoinv

5、binopdf

6、binornd

7、binostat

8、cdf----附:二项式分布(binomialdistribution)定义二项分布的概率密度函数为wherekisthenumberofsuccessesinntrialsofaBernoulliprocesswithprobabilityofsuccessp.Thebinomialdistributionisdiscret

9、e,definedforintegersk=0,1,2,...n,whereitisnonzero.背景Thebinomialdistributionmodelsthetotalnumberofsuccessesinrepeatedtrialsfromaninfinitepopulationunderthefollowingconditions:Onlytwooutcomesarepossibleoneachofn trials.Theprobabilityofsuccessforeachtrialisconstant.Alltrialsareindepen

10、dentofeachother.ThebinomialdistributionisageneralizationoftheBernoullidistribution;itgeneralizestothemultinomialdistribution.参数Supposeyouarecollectingdatafromawidgetmanufacturingprocess,andyourecordthenumberofwidgetswithinspecificationineachbatchof 100.Youmightbeinterestedintheprob

11、abilitythatanindividualwidgetiswithinspecification.Parameterestimationistheprocessofdeterminingtheparameter,p,ofthebinomialdistributionthatfitsthisdatabestinsomesense.Onepopularcriterionofgoodnessistomaximizethelikelihoodfunction.Thelikelihoodhasthesameformasthebinomialpdfabove.But

12、forthepdf,theparameters(n and p)areknownconstantsandthevariableis x.Thelikelihoodfunctionreversestherolesofthevariables.Here,thesamplevalues(thex's)arealreadyobserved.Sotheyarethefixedconstants.Thevariablesaretheunknownparameters.MLEinvolvescalculatingthevalueofpthatgivethehighestl

13、ikelihoodgiventheparticula

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。