Skip to content
Introduction to Statistics in Python
Run the hidden code cell below to import the data used in this course.
Take Notes
Add notes about the concepts you've learned and code cells with code you want to keep.
Add your notes here
# Add your code snippets here
There are two types of events
- Depenedent events where the outcome of the second event is dependent on the event of the first. This is the case of sampling without replacement.
- Independent events are events where the outcome of the second event is not dependent on the occurence of the first event. This is the case of sampling with replacement.
# sampling with replacement
df.sample(5, replace= True)
# sampling without replacement
df.sample(5)