Human-Computer Interaction
Week 10 (Thursday): Hypothesis Testing - When to use a test?
1
Attendance and Agenda
2
Announcements
3
Good Design, Bad Design Examples
4
3. Experimental Research in HCI
Error bars show
±1 standard deviation
Experimental Research in HCI
6
Scientific Foundation
Experiment Design
Hypothesis Testing
Demo and Assignment 3
General Rules
7
OK to compute.... | Nominal | Ordinal | Interval | Ratio |
frequency distribution | Yes | Yes | Yes | Yes |
median and percentiles | No | Yes | Yes | Yes |
addition or subtraction | No | No | Yes | Yes |
mean or standard deviation | No | No | Yes | Yes |
ratio, or coefficient of variation | No | No | No | Yes |
How Many IVs?
8
Dependent Variable
9
Control Variable
10
Random Variable
11
Confounding Variable
12
Within-subjects, Between-subjects
13
Within-subjects, Between-subjects
14
Within-subjects
Between-subjects
Latin Squares
15
2 x 2
4 x 4
3 x 3
5 x 5
Balanced Latin Square
16
4 x 4
6 x 6
17
Letters Only
Keyboard
Letters + Word Prediction
Keyboard
= LO
18
18
= LO
Longitudinal Study – Results1
19
1 MacKenzie, I. S., Kober, H., Smith, D., Jones, T., & Skepner, E. (2001). LetterWise: Prefix-based disambiguation for mobile text entry. Proceedings of the ACM Symposium on User Interface Software and Technology - UIST 2001, 111-120, New York: ACM.
Cost-Benefit Trade-offs
20
Hypothesis Testing
21
Sarah not being picked on the first day = ⅘ = 80%
Five weeks in a row = ⅘ * ⅘ * ⅘ * ⅘ * ⅘ = 0.32 = 32%
Twelve weeks in a row = (⅘)^12 = 0.044… 4.4% something is fishy
What is Hypothesis Testing?
22
Parametric vs. Non-parametric Tests
23
Statistical Procedures
24
Measurement Scales vs. Statistical Tests
25
Tests Presented Here
26
Analysis of Variance
27
Why Analyse the Variance?
28
ANOVA Test OR F-test
29
F-statistic Explained
30
10
12
18
24
36
11
14
19
23
38
12
13
17
25
37
Most of the differences are due to people and the drink did not make much of a difference
F-statistic Explained
31
29
29
30
31
31
17
18
19
19
20
10
11
12
12
13
Are the differences still due to people?
F-statistic Explained
32
F-statistic Explained
33
29
30
31
31
29
28
29
27
30
29
25
28
29
27
29
The result of an ANOVA shows F(2, 12) = 4.27, p = 0.04
Degrees of Freedom
F(b,w) = …
b is the degrees of freedom for variance between group
w is the degree of freedom for variance within groups
b = number of groups - 1
w = total number of observations - number of groups
34
Null Hypothesis and Alternative Hypothesis
35
36
Example #1
Example #2
“Significant” implies that in all likelihood the difference observed is due to the test conditions (Method A vs. Method B).
“Not significant” implies that the difference observed is likely due to chance.
Example #1 - Details
37
Error bars show
±1 standard deviation
Note: SD is the square root of the variance
Note: Within-subjects design
Example #1 – ANOVA1
1 ANOVA table created by StatView (now marketed as JMP, a product of SAS; www.sas.com)
Probability of obtaining the observed data if the null hypothesis is true
Reported as…
F1,9 = 9.80, p < .05
Thresholds for “p”
How to Report an F-statistic
Example #2 - Details
Error bars show
±1 standard deviation
File: anova-ex2.txt
Example #2 – ANOVA
Reported as…
F1,9 = 0.626, ns
Probability of obtaining the observed data if the null hypothesis is true
Note: For non-significant effects, use “ns” if F < 1.0, or “p > .05” if F > 1.0.
Example #2 - Reporting
42
What if there are more conditions?
43
A
B
C
D
More Than Two Test Conditions
44
ANOVA
45
Post Hoc Comparisons Tests
46
Scheffé Post Hoc Comparisons
47
Between-subjects Designs
48
File: betweensubjects.txt
Summary Data and Chart
49
ANOVA
50
Two-way ANOVA
51
Data Set
52
Summary Data and Chart
53
ANOVA
54
Can you pull the relevant statistics from this chart and craft statements indicating the outcome of the ANOVA?
ANOVA - Reporting
55
Chi-square Test (Nominal Data)
56
Chi-square – Example #1
57
MW = mouse wheel
CD = clicking, dragging
KB = keyboard
Chi-square – Example #1
58
χ2 = 1.462
Significant if it exceeds critical value �(next slide)
Chi-square Critical Values
59
χ2(2) = 1.462 (< 5.99 ∴not significant)
ChiSquareGUI Software
60
Demo
Chi-square – Example #2
61
File: chisquare-ex2.txt
Chi-square – Example #2
62
1 = students, 2 = teachers, 3 = parents
Non-parametric Tests for Ordinal Data
63
Non-parametric – Example #1
64
Data (Example #1)
65
3.7 4.5
(column means)
Mann Whitney U Test1
66
Test statistic: U
Normalized z (calculated from U)
p (probability of the observed data, given the null hypothesis)
Corrected for ties
Conclusion:
The null hypothesis remains tenable: No difference in the political leaning of Mac users and PC users (U = 31.0, p > .05)
1 Output table created by StatView (now marketed as JMP, a product of SAS; www.sas.com)
MannWhitneyUGUI Software
67
Demo
Non-parametric – Example #2
68
Data (Example #2)
69
6.4 3.7
(column means)
Wilcoxon Signed-Rank Test
70
Test statistic: Normalized z score
p (probability of the observed data, given the null hypothesis)
Conclusion:
The null hypothesis is rejected: Media player A has more “cool appeal” than media player B �(z = -2.254, df = 1, p < .05).
WilcoxonSignedRankGUI Software
71
Demo
Non-parametric – Example #3
72
Data (Example #3)
73
7.1 4.0 2.9
(column means)
Kruskal-Wallis Test
74
Test statistic: H (follows chi-square distribution)
p (probability of the observed data, given the null hypothesis)
Conclusion:
The null hypothesis is rejected: There is an age difference in the acceptance of the new GPS device.�(χ2 = 9.605, df = 2, p < .01).
KruskalWallisGUI Software
75
Demo
Post Hoc Comparisons
76
1 = 20-29 yrs, 2 = 30-39 yrs, 3 = 40-49 yrs
Non-parametric – Example #4
77
Data (Example #4)
78
71.0 68.1 60.9 69.8
(column means)
Friedman Test
79
Test statistic: H (follows chi-square distribution)
p (probability of the observed data, given the null hypothesis)
Conclusion:
The null hypothesis is rejected: There is a difference in the quality of results provided by the search interfaces (χ2 = 8.692, df = 3, p < .05).
FriedmanGUI Software
80
Demo
Post Hoc Comparisons
81
1 = interface A, 2 = interface B, 3 = interface C, interface D
Points of Discussion
82
Controversy: Likert Data
83
Controversy: Parametric vs. Non-parametric
84
Statistical Tests Cheat Sheet
85
Inherited from my advisor
Will be shared on Canvas
Attendance & Next Time
86