L3-Statistics Tests of Sig-3
L3-Statistics Tests of Sig-3
each group
3.0
2.5
2.0
quantitative 1.0
3.0
2.5
2.0
1.5
1.0
• 1- Test of normality
• 2- Shape of the histogram and normal
curve.
• 3- The mean and the standard deviation.
Group Statistics
DIAST.before DIAST.after
1 80.00 84.00
2 84.00 80.00
• Example : effect of 3 81.00 85.00
antihistaminic 4 78.00 88.00
drug on diastolic 5 83.00 87.00
blood pressure 6 70.00 86.00
7 72.00 84.00
8 78.00 84.00
9 75.00 81.00
10 77.00 82.00
Total N 10 10
a.
17 Prof.Mohsen Gadallah - Stat
Using t-test for dependent means
Paired Samples Statistics
Sig.
t df (2-tailed)
Pair 1 DIAST.1 - DIAST.2 -3.678 9 .005
UNDER_WT
Std.
N Mean Deviation Minimum Maximum
Under Weight 9 12.7778 1.3718 10.00 14.50
Normal Weight 9 13.5556 .8457 12.50 15.00
Over weight 9 12.7778 1.4814 10.00 15.00
Total 27 13.0370 1.2704 10.00 15.00
UNDER_WT
Sum of Mean
Squares df Square F Sig.
Between Groups 3.630 2 1.815 1.136 .338
Within Groups 38.333 24 1.597
Total 41.963 26
Over Under
weight .0000 1.000
Weight
Normal Weight
22 Prof.Mohsen Gadallah-.7778
- Stat .204
If we change some data for hemoglobin among
under weight group to be as follows
VAR00001
Std.
N Mean Deviation Std. Error Minimum Maximum
Under Weight 9 11.7222 1.1487 .3829 10.00 13.00
Normal Weight 9 13.5556 .8457 .2819 12.50 15.00
Over weight 9 12.7778 1.4814 .4938 10.00 15.00
Total 27 12.6852 1.3739 .2644 10.00 15.00
ANOVA
VAR00001
Sum of Mean
Squares df Square F Sig.
Between Groups 15.241 2 7.620 5.406 .012
Within Groups 33.833 24 1.410
Total 49.074 26
24 Prof.Mohsen Gadallah - Stat
Multiple Comparisons
ALT.HBV+B ALT.HBV
1 5.00 4.00
2 10.00 80.00
3 100.00 60.00
4 90.00 190.00
5 60.00 50.00
6 200.00 100.00
7 40.00 4.00
8 30.00 30.00
9 12.00 10.00
10 8.00 2.00
Total N 10 10
30 Prof.Mohsen Gadallah - Stat
a.
The distribution of Data for
Group 1
5
2
Std. Dev = 61.22
1
Mean = 55.5
0 N = 10.00
0.0 50.0 100.0 150.0 200.0
25.0 75.0 125.0 175.0
31 Prof.Mohsen Gadallah - Stat
ALT.HBV1
Distribution of Data for Group 2
5
2
Std. Dev = 59.20
1 Mean = 53.0
0 N = 10.00
0.
25
50
75 0
10
12 .0
15 .0
17 0
20 .0
0
.0
.
.0
0
5
0.
5
0.
0
ALT-Before ALT.After
1 5.00 4.00
2 10.00 80.00
3 100.00 60.00
4 90.00 190.00
5 60.00 50.00
6 200.00 100.00
7 40.00 4.00
8 30.00 30.00
9 12.00 10.00
10 8.00 2.00
Total N 10 10
33 Prof.Mohsen Gadallah - Stat
a.
Example of test result (Mann-
Whitney U test
Ranks
Mean Sum of
STUDY.GR N Rank Ranks
ALT.HBV1 Bilh.+HBV 10 11.10 111.00
HBV 10 9.90 99.00
Total 20
Test Statisticsb
ALT.HBV1
Mann-Whitney U 44.000
Wilc ox on W 99.000
Z -.454
As y mp. Sig. (2-tailed) .650
Ex ac t Sig. [2*(1-tailed a
Sig.)] .684
38
PP value
value == 0.15
0.15
Prof.Mohsen Gadallah - Stat
Chi square test (x ) for 2 x 2 table
2
or r x c
Failed Cured
Two
Two Drugs
Drugs Frequency Frequency
were
were used
used 10 40 Drug A
(N=50)
in
in clinical
clinical 4 46 Drug B
trial
trial for
for (N=50)
treatment
treatment ofof
Tonsilitis
Tonsilitis XX22 == 2.99
2.99
PP value
value == 0.084
0.084
39 Prof.Mohsen Gadallah - Stat
Some important points for X2 test
• If the sample size is NOT Large ,
we use X2 with Yates’ correction.
As You see if x2 test is used for
small sample size its value tend
to be a little large , so we use
correction to remove the Bias .
Many statistitions prefer to use
x2 with Yates’s correction.
XX22 == 2.99
2.99 XX22y == 2.08
2.08
y
PP value
value == 0.084
0.084 PStatvalue
41 Prof.Mohsen Gadallah -P value == 0.15
0.15
Fisher Exact Test
IfIf any
any cell
cell with
with
expected
expected value value less
less Failed Cured
than
than 55 ,, xx22test
test even
even Frequency Frequency
with
with correction
correction is is 7 13 Drug A
(N=20)
not
not valid
valid .. So,
So, we
we
use
use alternative
alternative 2 18 Drug B
(N=20)
approach
approach for for only
only
22 xx 22 table
table ,, known
known
as XX22=3.58
=3.58,, pp==0.058
as Fisher’s
Fisher’s exactexact 0.058
test
test Fisher
Fisherexact
exact ppvalue
value=0.13
=0.13
42 Prof.Mohsen Gadallah - Stat
VII Paired qualitative data
Paired 2 x 2 table
IfIf the
thesubjects
subjectsare are After After
measured
measuredtwise twise
and -ve +ve
andthe the
measured
measured pain pain
characteristic
characteristicisis 28 10 +ve pain
nominal
nominalaatest test for
for
paired Before
paired
proportions
proportionsthat that
analyzes
analyzesthe the 10 2 -ve pain
number
numberof of
disagreements
disagreements,,
called McNemar
McNemar=20.83
=20.83,,pp<0.001
<0.001H.sig.
calledthe theMc Mc H.sig.
Nemar
Nemar test
test X 22
43 X =Gadallah
Prof.Mohsen =0.08
0.08- ,Stat
,pp>0.05
>0.05insignificant
insignificant
McNemare= Paired X2
Normal 20 5 2
Sona
r Benign 4 15 1
Malignant 0 5 6
Blood Urea
25
20
15
10
5 No
NoCorrelation
Correlation
0
20 30 40 50 60 70 80 90 100 110 120
No. of cigarettes/day
• Y = a + bX
• Y= dependent variable
• X= Independent Variable
• a= Intercept * b= Slope
• The slope represents the amount the
dependent variable increases with unit
increase in the independent variable.
• The intercept represents the value of the
dependent variable when the independent
variable takes the value zero.
50 Prof.Mohsen Gadallah - Stat
Example for linear line trend
Diastolic Bl. Pr ( Y )
100
90
80
70
60
150 160 170 180 190 200 210 220 230 240
Cholesterol ( X )
51 Prof.Mohsen Gadallah - Stat
Multiple linear regression
• In multiple linear regression we are interested in
the simultaneous relationship between one
dependent variable ( diastolic blood pressure )
and a number of independent variables
( weight ,smoking,cholesterol , .. Etc.)