切換到寬版
  • 廣告投放
  • 稿件投遞
  • 繁體中文
    • 11291閱讀
    • 2回復(fù)

    [分享]Matlab中超幾何分布作圖介紹 [復(fù)制鏈接]

    上一主題 下一主題
     
    發(fā)帖
    1113
    光幣
    1515
    光券
    0
    只看樓主 倒序閱讀 樓主  發(fā)表于: 2008-10-27
    在用Matlab繪制各種常用概率分布的密度函數(shù)時(shí),都比較簡(jiǎn)單,唯獨(dú)超幾何分布試了幾次都不成功,輸出結(jié)果總是 >cg)Nq D  
    xkax  
    ans = 5E1`qof  
    *Uj;a.  
       NaN :#35mBe}k  
    %KkC1.yu<  
            查看了一下幫助  help hygepdf i/H;4#Bz  
    vt^7:! r  
    HYGEPDF Hypergeometric probability density function. -aS@y.z  
    @"1Z;.S8V  
        Y = HYGEPDF(X,M,K,N) returns the hypergeometric probability ]8DTk!  
        density function at X with integer parameters M, K, and N. c$^v~lQS  
        Note: The density function is zero unless X is an integer. B RskxyL&,  
    K/ &`  
        The size of Y is the common size of the input arguments. A scalar input   P=KhR&gwV~  
        functions as a constant matrix of the same size as the other inputs.     %7P]:G+Y\  
    |+::sL\r  
        See also hygecdf, hygeinv, hygernd, hygestat, pdf. _ SOwiz  
    h6^|f%\w*i  
        Reference page in Help browser 9H/R@i[E  
           doc hygepdf |iX>hJSl  
    dcD#!v\0  
            超幾何分布參數(shù)較多,這里關(guān)于三個(gè)參數(shù)的指代不詳。又在互聯(lián)網(wǎng)上查了相關(guān)資料,包括該函數(shù)的定義式: Q"nw.FjUG  
    dE_"|,:  
                       http://ccpublic-1.central.cranfield.ac.uk/2001DMSOMFRC/pr062320/Matlab/stats/hygepdf.m b1jDbiH&  
    H!u8+  
            直到發(fā)現(xiàn)這個(gè)例子后才清楚各個(gè)參數(shù)所代表的具體意義。 6 U[VoUU   
    =~Qg(=U0U  
    Suppose you have a lot of 100 floppy disks and you know that 20 of them are defective. What is the probability of drawing 0 through 5 defective floppy disks if you select 10 at random? ^v'0\(H?P  
    g?Nk-cg  
    p = hygepdf(0:5,100,20,10) US(RWXyg  
    =_z