Lecture 9 - Parametric Statistics (Teaching)
Lecture 9 - Parametric Statistics (Teaching)
Learning outcomes
Parametric statistics At the end of this lecture, students should be able
to:
Inference for population(s) - Mean & Proportion • Interpret Z-test & t-test
• Interpret odd ratio
• Compare single population proportion (Chi-square
test)
Department of Biomedical Sciences
• Compare two population proportions (Fisher exact
tests)
Faculty of Medicine
• Compare two population means (independent and
MAHSA University
paired t-tests)
• Compare means of more than 2 groups (ANOVA)
1 2
3. Calculate the value of the test statistic • Z- test : variance known, sample size big (n >30)
t- test : variance unknown, sample size small
4. Compare the value of the test statistic to
values from a known probability distribution
• T- test is frequently used in research/ clinical
5. Interpret the p
p--value and draw conclusion trial.
3 4
1
8/31/2015
INDEPENDENT SAMPLES T-
T-TEST
Independent t-test
Assumptions: • Example 1:
- In the population of interest the variable is The body weights between two groups of
normally distributed. student were recorded and presented in the
- The variances of the 2 groups are the same following table.
Weight (kg)
Group A 55, 50, 48, 53, 49, 51,60, 55
Group B 52, 48, 48, 53, 45, 62, 62,61
• Conclusion:
p> α, do not reject Ho. The test result is
not significant. There is not enough evidence
that the mean body weight between two
groups of student is different.
9 10
2
8/31/2015
• p-value = 0.104
CI = -2.639 < µd < 19.039
• Conclusion:
p> α, do not reject Ho. The test result is not significant. There
is not enough evidence that the exercise will help
in reducing the blood pressure.
13 14
One-
One-Way ANOVA of scores One-
One-Way ANOVA of Scores
x1 = x2 = x3
n=6
n=6 n=6 n=6
Mean=4
Mean= 4.22 Mean=2.01 Mean=0.167 Use SPSS One-
One-Way ANOVA to
carry out this test
17 18
3
8/31/2015
Assumptions of 1-Way
Results of ANOVA
ANOVA
1. Standard deviations are similar
ANOVA partitions variation into Within
2. Test variable (scores) are approx. and Between group components
normally distributed
Results in F-
F-statistic – compared with
If assumptions are not met, use non-
non- values in F-
F-tables
parametric equivalent Kruskal-
Kruskal-Wallis
F = 108.6, with 2 and 15 df, p<0.001
test
19 20
The groups differ significantly and it ANOVA useful if number of groups with
continuous summary in each
is clear the Fat group contributes most
to energy score with a mean = 4.22 SPSS does all pairwise group comparisons
adjusted for multiple testing
Further pair-
pair-wise comparisons can be
made (3 possible) using multiple Note that ANOVA is just a form of linear
comparisons test e.g. Bonferroni or regression
Tukey post hoc tests 21 22
TESTS OF INDEPENDENCE
• To test whether two criteria of classification are
independent . For example socioeconomic status
Analysis of Frequency Data and area of residence of people in a city are
independent.
An Introduction to the Chi-
Chi-Square • We divide our sample according to status, low,
medium and high incomes etc. and the same
Distribution samples is categorized according to urban, rural or
suburban and slums etc.
• Put the first criterion in columns equal in number to
classification of 1st criteria ( Socioeconomic status)
and the 2nd in rows, where the no. of rows equal to
the no. of categories of 2nd criteria (areas of cities).
23 24
24
4
8/31/2015
25 26
25
Total N .1 N .2 N .3 …… N .c N
e=ij
N
Text Book : Basic Concepts and 27 28
Methodology for the Health Sciences 27 28
Chi--square Test
Chi Example
• After the calculations of expected frequency, The researcher are interested to determine that
Prepare a table for expected frequencies and use Chi-
Chi- preconception use of folic acid and race are
square independent. The data is:
( − )
2 Use ofFrequencies
Observed Folic total
Table Yes no
Expected frequencies Total
χ = ∑ [ oi ei ]
2 k Acid
Table White (282)(559)/636 (354)(559)/636 559
i =1
Yes No
ei =247.86 =311.14
Where summation is for all values of rxc = k cells. White 260 299 559 Black (282)(56)/636 (354)(559) 56
Black 15 41 56 =
• D.F.: the degrees of freedom for using the table are (r-
(r- Other 7 14 21 =24.83 31.17
)(c-1) for α level of significance
1)(c- Others (282)((21) 21
• Note that the test is always one-
one-sided. 21x354/636
=9.31 =11.69
5
8/31/2015
(14 − 11 . 69 ) / 11 . 69 = 9 . 091
2
+ ..... +
31 32
31 32
cld bc 33
OR / 2
34
33
6
8/31/2015
37 38
37 38
39 40
7
8/31/2015
other brand
N
18
N
20.0
Residual
-2.0
• p-value = (0.617)
same brand 82 80.0 2.0
Total 100
Test Statistics
• Conclusion:
brand
p> α, do not reject Ho, There is not enough evidence
Chi-Square .250a to conclude less than 20% of the customers take
df
Asymp. Sig.
1
.617
another brand of food supplement. Thus the result
a. 0 cells (.0%) have expected frequencies less than Does not support the company’s claim.
5. The minimum expected cell frequency is
20.0.
43 44
made blinded evaluations of pairs of cola drinks. For Observed N Expected N Residual
Coke 29 24.5 4.5
49 comparisons of Coke and Pepsi, Coke was Pepsi 20 24.5 -4.5
Total 49
preferred 29 times . In the populations that this
sample represent, is the strong evidence that a Test Statistics
47 48
8
8/31/2015
51 52
• p-value = 0.235
Unordered categories – Nominal
• CI = -0.09< p1-p2 < 0.02 - Chi
Chi--squared test for association
9
8/31/2015
Q &A
Thank you
55
10