t-Test | Bài giảng số 10 chương 6 học phần Applied statistics | Trường Đại học Quốc tế, Đại học Quốc gia Thành phố Hồ Chí Minh

A t-test on the difference of the averages would conclude that A and B are not different. Sometimes it is not possible to pair the tests, and then the averages of the two treatments must be compared using the independent t-test. Example: Even if water specimens were collected on the same day, there will be differences in storage time, distribution time, water use patterns, and other factors. Tài liệu giúp bạn tham khảo, ôn tập và đạt kết quả cao. Mời bạn đón xem.

Thông tin:
19 trang 1 tháng trước

Bình luận

Vui lòng đăng nhập hoặc đăng ký để gửi bình luận.

t-Test | Bài giảng số 10 chương 6 học phần Applied statistics | Trường Đại học Quốc tế, Đại học Quốc gia Thành phố Hồ Chí Minh

A t-test on the difference of the averages would conclude that A and B are not different. Sometimes it is not possible to pair the tests, and then the averages of the two treatments must be compared using the independent t-test. Example: Even if water specimens were collected on the same day, there will be differences in storage time, distribution time, water use patterns, and other factors. Tài liệu giúp bạn tham khảo, ôn tập và đạt kết quả cao. Mời bạn đón xem.

24 12 lượt tải Tải xuống
APPLIED STATISTICS
COURSE CODE: ENEE1006IU
Lecture 10:
Chapter 6: t-Test
(3 credits: 2 is for lecture, 1 is for lab-work)
Instructor: TRAN THANH TU Email:
tu@hcmiu.edu.vn
tu@hcmiu.edu.vn 1
tu@hcmiu.edu.vn 2
T-TEST
For example, two methods for making a chemical analysis are compared to see if the
new one is equivalent to the older standard method; algae are grown under dierent
condions to study a factor that is thought to smulate growth; etc.
“Do two dierent methods of doing A give dierent results?
“Can we be highly condent that the dierence is posive or negave?
“How large might the dierence be?
One experimental design is to make a series of tests using treatment A and then to
independently make a series of tests using method B. Independent t-test
A second way of designing the experiment is to pair the samples according to me,
technician, batch of material, or other factors that might contribute to a dierence
between the two measurements Paired t-test
tu@hcmiu.edu.vn 3
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
•Two samples are said to be paired when each data point in the rst sample is
matched and related to a unique data point in the second sample.
•Paired experiments are used when it is dicult to control all factors that might
inuence the outcome.
•If these factors cannot be controlled, the experiment is arranged so they are
equally likely to inuence both of the paired observaons. Paired data are
evaluated using the paired t-test •The classical null hypothesis is:
The dierence between the two methods is zero.
tu@hcmiu.edu.vn 4
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
•The paired t-test examines the average of the dierences between paired
observaons
•Let (X
11
, X
21
), (X
12
, X
22
), … , (X
1n
, X
2n
) be a set of n paired observaons where:
1
and are the mean and variance of the populaon represented by X
1
2
and are the mean and variance of the populaon represented by X
2
Dene the dierences between each pair of observaons as D
j
=X
1j
- X
2j
, (j= 1, 2, …,
n)
The D
j
s are assumed to be normally distributed with mean µ
D
and variance
tu@hcmiu.edu.vn 5
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
: the sample average of the n dierences D
1
, D
2
, … , D
n
S
D
: the
sample standard deviaon of these dierences
tu@hcmiu.edu.vn 6
:
:
:
tu@hcmiu.edu.vn 7
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
H
a
:
H
a
:
H
a
:
tu@hcmiu.edu.vn 8
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
End of le 1.
Any quesons?
tu@hcmiu.edu.vn
8
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES
•A t-test on the dierence of the averages would conclude that A and B are not
dierent.
•Somemes it is not possible to pair the tests, and then the averages of the two
treatments must be compared using the independent t-test.
tu@hcmiu.edu.vn 10
Example:
•Even if water specimens were collected on the same day, there will be dierences
in storage me, distribuon me, water use paerns, and other factors.
•Two independently distributed random variables y
1
and y
2
have, respecvely, mean
values η
1
and η
2
and variances and
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES
•The usual statement of the problem is in terms of tesng the null hypothesis that
the dierence in the means is zero:
•but we prefer viewing the problem in terms of the condence interval of the
dierence
tu@hcmiu.edu.vn 11
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES
Usually the variances
esmator of variance:
tu@hcmiu.edu.vn 12
test stasc used
Degree of freedom
for t distribuon: for
the case where
and are
unknown:
Interval esmate of the dierence between two populaon means:
Margin of error
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES
These can be pooled if they are of equal magnitude.
tu@hcmiu.edu.vn 13
Assuming this to be true, the pooled esmate of the variance is:
This is the weighted average of the variances,
where the weights are the degrees of
freedom of each variance.
To construct the (1−α)100% percent condence interval use the t stasc for α/2 and
ν=n
1
+n
2
−2 degrees of freedom
tu@hcmiu.edu.vn 14
6.3. HYPOTHESIS TESTS ABOUT THE DIFFERENCE BETWEEN THE PROPORTIONS OF
TWO POPULATIONS
•Similar applicaon for the proporon:
tu@hcmiu.edu.vn 15
tu@hcmiu.edu.vn 16
6.3. HYPOTHESIS TESTS ABOUT THE DIFFERENCE BETWEEN THE PROPORTIONS OF
TWO POPULATIONS
•This test stasc applies to large sample situaons where n
1
p
1
, n
1
(1 − p
1
), n
2
p
2
,
and n
2
(1 − p
2
) are all greater than or equal to 5.
•Interval esmate of the dierence between two populaon proporons:
l
End of le 2.
Any quesons?
tu@hcmiu.edu.vn
15
EXERCISES
l
tu@hcmiu.edu.vn 16
EXERCISES
| 1/19

Preview text:

APPLIED STATISTICS COURSE CODE: ENEE1006IU Lecture 10: Chapter 6: t-Test
(3 credits: 2 is for lecture, 1 is for lab-work)
Instructor: TRAN THANH TU Email: tttu@hcmiu.edu.vn tttu@hcmiu.edu.vn 1 T-TEST
• For example, two methods for making a chemical analysis are compared to see if the
new one is equivalent to the older standard method; algae are grown under different
conditions to study a factor that is thought to stimulate growth; etc.
“Do two different methods of doing A give different results?”
“Can we be highly confident that the difference is positive or negative?”
“How large might the difference be?”
• One experimental design is to make a series of tests using treatment A and then to
independently make a series of tests using method B. Independent t-test
• A second way of designing the experiment is to pair the samples according to time,
technician, batch of material, or other factors that might contribute to a difference
between the two measurements Paired t-test tttu@hcmiu.edu.vn 2
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
•Two samples are said to be paired when each data point in the first sample is
matched and related to a unique data point in the second sample.
•Paired experiments are used when it is difficult to control all factors that might influence the outcome.
•If these factors cannot be controlled, the experiment is arranged so they are
equally likely to influence both of the paired observations. Paired data are
evaluated using the paired t-test •The classical null hypothesis is:
“The difference between the two methods is zero.” tttu@hcmiu.edu.vn 3
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
•The paired t-test examines the average of the differences between paired observations
•Let (X11, X21), (X12, X22), … , (X1n, X2n) be a set of n paired observations where: -µ1 and
are the mean and variance of the population represented by X1 -µ2 and
are the mean and variance of the population represented by X2
Define the differences between each pair of observations as Dj=X1j - X2j, (j= 1, 2, …, n)
The Dj’s are assumed to be normally distributed with mean µD and variance tttu@hcmiu.edu.vn 4
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES
: the sample average of the n differences D1, D2, … , Dn SD: the
sample standard deviation of these differences tttu@hcmiu.edu.vn 5 : : : tttu@hcmiu.edu.vn 6
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES Ha: Ha: Ha: tttu@hcmiu.edu.vn 7
6.1. PAIRED T-TEST FOR ASSESSING THE AVERAGE OF DIFFERENCES tttu@hcmiu.edu.vn 8 End of file 1. Any questions? tttu@hcmiu.edu.vn 8
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES
•A t-test on the difference of the averages would conclude that A and B are not different.
•Sometimes it is not possible to pair the tests, and then the averages of the two
treatments must be compared using the independent t-test. Example:
•Even if water specimens were collected on the same day, there will be differences
in storage time, distribution time, water use patterns, and other factors.
•Two independently distributed random variables y1 and y2 have, respectively, mean
values η1 and η2 and variances and
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES
•The usual statement of the problem is in terms of testing the null hypothesis that
the difference in the means is zero:
•but we prefer viewing the problem in terms of the confidence interval of the difference tttu@hcmiu.edu.vn 10
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES Usually the variances estimator of variance: tttu@hcmiu.edu.vn 11 test statistic used Degree of freedom for t distribution: for the case where ଵ and ଶ are unknown:
Interval estimate of the difference between two population means: Margin of error
6.2. INDEPENDENT T-TEST FOR ASSESSING THE DIFFERENCE OF TWO AVERAGES
These can be pooled if they are of equal magnitude. tttu@hcmiu.edu.vn 12
Assuming this to be true, the pooled estimate of the variance is:
This is the weighted average of the variances,
where the weights are the degrees of freedom of each variance.
To construct the (1−α)100% percent confidence interval use the t statistic for α/2 and
ν=n1+n2−2 degrees of freedom tttu@hcmiu.edu.vn 13
6.3. HYPOTHESIS TESTS ABOUT THE DIFFERENCE BETWEEN THE PROPORTIONS OF TWO POPULATIONS
•Similar application for the proportion: tttu@hcmiu.edu.vn 14 tttu@hcmiu.edu.vn 15
6.3. HYPOTHESIS TESTS ABOUT THE DIFFERENCE BETWEEN THE PROPORTIONS OF TWO POPULATIONS
•This test statistic applies to large sample situations where n1p1, n1(1 − p1), n2p2,
and n2(1 − p2) are all greater than or equal to 5.
•Interval estimate of the difference between two population proportions: tttu@hcmiu.edu.vn 16 l End of file 2. Any questions? tttu@hcmiu.edu.vn 15 EXERCISES l tttu@hcmiu.edu.vn 16 EXERCISES