Inference

Elementary Statistics

MTH-161D | Spring 2025 | University of Portland

February 12, 2025

Objectives

These slides are derived from Diez et al. (2012).

Previously… (1/3)

Descriptive statistics

It involves organizing, summarizing, and presenting data in an informative way. It Focuses on describing and understanding the main features of a dataset.

For Numerical Variables

For Categorical Variables

Previously… (2/3)

Exploratory Analysis

It is the process of analyzing and summarizing datasets to uncover patterns, trends, relationships, and anomalies before inference.

Inference

It is the process of drawing conclusions about a population based on sample data. This involves using data from a sample to make generalizations, predictions, or decisions about a larger group.

Previously… (3/3)

The guiding principle of statistics is statistical thinking.

Statistical Thinking in the Data Science Life Cycle

Statistical Thinking in the Data Science Life Cycle

Toy Example

Suppose you have two coins. Which of the two coins are fair?

What is a fair coin? There are only two possible outcomes of each coin: head or tail, but not both. A fair coin means that if you flip it, the chances of getting a head or tail is equally likely.

\(\dagger\) How would you know which coin is fair if they are “similar” in appearance and weight?

Toy Example: Coin Flips

Flip the coin \(6\) times.

Data:

Sample Proportion of Heads:

\(\dagger\) If we flip the coins more and add it into the totals, will the proportion of heads change?

Toy Example: True vs Sample Proportion

Flip the coin \(16\) times.

Data:

Sample Proportion of Heads:

True Proportion of Heads: We don’t know the true proportion of heads for each coin or which one is fair, but we know a fair coin should yield a 0.50 proportion of heads.

\(\star\) Key Idea: The goal of parameter estimation is to determine the true proportion of heads for coins A and B, accounting for uncertainty from random sampling (coin flips).

\(\dagger\) How many coin flips should you do until you are certain which one is the fair coin?

Probability is the Basis for Inference

\(\star\) Key Idea: Probability bridges the gap between sample data and population conclusions.

Toy Example: Which of the two coins are fair?

Once we estimate the true proportion of heads, we can test which coin is fair through hypothesis testing. We can frame the test in two ways:

Way 1

Way 2:

\(\star\) Key Idea: Hypothesis testing involves two opposing statements: the null hypothesis and the alternative hypothesis, which we aim to test.

The P-Value is a Probability

\(\star\) Key Idea: The p-value quantifies how surprising the sample data is under the assumption that the null hypothesis is true.

Types of Inference

Parameter Estimation Hypothesis Testing
Goal Estimate an unknown population value Assess claims about a population value
Methods Point Estimation: A single value estimate (e.g., sample mean)
Interval Estimation: A range of plausible values (e.g., confidence interval)
State a null and an alternative hypothesis
Compute a test statistic and compare it to a threshold (p-value or critical value)
Key Concept Focuses on precision in estimation (confidence intervals) Focuses on decision-making based on evidence (reject or fail to reject the null hypothesis)

\(\star\) Key Idea: Parameter estimation focuses on finding the best estimate of an unknown population value, while hypothesis testing determines whether there is enough evidence to support or reject a claim about the population.

Activity: Distinguish Between Estimation and Testing

  1. Make sure you have a copy of the W 2/12 Worksheet. This will be handed out physically and it is also digitally available on Moodle.
  2. Work on your worksheet by yourself for 10 minutes. Please read the instructions carefully. Ask questions if anything need clarifications.
  3. Get together with another student.
  4. Discuss your results.
  5. Submit your worksheet on Moodle as a .pdf file.

References

Diez, D. M., Barr, C. D., & Çetinkaya-Rundel, M. (2012). OpenIntro statistics (4th ed.). OpenIntro. https://www.openintro.org/book/os/