SlideShare a Scribd company logo
1 of 18
Download to read offline
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

More Related Content

What's hot

S4.1 Genomics-assisted breeding for maize improvement
S4.1  Genomics-assisted breeding for maize improvementS4.1  Genomics-assisted breeding for maize improvement
S4.1 Genomics-assisted breeding for maize improvementCIMMYT
 
Report- Genome wide association studies.
Report- Genome wide association studies.Report- Genome wide association studies.
Report- Genome wide association studies.Varsha Gayatonde
 
Accelerating crop genetic gains with genomic selection
Accelerating crop genetic gains with genomic selectionAccelerating crop genetic gains with genomic selection
Accelerating crop genetic gains with genomic selectionViolinaBharali
 
Genomic Selection & Precision Phenotyping
Genomic Selection & Precision PhenotypingGenomic Selection & Precision Phenotyping
Genomic Selection & Precision PhenotypingCIMMYT
 
Association mapping, GWAS, Mapping, natural population mapping
Association mapping, GWAS, Mapping, natural population mappingAssociation mapping, GWAS, Mapping, natural population mapping
Association mapping, GWAS, Mapping, natural population mappingMahesh Biradar
 
An Overview of Genomic Selection and Fertility
An Overview of Genomic Selection and FertilityAn Overview of Genomic Selection and Fertility
An Overview of Genomic Selection and FertilityDAIReXNET
 
BlUP and BLUE- REML of linear mixed model
BlUP and BLUE- REML of linear mixed modelBlUP and BLUE- REML of linear mixed model
BlUP and BLUE- REML of linear mixed modelKyusonLim
 
Modern cytogenetic tools in crop improvement
Modern cytogenetic tools in crop improvementModern cytogenetic tools in crop improvement
Modern cytogenetic tools in crop improvementShreyas A
 
Genome wide association studies seminar
Genome wide association studies seminarGenome wide association studies seminar
Genome wide association studies seminarVarsha Gayatonde
 
Association mapping for improvement of agronomic traits in rice
Association mapping  for improvement of agronomic traits in riceAssociation mapping  for improvement of agronomic traits in rice
Association mapping for improvement of agronomic traits in riceSopan Zuge
 
Ammi model for stability analysis
Ammi model for stability analysisAmmi model for stability analysis
Ammi model for stability analysisBalaji Thorat
 
What is comparative genomics
What is comparative genomicsWhat is comparative genomics
What is comparative genomicsUsman Arshad
 
Mapping population
Mapping populationMapping population
Mapping populationNivethitha T
 
Association mapping
Association mappingAssociation mapping
Association mappingNivethitha T
 
Lecture 6 candidate gene association full
Lecture 6 candidate gene association fullLecture 6 candidate gene association full
Lecture 6 candidate gene association fullLekki Frazier-Wood
 
QUANTITATIVE INHERITANCE SMG
QUANTITATIVE INHERITANCE    SMGQUANTITATIVE INHERITANCE    SMG
QUANTITATIVE INHERITANCE SMGsajigeorge64
 
Back to Basics: Using GWAS to Drive Discovery for Complex Diseases
Back to Basics: Using GWAS to Drive Discovery for Complex DiseasesBack to Basics: Using GWAS to Drive Discovery for Complex Diseases
Back to Basics: Using GWAS to Drive Discovery for Complex DiseasesGolden Helix Inc
 

What's hot (20)

S4.1 Genomics-assisted breeding for maize improvement
S4.1  Genomics-assisted breeding for maize improvementS4.1  Genomics-assisted breeding for maize improvement
S4.1 Genomics-assisted breeding for maize improvement
 
Report- Genome wide association studies.
Report- Genome wide association studies.Report- Genome wide association studies.
Report- Genome wide association studies.
 
Accelerating crop genetic gains with genomic selection
Accelerating crop genetic gains with genomic selectionAccelerating crop genetic gains with genomic selection
Accelerating crop genetic gains with genomic selection
 
Genomic Selection & Precision Phenotyping
Genomic Selection & Precision PhenotypingGenomic Selection & Precision Phenotyping
Genomic Selection & Precision Phenotyping
 
Association mapping, GWAS, Mapping, natural population mapping
Association mapping, GWAS, Mapping, natural population mappingAssociation mapping, GWAS, Mapping, natural population mapping
Association mapping, GWAS, Mapping, natural population mapping
 
An Overview of Genomic Selection and Fertility
An Overview of Genomic Selection and FertilityAn Overview of Genomic Selection and Fertility
An Overview of Genomic Selection and Fertility
 
BlUP and BLUE- REML of linear mixed model
BlUP and BLUE- REML of linear mixed modelBlUP and BLUE- REML of linear mixed model
BlUP and BLUE- REML of linear mixed model
 
Modern cytogenetic tools in crop improvement
Modern cytogenetic tools in crop improvementModern cytogenetic tools in crop improvement
Modern cytogenetic tools in crop improvement
 
Genome wide association studies seminar
Genome wide association studies seminarGenome wide association studies seminar
Genome wide association studies seminar
 
Association mapping for improvement of agronomic traits in rice
Association mapping  for improvement of agronomic traits in riceAssociation mapping  for improvement of agronomic traits in rice
Association mapping for improvement of agronomic traits in rice
 
marker assisted selection
marker assisted selectionmarker assisted selection
marker assisted selection
 
Comparative genomics
Comparative genomicsComparative genomics
Comparative genomics
 
Ammi model for stability analysis
Ammi model for stability analysisAmmi model for stability analysis
Ammi model for stability analysis
 
What is comparative genomics
What is comparative genomicsWhat is comparative genomics
What is comparative genomics
 
line tester analysis castor
line tester analysis castorline tester analysis castor
line tester analysis castor
 
Mapping population
Mapping populationMapping population
Mapping population
 
Association mapping
Association mappingAssociation mapping
Association mapping
 
Lecture 6 candidate gene association full
Lecture 6 candidate gene association fullLecture 6 candidate gene association full
Lecture 6 candidate gene association full
 
QUANTITATIVE INHERITANCE SMG
QUANTITATIVE INHERITANCE    SMGQUANTITATIVE INHERITANCE    SMG
QUANTITATIVE INHERITANCE SMG
 
Back to Basics: Using GWAS to Drive Discovery for Complex Diseases
Back to Basics: Using GWAS to Drive Discovery for Complex DiseasesBack to Basics: Using GWAS to Drive Discovery for Complex Diseases
Back to Basics: Using GWAS to Drive Discovery for Complex Diseases
 

Viewers also liked

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...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...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...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...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...
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...Gota Morota
 
Whole-genome prediction of complex traits using kernel methods
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
 
How to Become a Thought Leader in Your Niche
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
 

Viewers also liked (6)

Catalogo.pdf meridional
Catalogo.pdf meridionalCatalogo.pdf meridional
Catalogo.pdf meridional
 
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...
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...Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
 
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...
Chapter 14 Computing: McCulloch, CE, Searle SR and Neuhaus, JM 2008. Generali...
 
Whole-genome prediction of complex traits using kernel methods
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
 
How to Become a Thought Leader in Your Niche
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
 

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.

Dual Gravitons in AdS4/CFT3 and the Holographic Cotton Tensor
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
 
Bayesian regression intro with r
Bayesian regression intro with rBayesian regression intro with r
Bayesian regression intro with rJosue Guzman
 
ABC short course: model choice chapter
ABC short course: model choice chapterABC short course: model choice chapter
ABC short course: model choice chapterChristian Robert
 
Workshop in honour of Don Poskitt and Gael Martin
Workshop in honour of Don Poskitt and Gael MartinWorkshop in honour of Don Poskitt and Gael Martin
Workshop in honour of Don Poskitt and Gael MartinChristian Robert
 
10.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.1110.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.11DAVID GIKUNJU
 
Laplace's Demon: seminar #1
Laplace's Demon: seminar #1Laplace's Demon: seminar #1
Laplace's Demon: seminar #1Christian Robert
 
Fuzzy logic based mrac for a second order system
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 systemIAEME Publication
 
Fuzzy logic based mrac for a second order system
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 systemIAEME Publication
 
A new generalized lindley distribution
A new generalized lindley distributionA new generalized lindley distribution
A new generalized lindley distributionAlexander Decker
 
10th Maths model3 question paper
10th Maths model3 question paper10th Maths model3 question paper
10th Maths model3 question papersingarls19
 
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...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...Hareem Aslam
 
Robust model reference adaptive control for a second order system 2
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 2IAEME Publication
 

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)

asymptotics of ABC
asymptotics of ABCasymptotics of ABC
asymptotics of ABC
 
the ABC of ABC
the ABC of ABCthe ABC of ABC
the ABC of ABC
 
Dual Gravitons in AdS4/CFT3 and the Holographic Cotton Tensor
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
 
Bayesian regression intro with r
Bayesian regression intro with rBayesian regression intro with r
Bayesian regression intro with r
 
ABC short course: model choice chapter
ABC short course: model choice chapterABC short course: model choice chapter
ABC short course: model choice chapter
 
Workshop in honour of Don Poskitt and Gael Martin
Workshop in honour of Don Poskitt and Gael MartinWorkshop in honour of Don Poskitt and Gael Martin
Workshop in honour of Don Poskitt and Gael Martin
 
10.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.1110.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.11
 
Laplace's Demon: seminar #1
Laplace's Demon: seminar #1Laplace's Demon: seminar #1
Laplace's Demon: seminar #1
 
Fuzzy logic based mrac for a second order system
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
 
Fuzzy logic based mrac for a second order system
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
 
Complex Numbers 2.pdf
Complex Numbers 2.pdfComplex Numbers 2.pdf
Complex Numbers 2.pdf
 
Bc4103338340
Bc4103338340Bc4103338340
Bc4103338340
 
A new generalized lindley distribution
A new generalized lindley distributionA new generalized lindley distribution
A new generalized lindley distribution
 
PPT SPLTV
PPT SPLTVPPT SPLTV
PPT SPLTV
 
Maths`
Maths`Maths`
Maths`
 
10th Maths model3 question paper
10th Maths model3 question paper10th Maths model3 question paper
10th Maths model3 question paper
 
10th Maths
10th Maths10th Maths
10th Maths
 
MSSISS riBART 20160321
MSSISS riBART 20160321MSSISS riBART 20160321
MSSISS riBART 20160321
 
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...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
 
Robust model reference adaptive control for a second order system 2
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

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

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