1 / 77

Experimental Design and Analysis

Learn about people, data, variables, and hypotheses in experiments, analyze statistical tests and the null hypothesis. Understand how to make general statements about populations based on sample data.

kingjoseph
Download Presentation

Experimental Design and Analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ExperimentalDesign and Analysis Instructor: Mark Hancock Slides by Mark Hancock

  2. What is an experiment? Slides by Mark Hancock

  3. You will be able to describe some of the key elements of an experiment that can be analyzed with a statistical test. Slides by Mark Hancock

  4. Elements of an Experiment • People • Data • Measurement • Hypothesis • (There are more… we’ll learn about them later) Slides by Mark Hancock

  5. People • Sample (participants) • People in your study • Population • E.g., Canadians, computer scientists, artists • People we want to generalize to Slides by Mark Hancock

  6. Data • Variable • E.g., technique, task time, number of errors • Statistic • Mean, median, mode, standard deviation, etc. • Taken from the sample • Parameter • Taken from the population Slides by Mark Hancock

  7. Hypothesis (examples) • The average temperature in Calgary is less than -20˚C. • A pair of dice will result in a roll of 7 more than it will result in a roll of 10. • Canadians prefer Hockey to Baseball. Slides by Mark Hancock

  8. Hypotheses • Carman is a great foosball player. • Carman is better at foosball than Mark. • Carman wins more foosball games than Mark. • Mark scores more points in foosball than Carman. Slides by Mark Hancock

  9. Hypotheses • TreeMaps are easy to use. • TreeMaps are better than Phylotrees. • People find leaf nodes faster with TreeMaps than with Phylotrees. • People find sibling nodes faster with Phylotrees than with TreeMaps. Slides by Mark Hancock

  10. Null Hypothesis “… the null hypothesis is a pinpoint statement as to the unknown quantitative value of the parameter in the population[s] of interest.” Huck, S.W. Reading Statistics and Research Slides by Mark Hancock

  11. Null Hypothesis • Calgary Temperature: • μCalgary= -20˚C • Dice Rolling: • μ7= μ10 • μ7 -μ10 = 0 • Foosball: • μCarman= μMark • Tree Vis: • μTreeMap= μPhylotrees Slides by Mark Hancock

  12. What is the null hypothesis? • Hypothesis: The average temperature in Vancouver is higher than the average temperature in Calgary H0: μCalgary= μVancouver Slides by Mark Hancock

  13. Elements of an Experiment • People • Sample/Participants • Population • Data • Variables • Statistics • Parameters • Hypotheses • Null Hypothesis Slides by Mark Hancock

  14. Label this graph: Independent Variable?Dependent Variable? Slides by Mark Hancock

  15. Variables • Independent Variables (Factors) • What you (the experimenter) are changing during the experiment • Dependent Variables (Measures) • What is being measured • Constants • What is the same for all participants Slides by Mark Hancock

  16. Variables (Exercise) Questionnaire: ask computer science students to rate their favourite teacher. • What independent variables would you use? • What dependent variables would you use? • What would you keep constant? Slides by Mark Hancock

  17. Problem: hypotheses are about population, but we only have access to data from a sample. Slides by Mark Hancock

  18. You will be able to describe why theLaw of Large Numbers and theCentral Limit Theorem allow us to make general statements about a population based on information about a sample. Slides by Mark Hancock

  19. Dice Rolling • Roll one die • Predictions? • Roll one die 5 times and take the average? • Predictions? • Roll one die 100 times and take the average? • Predictions? Slides by Mark Hancock

  20. Dice Rolling • Roll one die n times: • Possible outcomes: 1, 2, 3, 4, 5, 6 • Probability of rolling X: P(X) = 1/6 = 16.7% • Expected Value: E(X) = 1(1/6) + 2(1/6) + … + 6(1/6) = 3.5 Slides by Mark Hancock

  21. Law of Large Numbers “Given a sample of independent and identically distributed random variables with a finite expected value, the average of these observations will eventually approach and stay close to the expected value.” "Law of large numbers." Wikipedia Slides by Mark Hancock

  22. Experiment “Law of Large Numbers”, Wikipedia Slides by Mark Hancock

  23. Central Limit Theorem “…if the sum of independent identically distributed random variables has a finite variance, then it will be approximately normally distributed.” “Central Limit Theorem." Wikipedia Slides by Mark Hancock

  24. Gaussian/Normal Distribution Mean StandardDeviation Slides by Mark Hancock

  25. LLN vs. CLT Law of Large Numbers Central Limit Theorem “…if the sum of independent identically distributed random variables has a finite variance, then it will be approximately normally distributed.” “Given a sample of independent and identically distributed random variables with a finite expected value, the average of these observations will eventually approach and stay close to the expected value.” Slides by Mark Hancock

  26. Generalize from μsample to μpopulation • What information do we have? • Sample mean • Sample variance • What information do we seek? • Population mean • Population variance Slides by Mark Hancock

  27. Generalize from μsample to μpopulation • Assumptions: • population has expected value of μpopulation • population has finite variance σpopulation • Conclude: • provided we have enough people (N is large): μsample μpopulation (by LLN) σsample σpopulation (by CLT) Slides by Mark Hancock

  28. Summary • Dependent/independent variables • Constants • Law of Large Numbers: • eventually data tends to the expected value • Central Limit Theorem: • most data tends toward a normal distribution Slides by Mark Hancock

  29. Break: 15 Minutes Slides by Mark Hancock

  30. Significance and Power Slides by Mark Hancock

  31. You will be able to identify two types of errors and be able to avoid these errors when running a study. Slides by Mark Hancock

  32. Types of mistakes • Find a difference when there isn’t one • Find no difference when there is one Slides by Mark Hancock

  33. Rejecting the Null Hypothesis (H0) Slides by Mark Hancock

  34. Rejecting the Null Hypothesis (H0) Slides by Mark Hancock

  35. Significance (α) • calculated after the experiment • Power (1 - β) • calculated before (a priori) or after (post hoc) • depends on effect size and sample size Slides by Mark Hancock

  36. How do we avoid these errors? • Decide before the analysis how acceptable this would be (e.g., p < .05). • The smaller the effect size you expect, the larger sample size you need. Slides by Mark Hancock

  37. (Student’s) T-Test Slides by Mark Hancock

  38. Who is attributed with the discovery of the Student’s T-Test? Slides by Mark Hancock

  39. A student! • William Sealy Gosset • Guinness Brewery employee • Monitored beer quality Slides by Mark Hancock

  40. You will be able to formulate the appropriate null hypothesis and calculate the t-value for data from a sample. Slides by Mark Hancock

  41. Null Hypotheses • μ = μ0 (constant value) • μA = μB Slides by Mark Hancock

  42. Assumptions • Data is distributed normally • Equal variance: σA = σB (for second H0) Slides by Mark Hancock

  43. Example • Independent Variable: • TreeMap vs. Phylotrees • Dependent Variable: • Time to find a leaf node • Data: • 30 people used TreeMap, 30 used Phylotrees • Found one leaf node each Slides by Mark Hancock

  44. Check the Null Hypothesis • Null Hypothesis (for population): μT = μP or μT – μP = 0 • Test A (for sample): check value of μT – μP Slides by Mark Hancock

  45. How is the data distributed? Sample Distribution Slides by Mark Hancock

  46. How do you account for the differences in variance? Slides by Mark Hancock

  47. Slides by Mark Hancock

  48. Slides by Mark Hancock

  49. a.k.a. Standard Error of difference between means Slides by Mark Hancock

  50. Slides by Mark Hancock

More Related