五月天婷亚洲天久久综合网,婷婷丁香五月激情亚洲综合,久久男人精品女人,麻豆91在线播放

  • <center id="8gusu"></center><rt id="8gusu"></rt>
    <menu id="8gusu"><small id="8gusu"></small></menu>
  • <dd id="8gusu"><s id="8gusu"></s></dd>
    樓主: Lisrelchen
    1693 1

    [精彩WinBUGS答問]Estimation of the shape parameter of gamma distribution [推廣有獎]

    • 0關注
    • 62粉絲

    VIP

    院士

    67%

    還不是VIP/貴賓

    -

    TA的文庫  其他...

    Bayesian NewOccidental

    Spatial Data Analysis

    東西方數(shù)據(jù)挖掘

    威望
    0
    論壇幣
    50174 個
    通用積分
    81.7428
    學術水平
    253 點
    熱心指數(shù)
    300 點
    信用等級
    208 點
    經(jīng)驗
    41518 點
    帖子
    3256
    精華
    14
    在線時間
    766 小時
    注冊時間
    2006-5-4
    最后登錄
    2022-11-6

    樓主
    Lisrelchen 發(fā)表于 2014-6-16 12:54:42 |只看作者 |壇友微信交流群|倒序 |AI寫論文

    +2 論壇幣
    k人 參與回答

    經(jīng)管之家送您一份

    應屆畢業(yè)生專屬福利!

    求職就業(yè)群
    趙安豆老師微信:zhaoandou666

    經(jīng)管之家聯(lián)合CDA

    送您一個全額獎學金名額~ !

    感謝您參與論壇問題回答

    經(jīng)管之家送您兩個論壇幣!

    +2 論壇幣
    I want to estimate the shape parameter of gamma distribution in Winbugs. I select gamma distribution as prior for shape parameter. Data set is generated using MATLAB as:

    gamrnd(5,1,[100 1])
    a small part of data loaded to model is here:

    list(n=100,b=1)
    y[,1]
    9.85509822926424
    6.78794280129914
    2.37341388433267
    5.44664020179438
    14.7723695566505
    4.53177357981821
    .
    .
    END
    The model in Winbugs is simple and as follows:

    model;
    {
       for( i in 1 : n ) {
          y ~ dgamma(a,b)
       }
       a ~ dgamma(3,1)
    }
    Estimation is strongly dependent on the prior that was selected for a. As for each distribution, (normal-gamma-uniform) the estimated a value is around the mean value of the selected prior distribution. For example, choosing the above-mentioned prior (a ~ dgamma(3,1)) resulted in shape parameter estimation 3.026; also running the model for more iterations doesn't change results so much!

    What is the problem and how can I solve that?

    二維碼

    掃碼加我 拉你入群

    請注明:姓名-公司-職位

    以便審核進群資格,未注明則拒絕

    關鍵詞:distribution Estimation Parameter paramete winbugs

    沙發(fā)
    Lisrelchen 發(fā)表于 2014-6-16 12:56:08 |只看作者 |壇友微信交流群
    I run a similar script in R, but it seems that OK, setting prior of the b

    How is your prior of b setting?

    Has your MCMC chain already converged?

    PS: I tried something as below as you set b as fixed. But I also tried some other prior of b, it is OK.

    N <- 100
    x <- rgamma(N, 5, 1)


    write("
    model {
        for (i in 1:length(x)) {
            x[i] ~ dgamma(a, b)
        }
        a ~ dgamma(3, 1)
        b <- 1
    }",
    file="example1.bug")

    jags <- jags.model('example1.bug',
                       data = list('x' = x),
                       n.chains = 4,
                       n.adapt = 100)


    mcmc.samples <- coda.samples(jags,
                 c('a', "b"),
                 n.iter = 10000)

    summary(mcmc.samples)  
    您需要登錄后才可以回帖 登錄 | 我要注冊

    本版微信群
    加好友,備注jltj
    拉您入交流群

    京ICP備16021002-2號 京B2-20170662號 京公網(wǎng)安備 11010802022788號 論壇法律顧問:王進律師 知識產(chǎn)權保護聲明   免責及隱私聲明

    GMT+8, 2024-12-23 03:59