HAL Id: hal-00894261
https://hal.archives-ouvertes.fr/hal-00894261
Submitted on 1 Jan 1999
HAL is a multi-disciplinary open access
archive for the deposit and dissemination of
sci-entific research documents, whether they are
pub-lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d’enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.
A useful reparameterisation to obtain samples from
conditional inverse Wishart distributions
Inge Riis Korsgaard, Anders Holst Andersen, Daniel Sorensen
To cite this version:
Note
A
useful
reparameterisation
to
obtain
samples
from conditional
inverse
Wishart
distributions
Inge
Riis
Korsgaard
Anders Holst Andersen
Daniel
Sorensen
a
Department of Animal
Breeding
andGenetics,
Research CentreFoulum,
PO Box 50, DK-8830Tjele,
Denmarki’
Department
of TheoreticalStatistics, University
ofAarhus,
DK-8000 AarhusC,
Denmark(Received
12 December1997; accepted
6January
1999)
Abstract - A
Bayesian joint analysis
ofnormally
distributed traits andbinary
traits,using
the Gibbssampler,
requires thedrawing
ofsamples
from a conditional inverseWishart distribution. This is the
fully
conditional posterior distribution of the residual covariance matrix of thenormally
distributed traits and liabilities of thebinary
traits.
Obtaining samples
from the conditional inverse Wishart distribution is notstraightforward.
However,combining
well-known matrix results andproperties
of theWishart distribution, it is shown that this can be
easily
carried outby successively
drawing
from Wishart andnormally
distributed random variables.©
Inra/Elsevier,
Parisconditional inverse Wishart distribution
/
Gibbs sampling/
binary traits /residual covariance matrix
Résumé - Reparamétrisation permettant d’obtenir des échantillons tirés d’une
loi de Wishart inverse conditionnée. Une
analyse bayésienne
utilisant l’échantillon-nage de Gibbs, de caractères distribués normalement conjointement avec descarac-tères
binaires, requiert
letirage
d’échantillons dans une loi de Wishart inverseconditionnée. Il
s’agit
de la distribution aposteriori
de la matrice de covariancerésiduelle des caractères distribués normalement et des variables latentes
corres-pondant
aux variables binaires. L’obtention d’échantillonscorrespondants
n’est pasévidente.
Cependant
l’utilisation de résultats bien connus sur les matrices et despropriétés
de la distribution de Wishart permet d’aboutir à une solution en tirant *Correspondence
andreprints
successivement dans une loi de Wishart et dans des lois
gaussiennes. ©
Inra/Elsevier,
Parisdistribution de Wishart inverse conditionnée / échantillonnage de Gibbs
/
caractères binaires/
matrice de covariance résiduelle1. INTRODUCTION
Markov chain Monte Carlo makes
possible
theexploration
ofposterior
distributions with relative ease,using
models which arecomputationally
toocomplex
to beimplemented
with otherapproaches.
A case inpoint
is the models for ajoint
analysis
of anormally
distributed trait(such
asweight
gain
oryield
of
milk)
and abinary
trait(resistant
or not resistant todisease,
twin orsingle
birth in
cattle)
-- where thebinary
trait is modelled via the threshold model!9!,
which invokes the existence of an unknowncontinuously
distributedunderlying
variable,
theliability.
ABayesian analysis
of suchtraits,
using
the Gibbssampler, requires
thedrawing
ofsamples
from a conditional inverse Wishartdistribution
(e.g.
!3, 5, 8!).
This is thefully
conditionalposterior
distribution of the residual covariance matrix of thenormally
distributed traits and liabilities of thebinary
traits.Obtaining samples
from the conditional inverse Wishart distribution is notstraightforward.
The purpose of this note is to
present
an easy method to obtainsamples
from the conditional inverse Wishartdistribution,
where theconditioning
is on a blockdiagonal
submatrix,
R
22
,
equal
to theidentity
matrix of the inverse Wishart distributedmatrix,
R =Ri
l
R1
2
This is carried outBit
21
21R
22
/
by combining
well-knownrelationships
between apartitioned
matrix and itsinverse and
properties
of Wishart distributions. Theproposed
method canalternatively
be arrived atby using
both anotherreparameterisation
and theproperties
of the inverse Wishart distribution. This was carried out in Dr6ze and Richard[2]
and is well-known in the econometric literature. The need forsampling
from a conditional inverse Wishart distribution is motivatedby
aBayesian
multivariateanalysis
of pinormally
distributed traits and p2binary
traits,
pl, p2>1, using
the Gibbssampler
and dataaugmentation.
2. THE MODEL
Assume that PI
normally
distributed traits and p2 traits withbinary
response are observed for each animal. Data on animal i are yi =(Y;1’Y;2)&dquo;
where y21! is the observed value of the
jth normally
distributedtrait, j =
1, ... , pl,
and !2zk is the observed value of the kthbinary trait,
=l, ... , !2. It
is assumed that the outcome ofY
zk
is determinedby
anunderlying
continuousrandom
variable,
theliability,
U
ik
,
whereY;
2k
= 1 ifU
ik
>TandY;
2k
= 0 ifU
Zk
< T, where T is a fixedthreshold,
often assumed to beequal
to zero. LetWi
=(Y;
l’
Ui)’
and define W as thenp-dimensional
column vector,containing
the
W
i
s,
W’ =(W!,...,
W
!
y ),
p =PI
where X and Z are
design
matricesassociating
W with ’fixed’effects, b,
and additive
genetic values,
a,respectively.
The usualcondition,
(R2z)!!
= 1(e.g.
[1]),
has beenimposed
in the conditionalprobit
model forY
i2k
given
a, k =1, ... ,
p2. Furthermore it is assumed that liabilities of the
binary
traits areconditionally independent, given
b and a. Thefollowing
prior
distributions are assumed: b isuniform,
and that
RIR
22
=Ip
2
follows a conditional inverse Wishart distribution withdensity
up toproportionality given by:
Augmenting
with the vector U =(U
1
, ... , U
n
)’
ofliabilities,
and alsoas-suming
that apriori
b,
(a, G)
and R aremutually independent,
it follows(e.g.
[5]),
that thefully
conditionalposterior
distributionsrequired
toim-plement
the Gibbssampler
are easy tosample
from with theexception
of thefully
conditionalposterior
distribution ofRIR
22
=Ip
2
.
Thefully
condi-tionalposterior
distribution ofRIR
22
=Ip
2
is conditional inverse Wishart distributed withdensity
proportional
toequation
(2)
withE
R
replaced
by
/ 7t B -1
freedom
f
R
replaced by f
R
,
+ n. In the method to beproposed
forsampling
fromequation
(2)
in acomputationally simple
manner, theproperties
sum-marised below are essential.Assume that
R-7!(E,/)
and letV = R-
1
,
thenV - W, (E, f ).
Further-more, define T =
, T
)
3
z
, T
1
(T
by
T
l
=V
ll
,
T
2
=V
11
1
V
1
z,
andT
3
=V
22
.
1
= !22 -V2iVii!Vi2;
where V= (
V
21
Vlz
J
is
apartitioning of V; V
ll
isV21
21V22
pi x pi and
V
22
is P2 x pz. Then thefollowing
results hold:Result 1: there is a one to one
relationship
between T and Rgiven by
Result 5:
(T
l
, T
2
)
isindependent
ofT
3
,
whichimplies
that the conditional distribution of(T
1
, T
Z
)
given
T
3
= t3 isequal
to themarginal
distribution of(T
I
, T
2
)
Result 1 is immediate. Results
2,
4 and 5 all can be found in Mardia et al.3. AN ALTERNATIVE PARAMETERISATION
Let R -
IW
P
(E, f
R
+n)
bereparameterised
in terms of(T
1
,
T
2
,
T
3
)
given
by
result 1:with the distribution of
(T
i
,
T
2
,
T
3
)
asspecified
in results2, 3,
4 and 5.The distribution of
R! (R22
=Ip
J
is that ofR! (T3
=Ip
2
)
’
This follows becauseT
3
=R22
is
a one to one transformationof R
z2
(property (10.4.3)
fromcalculus of conditional distributions in
Hoffmann-Jorgensen
(4!)
and because of result 6. Nextinserting
T
3
=I
P2
in R(property
(10.4.4)
inHoffmann-Jorgensen
!4!)
it follows from result 5 that the distribution ofR!(T3
=Ip
2
)
is that ofFrom above it follows that if
t
1
issampled
fromTi -
W
Pl
(1:
11
, f
R
+ n),
next
2
t
fromT
21
T
l
=t1 !
/1:1
l
, t1
2
l
1
2 (1:
XP
NP
1 ! £
22
. i ) ,
thenis a realised matrix from the conditional inverse Wishart distribution of R
given
R
22
=
I
p
2’
4. CONCLUSION
We have
presented
asimple
method to drawsamples
from conditional inverse Wishart distributions. Theconditioning
is onR
22
equal
to theidentity
matrix,
where R =R2
1
R.12
)
isa partitioning
of an inverse WishartR21
R22
distributed matrix. The method is relevant in a
Bayesian joint analysis
ofnormally
distributed andbinary
traits(the
latter with associatedliabilities),
using
the Gibbssampler.
Themethodology
was illustrated based on modelswith additive
genetic
effectsonly.
Thegeneralisation
to several random effects is immediate.ACKNOWLEDGEMENT
REFERENCES
[1]
CoxD.R.,
SnellE.J., Analysis
ofBinary
Data,Chapman
andHall, London,
1989.[2]
DrèzeJ.H.,
RichardJ.-F., Bayesian analysis
of simultaneousequation
systems,in: Griliches
Z., Intriligator
M.D.(Eds.),
Handbook ofEconometrics,
North-HollandPublishing Company,
vol. 1, 1983, pp. 587-588.[3]
JensenJ., Bayesian analysis
of bivariate mixed models with one continuous and onebinary
traitusing
the Gibbssampler, Proceedings
of the 5th WorldCongress
on Genetics
Applied
to Livestock Production 18(1994)
333-336.[4]
Hoffmann-Jorgensen
J.,Probability
with a View towardStatistics, Chapman
and
Hall,
NewYork,
1994.[5]
Korsgaard LR.,
Geneticanalysis
of survivaldata,
Ph.D.thesis, University
ofAarhus, Denmark,
1997.[6]
LauritzenS.L., Graphical Models,
OxfordUniversity Press,
NewYork,
1996.[7]
MardiaK.V.,
KentJ.T., Bibby J.M.,
MultivariateAnalysis,
AcademicPress,
GreatBritain,
1979.[8]
SorensenD.,
Gibbssampling
in quantitativegenetics,
Internal report no. 82from the Danish Institute of Animal