Skip to main content

Sampling in Python

4.4+
47 reviews
Intermediate

Learn to draw conclusions from limited data using Python and statistics. This course covers everything from random sampling to stratified and cluster sampling.

Start Course for Free
4 Hours15 Videos51 Exercises
19,154 Learners

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies


Course Description

Sampling in Python is the cornerstone of inference statistics and hypothesis testing. It's a powerful skill used in survey analysis and experimental design to draw conclusions without surveying an entire population. In this Sampling in Python course, you’ll discover when to use sampling and how to perform common types of sampling—from simple random sampling to more complex methods like stratified and cluster sampling. Using real-world datasets, including coffee ratings, Spotify songs, and employee attrition, you’ll learn to estimate population statistics and quantify uncertainty in your estimates by generating sampling distributions and bootstrap distributions.
  1. 1

    Introduction to Sampling

    Free

    Learn what sampling is and why it is so powerful. You’ll also learn about the problems caused by convenience sampling and the differences between true randomness and pseudo-randomness.

    Play Chapter Now
    Sampling and point estimates
    50 xp
    Reasons for sampling
    50 xp
    Simple sampling with pandas
    100 xp
    Simple sampling and calculating with NumPy
    100 xp
    Convenience sampling
    50 xp
    Are findings from the sample generalizable?
    100 xp
    Are these findings generalizable?
    100 xp
    Pseudo-random number generation
    50 xp
    Generating random numbers
    100 xp
    Understanding random seeds
    100 xp

In the following tracks

Data Analyst with PythonData Scientist with PythonData Scientist Professional with PythonStatistics Fundamentals with Python

Collaborators

Collaborator's avatar
Dr. Chester Ismay
Collaborator's avatar
Amy Peterson
James Chapman HeadshotJames Chapman

Curriculum Manager, DataCamp

James is a Curriculum Manager at DataCamp. He has a Master's degree in Physics and Astronomy from Durham University, where he specialized in quasar detection and tutored Math and English. He joined DataCamp as a learner in 2018, and the data skills learned on DataCamp were quickly integrated into his scientific projects. In his spare time, he enjoys restoring retro toys and electronics.

Follow James on LinkedIn
See More

Don’t just take our word for it

*4.4
from 47 reviews
70%
13%
11%
2%
4%
Sort by
  • Sue D.
    26 days

    The course is very interesting! The instructor is outstanding! The AI assistant is very impressive!

  • Dániel K.
    about 1 month

    'Sampling in Python' is a very interesting course, the course material is detailed and comprehensible even for someone inexperienced in probability.

  • Tony F.
    about 1 month

    A very good course, it gives you the necessary basis to get started in statistics.

  • Michael C.
    about 2 months

    Course appeared to be complete and with an appropriate level of rigor for me. Teacher was obviously of great quality. Needs to have an associated practice module. Thanks.

  • Muhammad A.
    2 months

    This is a good and important course. I think it would be better if some theoratical knowlege is added more but it may be biased because of my strong STEM background.

"The course is very interesting! The instructor is outstanding! The AI assistant is very impressive!"

Sue D.

"'Sampling in Python' is a very interesting course, the course material is detailed and comprehensible even for someone inexperienced in probability."

Dániel K.

"A very good course, it gives you the necessary basis to get started in statistics."

Tony F.

Join over 12 million learners and start Sampling in Python today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.