13 - Inference for One and Comparing Two Means
Hypothesis Testing

Alex John Quijano

11/22/2021

Previously on Statistics…

Inference on Single Mean

Today, we will discuss the following:

Baby Weights

Every year, the US releases to the public a large data set containing information on births recorded in the country. This data set has been of interest to medical researchers who are studying the relation between habits and practices of expectant mothers and the birth of their children. We will work with a random sample of 1,000 cases from the data set released in 2014.

The births14 data can be found in the openintro R package.

Four cases from the births14 dataset. The empty cells indicate missing data.
fage mage weeks visits gained weight sex habit
34 34 37 14 28 6.96 male nonsmoker
36 31 41 12 41 8.86 female nonsmoker
37 36 37 10 28 7.51 female nonsmoker
16 38 29 6.19 male nonsmoker

Baby Weights - Smoker vs Non-Smoker (1/4)

We would like to know, is there convincing evidence that newborns from mothers who smoke have a different average birth weight than newborns from mothers who don’t smoke?

Summary statistics for the births14 dataset.
Habit n Mean SD
nonsmoker 867 7.27 1.23
smoker 114 6.68 1.60

Baby Weights - Smoker vs Non-Smoker (2/4)

Conditions:

Since both conditions are satisfied, the difference in sample means may be modeled using a \(t\)-distribution.

Baby Weights - Smoker vs Non-Smoker (3/4)

The top panel represents birth weights for infants whose mothers smoked during pregnancy. The bottom panel represents the birth weights for infants whose mothers who did not smoke during pregnancy.

The top panel represents birth weights for infants whose mothers smoked during pregnancy. The bottom panel represents the birth weights for infants whose mothers who did not smoke during pregnancy.

Length of Gestation - Smoker vs Non-Smoker (4/4)

One Sample t-test

Consider one group (smoking) from the data. It is known that a newborn baby has an average weight of \(7.5\) lbs. We want to test whether the average weight for the smoking group is less than the average using a one sample t-test.

Is the data (smoking group) a convincing evidence to support the claim of the average weight to be less than \(7.5\) lbs?

Hypothesis Statements - One Sample

One Sample t-test (1/2)

One Sample t-test (2/2)

Conclusions:

Two Sample t-test

Summary statistics for the births14 dataset.
Habit n Mean SD
nonsmoker 867 7.27 1.23
smoker 114 6.68 1.60

Is there a difference in weight means between the smoking group and nonsmoking group?

Hypothesis Statements - Two Sample

Two Sample t-test (1/2)

Two Sample t-test (2/2)

Conclusions:

10.10-Minute Activity (1/4)

The problem shown below was taken and slightly modified from your textbook OpenIntro: Introduction to Modern Statistics Section 20.6. Consider the research study described below.

Each year the US Environmental Protection Agency (EPA) releases fuel economy data on cars manufactured in that year. Below are summary statistics on fuel efficiency (in miles/gallon) from random samples of cars with manual and automatic transmissions manufactured in 2021. Do these data provide strong evidence of a difference between the average fuel efficiency of cars with manual and automatic transmissions in terms of their average city mileage? US DOE EPA 2021

CITY Mean SD n
Automatic 17.4 3.44 25
Manual 22.7 4.58 25

10:10

10.10-Minute Activity (2/4)

10.10-Minute Activity (3/4)

10.10-Minute Activity (4/4)

Conclusions:

Summary

Today, we discussed the following:

Next, we will discuss:

In lab, we will work on: