0% found this document useful (0 votes)
19 views30 pages

Statistical Inference for Two Samples

This document summarizes key concepts from Chapter 9 of a statistics textbook, including: 1) Hypothesis tests and confidence intervals for comparing two population means, including the z-test and t-test. 2) Analyzing paired data where two observations are made on each individual, allowing for paired t-tests. 3) Inference on two population proportions using large sample tests and confidence intervals. 4) Worked examples and exercises are provided to illustrate the concepts.

Uploaded by

Trần Vũ
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views30 pages

Statistical Inference for Two Samples

This document summarizes key concepts from Chapter 9 of a statistics textbook, including: 1) Hypothesis tests and confidence intervals for comparing two population means, including the z-test and t-test. 2) Analyzing paired data where two observations are made on each individual, allowing for paired t-tests. 3) Inference on two population proportions using large sample tests and confidence intervals. 4) Worked examples and exercises are provided to illustrate the concepts.

Uploaded by

Trần Vũ
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PROBABILITY AND STATISTICS

Chapter 9: Statistical Inference for Two Samples


(Assoc. Prof. Dr. Nguyen Chanh Tu, DUT)
(From Maple 12)

9.1. zKTests and Confidence Intervals for a Difference


Between Two Population Means
Exam 9.1:

Assumptions and Proposition


O

Hypothesis Tests on the Difference in Means, Variances Known

Exam 9.1 again

Sol
Maple
O with Statistics :
O Pvalue d 2 1 KCDF Normal 0, 1 , 3.66
Pvalue := 0.000252215 ([Link].1)
O z0.005 = Quantile Normal 0, 1 , 1 K0.005
z0.005 = 2.575829304 ([Link].2)

b and the Choice of Sample Size


Exam 9.3 (9.1 again)
O

Large Sample Tests


Exam 9.4

Sol
O 1 KCDF Normal 0, 1 , 3.36
0.0003897124 ([Link].1)
O

Confidence Interval on the Difference in Means, Variances Known


(1-a CI for m1Km2 (2-sided)

Then the CI is given by:


2 2
K K s1 s2
x Ky Gza C
m n
2

Exam 9.5 (home study)

Sample size (2-sided CI)


9.2. The Two-Sample t-Test and Confidence Interval
Theorem

The test
O

Exam 9.7

Sol
O
R
O

Exam 9.6: Confidence Interval


Sol

Pooled t Procedures

_ _
X KY K m1 Km2
Then T = , where
S2p S2p
C
m n
(is called the pooled variance), has t distribution with the degree of freedom df = m Cn K2.

9.3. Analysis of Paired Data


Exam 9.8

Questions: What is different of the sample of this study from previous studies ?
O

Intro
• In Sections 9.1 and 9.2, we considered testing for a difference between two means
1 and 2. That is, either m individuals were selected from population 1 and n different individuals
from population 2, or m individuals (or experimental objects) were given one treatment and
another set of n individuals were given the other treatment.
• In contrast, there are a number of experimental situations in which there is only one set of n
individuals or experimental objects, and two observations are made on each individual or
object, resulting in a natural pairing of values.

The assumptions and Paired t-Tests

R of Exam 9.8
O

Exam 9.9
Sol
O
R
O
O

Confidence Intervals
O

Exam 9.10

Sol
O
R
O

9.4. Inference on Two Population Proportions


Introduction
A Large-Sample Test Procedure

Case p1 = p2
where

O
Exam

Sol
O
O

Type II Error Probabilities and Sample Sizes


Exam
Sol

O
O
O

A Large-Sample Confidence Interval


Exam 9.13
Small-Sample Size (optional)

Maple

HW
9.1
I. 1-4
II. 5-10 al. 2

9.2
I 17-20
II. 21-25 al.2

9.3
I. 36, 37
II. 38-44 al. 2
O
9.4
I. 47-48
II. 49-54 al. 2
O
O

Common questions

Powered by AI

The primary distinction between the two-sample z-test and the two-sample t-test lies in the assumptions about the variance and the sample size. The z-test requires that the population variances are known and usually assumes large sample sizes, typically greater than 30, to approximate normal distribution . In contrast, the t-test is used when the population variances are unknown and is generally applied to smaller sample sizes. It accounts for additional variability and uses the t-distribution, which has heavier tails than the normal distribution, making it more reliable for inference when sample size is small or variance is unknown .

A large-sample test for the equality of two population proportions is used when researchers compare proportions from two independent populations or groups, such as the success rates of two different treatments. The assumptions that must be satisfied include the presumption of normal approximation being valid, which typically requires sufficiently large sample sizes such that the product of the sample size and the proportion (np) for each group is at least 5. This ensures the sampling distribution of the difference in proportions approaches a normal distribution . Additionally, the observed variables should be independent and identically distributed .

The choice of sample size significantly impacts the statistical power and the width of the confidence interval in hypothesis testing. A larger sample size increases the power of the test, which is the probability of correctly rejecting a false null hypothesis . Additionally, larger samples lead to narrower confidence intervals, offering more precise estimates of the population parameter difference. This improvement occurs because larger sample sizes reduce standard error, thus enhancing the test's sensitivity to detect actual effects . Consequently, researchers must balance the desired power and precision with logistical constraints such as time and resource availability when determining sample size .

In situations with small sample sizes, hypothesis tests on the difference in means can be adapted by applying the t-distribution instead of the normal distribution, as it accounts for sample size variability with broader tails . If the assumptions of normality and equality of variances are violated, other methods like the Welch's t-test can be employed. Additionally, non-parametric alternatives such as the Mann-Whitney U test offer robustness to normality and are useful when sample distributions severely differ from the normal . Bootstrapping techniques can also supplement small-sample testing by creating numerous resampled data arrays to compute empirical confidence intervals and test statistics .

When conducting hypothesis tests on two means, variability in sample variance can be addressed through techniques like the pooled variance method for equal variances and the Welch-Satterthwaite approximation for unequal variances. The pooled variance method combines variances from both samples, assuming they are equal, to provide a common estimate, which is then used in the t-test calculations . When variances are unequal, the Welch's t-test is more appropriate as it adjusts degrees of freedom based on sample variance differences, thus allowing for more accurate inference. Additionally, transforming the data to meet variance assumptions or using non-parametric tests can also be effective in managing variance discrepancies .

Assumptions are crucial in ensuring the validity of inferential statistics techniques used to compare two samples, as they underpin the mathematical frameworks these techniques rely on. Key assumptions include normality, or at least approximate normality of the data distribution, the equality (or known difference) of variances, and the independence of samples . Violation of these assumptions can lead to biased estimates, inaccurate confidence intervals, and increased likelihood of Type I and Type II errors. Methods like the Central Limit Theorem justify normality in large samples, but with small samples or significant deviations from assumptions, alternative statistical methods or adjustments must be employed to obtain valid results .

Paired t-tests are used when comparing two related samples or measurements taken from the same group or entity, designed to account for natural correlations between observations . This type of test is preferable in experimental situations where the same individuals or items are measured twice, such as a before-and-after treatment scenario, or when matched-pair designs are implemented to control for variability between units . These setups allow the paired t-test to be more powerful as it removes variability between pairs, focusing solely on the differences within each pair .

Type II errors occur when the test fails to reject a false null hypothesis, potentially due to small sample sizes, low effect size, or high variability among data observations . Mitigation strategies include increasing the sample size to enhance the test's power, reducing variability through improved experimental design, or selecting a larger effect size for detection. Additionally, setting a higher significance level (alpha) can indirectly reduce the Type II error rate, though it raises the risk of a Type I error. Hence, balancing Type I and Type II error rates is crucial when designing statistical tests .

The confidence interval for the difference between two means informs decision-making by providing a range of plausible values for the true difference, which helps researchers assess both statistical and practical significance . It aids in estimating the magnitude of effect and its precision, facilitating decisions about the utility and significance of the treatment or intervention being studied. For instance, a narrow confidence interval suggests a more precise estimate, aiding in definitive decision-making, whereas a wide interval underscores uncertainty requiring further data collection or analysis. CIs also support risk assessment by quantifying the range in which policy or intervention effects could vary, thus guiding strategic planning .

Understanding confidence intervals (CIs) is critical in two-sample hypothesis testing because they provide a range of values that are plausible for the population parameter being estimated, thus reflecting the precision and reliability of the estimate . CIs convey more information than a simple hypothesis test by quantifying the uncertainty around the estimate of the difference between two means. For instance, if a CI does not include zero, it implies statistical significance at the corresponding confidence level, reinforcing the test result. Moreover, CIs help evaluate the practical significance of results, offering insights into the effect size and its variability, which a p-value alone does not provide .

You might also like