资源描述:
《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