Академический Документы
Профессиональный Документы
Культура Документы
1 2
3 4
Two Sided Test One Sided Test
Or two tailed test One tailed test
Looking for differences without specifying whether the It specified a variable is expected to be significantly higher or
difference is numerically higher or lower lower than others.
Example of nondirectional hypotheses (two tailed test) Example of directional hypotheses (one tailed test)
There is a difference of BMI between the men and women. The alternative drug is superior to standard drug.
The mean age of volunteers differ from that of general The IQ of students in class A is higher than the IQ of students in
population class B.
Example of hypothesis, the mean of BMI is different between Example of hypothesis, the mean of BMI is higher in male
male and female teachers. than female teachers
H0: μmale – μfemale = 0 H0: μmale ≤ μfemale
HA: μmale – μfemale ≠ 0 HA: μmale > μfemale
5 6
7 8
Description Example
An statistical test to compare significant difference between A researcher conducted a study to assess the mean difference
the means of two independent groups of normally distributed of BMI level among students by gender in health campus,
data. USM
If the null hypothesis is true, the test statistic is distributed as Research hypothesis:
Student t with (n1 +n2-2) of df. There is a difference of BMI level between
male and female students in health campus,
USM.
9 10
11 12
Step 3: Checking the Assumption Step 3: Checking the assumption
The appropriate test is independent t test 1. Random samples
Data is numerical outcome 2. The two observation groups are
Research method & design
Two independent groups independent
Assumption for independent t test: 3. In each group, the data distribution is normal (or sample
Random samples size >30)
Independent observations o If sample size is more than 30 (n=50), normality can be assumed
In each group, observations are normally distributed (or sample size according to CLT
more than 30) o Check normality using histogram graph
Variance are not different between the two groups (Homogeneity of
variance) 4. Variance are not different between the two groups
If the assumption is not met, a comparable non parametric test
(Homogeneity of variance)
o Check in Levene’s test, SPSS output
should be used (i.e., Mann Whitney test).
13 14
15
Histogram of differences of pre and post weight (or weight loss) 16
Step 4: Perform Statistical Test Step 4: Perform Statistical Test
19 20
Presentation of Results (Table)
Table 1: Variables associated with gender among student in USM (n = 200)
21 22
23 24
Step 1: State the hypotheses Step 2: Set the significance level
Null hypothesis: The significance level is set at 5% (α = 0.05, two tailed test).
There is no mean difference of weight before and after the 95% CI will be applied
program (or the difference is zero) H0: μ(pre) = μ(post)
Alternative hypothesis:
There is a mean difference of weight before and after the
program (or the difference is not zero)
HA: μ(pre) ≠ μ(post)
25 26
27 28
Step 3: Checking the assumption Step 3: Checking the assumption
2
1
2 3
3
3
31 32
Step 5: Interpret the Results Step 5: Interpret the Results
Making decision based on the SPSS output:
Decide whether or not to reject the null hypothesis.
• Compare the p-value with the level of significance set
• Observe whether the 95% CI of mean difference across 0.
We reject the null hypothesis since p-value < 0.001 and 95% CI
Results: does not across 0. Thus, we conclude on alternative hypothesis
t statistic = 12.19, df = 39, p-value < .001
Mean(SD) weight before the program = 94.9 (12.30) kg
Mean (SD) weight after the program = 77.8 (12.02) kg.
Mean weight difference = 17.1 kg
95% CI of mean difference: 14.28, 19.97
33 34
35 36
One-way ANOVA
Ø Any data set has variability
Ø Variability exists within groups…
37 38
39 40
One-way ANOVA test
One-way ANOVA test (Using SPSS)
Example:
Ø There are four assumptions:
A researcher studied the attitudes of diabetes among people with
1. Random samples T2DM. The researcher would like to know whether attitudes toward
study design and method
2. Independent observations diabetes are the same among the three education levels?
§ What hypotheses? Step 1: State the hypotheses
3. Normality of distribution (larger Check using
histogram, Comparing mean attitudes scores among 3 education levels
sample size required) boxplot
H0: There is no difference of mean attitudes scores between the 3
4. Variances are not Levene’s test
groups of education levels (µ1 = µ2 = µ3)
(obtained from HA: There is a difference of mean attitudes scores between the 3
different among groups SPSS’s output) groups of education levels (µ1 ≠ µ2 ≠ µ3)
§ Set α = .05 (two tailed) Step 2: Set the significance level
41 42
Select “descriptive”
1. Is random sampling method applied? √ 5 to get the mean(SD)
1
Checking equal variances
2. Are observations independent? √ 6
5
3. Is sample size big (>30) in each group? If ?? (checked with
histogram)
not, is the data normally distributed? 6
2
4. Are population variances equal among
???
the groups
3 4
Education level
43 44
Notice that the sample size in each group is small (n<30). Therefore, check
the normal distribution of the variable (attitudes score) for each group.
How to Analyse?
ANOVA result is
significant
1 If ANOVA is
significant, we
proceed to post
hoc multiple
comparisons test.
47
3 48
Results Presentation Results Presentation
Step 5: Interpret the results
Example:
Table 1.1
Ø The result from one-way ANOVA test revealed a
Mean differences on attitudes scores among three different level of education
groups significant association between level of education
and attitudes toward diabetes score (p < .001).
Further analysis using post-hoc Tukey test
suggested that all possible 3 pairs of mean
attitudes scores were significantly different.
49 50
Results Presentation
Step 6: Conclude the results
51 52
Pearson Correlation test Correlation – Scatter Plot
Ø Use scatter plot for visual assessment of the linear relationship.
Ø Relationship between two numerical variables
Ø Correlation analysis is used to measure
Ø between two numerical variables (eg height and Linear relationships
weight)
Ø strength (value of r)
Ø direction of the relationship (-ve or +ve linear
relationship)
Ø Only concerned with strength of the relationship
Non-linear/
Ø No causal effect is implied, no prediction curvilinear
relationships
53 54
55 56
Examples of the Correlation Coefficient Examples of the Correlation Coefficient
Perfect positive Perfect negative
correlation, r ≈ 1 correlation, r ≈ -1
No relation, r ≈ 0 Some relation but little “linear”
relationship, r ≈ 0
57 58
(Ref: Colton, T. (1974). Statistics in medicine. Boston: Little Brown & Co.)
59 60
Step 1: State the hypotheses Step 2: Set the significance level
Null hypothesis: The significance level is set at 5% (α = 0.05, two tailed test).
There is no correlation between height and weight among the
students (ρ = 0)
Alternative hypothesis:
There is a correlation between height and weight among the
students (ρ ≠ 0)
61 62
63 64
Step 3: Checking the assumption
Step 4: Perform Statistical Test
2
2
1 3
1
It is linear and
3 reasonably bivariate
distribution.
Select “Pearson 6
correlation coefficient”
4
4
65
5 66 5
67 68
Step 6: Conclusion Presentation of Results (Table)
There is a statistically significant positive Example:
correlation (r = .64, p < .001) between height and Table 1.1
weight among the students. Descriptive Statistics and Correlations ofVariables
69 70