Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book 3.3.1: Average vs Expected value #1535

Closed
dimitry-ishenko opened this issue Apr 16, 2024 · 0 comments
Closed

Book 3.3.1: Average vs Expected value #1535

dimitry-ishenko opened this issue Apr 16, 2024 · 0 comments
Milestone

Comments

@dimitry-ishenko
Copy link
Contributor

The two terms—average and expected value—are used somewhat interchangeably in the book (mainly chapters 3.1 and 3.2) even though they are, strictly speaking, two different things. For example, if I have 6-sided die, my expected value is always:

$$E[X] = 1 \cdot \frac 1 6 + 2 \cdot \frac 1 6 + 3 \cdot \frac 1 6 + 4 \cdot \frac 1 6 + 5 \cdot \frac 1 6 + 6 \cdot \frac 1 6 = 3.5$$

But, my average can be anything between 1 and 6. If I roll the die 10 times and get this sequence: 1 1 4 3 6 4 2 6 2 1, my average is:

$$\bar X = \frac {1 + 1 + 4 + 3 + 6 + 4 + 2 + 6 + 2 + 1} {10} = \frac {30} {10} = 3$$

The only thing that links the two values is the Law of Large Numbers, which states that average converges to the expected value as the number of samples increases.

Maybe some mention of the law can be made in the book and a few formulas tweaked where we equal the two.

@hollasch hollasch added this to the v4.0.0 milestone Apr 19, 2024
@hollasch hollasch changed the title [Book 3, Chapters 3.1-3.2] Average vs Expected value Book 3.3.1: Average vs Expected value Apr 19, 2024
@hollasch hollasch modified the milestones: v4.0.0, Backlog, v4.0.1 Jul 22, 2024
@hollasch hollasch assigned hollasch and unassigned hollasch Jul 26, 2024
hollasch added a commit that referenced this issue Aug 23, 2024
hollasch added a commit that referenced this issue Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants