Skip to main content
HomeRHypothesis Testing in R

Hypothesis Testing in R

4.2+
33 reviews
Intermediate

Learn how and when to use hypothesis testing in R, including t-tests, proportion tests, and chi-square tests.

Start Course for Free
4 Hours16 Videos53 Exercises
19,492 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.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies


Course Description

Discover Hypothesis Testing in R

Hypothesis testing lets you ask questions about your datasets and answer them in a statistically rigorous way. In this course, you'll learn how and when to use common tests like t-tests, proportion tests, and chi-square tests.

You'll gain a deep understanding of how they work and the assumptions that underlie them. You'll also learn how different hypothesis tests are related using the ""There is only one test"" framework and use non-parametric tests that let you sidestep the requirements of traditional hypothesis tests.

Learn About T-Tests and Chi-Square Tests

You’ll start by learning why hypothesis testing in R is useful while examining some key concepts as you go. You’ll also learn how t-tests can help you test for differences in means between two groups and how chi-square tests can help you compare observed results with expected results.

Understand the Relationships Between R Hypothesis Tests

As you progress, you’ll discover the relationships between different tests, exploring elements of randomness, independence of observation, and sample sizes.

By the time you finish this course, you’ll have a deeper understanding of hypothesis testing in R and when it’s appropriate to use specific tests on your data.

Throughout the course, you'll explore a Stack Overflow user survey and a dataset of late shipments of medical supplies."
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Introduction to Hypothesis Testing

    Free

    Learn why hypothesis testing is useful, and step through the workflow for a one sample proportion test. In doing so, you'll encounter important concepts like z-scores, p-p-values, and false negative and false positive errors. The Stack Overflow survey and late medical shipments datasets are introduced.

    Play Chapter Now
    Hypothesis tests and z-scores
    50 xp
    Uses of A/B testing
    50 xp
    Calculating the sample mean
    100 xp
    Calculating a z-score
    100 xp
    p-values
    50 xp
    Criminal trials and hypothesis tests
    50 xp
    Left tail, right tail, two tails
    100 xp
    Calculating p-values
    100 xp
    Statistical significance
    50 xp
    Decisions from p-values
    50 xp
    Calculating confidence intervals
    100 xp
    Type I and type II errors
    100 xp

In the following tracks

Associate Data Scientist in RData Analyst with RStatistician with RStatistics Fundamentals with R

Collaborators

Collaborator's avatar
Dr. Chester Ismay

Prerequisites

Sampling in R
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.2
from 33 reviews
55%
21%
18%
3%
3%
Sort by
  • James K.
    7 months

    Very practical presentation, covering the essential ideas and content stripped to bare minimum without compromising on coverage.

  • Deyanira L.
    9 months

    Excellent

  • Nicolas F.
    about 1 year

    Very helpful course that explains the basics of hypothesis testing providing a foundation of completing these research tasks in R. Thank you!

  • Valentino M.
    about 1 year

    Very intuitive, organized, and user-friendly

  • Andrew H.
    about 1 year

    It was hard to follow the instructors dialogue at first - very dry and mono toned yet here I am doing another of his courses where he is much more animated.

"Very practical presentation, covering the essential ideas and content stripped to bare minimum without compromising on coverage."

James K.

"Excellent"

Deyanira L.

"Very helpful course that explains the basics of hypothesis testing providing a foundation of completing these research tasks in R. Thank you!"

Nicolas F.

FAQs

Join over 13 million learners and start Hypothesis Testing 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.