Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

18
Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples

Transcript of Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

Page 1: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

Hypothesis testing in the REAL worldt tests: single sample repeated measures independent samples

Page 2: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

Need for the t test• Hypothesis testing using z requires knowledge of

population parameters (mean, SD)• Typical psychological experiments

▫ No knowledge of parameters▫ Often don’t really care

e.g. compare effects of IV manipulation in experimental and control group

▫ Underlying population not critical▫ Interested in change produced by IV

▫ Typically use ESTIMATES

Page 3: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

Estimation•Best predictor of population

mean?▫Sample mean

•Best predictor of population SD?▫Sample SD

BUT sample SD will systematicallyunderestimate true population

variability biased estimate bias to reject null hypothesis

Page 4: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

How do we fix it?

•Adjust the formula for SD▫Now we’ll call it s

•n-1•degrees of freedom

▫Number of scores in a sample that are free to vary

•Adjust our comparison distribution

Page 5: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

The t distribution

•Shape-shifter

Page 6: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

Using the t table

•df•p•cutoff (critical) value

•Things to note:▫As df increases, critical value decreases

Related to sample size▫With an infinite sized sample, what are the

CVs?▫n=30

Page 7: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

A sample problem: pg 232

•Conceptual and computational formuli•SPSS•Steps in hypothesis testing: hopefulness

following a flood1. Null hypothesis M(flood) = M(neutral) Alternative M(flood) not=

M(neutral) Neutral = score of 4

Page 8: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

2. Comparison distributionuse estimates from sample

estimated meansample meanestimated SD (s)s of the sampling distribution

3. Cutoff/critical valueuse t table with appropriate df

4. Compute t5. Decide6. Tell grandma

Page 9: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

A saner approach….

•Computationalformula

•SPSS

Page 10: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.
Page 11: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

Types of t tests• t test for single sample

▫Compares sample mean to known or predicted population mean (e.g. “neutral” hopefulness; no ESP baseline probability)

• t test for dependent means▫Compares samples (from the same people)

collected before and after a given manipulation aka – within subjects, repeated measures, paired

samples • t test for independent means

▫Compares samples from two unique sets of people with different levels of the IV for each (EXP, control groups design)

Page 12: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

t test for dependent means • Difference between one test to the next

▫ Role of IV▫ If null is true, then difference = ?▫ pg 238 Communication scores before and after premarital counseling

1. State null and alternative2. Select appropriate t3. Determine critical value4. Compute5. Decide6. Tell your Babushka

Page 13: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

t test for independent means

•Pooled estimate of the population SD▫Weighted average of s for each

sample▫pg 279 Effects of writing on

health1. State null and alternative2. Select appropriate t3. Determine critical value4. Compute5. Decide6. Tell your Nai nai

Page 14: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

Let’s give it a whirl….1.  Siegel (1990) found that elderly people who owned

dogs were less likely to pay visits to their doctors after upsetting events than those who did not own pets.  Similarly, consider the following data:  A sample of elderly dog owners is compared to a similar group of elderly persons who do not own dogs.  The researcher records the number of visits to the doctor during the past year for each person.  For the following data, is there a significant difference in the number of doctor visits between dog owners and control subjects?  Use the .05 level of significance.CONTROL GROUP:  12, 10, 6, 9, 15, 12, 14DOG OWNERS: 8, 5, 9, 4, 6

WHAT KIND OF TEST IS THIS???

Page 15: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.
Page 16: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

A psychologist tests a new drug for its painkilling effects.  Pain threshold is measured for a sample of subjects by determining the intensity (in milliamperes) of electric shock that causes discomfort.  After the initial baseline is established, subjects receive the drug and their pain thresholds are once again measured.  The data are listed below.  Do these data indicate that the drug produces a significant increase in pain tolerance?  Use a one tailed test with the .05 level of significance.

PAIN THRESHOLDS (milliamperes)without drug            with drug

2.1                            3.22.3                            2.93.0                            4.62.7                            2.71.9                            3.12.1                            2.92.9                            2.92.7                            3.43.2                            5.32.5                            2.53.1                            4.9

Page 17: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.
Page 18: Hypothesis testing in the REAL world t tests: single sample repeated measures independent samples.

A group of students recently complained that all of the statistics classes are offered in the morning.  They claim that they "think better" later in the day and, therefore, would do better if the course was offered in the afternoon rather than in the morning.  To test this claim, the instructor scheduled the course at the 2:40 time slot one semester.  The afternoon class is given the exact same course as during prior semesters, including the same final exam.  The instructor knows that, for previous students the final exam scores had been normally distributed with a mean of 70.  The afternoon class, with 16 students enrolled, got a mean of 76 with a sample standard deviation of 8.  Did the students in the afternoon section perform significantly better?

a. Test with p=.05 with a one tailed test.b. Identify the dependent and independent variables