Learn Before
Short Answer

Comparing Sequence Probabilities in Log Space

A language model assigns the following conditional probabilities to two short sentences:

  • Sentence A: P("I" | ) = 0.1, P("am" | "I") = 0.5, P("happy" | "am") = 0.2
  • Sentence B: P("You" | ) = 0.2, P("are" | "You") = 0.3, P("sad" | "are") = 0.3

Using the natural logarithm (ln), calculate the total log probability for each sentence. Based on your calculations, which sentence is more probable according to the model? Show your work.

0

1

Updated 2025-10-02

Contributors are:

Who are from:

Tags

Data Science

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science