Skip to content

Commit 5571cda

Browse files
authored
fix expectation for densities
1 parent 23d7a5a commit 5571cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_preliminaries/probability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ of the random variable $X$ is defined as
892892

893893
$$E[X] = E_{x \sim P}[x] = \sum_{x} x P(X = x).$$
894894

895-
Likewise, for densities we obtain $E[X] = \int x \;dp(x)$.
895+
Likewise, for densities we obtain $E[X] = \int x p(x) \; dx$.
896896
Sometimes we are interested in the expected value
897897
of some function of $x$.
898898
We can calculate these expectations as

0 commit comments

Comments
 (0)