Stats
Foundations of Confidence Intervals for Population Mean
Recap of Previous Concepts: * Last class concluded finding confidence levels and determining appropriate sample sizes () for proportions. * The current focus is on constructing confidence intervals for the population mean, denoted by the Greek letter .
The T-Distribution: * When dealing with small samples, the population standard deviation () is typically unknown. * In these scenarios, the Student's $t$-distribution is used instead of the standard normal () distribution. * Properties of the $t$-distribution: * The area to the left of a $t$-score is used for lookups. For example, if the area in the right tail is (denoted as ), the area to the left would be . * Lookups require both the cumulative area and the degrees of freedom ().
Assumptions and Requirements: * The sample data must come from a normally distributed population OR the data must be obtained through a simple random sample (SRS) or a randomized experiment. * The sample size () is generally considered small if it is less than (n < 30). * Technically, the sample size should be less than of the population size (), though this is often difficult to verify if the population size is unknown.
Degrees of Freedom (): * Degrees of freedom are defined as one less than the sample size (). * Formula: .
Construction of Confidence Intervals for
Standard Formula for the Confidence Interval: * The interval is defined by the lower and upper bounds centered around the sample mean (). * Lower Bound: * Upper Bound:
Margin of Error (): * The error for the population mean when is unknown is calculated as: * * Where: * is the sample mean. * is the critical value for the given confidence level and degrees of freedom. * is the sample standard deviation (). * is the sample size.
Practical Example: 2014 Toyota Camry MPG
Scenario: Reported miles per gallon (MPG) for owners of 2014 Toyota Camry automobiles. A confidence interval for the mean MPG of all such cars is needed.
Step 1: Identify Parameters: * Sample Size (): . * Degrees of Freedom (): . * Confidence Level: . * Alpha (): . * Alpha over two (): .
Step 2: Lookup Critical Value (): * Using the $t$-distribution table, look for the column where the "Area in Right Tail" is and the row where . * Critical Value: .
Step 3: Calculate Sample Statistics (using a calculator/one-variable stats): * Sample Mean (): . * Sample Standard Deviation (): .
Step 4: Calculate Margin of Error (): * * * Calculated Error: .
Step 5: Determine the Interval: * Lower Bound: * Upper Bound: * Interval: .
Interpretation: We are confident that the true population mean MPG of the 2014 Toyota Camry is between approximately and . This means if we took such samples, approximately of them would contain the true population mean.
Determining Sample Size () for a Mean
Background: When the margin of error () and confidence level are predetermined, you can solve for the necessary sample size.
Derivation: * Starting with the error formula based on the $z$-distribution (): *
Example: Finding Required Sample Size for Camry MPG: * Goal: Estimate mean MPG within margin of error () with confidence. * Given (used to approximate ). * for : (calculated via
InvNorm(0.025)or via formula sheet). * Calculation: * * . * Rounding Rule: Always round up to the nearest whole integer to avoid underestimating the required sample size. * Final Answer: .
Working Backwards: Finding Mean and Error from Bounds
Scenario: You are given a confidence interval with a lower bound of and an upper bound of .
Find Sample Mean (): * The point estimate is the average of the bounds. * .
Find Margin of Error (): * The error is the distance from the mean to either bound. * * Alternatively: .
Verifying Normality
The procedure requires the population to be normally distributed, especially for small samples.
Visual Checks: * Box Plot: Used to check for symmetry and outliers. A box plot might appear slightly left-skewed, but as long as there are no significant outliers, the $t$-interval procedure is generally robust enough to proceed. * Histogram: Used to check the general shape of the distribution.
Using Technology (TI-84 Instructions)
Navigating to the Interval Tool: * Press
STAT, move over toTESTS. * Select8: TInterval(Note: Do not useT-TestorZ-Test, as those are for hypothesis testing in Chapter 10).Two Input Options: 1. Data: Use this if the raw data is already entered into a list (e.g.,
L1). The calculator will compute and automatically. 2. Stats: Use this if you only have summary statistics (, , ).Input Fields for TInterval (Stats mode): * : Enter sample mean. * : Enter sample standard deviation. * : Enter sample size (Note: The calculator asks for , not degrees of freedom). * C-Level: Enter the confidence level as a decimal (e.g., for ).
Note on Accuracy: Manual calculations using table values (which are often rounded) may vary slightly from calculator results (e.g., a manual result of vs. a calculator result of ). Online systems like Pearson can be very picky about these rounding discrepancies.
Additional Example: Employee Ages
Data: employees, Mean age () = , Standard Deviation () = , Confidence Level = .
Manual Setup: * . * . * Look up for : . * Lower Bound: .
Calculator Result: * Input: , , ,
C-Level= . * Output: .
Questions & Discussion
Student Question: Why did we get different results for the interval bounds? * Response: The discrepancy (e.g., vs ) is due to rounding. Manual calculations with table values often introduce rounding error. It is important to check if Pearson or Brightspace assignments specify whether to use table values or technology.
Student Question: Are we finding for the ages problem? * Response: No, the sample size () was already provided. We are constructing the confidence interval for the population mean age.