Confidence Intervals, Sample Size Determination, and Hypothesis Testing
Foundations of Inferential Statistics and Estimation
Core Terminology:
Population (Universe): Consists of all subjects (human or otherwise) that are being studied.
Sample: A group of subjects or subsets selected from a population.
Parameter: A numerical summary of a population (e.g., population mean , population variance , population standard deviation ).
Statistic: A numerical summary of a sample (e.g., sample mean , sample variance , sample standard deviation ).
Inferential Statistics: A branch of statistics that uses methods that take a result from a sample, make decisions, and draw conclusions about a population.
Fundamental Assumptions of Inferential Statistics:
Samples must be randomly selected.
Either the sample size must be greater than or equal to (), or the population must be normally or approximately normally distributed if the sample size is less than ().
Estimation Concepts:
Estimation: The process of estimating the value of a parameter from information obtained from a sample.
Point Estimate: A specific numerical value estimate of a parameter. The best point estimate of the population mean is the sample mean .
Limitation of Point Estimates: Due to sampling error, the sample mean will generally differ from the population mean . There is no way of knowing how close a particular point estimate is to the population mean, creating uncertainty regarding its accuracy.
Interval Estimate: An interval or range of values used to estimate a parameter. An interval estimate may or may not contain the true value of the parameter being estimated.
Confidence Intervals and Confidence Levels:
Confidence Level: The probability that the interval estimate will contain the parameter. Denoted by .
Confidence Interval: A specific interval estimate of a parameter determined by using data obtained from a sample and by using the specific confidence level of the estimate.
Interpretation of the Level of Confidence: Represents the expected proportion of intervals that will contain the true parameter if a large number of different samples are obtained under identical conditions.
Common Confidence Levels: The three most frequently used confidence intervals are , , and .

Confidence Intervals for the Mean When Population Standard Deviation Is Known
Mathematical Framework:
Alpha (): The Greek letter represents the total area in both tails of the standard normal distribution curve.
Tail Area (): Represents the area in each individual tail of the standard normal curve.
Relationship Between and Confidence Level:
The stated confidence level is the percentage equivalent to the decimal value of , and vice versa.
For a confidence interval: , because ().
For a confidence interval: , because ().
For a confidence interval: , because ().
Critical Values (): The critical value (read "zee sub alpha over two") is the boundary value on the standard normal distribution obtained from Table E:
For a confidence interval (, ): (or ).
For a confidence interval (, ): (or ).
For a confidence interval (, ): (or ).
Confidence Interval Formula ( Known):
Expressed as an inequality:
Expressed in interval notation:
Margin of Error ():
Also called the maximum error of the estimate.
Defined as the maximum likely difference between the point estimate of a parameter and the actual value of the parameter.
Formula:
For a specified value such as , of sample means will fall within this error value on either side of the population mean .

Worked Example 1: Cell Phone Battery Lifetime ( Confidence Interval):
Context: A cell phone manufacturer estimates the population mean of battery lifetimes for all phones of their latest model by measuring the continuous video streaming lifetime.
Sample Data:
Sample size:
Sample mean (point estimate):
Sample standard deviation:
Known population standard deviation:
Critical Value: For a confidence level, .
Standard Error Calculation:
Margin of Error Calculation:
Interval Bounds:
Worked Example 2: Cable Breaking Strength ( Confidence Interval):
Context: A manufacturer measures the breaking strength of newly manufactured cables.
Sample Data:
Sample size:
Sample mean:
Known population standard deviation:
Critical Value: For a confidence level (, ), .
Confidence Interval Calculation:
Limits:
Lower Confidence Limit (LCL):
Upper Confidence Limit (UCL):
Determining Minimum Sample Size for Estimating the Population Mean
Mathematical Derivation and Formula:
Derived by solving the margin of error formula for : where is the margin of error, is the population standard deviation, and is the critical value corresponding to the specified confidence level.
Rounding Rule for Sample Size:
If there is any fraction or decimal portion in the resulting answer, round up to the next higher whole number.
Example: If the calculated value is , round up to .
Worked Example 3: River Depth Estimation:
Context: A scientist wishes to estimate the average depth of a river with confidence such that the estimate is accurate within .
Known Parameters:
Margin of error:
Population standard deviation (from previous study):
Confidence level: (, )
Calculation:
Decision: Rounding up to the next whole number yields .
Conclusion: The scientist needs a sample of at least measurements to be confident that the estimate is within of the true mean depth.
Confidence Intervals for the Mean When Population Standard Deviation Is Unknown (Student's t Distribution)
Rationale and Conditions:
When is unknown, it must be estimated using the sample standard deviation .
Using introduces additional variability, particularly when the sample size is small ().
To maintain the true confidence level at the specified value (such as ), critical values larger than those from the standard normal () distribution are required.
These values are derived from the Student's distribution (often called the distribution).
Requirements: Samples must be simple random samples, and the population must be normally or approximately normally distributed (or ).
Characteristics of the Student's Distribution:
Similarities to the Standard Normal Distribution:
Bell-shaped.
Symmetric about the mean.
The mean, median, and mode are equal to and are located at the center of the distribution.
The curve approaches but never touches the horizontal () axis.
Differences from the Standard Normal Distribution:
The variance of the distribution is greater than .
The distribution is a family of curves determined by the degrees of freedom (abbreviated or ), where .
As sample size increases (), the degrees of freedom increase, and the distribution approaches the standard normal distribution.
Confidence Interval Formula ( Unknown):
Expressed as an inequality:
Expressed in interval notation:
Degrees of freedom: .
Table F (Appendix C) lookup procedure:
Top row: Locate the specified confidence level under the row labeled "Confidence Intervals".
Left column: Locate the row corresponding to .
Intersection: Identifies the required critical value .

Worked Example: Finding Critical Value from Table F:
Find for a confidence interval when sample size is .
Degrees of freedom: .
In Table F, locate in the left column and under "Confidence Intervals". The intersection gives .
Probability and Area Computations in the Distribution:
Finding Area Given a Value:
For , area to the right of :
For , area to the right of :
For , symmetric interval probability between and :
For , area to the right of :
Finding a Critical Cutoff Value Given an Area:
For , finding such that :
For , finding such that :
For , finding such that :
For , finding such that :
Unshaded total area: .
Area in each tail: .
Right-tail critical value:
Worked Example: Daily Stock Return Percentages ( Confidence Interval):
Context: A brokerage house records daily return percentages for a stock over a random sample of .
Dataset ( observations):
Summary Statistics:
Sample mean:
Sample standard deviation:
Degrees of freedom:
Critical value for confidence:
Confidence Interval Construction:
Reported Limits: Lower limit is (or ); Upper limit is .
Foundations of Hypothesis Testing
Core Definitions:
Hypothesis: A premise or claim to be tested.
Null Hypothesis (): The value currently accepted for a parameter. It states that there is no difference between a parameter and a specific value.
Alternative Hypothesis (): Also called the research hypothesis; involves the claim to be tested. It states that there is a difference between a parameter and a specific value.
Mathematical property: and are mathematical opposites.
Three Hypothesis Testing Configurations:
Two-Tailed Test (Equal vs. Not Equal):
Left-Tailed Test (Equal vs. Less Than):
Right-Tailed Test (Equal vs. Greater Than):
Hypothesis Formulation Examples:
Drink Machine: Coffee machine designed to discharge a mean of per cup; testing if true mean differs from :
Toy Attention Span: Historical mean attention span is ; testing if modern children have a mean less than .
Clerical Wage: Previous year's mean wage was ; administrator believes this year's mean is greater than last year's mean:
Statistical Testing Decisions and Philosophical Guardrail:
Possible Outcomes:
Reject the null hypothesis ().
Fail to reject (do not reject) the null hypothesis ().
The Acceptance Fallacy: We never "accept" the null hypothesis. Without inspecting the entire population, the true exact parameter value remains unknown. We only state that we do not reject , directly analogous to the legal presumption where a defendant is found "not guilty" rather than proven "innocent".
Statistical Significance: When sample results are improbable under the null hypothesis, the difference is statistically significant, leading to rejection of .
Critical Regions and Critical Values:
Test Value (Test Statistic): Numerical value obtained from a statistical test summarizing sample data relative to the hypothesized parameter:
Critical (Rejection) Region: The set of test values indicating that a significant difference exists and that should be rejected.
Noncritical (Nonrejection) Region: The set of test values indicating that the observed difference was likely due to chance and that should not be rejected.
Critical Value (): The cutoff number separating the critical region from the noncritical region.
Type I and Type II Errors:
Type I Error: Rejecting the null hypothesis when is true.
The level of significance () is chosen directly by the researcher.
Type II Error: Not rejecting the null hypothesis when the alternative hypothesis is true ( is false).
Decision Matrix:
is True and Conclusion is "Do not Reject ": Correct Conclusion.
is True and Conclusion is "Reject ": Type I Error ().
is True and Conclusion is "Do not Reject ": Type II Error ().
is True and Conclusion is "Reject ": Correct Conclusion.
Worked Example: Identifying Hypotheses and Errors in Birth Weights:
Historical mean birth weight is . A scientist tests whether the true mean differs from ( sampled, , ):
If the scientist rejects , she risks committing a Type I error.
If the true mean birth weight is actually , a Type II error would be failing to reject the hypothesis that is equal to when, in fact, is not equal to .
Hypothesis Testing for the Mean Using the Critical Value Method (Z Test)
Assumptions and Criteria for the Test:
The test is applied when , or when the population is normally distributed and is known.
Formula for the test statistic: where is the sample mean, is the hypothesized population mean, is the population standard deviation, and is the sample size.
Standard Normal Critical Values ():
Left-Tailed Test ():
For :
For :
For :
Right-Tailed Test ():
For :
For :
For :
Two-Tailed Test ():
For :
For :
For :

The Five Steps of the Traditional (Critical Value) Method:
Step 1: State the hypotheses and identify the claim.
Step 2: Find the critical value(s) from the appropriate statistical table.
Step 3: Compute the test value (test statistic).
Step 4: Make the decision to reject or not reject the null hypothesis.
Step 5: Summarize the results in the context of the problem.
Worked Example: Critical Value Comparison (Right-Tailed):
Hypotheses: , at .
Given critical value: .
Given test statistic: .
Evaluation: Since , the test statistic lies within the rejection region.
Decision: Reject the null hypothesis.
Worked Example: Restaurant Wait Times ( Test, Critical Value Method):
Context: Historical mean wait time is . Following menu changes, a manager suspects wait times increased. Random sample of customers yields . Known ; .
Step 1: State hypotheses:
Step 2: Critical value for right-tailed test at is .
Step 3: Compute test value:
Step 4: Make decision: Since , the test statistic lies in the rejection region. Reject .
Step 5: Conclusion: There is enough evidence to conclude that the mean wait time is now greater than .
Worked Example: Light Bulb Lifetimes ( Test, Two-Tailed Critical Value Method):
Context: S & J Power reports mean light bulb lifetime of . A consumer advocate tests bulbs, finding . Known . Test at .
Step 1: State hypotheses:
Step 2: Critical values for two-tailed test with ():
Step 3: Compute test statistic:
Step 4: Decision: Since , the test statistic falls in the upper rejection region. Reject .
Step 5: Conclusion: Yes, there is sufficient evidence at the level of significance to conclude that the population mean lifetime differs from .
Hypothesis Testing for the Mean Using the P-Value Method
Definition and Interpretation of -Value:
A -value is the probability of obtaining a sample statistic at least as extreme as the one observed in the data, assuming that the null hypothesis is true.
A smaller -value provides stronger evidence in favor of the alternative hypothesis.
The Decision Rule When Using a -Value:
If , reject the null hypothesis.
If , do not reject the null hypothesis.
The Five Steps of the -Value Method:
Step 1: State the hypotheses and identify the claim.
Step 2: Compute the test value (test statistic).
Step 3: Find the -value corresponding to the test statistic.
Step 4: Make the decision by comparing the -value with .
Step 5: Summarize the results.
Worked Example: Abstract -Value Decision:
Hypotheses: , at .
Given test statistic: .
Given -value: (split as in each tail).
Evaluation: Since the -value () is less than the level of significance (), reject the null hypothesis.
Worked Example: Restaurant Wait Times ( Test, -Value Method):
Context: Mean wait time historical baseline . Sample of customers yields . Population standard deviation is . Tested at .
Step 1: State hypotheses:
Step 2: Calculate test statistic:
Step 3: Calculate -value for a right-tailed test:
Step 4: Compare -value to :
Step 5: Conclusion: Since the -value is less than or equal to , the null hypothesis is rejected. There is enough evidence to conclude that the mean wait time is now greater than .
Worked Example: Adult Blood Sodium Levels ( Test, Two-Tailed -Value Method):
Context: Textbook states mean sodium level is per liter of blood. A medical researcher suspects modern diets alter this level. A sample of adults has . Known . Test at .
Step 1: State hypotheses:
Step 2: Compute test statistic:
Step 3: Compute two-tailed -value:
Step 4: Evaluate against :
Step 5: Conclusion: Yes, there is sufficient evidence to conclude that the population mean adult sodium level differs from that given in the textbook.
Hypothesis Testing for the Mean When Population Standard Deviation Is Unknown (t Test)
Conditions and Formula for the Test:
Employed when is unknown and the population is normally or approximately normally distributed.
Formula for the test value: with degrees of freedom .
Worked Example: Godwit Migration Distance (Critical Value Method):
Context: Literature states godwits migrate between Alaska and New Zealand with mean distance . A researcher claims breeding farther south reduces this distance. A sample of godwits yields with . Tested at .
Hypotheses:
Degrees of Freedom: .
Critical Value: For a left-tailed test at with :
Test Statistic:
Decision: Since , the test statistic falls in the rejection region. Reject .
Conclusion: There is enough evidence to support the claim that the mean distance traveled non-stop by godwits is now less than .
Worked Example: Corporate Email Handling Time (Two-Tailed -Value Method):
Context: Historical baseline indicates employees spend dealing with email. An independent consultant samples employees, finding and . Test at .
Hypotheses:
Degrees of Freedom: .
Test Statistic:
-Value Computation: Since the test is two-tailed and the observed is positive, the -value is twice the upper tail area:
Decision: Since , reject .
Conclusion: There is enough evidence to reject the claim that the mean number of minutes employees spend dealing with email is equal to .
Worked Example: Electronics Manufacturing Completion Time (Left-Tailed -Value Method):
Context: Historic completion time is . Improvements are claimed to reduce time to less than . A random sample of runs yields and . Test at .
Hypotheses and Parameters:
Test Statistic:
-Value Calculation:
Decision: Since the -value () is greater than , do not reject .
Conclusion: No, it cannot be concluded that the mean completion time using the new process is less than .
Worked Example: Coffee Machine Discharge Volume (Two-Tailed -Value Method):
Context: A coin-operated machine is designed to discharge a mean of per cup. A sample of cups yields with . Test at .
Hypotheses and Parameters:
Test Statistic:
-Value Calculation:
Decision: Since , fail to reject .
Conclusion: No, there is not enough evidence to conclude that the mean discharge differs from .