|
Step 1: Specify the values of
,
,
,
, and
, then compute
using Eq. (16) and compute
using Eq. (18)
|
|
Step 2: At the
step |
| (a) Generate
from uniform distribution with parameters 0 and
, denoted as
|
| (b) Generate
from uniform distribution with parameters 0 and
, denoted as
|
| (c) Compute
|
| (d) If the value of
is accepted, the set
if
; otherwise, repeat step (a)–step (c) |
| (e) Generate
from inverse gamma distribution with parameters
and
, denoted as
and compute
|
|
Step 3: Compute the posterior distribution of
, denoted as
, using Eq. (19)
|
|
Step 4: Repeat step 2 and step 3, a total M times and obtain an array of
’s |
|
Step 5: Compute
and
|