MTH-161D | Spring 2025 | University of Portland
February 12, 2025
These slides are derived from Diez et al. (2012).
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
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.
The guiding principle of statistics is statistical thinking.
Statistical Thinking in the Data Science Life Cycle
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?
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?
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?
\(\star\) Key Idea: Probability bridges the gap between sample data and population conclusions.
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.
\(\star\) Key Idea: The p-value quantifies how surprising the sample data is under the assumption that the null hypothesis is true.
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.
.pdf
file.