Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
C-J-Cundy committed Feb 10, 2023
1 parent 605d504 commit 49dc5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learning/bayesian/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ In both the above situations, the maximum likelihood estimate does not change as

## Example 2

Consider a language model for sentences based on the bag-of-words assumption. A bag of words model has a generative process where a sentence is formed from a sample of words which are metaphorically `pulled out of a bag', i.e. sampled independently. In such a model, the probability of a sentence can be factored as the probability of the words appearing in the sentence, i.e. for a sentence $$S$$ consisting of words $$w_1, ldots, w_n$$, we have
Consider a language model for sentences based on the bag-of-words assumption. A bag of words model has a generative process where a sentence is formed from a sample of words which are metaphorically `pulled out of a bag', i.e. sampled independently. In such a model, the probability of a sentence can be factored as the probability of the words appearing in the sentence, i.e. for a sentence $$S$$ consisting of words $$w_1, \ldots, w_n$$, we have

$$ p(S) = \prod_{i=1}^n p(w_n). $$

Expand Down

0 comments on commit 49dc5e6

Please sign in to comment.