HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.

Slides:



Advertisements
Similar presentations
Comparing Two Means: One-sample & Paired-sample t-tests Lesson 12.
Advertisements

Independent t -test Features: One Independent Variable Two Groups, or Levels of the Independent Variable Independent Samples (Between-Groups): the two.
PTP 560 Research Methods Week 9 Thomas Ruediger, PT.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
T-Tests.
t-Tests Overview of t-Tests How a t-Test Works How a t-Test Works Single-Sample t Single-Sample t Independent Samples t Independent Samples t Paired.
The Two Sample t Review significance testing Review t distribution
T-Tests.
Chapter Seventeen HYPOTHESIS TESTING
Independent Sample T-test Formula
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Test statistic: Group Comparison Jobayer Hossain Larry Holmes, Jr Research Statistics, Lecture 5 October 30,2008.
Lecture 9: One Way ANOVA Between Subjects
EXPERIMENTAL DESIGN Random assignment Who gets assigned to what? How does it work What are limits to its efficacy?
Independent Sample T-test Often used with experimental designs N subjects are randomly assigned to two groups (Control * Treatment). After treatment, the.
Chapter 11: Inference for Distributions
Student’s t statistic Use Test for equality of two means
© 2005 The McGraw-Hill Companies, Inc., All Rights Reserved. Chapter 13 Using Inferential Statistics.
PSY 307 – Statistics for the Behavioral Sciences Chapter 19 – Chi-Square Test for Qualitative Data Chapter 21 – Deciding Which Test to Use.
Today Concepts underlying inferential statistics
Hypothesis Testing Using The One-Sample t-Test
Mann-Whitney and Wilcoxon Tests.
Comparing Means: T-Test PSYC 301 /SPSS SPRING 2014.
Chapter 12 Inferential Statistics Gay, Mills, and Airasian
Nonparametric or Distribution-free Tests
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
AM Recitation 2/10/11.
Inferential Statistics: SPSS
Overview of Statistical Hypothesis Testing: The z-Test
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
1 STATISTICAL HYPOTHESES AND THEIR VERIFICATION Kazimieras Pukėnas.
Comparing Means From Two Sets of Data
Education 793 Class Notes T-tests 29 October 2003.
T-Tests and Chi2 Does your sample data reflect the population from which it is drawn from?
T tests comparing two means t tests comparing two means.
Copyright © 2012 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 17 Inferential Statistics.
Copyright © 2008 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 22 Using Inferential Statistics to Test Hypotheses.
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.
Statistics 11 Correlations Definitions: A correlation is measure of association between two quantitative variables with respect to a single individual.
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”.
T-TEST Statistics The t test is used to compare to groups to answer the differential research questions. Its values determines the difference by comparing.
Hypothesis Testing Using the Two-Sample t-Test
FOUNDATIONS OF NURSING RESEARCH Sixth Edition CHAPTER Copyright ©2012 by Pearson Education, Inc. All rights reserved. Foundations of Nursing Research,
Testing Hypotheses about Differences among Several Means.
Biostatistics, statistical software VII. Non-parametric tests: Wilcoxon’s signed rank test, Mann-Whitney U-test, Kruskal- Wallis test, Spearman’ rank correlation.
Ordinally Scale Variables
6/4/2016Slide 1 The one sample t-test compares two values for the population mean of a single variable. The two-sample t-test of population means (aka.
Two Sample t test Chapter 9.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Educational Research Chapter 13 Inferential Statistics Gay, Mills, and Airasian 10 th Edition.
© Copyright McGraw-Hill 2000
ITEC6310 Research Methods in Information Technology Instructor: Prof. Z. Yang Course Website: c6310.htm Office:
Experimental Design and Statistics. Scientific Method
Experimental Research Methods in Language Learning Chapter 10 Inferential Statistics.
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
Chapter Twelve The Two-Sample t-Test. Copyright © Houghton Mifflin Company. All rights reserved.Chapter is the mean of the first sample is the.
DTC Quantitative Methods Bivariate Analysis: t-tests and Analysis of Variance (ANOVA) Thursday 14 th February 2013.
Comparing Two Means: One-sample & Paired-sample t-tests Lesson 13.
PART 2 SPSS (the Statistical Package for the Social Sciences)
Chapter 13 Understanding research results: statistical inference.
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
Nonparametric statistics. Four levels of measurement Nominal Ordinal Interval Ratio  Nominal: the lowest level  Ordinal  Interval  Ratio: the highest.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. Part Four ANALYSIS AND PRESENTATION OF DATA.
Part Four ANALYSIS AND PRESENTATION OF DATA
Lecture Slides Elementary Statistics Twelfth Edition
Research Methodology Lecture No :25 (Hypothesis Testing – Difference in Groups)
Data Analysis and Interpretation
Quantitative Methods in HPELS HPELS 6210
I. Statistical Tests: Why do we use them? What do they involve?
What are their purposes? What kinds?
Presentation transcript:

HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS

ASSUMPTIONS Selecting an appropriate test for analysing hypotheses of difference depends on a number of important assumptions particularly relating to parametric and non-parametric assumptions

ASSUMPTIONS : PARAMETRIC VERSUS NON-PARAMETRIC TESTS Parametric tests –Tests based on assumptions about population distributions and parameters The assumptions for parametric tests –interval or ratio level data (SPSS Scale data) –normal distribution or closely so –homogeneity of variance - the variance (standard –deviation squared) should be similar in each group –samples randomly drawn from the population Non-Parametric Tests –Tests that make no assumptions about population parameters or distributions

Designs Hypotheses of differences can involve different research designs Independent Groups or Between Groups Design –Two independent samples are selected randomly and compared often in a control versus experimental contrast. Repeated Measures Design –One sample is measured in both conditions – a before and after approach. Paired or Matched Samples Design –Individuals, units or observations are matched as pairs on one or more variables and allocated at random one to each sample. Different forms of the t test and ANOVA exist for these designs

t -TEST t Tests are parametric tests and assume normal distribution or approximately so, random selection of sample elements, homogeneity of variance or approximately so and scale data measurement.

Types of t Test Three main types of t test exist: 1. The one sample t test 2. The independent group t test between two separate random samples 3. The repeated (or paired) measures t test between two testings of the same sample or between two paired samples

THE ONE SAMPLE t TEST : TESTING HYPOTHESES FOR SINGLE SAMPLES t = sample mean – population mean estimated standard error of mean (derived from sample) ( notice similarity to Z. t = Z when sample size is large) –tests the null hypothesis that the mean of a particular sample differs from the mean of the population only by chance

Confidence intervals for a nominated level of probability provide a range of values within which the population mean is likely to lie. Using the same sort of logic, a different approach is a one sample test. In a one sample test, you nominate a known or possible population mean and you conduct the test to determine whether it is likely (with a nominated level of probability) that the mean value you have obtained from your sample could have come from the population with the nominated population mean. One sample t test and Z test

1.Enter data as a single variable (here as “runs”) 2.Analyze > Compare Means > One-Sample t-test (normally we use more than 5 scores) Example from SPSS

3.Enter the variable (in this case runs) into the Test Variables box. 4.Enter the hypothesized population mean into the TEST VALUE box. 5.Click options 6.Enter 95% as the Confidence Interval. 7. Click CONTINUE and OK Example using SPSS

8.The calculated probability (Sig. (2-tailed)) is.257 which is greater than.05 – So the result is not significant. t = 1.319, p =.257 so your mean of 7.4 could have come from a distribution with a population mean of 5.7 Example using SPSS

More frequently we want to compare two sample means. There are two types of such comparisons. 1.Where we have two means which are calculated from two different samples (the populations are independent). e.g. if we wanted to compare attitudes of males with those of females towards some issue and determine whether one gender was more positive than the other a two-sample t- test may be used here. 2.Where we have two means which are calculated from the same sample when we have measured the variable at two different times. E.g. Change in attitude of the whole group over time, a Repeated Measures (Paired Difference) t- test may be used. Comparing Means With t Tests

Independent Groups t Test. Between Groups Design The Independent Groups t test is used to determine whether two random samples are likely to come from the same population. If there is a statistically significant difference between them then the null hypothesis that their sample means are simply two chance variations around a population mean is rejected. Often used in the experimental versus control group set-up – the Between Subjects design.

ASSUMPTIONS FOR INDEPENDENT GROUPS t TEST –measurements are on interval scale –subjects are randomly selected from a defined population –the variances of the scores for the two samples or occasions should be approximately equal (homogeneity) –the population from which the samples have been drawn is normally distributed.

STATISTICAL TESTS FOR TWO INDEPENDENT GROUPS (BETWEEN-SUBJECTS DESIGN) - COMPARING TWO SAMPLES This test determines whether two sample group means differ significantly or not. The bigger the difference between the 2 sample means, and the smaller the variation within each group the more likely the population means are different.

The Standard Error of the Difference We evaluate whether the sample means differ significantly using the t statistic: t = obtained difference between means standard error of the difference The standard error of the difference is the standard deviation of the distribution of differences between every possible pairings of sample means when each pair is formed from one sample mean taken from each population

Suppose we want to compare two parallel classes of students studying Tax Law. At the beginning of the year, students were randomly assigned to each class. Each class is taught using a different method; one by usual face-to face teaching ; the other by individual study using a computerized module presentation. After 6 months, we test whether performance (on a test with a maximum value of 20) varies between the two classes (two-tailed non-directional test). For alpha =.05 Example of Independent t test

1.Enter your dependent variable (Tax Law test score) as a single variable. (usually we use at least 20 scores) 2.Enter group membership (here “class”) as a second variable. SPSS Example of Independent t test

3.Analyze > Compare Means > Independent-Samples t-test 4.Enter your dependent variable (“score”) in the TEST VARIABLES box, and your grouping variable (“class”) in the GROUPING VARIABLE box. 5.Click DEFINE GROUPS SPSS Example of Independent t test

5.Enter the codes you used to define your two groups (here “1” and “2”). 6.Click Continue 7.Click OK SPSS Example of Independent t test

8. Interpret: The mean for Class1 = 7.40, for Class2 = 11.80, d.f. = 8, t 8 = The calculated probability for such a mean difference =.030, which is less than the alpha of.05, and so is significant. 9. So we conclude that the performance of the two classes is significantly different, t 8 = -2.63, p <.05, with class two doing significantly better. SPSS Example of Independent t test Levine’s test suggests homo- geneity of variance assumption OK p <.05 Mean difference being tested

DEGREES OF FREEDOM Abbreviated to df The number of values free to vary in a set of values Used to evaluate the obtained statistical value rather then N df usually = N – 1 per sample (group)

Effect Size for the t Test for Independent Groups Effect Size –the difference between the population means divided by the standard deviation of the population of individuals –d = t N1 + N2  N1N2

MANN-WHITNEY U TEST Used when testing for differences between two independent groups when the assumptions for the parametric t test cannot be met: –data may be ordinal –variances are quite dissimilar –samples are small, distribution not close to normal. Ranks scores from the two samples into one set of ranks - then determines whether there is a systematic clustering into two groups paralleling the samples Does not require equal numbers in the two conditions Less likely to show a significant difference between groups if one really exists

STATISTICAL TESTS FOR THE REPEATED MEASURES AND MATCHED PAIRS DESIGN (WITHIN-SUBJECTS DESIGN) Used : –when the same subjects are tested under two different conditions, e.g. undertaking a task with two different sets of instructions –in a before-after type of study where changes after an intervention are compared with the performance level before –when subjects in two groups are paired by selecting individuals who are as similar as possible with respect to other external variables which may all influence the outcome of the research. Subjects might be matched for learning ability, sex, age and IQ.

Repeated Measures or Matched Pairs Design (Parametric test) Assumptions of the Test –measurements are on interval scale –subjects are randomly selected from a defined population –the variances of the scores for the two samples or occasions should be approximately equal –the population from which the samples have been drawn is normally distributed.

Suppose we want to compare the effects of a training course on performance at two points in time. (a) prior to start of course, and (b) at end of course. Use a two-tailed test at alpha =.05 Enter the data for performance at the beginning of the year as a variable (“before”). Enter the data for performance at the end of the year as a variable (“after”). (We would normally use at least 20 pairs of scores) Repeated Measures or Paired Samples SPSS Example

3.Analyze > Compare Means > Paired-Samples t-test 4.Select both variables (“before” and “after” and enter into PAIRED VARIABLES box) 5.Click Options. Repeated Measures or Paired Samples SPSS example.

6.Select 95% as your confidence interval. 7.Click Continue. 8.Click OK

9.The mean for Before = 8.40, After = 11.80, d.f. = 4, t 4 = , the calculated probability is.000, which is less than the alpha level of.05 – and so is significant. 10. So we conclude that the performance of the class has significantly changed from before-training to after- training, t 4 = , p <.001. Repeated Measures or Paired Samples SPSS example. We compare this mean difference p is highly significant

THE WILCOXON SIGNED RANKS TEST (NON-PARAMETRIC) used instead of a related groups or paired t test if one or more of the following apply: –the differences between treatments can only be ranked in size, –the data are quite skewed, –there is clearly a difference in the variance of the groups compares observations across two occasions or conditions in a repeated measures or matched pairs context to determine whether there are significant differences between the observations from the two sets of data from the same group.

Choosing the Correct Test. Independent Samples Tests (Between Groups Design) Level of measurementTwo independent groupsMore than two independent groups Scale (interval and ratio)Independent samples t test One way ANOVA OrdinalMann-WhitneyKruskal-Wallis NominalChi SquareChi Square Related Samples tests (Repeated and Paired Measures Design) Scale (interval and ratio)Paired samples t testRepeated measures ANOVA OrdinalWilcoxon Signed RanksFriedman NominalChi SquareChi square