Analysis of RT distributions with R Emil Ratko-Dehnert WS 2010/ 2011 Session 07 – 21.12.2010.

Slides:



Advertisements
Similar presentations
Randomized Complete Block and Repeated Measures (Each Subject Receives Each Treatment) Designs KNNL – Chapters 21,
Advertisements

Quantitative Data Analysis: Hypothesis Testing
Using Statistics in Research Psych 231: Research Methods in Psychology.
Using Statistics in Research Psych 231: Research Methods in Psychology.
Independent Sample T-test Formula
Lecture 10 PY 427 Statistics 1 Fall 2006 Kin Ching Kong, Ph.D
Basics of ANOVA Why ANOVA Assumptions used in ANOVA
Using Statistics in Research Psych 231: Research Methods in Psychology.
Inferences About Means of Two Independent Samples Chapter 11 Homework: 1, 2, 3, 4, 6, 7.
MARE 250 Dr. Jason Turner Hypothesis Testing II To ASSUME is to make an… Four assumptions for t-test hypothesis testing: 1. Random Samples 2. Independent.
MARE 250 Dr. Jason Turner Hypothesis Testing II. To ASSUME is to make an… Four assumptions for t-test hypothesis testing:
Chapter 3 Analysis of Variance
PSY 307 – Statistics for the Behavioral Sciences
Lecture 9: One Way ANOVA Between Subjects
Inferences About Means of Two Independent Samples Chapter 11 Homework: 1, 2, 4, 6, 7.
Stat Today: Multiple comparisons, diagnostic checking, an example After these notes, we will have looked at (skip figures 1.2 and 1.3, last.
Chapter 9 Hypothesis Testing.
PSY 307 – Statistics for the Behavioral Sciences Chapter 19 – Chi-Square Test for Qualitative Data Chapter 21 – Deciding Which Test to Use.
Using Statistics in Research Psych 231: Research Methods in Psychology.
Introduction to Analysis of Variance (ANOVA)
Chapter 14 Inferential Data Analysis
Inferential Statistics
Analysis of Variance (ANOVA) Quantitative Methods in HPELS 440:210.
LEARNING PROGRAMME Hypothesis testing Intermediate Training in Quantitative Analysis Bangkok November 2007.
Extension to ANOVA From t to F. Review Comparisons of samples involving t-tests are restricted to the two-sample domain Comparisons of samples involving.
Basics of ANOVA Why ANOVA Assumptions used in ANOVA Various forms of ANOVA Simple ANOVA tables Interpretation of values in the table Exercises.
QNT 531 Advanced Problems in Statistics and Research Methods
Which Test Do I Use? Statistics for Two Group Experiments The Chi Square Test The t Test Analyzing Multiple Groups and Factorial Experiments Analysis of.
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
t(ea) for Two: Test between the Means of Different Groups When you want to know if there is a ‘difference’ between the two groups in the mean Use “t-test”.
A Repertoire of Hypothesis Tests  z-test – for use with normal distributions and large samples.  t-test – for use with small samples and when the pop.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
Experimental Design: One-Way Correlated Samples Design
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
Statistics Psych 231: Research Methods in Psychology.
Statistics (cont.) Psych 231: Research Methods in Psychology.
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
11 Chapter 12 Quantitative Data Analysis: Hypothesis Testing © 2009 John Wiley & Sons Ltd.
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
Educational Research Chapter 13 Inferential Statistics Gay, Mills, and Airasian 10 th Edition.
ITEC6310 Research Methods in Information Technology Instructor: Prof. Z. Yang Course Website: c6310.htm Office:
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
Chapter 13 - ANOVA. ANOVA Be able to explain in general terms and using an example what a one-way ANOVA is (370). Know the purpose of the one-way ANOVA.
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Experimental Psychology PSY 433 Appendix B Statistics.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
Inferential Statistics. The Logic of Inferential Statistics Makes inferences about a population from a sample Makes inferences about a population from.
Single-Factor Studies KNNL – Chapter 16. Single-Factor Models Independent Variable can be qualitative or quantitative If Quantitative, we typically assume.
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
PCB 3043L - General Ecology Data Analysis.
Paired Samples Lecture 39 Section 11.3 Tue, Nov 15, 2005.
1.  What inferential statistics does best is allow decisions to be made about populations based on the information about samples.  One of the most useful.
Copyright c 2001 The McGraw-Hill Companies, Inc.1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent variable.
Kin 304 Inferential Statistics Probability Level for Acceptance Type I and II Errors One and Two-Tailed tests Critical value of the test statistic “Statistics.
Introduction to ANOVA Research Designs for ANOVAs Type I Error and Multiple Hypothesis Tests The Logic of ANOVA ANOVA vocabulary, notation, and formulas.
© 2006 by The McGraw-Hill Companies, Inc. All rights reserved. 1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent.
Statistics (cont.) Psych 231: Research Methods in Psychology.
Statistics (cont.) Psych 231: Research Methods in Psychology.
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
Statistical Inferences for Variance Objectives: Learn to compare variance of a sample with variance of a population Learn to compare variance of a sample.
Inferential Statistics Psych 231: Research Methods in Psychology.
STA248 week 121 Bootstrap Test for Pairs of Means of a Non-Normal Population – small samples Suppose X 1, …, X n are iid from some distribution independent.
Two-way analysis of variance (ANOVA)
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Presentation transcript:

Analysis of RT distributions with R Emil Ratko-Dehnert WS 2010/ 2011 Session 07 –

Last time... Introduced significance tests (most notably the t-test) – Test statistic and p-value – Confusion matrix – Prerequisites and necessary steps – Students t-test – Implementation in R 2

ANALYSIS OF VARIANCES 3

ANOVA The Analysis of Variance is a collection of statis- tical test Their aim is to explain the variance of a DV (metric) by one or more (categorial) factors/ IVs Each factor has different factor levels 4

Main idea Are the means of different groups (by factors) different from each other? Is the variance of a group bigger than of the whole data? 5

ANOVA designs One-way ANOVA is used to test for differences among two or more independent groups. Typically, however, the one-way ANOVA is used to test for differences among at least three groups, since the two-group case can be done by a t-test 6

ANOVA designs (cont.) Factorial ANOVA is used when the experimenter wants to study the interaction effects among the treatments. Repeated measures ANOVA is used when the same subjects are used for each treatment (e.g., in a longitudinal study). 7

ONE-WAY ANOVA 8

One-way ANOVA A one-way ANOVA is a generalization of the t-test for more than two independent samples Suppose we have k populations of interest From each we take a random sample, for the ith sample, let X i1, X i2,..., X ini designate the sample values 9

Prerequisites The data should... 1)be independent 2)be normally distributed 3)have equal Variances (homoscedasticity) 10

Mathematical model 11 X ij =dependant variable i=group (i in 1,..., k) j=elements of group i (j in 1,..., n i ) n i =sample size of group i ε ij =error term; ε ~ N(0, σ)

Hypotheses Suppose we have k independent, iid samples from populations with N(μ i, σ) distributions, i = 1,... k. A significance test of Under H 0, F has the F-distribution with k-1 and n-k degrees-of-freedom. 12

F k-1, n-k with k = amount of factors and n = sample size 13

Example Two groups of animals receive different diets The weights of animals after the diet are: Group 1: 45, 23, 55, 32, 51, 91, 74, 53, 70, 84 (n 1 = 10) Group 2: 64, 75, 95, 56, 44, 130, 106, 80, 87, 115 (n 2 = 10) 14

Example (cont.) Do the different diets have an effect on the weight? Means differ, but this might be due to natural variance 15

Example (cont.) Global variance Test statistic 16

Example (cont.) To assess difference of means, we need to compare this F-value with the one we would get for the for alpha = 0.05  F = 4.41  6.21 > 4.41  H 0 can be rejected 17

ANOVA (CONT.) 18

Effect size η 2 The effect size describes the ratio of variance explained in the dependant variable by a predictor while controlling for other predictors 19

Power Analysis is often applied in order to assess the probability of successfully rejecting H 0 for specific designs, effect sizes, sample size and α-level. can assist in study design by determining what sample size would be required in order to have a reasonable chance of rejecting the H 0 when H 1 is true. 20

A priori vs. post hoc analysis A priori analysis (before data collection) is used to determine the appropriate sample size to achieve adequate power Post hoc analysis (after data collection) uses obtained sample size and effect size to determine power of the study 21

Follow-up tests ANOVA only decides whether (at least) one pair of means is different, one commonly conducts follow-up tests to assess which groups are different: Bonferroni-Test Scheffé-Test Tuckey‘s Range Test 22

Visualisation of ANOVAs aflash.html 23

ANOVAS WITH R 24

oneway.test() The R function oneway.test() will perform the one-way ANOVA One can use the model notation oneway.test(values ~ ind, data = data) to assign values to groups 25

aov() Alternatively one can use the more general aov() command for the one-way ANOVA fit <- aov(y ~ A, data = mydataframe) plot(fit)# diagnostic plots summary(fit)# display ANOVA table 26

AND NOW TO 27