Overview

The logic of hypothesis testing and confidence intervals

This week we will cover the logic of consider the logic of hypothesis testing and type 1 and type 2 errors. We will also find out what the sampling distribution of the mean and the standard error are, and how to calculate confidence intervals.

A cute population with a normal distribution with two samples, one which happens to have at mean at the low end of the population and one at the high end. The population is saying 'yes, I'm still sure I birthed both of you'. Because these samples are relatively rare - would happen less than 5% of the time - we would conclude they did not come from this population. That would be making a type 1 error.

Artwork by Horst (2023): “type 1 error”

Two cute populations with a normal distribution with very little overlap. There are two samples, one which happens to have at mean at the low end of one population and and the other at the high end of the other population so that the two samples are close togther. Deciding these two samples were from the same population would be making a type 2 error.

Artwork by Horst (2023): “type 2 error”

Learning objectives

The successful student will be able to:

  • demonstrate the process of hypothesis testing with an example

  • explain type 1 and type 2 errors

  • define the sampling distribution of the mean and the standard error

  • explain what a confidence interval is

  • calculate confidence intervals for large and small samples

Instructions

  1. Prepare

    1. 📖 Read The logic of hyothesis testing
    2. 📖 Read Confidence Intervals
  2. Workshop

    1. 💻 Remind yourself how to import files
    2. 💻 Calculate confidence intervals on large
    3. 💻 Calculate confidence intervals on small samples.
  3. Consolidate

    1. 💻 Calculate confidence intervals for each group in a data set

References

Horst, Allison. 2023. “Data Science Illustrations.” https://allisonhorst.com/allison-horst.