Beruflich Dokumente
Kultur Dokumente
Testing Hypothesis
(z-Test)
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
Testing Hypothesis
1. Formulate the Null (Ho) hypothesis
and Alternative (Ha) hypothesis.
2. Select the level of Significance (α).
3. Determine the test statistic to be used.
4. Define the Area of Rejection.
5. Compute for the values of the
Statistical Test.
6. Draw conclusion.
1. Formulate the Null (Ho) hypothesis
and Alternative (Ha) hypothesis.
Title: Alternative Method and
Traditional Method in Finding Blood
Pressure. A Comparative Study.
Ho: There is no significant difference
between the results from using In symbols
alternative method and traditional Ho: µ1 = µ2
method in finding blood pressure.
Ha: There is a significant difference
between the results from using In symbols
alternative method and traditional Ha: µ1 ≠ µ2
method in finding blood pressure.
Directional – If Ha is >, <, ≥, or ≤.
(One-tailed test)
If Ha then Ho
Non-directional – If Ha is ≠. (Two-
≠ = tailed test)
> ≤
Examples:
If Ha : µ ≠ 234; then it is
< ≥
nondirectional
Critical/Tabular Values of z
α One-tailed Two-tailed
test test
0.10 ±1.28 ±1.645
0.05 ±1.645 ±1.96
0.01 ±2.33 ±2.58
3. Determine the test statistic to be used.
Parametric and Nonparametric Tests
Parametric Test – Rely on
assumptions about the shape of
the distribution, assume Normal Normal
Distribution in the underlying Distribution
population and about the form of means being
parameters (mean, sd) of SYMMETRIC
assumed distribution. and
Nonparametric Tests – Rely on MESOKURTIC
no or few assumptions about the at the same time
shape or parameters of the
population distribution from which
the sample was drawn.
4. Define the Area of Rejection.
5. Compute for the values of the
Statistical Test.
6. Draw conclusion.
-2.58 2.58
Click DATA and look for DATA ANALYSIS
Click Excel Icon
Click Add-Ins
Alpha: 1%
Tail: 2 tailed test
Test Statistic: z-Test
Critical Value: +2.58
Area of Rejection 1.36
Decision:
ACCEPT Ho
-2.58 2.58
Analysis:
Table 2. Comparison of Protoporphyrin Level between
Alcoholics and Non-Alcoholics Population
Variable Mean Diff
CV Comp Decision Remark
α=1% z
Alcoholic 40.03 2.15 2.58 1.36 Accept Not
Non- 37.88 Ho Significant
Alcoholic
Table 2 presents the comparison of protoporphyrin level between
alcoholics and non-alcoholics population . Based on the table, a
difference of 2.15 between the average protoporphyrin level of
alcoholics (x=40.03) and Non-Alcoholics (x=37.88), is proven
statistically not significant since, the computed z of 1.36 is within the
critical value of +2.58 at 1% level of significance. Thus, There is no
significant difference between the protoporphyrin levels in the
alcoholics population and non-alcoholics population. The results may
imply that alcohol consumptions has no effect on the increase or
decrease of protoporphyrin levels, thus………..
Advanced Biostatistics and Quantitative Techniques
Testing Hypothesis
(t-test)
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
T-test - It is a parametric test used to test significant
difference of small sample size.
Using 5% alpha
Solutions: The use of the module does not
Ho: leads to improvement.
1.729
Analysis:
Table 1. Comparison of Achievement Score of Using
Modules
Test Mean Diff CV Comp Decision Remark
(α=5%) t
Pre 18.40 2.05 1.729 3.231 Reject Significant
Post 20.45 Ho
Table 1 presents the comparison of the pretest and posttest
result in using a module. Based on the table, a difference
of 2.05 between the average achievement score of pretest
(x=18.40) and posttest (x=20.45), is proven statistically
significant since, the computed t of 3.231 is greater than
the critical value of 1.729 at 5% level of significance. Thus,
there is strong evidenced that on average, the module leads
to the improvement of achievement. With the results it is
implied that the use of Module……….. Moreover, it
supports the study of Ruiz (2015), he claimed
Example.
A course in Mathematics is taught to 12
students by a usual strategy. A second group
of 10 students was given the same course by
means of strategy x. At the end of the
semester the same examination was given to
each group, below were the results. Test the
hypothesis using 0.01 level of significance.
Usual 82 83 80 81 82 80 82 81 83 82 80 83
Strategy 83 83 84 80 85 87 86 85 83 82
x
Solutions: There is no significant difference… .
Ho: There is a significant difference
between the achievements of
using usual strategy and strategy
Ha: x.
Alpha: 1%
Tail: 2 tailed test
Test Statistic: t-Test
Critical Value: +2.845
Area of Rejection
-3.19
-2.845
2.845 Decision:
REJECT Ho
Analysis: Table 2. Comparison of Mean Scores of Using
Usual and Strategy X
Method Mean Diff CV Comp Decision Remark
(α=5%) t
Usual 81.58 2.22 +2.84 -3.19 Reject Significant
Strategy 5 Ho
Strategy 83.80
X
Testing Hypothesis
(Analysis of Variance)
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
Analysis of Variance (ANOVA)
It is a parametric test used to test the
significant difference of three or more
groups.
a method of testing the equality of three or
more population means by analyzing
sample variations
Case 1 – Equal no. of respondents in each group
Case 2 – Unequal no. of respondents in each
group
Example.
Twelve (12) overweight subjects participated in a study to
compare the weight reducing regiments. Subjects are grouped
according to initial weight and each of the subjects was randomly
assigned to one of the three reducing regiments. At the end of
the experimental period the following weight losses, in pounds
were recorded.
After eliminating differences due to initial weight, do these data
provide sufficient evidence to indicate a difference in regiment
effects? Use 1% level of significance.
Regiment A Regiment B Regiment C
12 14 15
13 14 14
15 11 12
12 10 19
CLICK DATA
INPUT DATA
CLICK
DATA
ANALYSIS
CLICK
ANOVA
SINGLE
FACTOR,
THEN OK
CLICK
REGIMENT A
DATA WILL
APPEAR
DATA WILL
APPEAR
DECISION: ACCEPT
NULL HYPOTHESIS
Solutions: There is no significant difference
in the regiment effect.
Ho: µ1=µ2=µ3
Ha: µ1≠µ ≠µ 2 3
There is a significant difference
in the regiment effect.
Alpha: 1%
Tail: 1 tailed test
Test Statistic: ANOVA
Critical Value: 8.022
Area of Rejection
1.626
Decision:
ACCEPT Ho
8.022
Analysis:
Table 1. Comparison of the Effects of the Regiments
Regiments Mean CV Comp Decision Remark
(α=1%) f
A 13.00 8.022 1.626 Accept Not
B 12.25 Ho Significant
C 15.00
Table 1 presents the comparison of the effects of the three
regiments in losing weights. Based on the table, the
average weight lose of regiment A (x=13.00), Regiment B
(x=12.25) and regiment C (x=15.00), is proven statistically
not significant since, the computed f of 1.626 is less than
the critical value of 8.022 at 1% level of significance. Thus,
there is strong evidenced that the three (3) reducing
regiment have the same effect in the body. With the
results it is implied that……….. Moreover, it supports
the study of Ruiz (2015), he claimed
that………………………
Example.
Consider a 10-year study in which a sample of 15 people
has been observed while using toothpaste #1, #2, and #3,
respectively. Let us assume that the following participants
have been randomly assigned to each of the statement and
that the study has provided the data given in the table
below:
Decision:
REJECT Ho
6.927
Analysis:
Table 1. Comparison of the Acquired Number of Cavities
Toothpaste Mean CV Comp Decision Remark
(α=1%) f
#1 31 6.927 22.558 Reject Ho Significant
#2 18
#3 16
Table 1 presents the comparison of the acquired number of
cavities. Based on the table, the average acquired number
of cavities in using toothpaste #1 (x=31), #2 (x=18) and #3
(x=16), is proven statistically significant since, the
computed f of 22.558 is greater than the critical value of
6.927 at 1% level of significance. Thus, there is strong
evidenced that there is a variation in the effect of the three
(3) toothpaste in preventing cavities. With the results it is
implied that ……….. Moreover, it supports the study of
Ruiz (2015), he claimed that………………………
POSTHOC
Scheffe’s Test - (Posthoc) –This is
used to find out where the differences
lie.
𝒙𝟏 − 𝒙𝟐 𝟐
𝑭′ = = 𝟐𝟔. 𝟎𝟒
Computation 𝒔𝟐𝟐 (𝒏𝟏+ 𝒏𝟐 ൯
𝒏𝟏 𝒏𝟐
n Mean #1 vs #2, Reject Ho,
SIGNIFICANT, thus toothpaste #2
is better than #1
Toothpaste # 1 6 30.33333 𝑥1 − 𝑥3 2
𝐹′ = 2
= 37.53
𝑠2 (𝑛1 + 𝑛3 ሻ
Toothpaste # 2 4 17.25 𝑛1 𝑛3
#1 vs #3, Reject Ho,
SIGNIFICANT, thus #3 is better
Toothpaste # 3 5 15.6 than #1
𝑥2 − 𝑥3 2
𝐹′ = = 0.38
F’critical = (F Crit)(n-1) 𝑠22 (𝑛2 + 𝑛3 ሻ
= (6.927)(2) 𝑛2 𝑛3
= 13.854
#2 vs #3, Accept Ho, NOT
SIGNIFICANT, thus #2 and #3
have the same effect
Advanced Biostatistics and Quantitative Techniques
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
Pearson r (Bivariate - 2 Variables)
- it is a parametric test used in determining
relationship between two set of data.
Qualitative Description of Coefficient of Correlation
r Description
±1.00 Perfect Relationship
±0.91 - ±0.99 Very High Relationship
±0.71 - ±0.90 High Relationship
±0.41 - ±0.70 Moderate Relationship
±0.21 - ±0.40 Low Relationship
±0.01 - ±0.20 Negligible Relationship
0 No Relationship
Remark: -1 ≤ r ≤ 1
Linear Model – Scatter Plot
Positive Negative
No Relationship
Formula
n xy x y
r
n x x n y y
2 2 2 2
df = n - 2
Example.
A study recorded Hours on Letters in Last
the hours per week Cellphone Name
on a cellphone (X) 6 13
and number of 6 5
letters in the last 3 11
name (Y). In the 17 7
right are the data. 19 11
Find if there is a 14 4
correlation between 15 4
the 2 variables at 3 4
5% alpha. 13 8
7 9
Solutions: There is no significant
Ho: ρ = 0 relationship…
Ha: ρ ≠ 0 There is a significant
relationship….
Alpha: 5%
Tail: 2 tailed test
Test Statistic: Pearson r Hours on Letters in Last
Cellphone Name
DF : 8 -0.105 Hours on
Critical Value: +0.632 Cellphone 1
Area of Rejection Letters in Last
Name -0.105198406 1
Decision:
ACCEPT Ho
-0.632 0.632
Analysis:
Table 3. Correlation Between the Hours Spent in Using CP
and Letters in Last Name
Hours Spent
Pearson CV QD Decision Remark
r (α=5%)
Letters in Last
Name -0.105 +0.632 NegR Accept Ho Not Significant
12
10
0
0 2 4 6 8 10 12 14 16 18 20
Advanced Biostatistics and Quantitative Techniques
Spearman Rank
Correlation
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
Spearman Rank (rs)
- it is a NONPARAMETRIC TEST used to find
out if there is a significant relationship between
two variables
Decision:
REJECT Ho
-0.618 0.618
Analysis:
Table 4. Correlation Between the Hours Spent in Studying
and the Grades in English
Hours Spent
rs CV QD Decision Remark
(α=5%)
Grades in Very High
English +0.618 Positive Reject Ho Significant
0.94 Relationship
Testing Hypothesis
(Kruskal Wallis Test)
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
Kruskal Wallis Test (H Test)
A nonparametric test that uses ranks of sample
data from three or more independent populations;
it is to test the significant difference among 3 or
more groups. It is the counterpart of ANOVA.
(Normality of the distribution is not required)
Assumptions
○ 1. We have at least three independent samples, all
of which are randomly selected.
○ 2. Each sample has at least 5 observations.
12 𝑹𝟐𝒊
𝐻= − 𝟑(𝒏 + 𝟏ሻ
𝑛(𝑛 + 1ሻ 𝒏𝒊
5.991
Data Rank
To find H 65
75
1
2
1. Temporarily combine all samples 78 3
into one big sample and assign a 79 4
rank to each sample value. (Sort 80 6
from lowest to highest, and in cases 80 6
of ties, assign each observation the 80 6
mean of the ranks involved.) 85 8.5
85 8.5
2. For each sample, find the sum 88 10.5
of the ranks and find the sample 88 10.5
size. 89 12
3. Calculate H by using results of 90 14
Step 2 and the following: 90 14
90 14
92 16
94 17
95 18
Method A R1 Method B R2 Method C R3
94 17 85 8.5 89 12
88 10.5 88 10.5 78 3
90 14 90 14 75 2
95 18 80 6 65 1
92 16 79 4 80 6
90 14 85 8.5
80 6
𝑅1 = 89.5 𝑅2 = 57.5 𝑅3 = 24
n1=6 n2=7 n3=5
Decision:
REJECT Ho
5.991
Analysis:
Table 1. Comparison of the Examination Scores
of Students in the 3 Methods of Teaching
Method Mean CV Comp Decision Remark
(α=5%) f
A 91.50 5.991 10.46 Reject Ho Significant
B 83.86
C 77.40
Table 1 presents the comparison of the examination scores of
students in the 3 methods of teaching. Based on the table, the
average performance of students in Method A (x=91.50), Method
B (x=83.86) and Method C (x=77.40), is proven statistically
significant, since, the computed H of 10.46 is greater than the
critical value of 5.991 at 5% level of significance. Thus, the null
hypothesis is rejected, therefore, there is a significant difference
in the performance of the students exposed in the different
methods of teaching. Hence, it may be inferred that the method
of teaching used has an effect on the performance of the
students. Moreover, it supports the study of Cruz (2016), she
Advanced Biostatistics and Quantitative Techniques
Chi-Square Test
(Independence and
Homogeneity)
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
Chi-Square Test of Independence
A nonparametric test that test the association
between two variables. (Normality of the
distribution is not required)
Decision:
REJECT Ho
5.991
Analysis: Table 2. Test of Association Between
Type of Crime and Type of Victim
Type of Victim
Chi-Square CV
Type of Value (α=5%) Decision Remark
Crime
REJECT Ho (Significant)
If P-Value < Alpha (Level of Significance)
z-Test: Two Sample for Means DECISION: ACCEPT
(1% Alpha) NULL HYPOTHESIS
ALCOHOLICS NON-ALCOHOLICS
Mean 40.02857143 37.875
Known Variance 46.6563265 47.559375
Observations 35 40
Hypothesized Mean Ho: There is no
significant …
Difference 0
z 1.356078473 Ha: There is a significant
difference between the
P(Z<=z) one-tail 0.087537101 protoporphyrin levels in
the alcoholic population
z Critical one-tail 2.326347874 and non-alcoholic
P(Z<=z) two-tail 0.175074201 population.
(5% Alpha)
Post-Module Pre-Module
Score Score
Mean 20.45 18.4
Variance 16.47105263 9.936842105
Observations 20 20
Pearson Correlation 0.71747704 Ho: The use of
Hypothesized Mean Difference 0 the module does
not…
df 19
Ha: The use of
t Stat 3.231252666
the module leads
P(T<=t) one-tail 0.002197483 to improvement.
t Critical one-tail 1.729132812
P(T<=t) two-tail 0.004394966
t Critical two-tail 2.093024054
Ho: There is no significant difference
in the regiment effect. At 1% alpha
Ha: There is a significant difference
in the regiment effect. At 1% alpha
DECISION: ACCEPT
NULL HYPOTHESIS
Advanced Biostatistics and Quantitative Techniques
Cronbach Alpha
(Reliability Testing)
GRADUATE SCHOOL
Associate Professor DR. Christopher Delino
Cronbach Alpha (α)
Is use to test the Reliability, target
coefficient is 0.72 or higher.
𝒌 σ 𝒔𝟐
𝜶= 𝟏−
𝒌−𝟏 𝒔𝟐𝑻
K – no. of items
σ 𝒔𝟐 - sum of all variance