chapter 6 hypothesis testing what is hypothesis testing
play

Chapter 6 Hypothesis Testing What is Hypothesis Testing? the use - PowerPoint PPT Presentation

Chapter 6 Hypothesis Testing What is Hypothesis Testing? the use of statistical procedures to answer research questions Typical research question (generic): For hypothesis testing, research questions are statements: This is


  1. Chapter 6 Hypothesis Testing

  2. What is Hypothesis Testing? • … the use of statistical procedures to answer research questions • Typical research question (generic): • For hypothesis testing, research questions are statements: • This is the null hypothesis (assumption of “no difference”) • Statistical procedures seek to reject or accept the null hypothesis (details to follow) 2

  3. • Thus far: – You have generated a hypothesis (E.g. The mean of group A is different than the mean of group B) – You have collected some data (samples in group A, samples in group B) – Now you want to know if this data supports your hypothesis – Formally: – H0 (null hypothesis): there is no difference in the mean values of group A and group B – H1 (experimental hypothesis): there is a difference in the mean of group A and group B 3

  4. A practitioner’s point of view • Test statistic – Inferential statistics tell us what is the likelihood that the experimental hypothesis is true à by computing a test statistic. – Typically, if the likelihood of obtaining a value of a test statistic is <0.05, then we can reject the null hypothesis – “…significant effect of …” • Non-significant results – Does not mean that the null hypothesis is true – Interpreted to mean that the results you are getting could be a chance finding • Significant result – Means that the null hypothesis is highly unlikely 4

  5. A practitioner’s point of view • Errors: – Type 1 error (False positive) : we believe that there is an effect when there isn’t one – Type 2 error (False negative) : we believe that there isn’t an effect, when there is one – If p<0.05, then the probability of a Type 1 error is < 5% (alpha level) • Typically, we deal with two types of hypotheses – The mean of group A is different from the mean of group B (one-tailed test) – The mean of group A is larger than the mean of group B (two-tailed test) 5

  6. Statistical Procedures • Two types: – Parametric • Data are assumed to come from a distribution, such as the normal distribution, t -distribution, etc. – Non-parametric • Data are not assumed to come from a distribution – Lots of debate on assumptions testing and what to do if assumptions are not met (avoided here, for the most part) – A reasonable basis for deciding on the most appropriate test is to match the type of test with the measurement scale of the data (next slide) 6

  7. Measurement Scales vs. Statistical Tests Examples M=Male, F=Female Preference ranking Likert scale responses Task completion time • Parametric tests most appropriate for… – Ratio data, interval data • Non-parametric tests most appropriate for… – Ordinal data, nominal data (although limited use for ratio and interval data) 7

  8. Tests Presented Here • Parametric – T-test – Analysis of variance (ANOVA) – Most common statistical procedures in HCI research 8

  9. T-test • Goal: To ascertain if the difference in the means of two groups is significant • Assumptions – Data are normally distributed (you checked for this by looking at the histograms, reporting the mean/median/standard deviation, and by running Shapiro-Wilks) – If data come from different groups of people à Independent t-test (assumes scores are independent and variances in the populations are roughly equal … check your table of descriptive statistics) – If data come from same group of people à dependent t-test • Practitioner’s point of view: When in doubt, consult a book! 9

  10. Example #1 Example #2 “Significant” implies that in all “Not significant” implies that the likelihood the difference observed difference observed is likely due is due to the test conditions to chance. (Method A vs. Method B). File: 06-AnovaDemo.xlsx 13

  11. Example #1 - Details Note: Within-subjects design Error bars show ± 1 standard deviation Note: SD is the square root of the variance 14

  12. Example #2 - Details Error bars show ± 1 standard deviation

  13. T-test: Example in R 16

  14. Example #1 – ANOVA 1 Probability of obtaining the observed data if the null hypothesis is true Thresholds for “p” • .05 Reported as… • .01 • .005 F 1,9 = 9.80, p < .05 • .001 • .0005 • .0001 1 ANOVA table created by StatView (now marketed as JMP , a product of SAS; www.sas.com)

  15. How to Report an F -statistic • Notice in the parentheses – Uppercase for F – Lowercase for p – Italics for F and p – Space both sides of equal sign – Space after comma – Space on both sides of less-than sign – Degrees of freedom are subscript, plain, smaller font – Three significant figures for F statistic – No zero before the decimal point in the p statistic (except in Europe)

  16. Example #2 – ANOVA Probability of obtaining the observed data if the null hypothesis is true Note: For non-significant Reported as… effects, use “ns” if F < 1.0, or “ p > .05” if F > 1.0. F 1,9 = 0.626, ns

  17. Example #2 - Reporting 20

  18. More Than Two Test Conditions 21

  19. ANOVA • There was a significant effect of Test Condition on the dependent variable ( F 3,45 = 4.95, p < .005) • Degrees of freedom – If n is the number of test conditions and m is the number of participants, the degrees of freedom are… – Effect à ( n – 1) – Residual à ( n – 1)( m – 1) – Note: single-factor, within-subjects design 22

  20. Post Hoc Comparisons Tests • A significant F -test means that at least one of the test conditions differed significantly from one other test condition • Does not indicate which test conditions differed significantly from one another • To determine which pairs differ significantly, a post hoc comparisons tests is used • Examples: – Fisher PLSD, Bonferroni/Dunn, Dunnett, Tukey/Kramer, Games/Howell, Student-Newman-Keuls, orthogonal contrasts, Scheffé 23

  21. Between-subjects Designs • Research question: – Do left-handed users and right-handed users differ in the time to complete an interaction task? • The independent variable (handedness) must be assigned between-subjects • Example data set à 25

  22. Summary Data and Chart 26

  23. ANOVA • The difference was not statistically significant ( F 1,14 = 3.78, p > .05) • Degrees of freedom: – Effect à ( n – 1) – Residual à ( m – n ) – Note: single-factor, between-subjects design 27

  24. Two-way ANOVA • An experiment with two independent variables is a two- way design • ANOVA tests for – Two main effects + one interaction effect • Example – Independent variables • Device à D1, D2, D3 (e.g., mouse, stylus, touchpad) • Task à T1, T2 (e.g., point-select, drag-select) – Dependent variable • Task completion time (or something, this isn’t important here) – Both IVs assigned within-subjects – Participants: 12 – Data set (next slide) 28

  25. Data Set 29

  26. Summary Data and Chart 30

  27. ANOVA Can you pull the relevant statistics from this chart and craft statements indicating the outcome of the ANOVA? 31

  28. ANOVA - Reporting 32

  29. Chi-square Test (Nominal Data) • A chi-square test is used to investigate relationships • Relationships between categorical, or nominal-scale, variables representing attributes of people, interaction techniques, systems, etc. • Data organized in a contingency table – cross tabulation containing counts (frequency data) for number of observations in each category • A chi-square test compares the observed values against expected values • Expected values assume “no difference” • Research question: – Do males and females differ in their method of scrolling on desktop systems? (next slide) 36

  30. Chi-square – Example #1 MW = mouse wheel CD = clicking, dragging KB = keyboard 37

  31. Chi-square – Example #1 Significant if it exceeds critical value (next slide) c 2 = 1.462 (See HCI:ERP for calculations) 38

  32. Chi-square Critical Values • Decide in advance on alpha (typically .05) • Degrees of freedom – df = ( r – 1)( c – 1) = (2 – 1)(3 – 1) = 2 – r = number of rows, c = number of columns c 2 = 1.462 (< 5.99 \ not significant) 39

  33. Chi-square – Example #2 • Research question: – Do students, professors, and parents differ in their responses to the question: Students should be allowed to use mobile phones during classroom lectures? • Data: 41

  34. Non-parametric Tests for Ordinal Data • Non-parametric tests used most commonly on ordinal data (ranks) • See HCI:ERP for discussion on limitations • Type of test depends on – Number of conditions à 2 | 3+ – Design à between-subjects | within-subjects 43

  35. Non-parametric – Example #1 • Research question: – Is there a difference in the political leaning of Mac users and PC users? • Method: – 10 Mac users and 10 PC users randomly selected and interviewed – Participants assessed on a 10-point linear scale for political leaning • 1 = very left • 10 = very right • Data (next slide) 44

  36. Data (Example #1) • Means: – 3.7 ( Mac users) – 4.5 ( PC users) • Data suggest PC users more right- leaning, but is the difference statistically significant? • Data are ordinal (at least), \ a non-parametric test is used • Which test? (see below) 3.7 4.5 45

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend