Skip to Main Content
Statistical Analysis with R Essentials For Dummies
book

Statistical Analysis with R Essentials For Dummies

by Joseph Schmuller
April 2024
Beginner content levelBeginner
192 pages
3h 18m
English
For Dummies
Content preview from Statistical Analysis with R Essentials For Dummies

Chapter 10

Two-Sample Hypothesis Testing

IN THIS CHAPTER

Bullet Testing differences between means of two samples

Bullet Testing means of paired samples

Bullet Testing means in R

In a variety of fields, the need often arises to compare one sample with another. Sometimes the samples are independent, and sometimes they’re matched in some way. Each sample comes from a separate population. The objective is to decide whether these populations are different from one another.

Usually, this involves tests of hypotheses about population means. You can also test hypotheses about population variances. In this chapter, I show you how to carry out these tests, and how to use R to get the job done.

Hypotheses Built for Two

As in the one-sample case (see Chapter 9), hypothesis testing with two samples starts with a null hypothesis (H0) and an alternative hypothesis (H1). The null hypothesis specifies that any differences you see between the two samples are due strictly to chance. The alternative hypothesis says, in effect, that any differences you see are real and not due to chance.

It’s possible to have a one-tailed test, in which the alternative hypothesis specifies the direction of the difference between the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Statistical Analysis with R For Dummies

Statistical Analysis with R For Dummies

Joseph Schmuller

Publisher Resources

ISBN: 9781394263424Purchase Link