statistics hypotheses test (ii) one-sample tests on the mean and variance professor ke-sheng cheng...
TRANSCRIPT
![Page 1: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/1.jpg)
STATISTICSHYPOTHESES TEST (II)
One-sample testson the mean and variance
Professor Ke-Sheng ChengDepartment of Bioenvironmental Systems Engineering
National Taiwan University
![Page 2: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/2.jpg)
Tests on Mean
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University2
![Page 3: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/3.jpg)
(1) 2 is known
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University3
![Page 4: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/4.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University4
![Page 5: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/5.jpg)
(2) 2 is unknown
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University5
![Page 6: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/6.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University6
![Page 7: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/7.jpg)
(3) 2 is known
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University7
![Page 8: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/8.jpg)
(4) 2 is unknown
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University8
![Page 9: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/9.jpg)
Tests on Variance
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University9
![Page 10: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/10.jpg)
(1) is known
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University10
![Page 11: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/11.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University11
![Page 12: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/12.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University12
![Page 13: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/13.jpg)
(2) is unknown
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University13
![Page 14: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/14.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University14
![Page 15: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/15.jpg)
(3) is known
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University15
![Page 16: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/16.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University16
![Page 17: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/17.jpg)
(4) is unknown
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University17
![Page 18: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/18.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University18
![Page 19: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/19.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University19
![Page 20: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/20.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University20
![Page 21: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/21.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University21
![Page 22: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/22.jpg)
t-test in R
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University22
For a two-tailed test, the p-value in R is twice of the exceedance probability shown in the above figure.
![Page 23: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/23.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University23
![Page 24: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/24.jpg)
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University24
![Page 25: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/25.jpg)
Paired t-test
• The paired t test provides a hypothesis test of the difference between population means for a pair of random samples whose differences are approximately normally distributed.
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University25
![Page 26: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/26.jpg)
• If the population from which paired differences to be analyzed by a paired t test were sampled violate one or more of the paired t test assumptions, the results of the analysis may be incorrect or misleading. For example, if the assumption of independence for the paired differences is violated, then the paired t test is simply not appropriate.
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University26
![Page 27: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/27.jpg)
• Note that the two values that make up each paired difference need not be independent, and in fact are expected to be correlated, such as before and after measurements. If you treat paired data as coming from two independent samples, such as doing an inappropriate two-sample unpaired t test instead of a paired t test, then you may sacrifice power.
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University27
![Page 28: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/28.jpg)
• If the assumption of normality is violated, or outliers are present, then the paired t test may not be the most powerful test available, and this could mean the difference between detecting a true difference or not. A nonparametric test or employing a transformation may result in a more powerful test. For example, if the distribution of the paired differences is not symmetric, a transformation may produce symmetry.
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University28
![Page 29: STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National](https://reader035.vdocuments.site/reader035/viewer/2022062618/55147f42550346b2598b49a9/html5/thumbnails/29.jpg)
• The test statistic is calculated as:
04/10/23Department of Bioenvironmental Systems Engineering
National Taiwan University29
0 if,~ d1 n
d
tnS
dT
0:
0:
1
0
d
d
H
H
0:
0:
1
0
d
d
H
H
Two-sided test One-sided test