Professional Documents
Culture Documents
The Gaussian kernel or RBF kernel function is widely used, and it requires two parameters: the lenght to control the
smoothness of the function and to control de vertical variation.
1 2
2
− 2 ‖𝑥 𝑖 − 𝑥 𝑗‖
𝜅 ( 𝑥 𝑖 , 𝑥 𝑗 )=𝜎 𝑒 𝑓
2𝑙
For values of and between -5 and 5, and lenght and , the following correlation function in obtained:
The prior predictive distribution, is the Gaussian process (GP) that models the probability of having a value of the objective
function for a any input .
Initially, for na initial value of and , the GP prior is modeled as a multivariate normal distribution fuction, e.i.,
[] ([ ] [ ])
𝑓1 0 𝐾 11 𝐾 12 … 𝐾 1𝑛
𝑓2 0 𝐾 21 𝐾 22 … 𝐾 2𝑛
𝒇= 𝑁 ( 𝛍 ,𝐊 ) = ,
⋮ ⋮ ⋮ ⋮ ⋱ ⋮
𝑓𝑛 0 𝐾𝑛 1 𝐾𝑛 2 … 𝐾 𝑛𝑛 Where
=
The following figure shows five samples taken from the initial prior with a confidence interval of 96%
In this case, the values of and are not updated, but the average verctor and the covariance matrix are updated using the
following expressions:
Ver Fig. 2.9
Prior dist. of the O.F.
Where
𝑝 ( 𝒇 ∗ ∨𝒙 ∗ , 𝒙 , 𝒇 ) =𝑁 ( 𝒇 ∗ ∨𝝁∗ , 𝜮 ∗ )
[ ] ( [ ]) 𝑲 =𝜅 ( 𝒙 , 𝒙 ) Posterior
𝒇 𝑲 𝑲
𝑁 𝟎, ∗ conditional
𝒇∗ 𝑲
𝑇
∗ 𝑲∗ ∗ 𝑲 ∗= 𝜅 ( 𝒙 , 𝒙∗ ) distribution 𝝁∗ = 𝑲 𝑇∗ 𝑲 −1 𝒇
𝑲 ∗ ∗ =𝜅 ( 𝒙 ∗ , 𝒙 ∗ ) 𝜮 ∗= 𝑲 ∗ ∗ − 𝑲 𝑇∗ 𝑲 −1 𝑲 ∗ ∗
Posterior dist. of the O.F.
Using this technique for 5 given points, the following the posterior predictive distribution is obatained (showing 5 samples),
without noise (left) and with noise S/N = 10 (right)
The values for the hyperparameters of the kernel function of and , can be further optimized based on the characteristics of
the observed data. To do that, we can maximize the joint log-likelihood of the marginal likelihood of the observations, i.e.,
^
𝜽=arg max { 𝑝 ( 𝒇 ∨ 𝒙 , 𝜽 ) }
𝜽
1
1
𝑇 −1
− ( 𝒇 − 𝝁 ) 𝑲 ( 𝒇 − 𝝁)
2
𝑝 ( 𝒇 ∨𝒙 , 𝜽 ) = 𝑒
√ ( 2 𝜋 ) | 𝑲|
2
^
{
1 𝑇 −1 𝑛 1
𝜽=arg max − 𝒇 𝑲 𝒇 − log 2 𝜋 − log | 𝑲|
𝜽 2 2 2 }
Which using a simple minimization method (gradine descendant, for example) fits the values for and , resulting in...
𝜎 ∗𝑓 =0.702281
𝑙∗ =1.384861