menu_book Course Curriculum (Statistics) expand_more
Descriptive Statistics
Probability
Distributions
Sampling & Estimation
Hypothesis Testing
Bayes theorem
Learn Bayes theorem in Statistics with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Beginner
Advertisement
statistics-013.py
python
p_disease=.01; sensitivity=.95; false_positive=.05
p_pos=sensitivity*p_disease+false_positive*(1-p_disease)
posterior=sensitivity*p_disease/p_pos
print(posterior)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content