Skip to main content
HomeR

Sampling in R

4.3+
43 reviews
Intermediate

Master sampling to get more accurate statistics with less data.

Start Course for Free
4 hours15 videos51 exercises18,045 learnersTrophyStatement of Accomplishment

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.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

Sampling is a cornerstone of inference statistics and hypothesis testing. It's tremendously important in survey analysis and experimental design. This course explains when and why sampling is important, teaches you how to perform common types of sampling, from simple random sampling to more complex methods like stratified and cluster sampling. Later, the course covers estimating population statistics, and quantifying uncertainty in your estimates by generating sampling distributions and bootstrap distributions. Throughout the course, you'll explore real-world datasets on coffee ratings, Spotify songs, and employee attrition.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Certification Available

Data Analyst in R

Go To Track
Certification Available

Associate Data Scientist in R

Go To Track

Statistician in R

Go To Track
  1. 1

    Introduction to Sampling

    Free

    Learn what sampling is and why it is useful, understand the problems caused by convenience sampling, and learn about 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 dplyr
    100 xp
    Simple sampling with base-R
    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
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

In the following Tracks

Certification Available

Data Analyst in R

Go To Track
Certification Available

Associate Data Scientist in R

Go To Track

Statistician in R

Go To Track

In other tracks

Statistics Fundamentals in R

datasets

Coffee ratingsSpotify song attributesEmployee attrition

collaborators

Collaborator's avatar
Dr. Chester Ismay
Richie Cotton HeadshotRichie Cotton

Data Evangelist at DataCamp

Richie is a Data Evangelist at DataCamp. He has been using R since 2004, in the fields of proteomics, debt collection, and chemical health and safety. He has released almost 30 R packages on CRAN and Bioconductor – most famously the assertive suite of packages – as well as creating and contributing to many others. He also has written two books on R programming, Learning R and Testing R Code.
See More

Don’t just take our word for it

*4.3
from 43 reviews
60%
19%
19%
0%
2%
Sort by
  • Julie C.
    2 months

    I did find this course tricky but worthwhile. I'm considering going over it again to really get my head round the concepts behind sampling. This is no criticism of the course or the tutor which are both excellent but because I found the subject new and difficult. This is the beauty of these courses. You can go back over them as often as you need to.

  • Benjamin J.
    2 months

    of the 8 courses so far in the Data Analyst for R track, it was the best.

  • Thashalak A.
    5 months

    Good deliver as usual

  • Nurym S.
    about 1 year

    Insightful

  • Thomas S.
    over 1 year

    Helped me a lot to understand sampling and bootstrapping.

"of the 8 courses so far in the Data Analyst for R track, it was the best."

Benjamin J.

"Good deliver as usual"

Thashalak A.

"Insightful"

Nurym S.

Join over 15 million learners and start Sampling in R 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.