T-tests Chi-square Seminar 7. The previous week… We examined the z-test and one-sample t-test. Psychologists seldom use them, but they are useful to understand.

Slides:



Advertisements
Similar presentations
Bivariate Analyses.
Advertisements

Review of the Basic Logic of NHST Significance tests are used to accept or reject the null hypothesis. This is done by studying the sampling distribution.
Analysis of frequency counts with Chi square
Chi-square Basics. The Chi-square distribution Positively skewed but becomes symmetrical with increasing degrees of freedom Mean = k where k = degrees.
The Two Sample t Review significance testing Review t distribution
PSY 307 – Statistics for the Behavioral Sciences
The t-test:. Answers the question: is the difference between the two conditions in my experiment "real" or due to chance? Two versions: (a) “Dependent-means.
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 12 Chicago School of Professional Psychology.
CJ 526 Statistical Analysis in Criminal Justice
1 Practicals, Methodology & Statistics II Laura McAvinue School of Psychology Trinity College Dublin.
Chapter Goals After completing this chapter, you should be able to:
Chi-Square and Analysis of Variance (ANOVA) Lecture 9.
PSYC512: Research Methods PSYC512: Research Methods Lecture 19 Brian P. Dyre University of Idaho.
Don’t spam class lists!!!. Farshad has prepared a suggested format for you final project. It will be on the web
Chi Square Test Dealing with categorical dependant variable.
Lecture 9: One Way ANOVA Between Subjects
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
Data Analysis Statistics. Levels of Measurement Nominal – Categorical; no implied rankings among the categories. Also includes written observations and.
The Two Sample t Review significance testing Review t distribution
1 Nominal Data Greg C Elvers. 2 Parametric Statistics The inferential statistics that we have discussed, such as t and ANOVA, are parametric statistics.
Comparing Means: T-Test PSYC 301 /SPSS SPRING 2014.
Presentation 12 Chi-Square test.
1 of 27 PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2013, Michael Kalsher Michael J. Kalsher Department of Cognitive Science Adv. Experimental.
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.
Estimation and Hypothesis Testing Faculty of Information Technology King Mongkut’s University of Technology North Bangkok 1.
This Week: Testing relationships between two metric variables: Correlation Testing relationships between two nominal variables: Chi-Squared.
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
1 Psych 5500/6500 Chi-Square (Part Two) Test for Association Fall, 2008.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
Education 793 Class Notes T-tests 29 October 2003.
CJ 526 Statistical Analysis in Criminal Justice
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.
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
1 Chi-Square Heibatollah Baghi, and Mastee Badii.
Chapter 20 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 These tests can be used when all of the data from a study has been measured on.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Chapter 16 The Chi-Square Statistic
Chapter 12 A Primer for Inferential Statistics What Does Statistically Significant Mean? It’s the probability that an observed difference or association.
1 The  2 test Sections 19.1 and 19.2 of Howell This section actually includes 2 totally separate tests goodness-of-fit test contingency table analysis.
7. Comparing Two Groups Goal: Use CI and/or significance test to compare means (quantitative variable) proportions (categorical variable) Group 1 Group.
Education 793 Class Notes Presentation 10 Chi-Square Tests and One-Way ANOVA.
Difference Between Means Test (“t” statistic) Analysis of Variance (“F” statistic)
Review of the Basic Logic of NHST Significance tests are used to accept or reject the null hypothesis. This is done by studying the sampling distribution.
DIRECTIONAL HYPOTHESIS The 1-tailed test: –Instead of dividing alpha by 2, you are looking for unlikely outcomes on only 1 side of the distribution –No.
Chapter 9 Three Tests of Significance Winston Jackson and Norine Verberg Methods: Doing Social Research, 4e.
Educational Research Chapter 13 Inferential Statistics Gay, Mills, and Airasian 10 th Edition.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
CHI SQUARE TESTS.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7.
12/23/2015Slide 1 The chi-square test of independence is one of the most frequently used hypothesis tests in the social sciences because it can be used.
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
Outline of Today’s Discussion 1.The Chi-Square Test of Independence 2.The Chi-Square Test of Goodness of Fit.
Copyright c 2001 The McGraw-Hill Companies, Inc.1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent variable.
Difference Between Means Test (“t” statistic) Analysis of Variance (F statistic)
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
© 2006 by The McGraw-Hill Companies, Inc. All rights reserved. 1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Exploring Group Differences
Lecture Slides Elementary Statistics Twelfth Edition
Hypothesis Testing Review
T-Tests Chapters 14 and 13.
Qualitative data – tests of association
The Chi-Square Distribution and Test for Independence
Presentation transcript:

T-tests Chi-square Seminar 7

The previous week… We examined the z-test and one-sample t-test. Psychologists seldom use them, but they are useful to understand NHST. Many advanced tests are variants of z-test.

Today’s questions Do men talk more than women? Suppose you collect data and found that women on average say 30,000 words a day, compared to 25,000 words for men. Is this 5000 words difference between groups due to chance?

Today’s questions Do vitamins improve IQ scores over time? Suppose you give vitamins and measure IQ scores in Jan and Jun and found that IQ scores improved by 10 points from Jan to Jun. Is this due to chance?

Two broad types of t-tests Independent samples t-test (between- subjects t-test) Dependent samples t-test (repeated measures t-test; within-subjects t-test)

Independent samples t-test Part 1

Independent-samples t-test For comparing two independent sample means Underlying grouping variable is usually nominal Example of grouping variable: Gender (M vs. F) Major (psychology vs. sociology) Self-esteem (high vs. low)

Underlying mathematical principle Using gender as an example: Females: M = 30000; SD = 5000 Males: M = 25000; SD = 5000 They don’t overlap much. Thus, males and females really do differ in # words spoken

However… Distributions are rarely that far apart. You can’t always “eyeball” statistical significance. We need an objective test statistic.

Introducing the independent samples t-test pooled variance

Introducing the independent samples t-test Degrees of freedom df = (n 1 – 1) + (n 2 – 1) = n 1 + n Each sample had one less degrees of freedom. You have two samples. Hence in total, you have two less degrees of freedom.

Recap from Week 6 Degrees of freedom: the extent to which scores are free to vary You have five scores {10, 8, 3, 5, 9}. The mean is 7. Given that mean = 7, and you know 4 of the 5 scores, what is the 5 th score? (Simple to calculate) Given that mean = 7, and you know 3 of the 5 scores, what are the 4 th and 5 th score? (Impossible to calculate)

Relating back to NHST

Assumptions of independent-samples t-test 1.Population distribution (  1 -  2 ) is normal 2.Randomly and independently sampled 3.Groups are independent 4.Homogeneity of variance

Homogeneity of variance This is the ideal distribution: But it could also have been: OR

Homogeneity of variance We typically assume that the variance within each of the populations is equal (whether the means are equal or not). Statistical software display “Levene’s test of equality of variances”. If Levene’s test is significant (p <.05), then this assumption is not viable. Often, even when violated, the conclusion of the t-test remains the same.

Dependent samples t-test Part 2

Dependent-samples t-test For comparing two dependent sample means. Two cases Each person gives a pair of scores –Time 1, Time 2 –DV1, DV2 Each case gives a pair of matched scores –Wife, Husband

Structuring the datafile Subject numberIQ in JanIQ in Sep Subject numberSweetness ratingSaltiness rating CaseHusband’s incomeWife’s income

Let’s expand on the first example: IQ Subject IQ in Jan (T1) IQ in Sep (T2) Difference (D) M SD (s)

Introducing dependent sample t-test

Relationship to NHST

Assumptions of dependent-samples t-test 1.Scores are correlated 2.Distribution of D is normal 3.Randomly and independently sampled

t-test in general form

Chi-square test Part 3

Chi-square (  2 ) Sometimes, a researcher is interested in the relationship between two nominal or categorical variables. The significance test used is called a chi-square (  2 ).

Today’s question Are single men vs. women are more likely to own cats vs. dogs? Notice that both variables are categorical. –Kind of pet –Gender

Contingency table Males are more likely to have dogs as opposed to cats Females are more likely to have cats than dogs CatDogTotal Male Female Total NHST Question: Are these differences best accounted for by the null hypothesis or by the hypothesis that there is a real relationship between gender and pet ownership?

To answer our question… We need to know what we would expect to observe if the null hypothesis were true (i.e., that there is no relationship between these two variables, and any observed relationship is due to sampling error).

If the null were true… CatDogTotal Male25 50 Female25 50 Total You would expect this:

Example Data The differences between these expected values and the observed values are aggregated according to the chi-square formula: CatDogTotal Male50 Female50 Total50 100

NHST and chi-square df = (r -1)(c-1) where r = number of rows, c = number of columns Is  2 = 4.0 statistically significant, with df = 1? (yes, the critical value at α =.05 is 3.8; see page 545)

More complex situations There may be more than two levels for any one variable. Also, the base rates (i.e., the relative frequencies of the various subcategories) may be quite variable. The logic and mechanics of the chi-square work the same way under these situations.

Another set of data: Changing base rates Here base rate of dog lovers is much higher (e.g., the column totals indicate that, regardless of sex, 80 of 100 people own dogs) CatDogTotal Male050 Female Total

CatDogTotal Male Female Total CatDogTotal Male 050 Female Total Observed FrequenciesExpected Frequencies 25 is larger than 3.8, so p <.05

Another set of data Now one of our variables has 3 subcategories or levels instead of two. df = (r-1)(c-1) = (2-1)(3-1) = 2 CatDogNeitherTotal Male Female Total

CatDogNeither Total Male Female Total CatDogNeither Total Male Female Total Observed Frequencies Expected Frequencies Chi-square would need to be greater than 5.9 for p <.05.

Assumptions of chi-square Data must be independent Categories must be mutually exclusive Cell counts must be ≥ 5 (a warning will be given in SPSS if n < 5) –Why? (Chi-square is an omnibus test)

Take home messages T-tests are the most basic statistical tests used in psychology Chi-square is seldom used in psychology because we rarely deal with frequency counts Be aware of the assumptions

Back to the question Do women really talk more than men?

And here’s the real data. Mehl et al. (2007). Are women really more talkative than men? Science.