Download as pdf or txt
Download as pdf or txt
You are on page 1of 30

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 (1.4.1.1.1)
O z0.005 = Quantile Normal 0, 1 , 1 K0.005
z0.005 = 2.575829304 (1.4.1.1.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 (1.6.1.1.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

You might also like