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

Add Expectation notebook #62

Merged
merged 4 commits into from
Mar 17, 2025
Merged

Add Expectation notebook #62

merged 4 commits into from
Mar 17, 2025

Conversation

Haleshot
Copy link
Collaborator

@Haleshot Haleshot commented Mar 13, 2025

📝 Summary

Followed the Expectation chapter from Stanford's "Probability for Computer Scientists" course.

Appropriate markdown + LaTeX used to explain the concept.
Added:

  • Clear definitions and properties of expectation with mathematical notation
  • Step-by-step calculations of expected values for dice rolls and other examples
  • Interactive visualization of how expected values change with distribution parameters
  • Comparison between expectation (mean) and mode with visual explanations

Checkout the notebook here: https://marimo.app/https://github.com/marimo-team/learn/blob/39a7ead9b13a77d3d887cf3ab4bfa6f9b201c0c4/probability/11_expectation.py

📋 Checklist

  • I have included package dependencies in the notebook file using --sandbox
  • If adding a course, include a README.md
  • Keep language direct and simple.

This notebook introduces the concept of expectation in probability, detailing its definition, properties, and applications. It includes interactive visualizations for various probability distributions, calculations for expected values, and demonstrations of key properties such as linearity and the Law of the Unconscious Statistician (LOTUS). The content is structured to enhance understanding of expectation's role in decision-making under uncertainty.
@Haleshot Haleshot added the enhancement New feature or request label Mar 13, 2025
@Haleshot Haleshot requested a review from akshayka March 13, 2025 14:45
@Haleshot Haleshot self-assigned this Mar 13, 2025
@akshayka akshayka merged commit 4957931 into main Mar 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants