Skip to content

Add probability axioms notebook#31

Merged
akshayka merged 4 commits intomainfrom
haleshot-02_axioms
Feb 14, 2025
Merged

Add probability axioms notebook#31
akshayka merged 4 commits intomainfrom
haleshot-02_axioms

Conversation

@Haleshot
Copy link
Copy Markdown
Contributor

@Haleshot Haleshot commented Feb 12, 2025

📝 Summary

Referred to Definition of Probability chapter and drafted a notebook for axioms with 1 interactive element showcasing the same. Contains:

  • Appropriate LaTeX formulae (for the 3 axioms).
  • Emphasis on keeping it simple (yet a little intuitive/interactive).

Sticking with the "testing"/practice section at the end with markdown dropdowns; referring to this comment.

TODO:

  • Change the phrasing of the 01_sets.py notebook which currently says:
    "In the next lesson, we'll define probability from the ground up, using sets."
    Either change the phrasing, or accommodate sets in this notebook and also define probability.
    This would require incorporating the entire chapter hyperlinked above (Events & experiments, Defn of Prob, etc.).

📋 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.

@Haleshot Haleshot self-assigned this Feb 12, 2025
@Haleshot Haleshot mentioned this pull request Feb 12, 2025
4 tasks
@Haleshot Haleshot changed the title Add probability axioms notebook with interactive visualization Add probability axioms notebook Feb 12, 2025
@Haleshot Haleshot changed the title Add probability axioms notebook Add probability axioms notebook Feb 12, 2025
@Haleshot Haleshot requested a review from akshayka February 12, 2025 16:28
Copy link
Copy Markdown
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great notebook! A few comments but otherwise great. Main feedback is to be very explicit when introducing new concepts. Nice work :)



@app.cell(hide_code=True)
def _(event, mo, np, plt):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this example! Nice :) The only thing is I don't understand the y-axis ticks, why do they go from 0 to 1? They don't seem to represent probabilities. Maybe just remove the y ticks?

Copy link
Copy Markdown
Contributor Author

@Haleshot Haleshot Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally wanted them for a layout sense (since I was playing around with stack and layouts). Removed them now.

Haleshot and others added 2 commits February 13, 2025 13:42
Co-authored-by: Akshay Agrawal <akshay@marimo.io>
@akshayka akshayka merged commit cdca786 into main Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants