Chapter 12 Application of Gibbs Sampling in Variance Component Estimation and Prediction of Breeding Value: R. A. Mrode. (2005). Linear Models for Prediction of Animal Breeding Values. CAB International, Oxon, UK. Second Edition.

Chapter 12
Application of Gibbs Sampling in Variance Component
Estimation and Prediction of Breeding Value
Linear Models for Prediction of Animal Breeding Values
R .A. Mrode
Gota Morota

May 6, 2010

1 / 18
Outline

Pre Gibbs Sampling Era

Gibbs Sampling

Gibbs Sampling vs. REML and BLUP

2 / 18
Outline

Pre Gibbs Sampling Era

Gibbs Sampling

Gibbs Sampling vs. REML and BLUP

3 / 18
Outline

Pre Gibbs Sampling Era

Gibbs Sampling

Gibbs Sampling vs. REML and BLUP

4 / 18
Controversy over REML

• gives joint modes of variance components rather than
marginal modes

quadratic loss function =

ˆ
(yij − yij )2

• not all variance components have equal importance

⇓
variance components of no interest (nuisance paramters)
should be integrated out

⇓
only paramters of interest should be maximized in the
likelihood

5 / 18
VEIL (1990)

Variance Estimation from Integrated Likelihood
Gianola D, Foulley JL (1990) Variance Estimation from Integrated
Likelihood (VEIL). Genet Sel Evol 22, 403-417
Inference is based on the marginal posterior distribtuion of each of
the variance components.

⇓
Approximations to the marginal distributions were proposed.

6 / 18
Gibbs Sampling

Conditional distribution

⇓
Marginal distribution
• difficult

p (θa , θb , θc , θd )d θb d θc d θd
• easy

sample from p (θa |θb , θc , θd )

7 / 18
History of Bayesian Analyses Coupled with Gibbs
Sampling
• Gelfand AE, and Smith AFM (1990): Introduced in statistics
• Gelfand et al.(1990): One-way radom effects model
• CS.Wang et al. (1993): Univariate mixed linear model using
simulated data
• CS.Wang et al. (1994): Univariate mixed linear model using
field data (litter size)
• DA Sorensen et al. (1995) : Threshold models
• Jamorozik and Shaeffer (1997): Random Regression

Gibbs Sampling
It has been applied to a wide range of animal breeding problems.
8 / 18
Likelihood
Bayes’ theorem:
joint posterior distribution ∝ likelihood × priors
• Consider the linear model

y = XB + Zu + e
• Further,

e|σ2 ∼ N (0, Iσ2 )
e
e
• The conditinal distribution which generates the data
(likelihood):

y|B, u, σ2 ∼ N (XB + Zu, Iσ2 )
e
e
n

∝ (σ2 )− 2 exp −
e

(y − XB − Zu) (y − XB − Zu)
2σ2
e

(1)
9 / 18
Prior Distribution for Location Parameters
• Prior for B:

p (B) ∝ constant

(2)

• Prior for u

u|Aσ2 ∼ N (0, Aσ2 )
u
u
q

∝ (σ2 )− 2 exp −
u
q

∝ (σ2 )− 2 exp −
u

(u − 0) (u − 0)
2Aσ2
u
u A−1 u
2σ2
u

(3)

10 / 18
Prior Distribution for Scale Parameters
• Prior for σ2
u
2
p (σ2 |su , υu ) ∝ (σ2 )−
u
u

υu +2
2

exp −

2
υu su
2σ2
u

(4)

exp −

2
υe se
2 σ2
e

(5)

• Prior for σ2
e
2
p (σ2 |se , υe ) ∝ (σ2 )−
e
e

υe +2
2

Scaled inverted χ2 distribution
Commoly used for priors of variance components in the Bayesian
analyses

11 / 18
Joint Posterior Distribution
Multiplication of likelihood (1) and priors (4) to (5)
2
2
Joint posterior distribution = p (B, u, σ2 , σ2 |y, su , υu , se , υe )
u
e

2
2
∝ p (y|B, u, σ2 ) p (B) p (u|σ2 ) p (σ2 |su , υu ) p (σ2 |se , υe )
e
u
u
e

∝ (σ2 )−
u
(σ2 )−
e

n+υe +2
2

exp −

q+υu +2
2

exp −

2
u A−1 u + υu su

2σ2
u

2
(y − XB − Zu) (y − XB − Zu) + υe se
2σ2
e

(6)

12 / 18
Fully Conditional Distribution for Location Parameters
The fully conditional distribution of each parameter is obtained by
regarding all other parameters in (6) as known.
• B:
p (B|u, σ2 , σ2 , y) ∝ exp −
e
u

(y − XB − Zu) (y − XB − Zu)
2σ2
e

B|u, σ2 , σ2 , y ∼ N ((X X)−1 X (y − Zu), (X X)−1 σ2 )
e
e
u

(7)




2 −1




2
−1 σe 
Z Zi + A
 σ 

 i



e

i
σ2 i
u

(8)

• u:

ui |B, u−i , σ2 , σ2 , y
u
e




˜
∼ N ui ,



where



q
2 −1



Z Zi + A−1 σe  Z (y − XB −

 i
˜
Zj uj )
ui =  i


i
σ2 i
u
j=1,j i
13 / 18
Fully Conditional Distribution for Scale Parameters
The fully conditional distribution of each parameter is obtained by
regarding all other parameters in (6) as known.
• σ2 :
e
p (σ2 |B, u, σ2 , y) ∝
e
u

(σ2 )−
e

n+υe +2
2

exp −

2
(y − XB − Zu) (y − XB − Zu) + υe se
2σ2
e

(9)

2
˜2
υe = n + υe , se = [(y − XB − Zu) (y − XB − Zu) + υe se ]/υe
˜
˜

• σ2 :
u

p (σ2 |B, u, σ2 , y) ∝ (σ2 )−
u
e
u

q+υu +2
2

exp −

2
u A−1 u + υu su

2 σ2
u

(10)

2
˜2
υu = q + υu , su = [u A−1 u + υu su ]/υu
˜
˜

14 / 18
Sampling
• Consider following linear model

XT X
XT Z
B
XT y
= T
ZT X ZT Z + A−1 α u
Z y
LHS · C = RHS
• Iteration

Ci |(ELSE) ∼ N

RHS[i] −

j =1,j i

LHS[i, j] · Bj

LHS[i, i]

,

σ2
e
LHS[i, i]

2
2
σ2 |(ELSE) ∼ [(y − Xb − Zu)T (y − Xb − Zu) + υe se ] · χ−+υe
e
n
2
2
σ2 |(ELSE) ∼ [uT A−1 u + υu su ] · χ−+υu
a
q

15 / 18
Inferences from the Gibbs Sampling Output

σ2 : σ21 , σ21 , · · · , σ2k ,
u
u
u
u
• Direct inference from samples

post mean =
post variance =

k
i =1

σ2i
u

k
k
2
i =1 (σui

− post mean)2
k

• Density Estimation
• Kernel Density Estimation

16 / 18
Gibbs Sampling vs. REML and BLUP
In practice, we don’t know the variance components.

REML → BLUP procedure
• does not take into account uncertainty in estimating variance
components
• estimating variance components are ignored in predicting
breeding values
• BLUP from the MME is no longer BLUP (empirical BLUP)

Gibbs Sampling
Able to estimates location paramters and scale paratmers jointly.

17 / 18
Summary

Bayesian is great!

18 / 18
1 of 18

Recommended

Dynamical t/U expansion for the doped Hubbard model by
Dynamical t/U expansion for the doped Hubbard modelDynamical t/U expansion for the doped Hubbard model
Dynamical t/U expansion for the doped Hubbard modelWenxingDing1
98 views33 slides
Bc4103338340 by
Bc4103338340Bc4103338340
Bc4103338340IJERA Editor
162 views3 slides
Irs gan doc by
Irs gan docIrs gan doc
Irs gan docMasato Nakai
5.8K views20 slides
Deep IRL by C language by
Deep IRL by C languageDeep IRL by C language
Deep IRL by C languageMasato Nakai
2.5K views9 slides
1c. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.3 by
1c. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.31c. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.3
1c. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.3Dr. I. Uma Maheswari Maheswari
45 views48 slides
A new axisymmetric finite element by
A new axisymmetric finite elementA new axisymmetric finite element
A new axisymmetric finite elementStefan Duprey
896 views23 slides

More Related Content

What's hot

1d. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.4 by
1d. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.41d. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.4
1d. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.4Dr. I. Uma Maheswari Maheswari
36 views22 slides
Derivatives in Multi by
Derivatives in MultiDerivatives in Multi
Derivatives in MultiPoramate (Tom) Pranayanuntana
171 views5 slides
Gauss Bonnet Boson Stars by
Gauss Bonnet Boson StarsGauss Bonnet Boson Stars
Gauss Bonnet Boson StarsJurgen Riedel
556 views24 slides
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati... by
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...Joe Suzuki
339 views12 slides
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial... by
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...Joe Suzuki
411 views18 slides
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie... by
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...The Statistical and Applied Mathematical Sciences Institute
267 views32 slides

What's hot(13)

Gauss Bonnet Boson Stars by Jurgen Riedel
Gauss Bonnet Boson StarsGauss Bonnet Boson Stars
Gauss Bonnet Boson Stars
Jurgen Riedel556 views
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati... by Joe Suzuki
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
Joe Suzuki339 views
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial... by Joe Suzuki
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
Joe Suzuki411 views
A Conjecture on Strongly Consistent Learning by Joe Suzuki
A Conjecture on Strongly Consistent LearningA Conjecture on Strongly Consistent Learning
A Conjecture on Strongly Consistent Learning
Joe Suzuki349 views
Chapter2 functionsandgraphs-151003144959-lva1-app6891 by Cleophas Rwemera
Chapter2 functionsandgraphs-151003144959-lva1-app6891Chapter2 functionsandgraphs-151003144959-lva1-app6891
Chapter2 functionsandgraphs-151003144959-lva1-app6891
Cleophas Rwemera114 views
分類器 (ナイーブベイズ) by Satoshi MATSUURA
分類器 (ナイーブベイズ)分類器 (ナイーブベイズ)
分類器 (ナイーブベイズ)
Satoshi MATSUURA14.6K views

Viewers also liked

Catalogo.pdf meridional by
Catalogo.pdf meridionalCatalogo.pdf meridional
Catalogo.pdf meridionalGiacomo Furriel
3.4K views44 slides
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq... by
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Gota Morota
438 views15 slides
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq... by
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Gota Morota
417 views46 slides
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali... by
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...Gota Morota
513 views18 slides
Whole-genome prediction of complex traits using kernel methods by
Whole-genome prediction of complex traits using kernel methodsWhole-genome prediction of complex traits using kernel methods
Whole-genome prediction of complex traits using kernel methodsGota Morota
1.1K views31 slides
How to Become a Thought Leader in Your Niche by
How to Become a Thought Leader in Your NicheHow to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your NicheLeslie Samuel
1.6M views13 slides

Viewers also liked(6)

Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq... by Gota Morota
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Gota Morota438 views
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq... by Gota Morota
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Gota Morota417 views
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali... by Gota Morota
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...
Gota Morota513 views
Whole-genome prediction of complex traits using kernel methods by Gota Morota
Whole-genome prediction of complex traits using kernel methodsWhole-genome prediction of complex traits using kernel methods
Whole-genome prediction of complex traits using kernel methods
Gota Morota1.1K views
How to Become a Thought Leader in Your Niche by Leslie Samuel
How to Become a Thought Leader in Your NicheHow to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your Niche
Leslie Samuel1.6M views

Similar to Chapter 12 Application of Gibbs Sampling in Variance Component Estimation and Prediction of Breeding Value: R. A. Mrode. (2005). Linear Models for Prediction of Animal Breeding Values. CAB International, Oxon, UK. Second Edition.

BlUP and BLUE- REML of linear mixed model by
BlUP and BLUE- REML of linear mixed modelBlUP and BLUE- REML of linear mixed model
BlUP and BLUE- REML of linear mixed modelKyusonLim
683 views16 slides
asymptotics of ABC by
asymptotics of ABCasymptotics of ABC
asymptotics of ABCChristian Robert
350 views133 slides
the ABC of ABC by
the ABC of ABCthe ABC of ABC
the ABC of ABCChristian Robert
3.4K views146 slides
Dual Gravitons in AdS4/CFT3 and the Holographic Cotton Tensor by
Dual Gravitons in AdS4/CFT3 and the Holographic Cotton TensorDual Gravitons in AdS4/CFT3 and the Holographic Cotton Tensor
Dual Gravitons in AdS4/CFT3 and the Holographic Cotton TensorSebastian De Haro
243 views37 slides
Bayesian regression intro with r by
Bayesian regression intro with rBayesian regression intro with r
Bayesian regression intro with rJosue Guzman
1.3K views24 slides
ABC short course: model choice chapter by
ABC short course: model choice chapterABC short course: model choice chapter
ABC short course: model choice chapterChristian Robert
3.3K views57 slides

Similar to Chapter 12 Application of Gibbs Sampling in Variance Component Estimation and Prediction of Breeding Value: R. A. Mrode. (2005). Linear Models for Prediction of Animal Breeding Values. CAB International, Oxon, UK. Second Edition. (20)

BlUP and BLUE- REML of linear mixed model by KyusonLim
BlUP and BLUE- REML of linear mixed modelBlUP and BLUE- REML of linear mixed model
BlUP and BLUE- REML of linear mixed model
KyusonLim683 views
Dual Gravitons in AdS4/CFT3 and the Holographic Cotton Tensor by Sebastian De Haro
Dual Gravitons in AdS4/CFT3 and the Holographic Cotton TensorDual Gravitons in AdS4/CFT3 and the Holographic Cotton Tensor
Dual Gravitons in AdS4/CFT3 and the Holographic Cotton Tensor
Sebastian De Haro243 views
Bayesian regression intro with r by Josue Guzman
Bayesian regression intro with rBayesian regression intro with r
Bayesian regression intro with r
Josue Guzman1.3K views
ABC short course: model choice chapter by Christian Robert
ABC short course: model choice chapterABC short course: model choice chapter
ABC short course: model choice chapter
Christian Robert3.3K views
10.11648.j.pamj.20170601.11 by DAVID GIKUNJU
10.11648.j.pamj.20170601.1110.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.11
DAVID GIKUNJU123 views
Fuzzy logic based mrac for a second order system by IAEME Publication
Fuzzy logic based mrac for a second order systemFuzzy logic based mrac for a second order system
Fuzzy logic based mrac for a second order system
IAEME Publication235 views
Fuzzy logic based mrac for a second order system by IAEME Publication
Fuzzy logic based mrac for a second order systemFuzzy logic based mrac for a second order system
Fuzzy logic based mrac for a second order system
IAEME Publication259 views
A new generalized lindley distribution by Alexander Decker
A new generalized lindley distributionA new generalized lindley distribution
A new generalized lindley distribution
Alexander Decker695 views
10th Maths model3 question paper by singarls19
10th Maths model3 question paper10th Maths model3 question paper
10th Maths model3 question paper
singarls191.5K views
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome... by Hareem Aslam
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Hareem Aslam3.3K views
Robust model reference adaptive control for a second order system 2 by IAEME Publication
Robust model reference adaptive control for a second order system 2Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2

Recently uploaded

Future of AR - Facebook Presentation by
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentationssuserb54b561
15 views27 slides
Data Integrity for Banking and Financial Services by
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial ServicesPrecisely
25 views26 slides
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...Bernd Ruecker
40 views69 slides
Network Source of Truth and Infrastructure as Code revisited by
Network Source of Truth and Infrastructure as Code revisitedNetwork Source of Truth and Infrastructure as Code revisited
Network Source of Truth and Infrastructure as Code revisitedNetwork Automation Forum
27 views45 slides
Business Analyst Series 2023 - Week 3 Session 5 by
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5DianaGray10
300 views20 slides
Vertical User Stories by
Vertical User StoriesVertical User Stories
Vertical User StoriesMoisés Armani Ramírez
14 views16 slides

Recently uploaded(20)

Future of AR - Facebook Presentation by ssuserb54b561
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
ssuserb54b56115 views
Data Integrity for Banking and Financial Services by Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely25 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker40 views
Business Analyst Series 2023 - Week 3 Session 5 by DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10300 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi132 views
Voice Logger - Telephony Integration Solution at Aegis by Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma39 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 views
Powerful Google developer tools for immediate impact! (2023-24) by wesley chun
Powerful Google developer tools for immediate impact! (2023-24)Powerful Google developer tools for immediate impact! (2023-24)
Powerful Google developer tools for immediate impact! (2023-24)
wesley chun10 views
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... by Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
Five Things You SHOULD Know About Postman by Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman36 views

Chapter 12 Application of Gibbs Sampling in Variance Component Estimation and Prediction of Breeding Value: R. A. Mrode. (2005). Linear Models for Prediction of Animal Breeding Values. CAB International, Oxon, UK. Second Edition.

  • 1. Chapter 12 Application of Gibbs Sampling in Variance Component Estimation and Prediction of Breeding Value Linear Models for Prediction of Animal Breeding Values R .A. Mrode Gota Morota May 6, 2010 1 / 18
  • 2. Outline Pre Gibbs Sampling Era Gibbs Sampling Gibbs Sampling vs. REML and BLUP 2 / 18
  • 3. Outline Pre Gibbs Sampling Era Gibbs Sampling Gibbs Sampling vs. REML and BLUP 3 / 18
  • 4. Outline Pre Gibbs Sampling Era Gibbs Sampling Gibbs Sampling vs. REML and BLUP 4 / 18
  • 5. Controversy over REML • gives joint modes of variance components rather than marginal modes quadratic loss function = ˆ (yij − yij )2 • not all variance components have equal importance ⇓ variance components of no interest (nuisance paramters) should be integrated out ⇓ only paramters of interest should be maximized in the likelihood 5 / 18
  • 6. VEIL (1990) Variance Estimation from Integrated Likelihood Gianola D, Foulley JL (1990) Variance Estimation from Integrated Likelihood (VEIL). Genet Sel Evol 22, 403-417 Inference is based on the marginal posterior distribtuion of each of the variance components. ⇓ Approximations to the marginal distributions were proposed. 6 / 18
  • 7. Gibbs Sampling Conditional distribution ⇓ Marginal distribution • difficult p (θa , θb , θc , θd )d θb d θc d θd • easy sample from p (θa |θb , θc , θd ) 7 / 18
  • 8. History of Bayesian Analyses Coupled with Gibbs Sampling • Gelfand AE, and Smith AFM (1990): Introduced in statistics • Gelfand et al.(1990): One-way radom effects model • CS.Wang et al. (1993): Univariate mixed linear model using simulated data • CS.Wang et al. (1994): Univariate mixed linear model using field data (litter size) • DA Sorensen et al. (1995) : Threshold models • Jamorozik and Shaeffer (1997): Random Regression Gibbs Sampling It has been applied to a wide range of animal breeding problems. 8 / 18
  • 9. Likelihood Bayes’ theorem: joint posterior distribution ∝ likelihood × priors • Consider the linear model y = XB + Zu + e • Further, e|σ2 ∼ N (0, Iσ2 ) e e • The conditinal distribution which generates the data (likelihood): y|B, u, σ2 ∼ N (XB + Zu, Iσ2 ) e e n ∝ (σ2 )− 2 exp − e (y − XB − Zu) (y − XB − Zu) 2σ2 e (1) 9 / 18
  • 10. Prior Distribution for Location Parameters • Prior for B: p (B) ∝ constant (2) • Prior for u u|Aσ2 ∼ N (0, Aσ2 ) u u q ∝ (σ2 )− 2 exp − u q ∝ (σ2 )− 2 exp − u (u − 0) (u − 0) 2Aσ2 u u A−1 u 2σ2 u (3) 10 / 18
  • 11. Prior Distribution for Scale Parameters • Prior for σ2 u 2 p (σ2 |su , υu ) ∝ (σ2 )− u u υu +2 2 exp − 2 υu su 2σ2 u (4) exp − 2 υe se 2 σ2 e (5) • Prior for σ2 e 2 p (σ2 |se , υe ) ∝ (σ2 )− e e υe +2 2 Scaled inverted χ2 distribution Commoly used for priors of variance components in the Bayesian analyses 11 / 18
  • 12. Joint Posterior Distribution Multiplication of likelihood (1) and priors (4) to (5) 2 2 Joint posterior distribution = p (B, u, σ2 , σ2 |y, su , υu , se , υe ) u e 2 2 ∝ p (y|B, u, σ2 ) p (B) p (u|σ2 ) p (σ2 |su , υu ) p (σ2 |se , υe ) e u u e ∝ (σ2 )− u (σ2 )− e n+υe +2 2 exp − q+υu +2 2 exp − 2 u A−1 u + υu su 2σ2 u 2 (y − XB − Zu) (y − XB − Zu) + υe se 2σ2 e (6) 12 / 18
  • 13. Fully Conditional Distribution for Location Parameters The fully conditional distribution of each parameter is obtained by regarding all other parameters in (6) as known. • B: p (B|u, σ2 , σ2 , y) ∝ exp − e u (y − XB − Zu) (y − XB − Zu) 2σ2 e B|u, σ2 , σ2 , y ∼ N ((X X)−1 X (y − Zu), (X X)−1 σ2 ) e e u (7)    2 −1     2 −1 σe  Z Zi + A  σ    i    e  i σ2 i u (8) • u: ui |B, u−i , σ2 , σ2 , y u e    ˜ ∼ N ui ,   where   q 2 −1    Z Zi + A−1 σe  Z (y − XB −   i ˜ Zj uj ) ui =  i   i σ2 i u j=1,j i 13 / 18
  • 14. Fully Conditional Distribution for Scale Parameters The fully conditional distribution of each parameter is obtained by regarding all other parameters in (6) as known. • σ2 : e p (σ2 |B, u, σ2 , y) ∝ e u (σ2 )− e n+υe +2 2 exp − 2 (y − XB − Zu) (y − XB − Zu) + υe se 2σ2 e (9) 2 ˜2 υe = n + υe , se = [(y − XB − Zu) (y − XB − Zu) + υe se ]/υe ˜ ˜ • σ2 : u p (σ2 |B, u, σ2 , y) ∝ (σ2 )− u e u q+υu +2 2 exp − 2 u A−1 u + υu su 2 σ2 u (10) 2 ˜2 υu = q + υu , su = [u A−1 u + υu su ]/υu ˜ ˜ 14 / 18
  • 15. Sampling • Consider following linear model XT X XT Z B XT y = T ZT X ZT Z + A−1 α u Z y LHS · C = RHS • Iteration Ci |(ELSE) ∼ N RHS[i] − j =1,j i LHS[i, j] · Bj LHS[i, i] , σ2 e LHS[i, i] 2 2 σ2 |(ELSE) ∼ [(y − Xb − Zu)T (y − Xb − Zu) + υe se ] · χ−+υe e n 2 2 σ2 |(ELSE) ∼ [uT A−1 u + υu su ] · χ−+υu a q 15 / 18
  • 16. Inferences from the Gibbs Sampling Output σ2 : σ21 , σ21 , · · · , σ2k , u u u u • Direct inference from samples post mean = post variance = k i =1 σ2i u k k 2 i =1 (σui − post mean)2 k • Density Estimation • Kernel Density Estimation 16 / 18
  • 17. Gibbs Sampling vs. REML and BLUP In practice, we don’t know the variance components. REML → BLUP procedure • does not take into account uncertainty in estimating variance components • estimating variance components are ignored in predicting breeding values • BLUP from the MME is no longer BLUP (empirical BLUP) Gibbs Sampling Able to estimates location paramters and scale paratmers jointly. 17 / 18