KL Divergence

less than 1 minute read

KL KL

p ( x ) = N ( μ 1 , σ 1 ) q ( x ) = N ( μ 2 , σ 2 ) K L ( p , q ) = p ( x ) log q ( x ) d x + p ( x ) log p ( x ) d x = 1 2 log ( 2 π σ 2 2 ) + σ 1 2 + ( μ 1 μ 2 ) 2 2 σ 2 2 1 2 ( 1 + log 2 π σ 1 2 ) = log σ 2 σ 1 + σ 1 2 + ( μ 1 μ 2 ) 2 2 σ 2 2 . K L ( p , q ) = log σ 2 σ 1 + σ 1 2 + ( μ 1 μ 2 ) 2 2 σ 2 2 1 2