feat: math chapter done + editorconfig + remove pycache

This commit is contained in:
2025-11-17 02:33:06 +01:00
parent cb3915b405
commit ac1ddfb98b
6 changed files with 93 additions and 47 deletions

View File

@@ -0,0 +1,10 @@
## This module represents the second chapter of the book
## "Essential Math for Data Science" - Thomas Nield
## Chaper 2 - Probability
# 2.0 odds means than an events has twice the probabilities to happen than not
def p_odds_to_probability(o):
return (o / (1 + o))
def p_probability_to_odds(p):
return (p / (1 - p))