Professional Documents
Culture Documents
Laboratory 05
Laboratory 05
GADJAH MADA
Hipothesis Testing
Continues Data
Prof. Siswanto Agus Wilopo
Faculty of Medicine, Public Health and Nursing,
Universitas Gadjah Mada,
Yogyakarta
Departement of Biostatistics, Epidemiology and Population Health
Table of Contents
1 Learning Objectives
2 Activities
3 Exercise in Class
Hypothesis Tests: I
Hypothesis Tests II
Hypothesis Tests: III
Exercise with data using stata
4 Homework
5 Output
6 Required Reading
UNIVERSITAS
GADJAH MADA 2 of 32
Learning Objectives
UNIVERSITAS
GADJAH MADA 4 of 32
Activities
2. Homeworks:
1 Critical appraisal on comparing means of two groups
2 Calculating the difference in means between two groups using
parametric and non-parametric
3 Reading and presenting computer outputs on the difference in
means between two groups using parametric and
non-parametric
UNIVERSITAS
GADJAH MADA 5 of 32
Instruction
UNIVERSITAS
GADJAH MADA 6 of 32
Hypothesis Tests: I
UNIVERSITAS
GADJAH MADA 7 of 32
Hypothesis Tests: I
UNIVERSITAS
GADJAH MADA 8 of 32
Hypothesis Tests: I
3. A Type II error is
a) the probability that the null hypothesis is true
b) the probability that the null hypothesis is false
c) made if the null hypothesis is accepted when it is false
d) made if the null hypothesis is rejected when it is true
e) none of the above
UNIVERSITAS
GADJAH MADA 9 of 32
Hypothesis Tests: I
4. The p-value is
a) the probability of the null hypothesis being true
b) the probability of the null hypothesis being false
c) the probability of the test statistic or any more extreme results,
assuming the null hypothesis is true
d) the probability of the test statistic or any more extreme results,
assuming the null hypothesis is false
e) none of the above
UNIVERSITAS
GADJAH MADA 10 of 32
Hypothesis Tests: I
UNIVERSITAS
GADJAH MADA 11 of 32
Hypothesis Tests: I
UNIVERSITAS
GADJAH MADA 12 of 32
Hypothesis Tests: I
UNIVERSITAS
GADJAH MADA 13 of 32
Hypothesis Tests: I
Questions:
a) H0 : µ = 12.50 versus H1 : µ 6=12.50
b) H0 : µ = 14.44 versus H1 : µ = 12.50
c) H0 : µ = 14.44 versus H1 : µ < 14.40
d) H0 : µ = 14.44 versus H1 : µ 6=14.44
e) H0 : µ < 14.44 versus H1 : µ = 14.44
UNIVERSITAS
GADJAH MADA 14 of 32
Hypothesis Tests: II
UNIVERSITAS
GADJAH MADA 15 of 32
Hypothesis Tests: II
1. Questions:
a) State the null hypothesis for determining if the instruction
booklet was effective.
b) State the appropriate alternative hypothesis.
c) The appropriate t-statistic is:
1) Paired t-test
2) 2-sample t-test
d) The degrees of freedom associated with this test statistic are .
UNIVERSITAS
GADJAH MADA 16 of 32
Hypothesis Tests: II
UNIVERSITAS
GADJAH MADA 18 of 32
Hypothesis Tests: II
UNIVERSITAS
GADJAH MADA 20 of 32
Hypothesis Tests: III
Questions
a) State the null hypothesis to test differences between the
treatment and control groups.
b) State the appropriate alternative hypothesis.
c) Using the above results, set up the appropriate test.
UNIVERSITAS
GADJAH MADA 21 of 32
Hypothesis Tests: III
UNIVERSITAS
GADJAH MADA 22 of 32
Hypothesis Tests: III
The students were classified as to whether they were coffee drinkers (those
who usually consumed two cups or more per day) or non-coffee drinkers
(those who usually consumed one or fewer cups per day). The results for 65
non-coffee drinkers and 85 coffee drinkers are given below:
UNIVERSITAS
GADJAH MADA 23 of 32
Hypothesis Tests: III
Questions
a) State the null and alternative hypothesis for determining if the response is
the same among Coffee Drinkers.
b) What is the appropriate statistical procedure to test the null hypothesis in (a)?
c) What are the degrees of freedom associated with the test statistic in (b)?
d) State the null and alternative hypotheses to determine if the caffeine
response is the same between Non-Coffee and Coffee Drinkers.
e) What is the appropriate statistic procedure to test the null hypothesis in (d)?
f) What are the degrees of freedom associated with the test statistic in (e)?
UNIVERSITAS
GADJAH MADA 24 of 32
Hypothesis Tests: III
UNIVERSITAS
GADJAH MADA 25 of 32
Analysis Framingham Data using stata
UNIVERSITAS
GADJAH MADA 26 of 32
Homework
UNIVERSITAS
GADJAH MADA 27 of 32
Homework
UNIVERSITAS
GADJAH MADA 30 of 32
Output of this laboratory exercise
UNIVERSITAS
GADJAH MADA 31 of 32
Required Reading
1 Lecture Materials
2 Hypothesis continues data
UNIVERSITAS
GADJAH MADA 32 of 32