Learn Before
Short Answer

Calculating Divergence Between Distributions

Consider a true probability distribution PP and a model's approximation QQ over three possible outcomes {A, B, C}. The distributions are defined as follows:

  • P={A:0.5,B:0.3,C:0.2}P = \{A: 0.5, B: 0.3, C: 0.2\}
  • Q={A:0.4,B:0.4,C:0.2}Q = \{A: 0.4, B: 0.4, C: 0.2\}

Calculate the divergence from QQ to PP, denoted DKL(PQ)D_{\text{KL}}(P \|\| Q), using the natural logarithm (ln). Provide your answer rounded to three decimal places.

0

1

Updated 2025-10-03

Contributors are:

Who are from:

Tags

Data Science

Foundations of Large Language Models Course

Computing Sciences

Ch.4 Alignment - Foundations of Large Language Models

Foundations of Large Language Models

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science