menu_book Course Curriculum (Statistics) expand_more
Descriptive Statistics
Probability
Distributions
Sampling & Estimation
Hypothesis Testing
sample space and events
Learn sample space and events in Statistics with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Beginner
statistics-009.py
python
sample_space={(d1,d2) for d1 in range(1,7) for d2 in range(1,7)}
event={o for o in sample_space if sum(o)==7}
print(len(event),len(sample_space),len(event)/len(sample_space))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content