Point Estimates • Error • z-Intervals •t-Intervals
A lot of details are coming your way.
The training wheels are officially off! Concepts are dense, formulas are detailed, and reading carefully is everything.
More Complex Formulas
Deep Reading Required
Rigorous Interpretation
This is what the rest of our semester looks like.
Coming Soon...
Point Estimate ($\bar{x}$) vs. Interval Estimate
Imagine taking many samples. Each sample gives a different interval. Most catch the true mean, but some miss!
Blue intervals contain the true mean. Red intervals miss the true mean.
Remember the normal distribution logic regarding sample means ($\bar{x}$):
Purpose: To find a CI for a population mean, $\mu$.
Assumptions:
1Find Critical Value: For confidence level $1-\alpha$, use the normal table to find $z_{\alpha/2}$.
2Find the Interval: The CI for $\mu$is:
3Interpret: We are $(1-\alpha)\%$confident that the true population mean $\mu$ falls in this interval.
| Sample Size ($n$) | Guideline for Use |
|---|---|
| Small ($n <15$) | Use ONLY when the variable is normally distributed (or very close). |
| Moderate ($15 \le n \le 30$) | Use UNLESS the data contain outliers or the variable is far from normal. |
| Large ($n \ge 30$) | Use essentially without restriction. (Watch out for severe outliers). |
The margin of error for the estimate of $\mu$ is $E$. It is the "plus or minus"part of the interval.
Interval is computed as:$\bar{x}\pm E$
If we want a specific Margin of Error ($E$) at a specific Confidence Level($1-\alpha$), we can solve for $n$:
ALWAYS ROUND UP!
If your calculation gives $n = 41.12$, you must take $n = 42$ to ensure your margin of error requirement is strictly met.
In real life, if we don't know the population mean ($\mu$), we almost certainly don't know the population standard deviation ($\sigma$).
We replace $\sigma$ with our sample standard deviation $s$. The standard normal$z$ is replaced with the $t$-statistic:
Degrees of Freedom (df) = $n -1$
1Critical Value: Find$t_{\alpha/2}$with $df = n-1$.
2Interval: Compute CI:
3Interpret.
NOTE: Exact for normal populations; approx. correct for large samples from nonnormal pops.
Degrees of Freedom ($df = n-1$) determines the shape of the $t$-distribution.
Smaller $df$ means we are less certain, resulting in "fatter tails". We compensate by using wider intervals.
25 different confidence intervals for mean price (samples of 36).Demonstrates how 95% of intervals actually contain true $\mu$.
Sample dataset detailing ages of 50 randomly selected people. Perfect for applying the t-interval with $n \ge 30$.
Losses ($) for $n=25$ offenses. Includes normal probability plots to assess normality before using small-sample procedures.
Normal plots showing visually the difference between original data and data with an outlier removed. Highlights the "Fundamental Principle".
Manual calculation assuming $\sigma$ is known.
# Data & Parameters
data <- c(54, 57, 53, 59, 58)
sigma <- 5 # Population Std Dev is KNOWN
alpha <- 0.05 # For 95% Confidence Level
n <- length(data)
x_bar <- mean(data)
# 1. Critical Value:
# Using qnorm for the normal distribution
z_star <- qnorm(1 - alpha/2)
# 2. Margin of Error
ME <- z_star * (sigma / sqrt(n))
# 3. Report the Interval
z_star
ME
c(x_bar - ME, x_bar + ME)Manual calculation assuming $\sigma$ is UNKNOWN (we use $s$).
# Data & Parameters
data <- c(54, 57, 53, 59, 58)
alpha <- 0.05 # For 95% Confidence Level
n <- length(data)
x_bar <- mean(data)
s <- sd(data) # We calculate Sample Std Dev from data
df <- n - 1 # Degrees of Freedom
# 1. Critical Value:
# Using qt for the t-distribution
t_star <- qt(1 - alpha/2, df)
# 2. Margin of Error
ME <- t_star * (s / sqrt(n))
# 3. Report the Interval
t_star
ME
c(x_bar - ME, x_bar + ME)End of Chapter 8: Confidence Intervals