43
dependent t-tests

Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Embed Size (px)

Citation preview

Page 1: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

dependentt-tests

Page 2: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Factors affecting statistical power in the t-test

• Statistical power• ability to identify a statistically significant

difference when a difference between means actually exists

Page 3: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Decision Table: Correct

Ho TRUE Ho FALSE

Ho TRUE

Ho FALSE POWER

DECISION

REALITY

Truth is everlasting, but our ideas about truth are interchangeable

Page 4: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Factors affecting statistical power in the t-test

level• how much risk are YOU willing to take in

making a Type I error• Frank & Huck (1986, RQES): Why does

everyone use the 0.05 level of significance?

0.01

conservative

0.10

liberal

Power

Page 5: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Factors affecting statistical power in the t-test

level• df (number of subjects)

• affects variability associated with the sample mean & variability within the sample

• limited by time & money• GREATER n = GREATER POWER

(point of diminishing return)

Page 6: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Statistics Humour One day there was a fire in a wastebasket in the

Dean's office and in rushed a physicist, a chemist,

and a statistician. The physicist immediately

starts to work on how much energy would have to be

removed from the fire to stop the combustion. The

chemist works on which reagent would have to be

added to the fire to prevent oxidation. While they are

doing this, the statistician is setting fires to all the other

wastebaskets in the office. "What are you doing?" they

demanded. "Well to solve the problem, obviously you

need a large sample size" the statistician replies.

Page 7: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Factors affecting statistical power in the t-test

level• df (number of subjects)• magnitude of the mean difference

• how different are the treatments imposed• measurement errors• sampling errors• SIZE OF THE TREATMENT EFFECT

Page 8: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Factors affecting statistical power in the t-test

level• df (number of subjects)• magnitude of the mean difference• variability

• how specified is your population• control of extraneous variables

Page 9: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Estimated Standard Error of the Difference between 2 independent means

SESEs mymxdm

22

Page 10: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

t-test for independent samples

Smaller is better

stdm

obs

YX

Page 11: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Comparing paired (correlated) measures instead of group (uncorrelated) measures

• Match subjects• what factors (variables) might affect time to

exhaustion on the exercise bike• daily diet? Fitness level? Genetics?• Height? Weight? Age?• Regular training program?

Page 12: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Comparing paired (correlated) measures instead of group (uncorrelated) measures

• Match subjects• Repeated measures

• measure the SAME subject under both protocols

• test & retest• pre & posttest• condition 1 & condition 2

Page 13: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Comparing paired (correlated) measures instead of group (uncorrelated) measures

• Match subjects• Repeated measures

Subject

serves as own

Control

Page 14: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Comparing paired (correlated) measures instead of group (uncorrelated) measures

• Match subjects• Repeated measures

Subject serves as own Control

Intra-subject variability

should be LESS than

Inter-subject variability

Page 15: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Dependent t-test(paired or correlated t-

test)

• Pairs of scores are matched• same subject in 2 conditions or matched

subjects

• Question: Does ankle bracing affect load during landing?• IV: brace condition• DV: Vertical GRF

Page 16: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Steps to dependent t-test

• Set (0.05)• Set sample size

• One randomly selected group• n = 7

• condition 1: Brace• condition 2: No brace

• Set Ho (null hypothesis)

Page 17: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Set statistical hypotheses

• Ho

• Null hypothesis• Any observed

difference between the two conditions will be attributable to random sampling error.

• HA

• Alternative hypothesis

• If Ho is rejected, the difference is not attributable to random sampling error

• perhaps brace???

Page 18: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Steps to independent t-test

• Set (0.05)• Set sample size (n = 7)• Set Ho

• Test each subject in both conditions with a standardized protocol (drop landings)• Note: condition performance order is

randomized across subjects

Page 19: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

GRF data

Page 20: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Steps to dependent t-test

• Set (0.05)• Set sample size (n = 7)• Set Ho

• Test each subject in both conditions• Calculate descriptive statistics of each

condition• scattergram• mean, SD, n

Page 21: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

No Brace

1614121086420

An

kle

Bra

ce

20

18

16

14

12

10

8

6

Figure 1. Scattergram of vertical GRF during

landing in different brace conditions (N/kg)

Page 22: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Descriptive statistics for atble401.sav data

Group n Mean SD

No brace 7 8.0 4.3

brace 7 10.9 3.5

Page 23: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Steps to dependent t-test

• Set (0.05)• Set sample size (n = 7)• Set Ho

• Test each subject in both conditions• Calculate descriptive statistics of each

condition• compare the condition means

Page 24: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

How to compare the condition means

• Even if the two conditions were the same (samples drawn from the same population), would not expect the statistics to be the same

• Need a measure of expected variability against which the mean of the difference between paired scores (Xi - Yi) could be compared

Page 25: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Paired scores, so the data are somewhat correlated

• Calculate the difference between the two conditions for each case (Xi - Yi)

• Calculate the Mean Difference• Use the correlation among the pairs of

scores to reduce the error term (denominator) used to evaluate the difference between the means

Page 26: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

t-test for dependent (paired)

samples

t =

Mdiff

SEMD

Page 27: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

GRF data

Subject No brace Brace X - Y1 5 8 -32 10 12 -23 11 10 14 6 9 -35 15 18 -36 7 11 -47 2 8 -6

= -20

Mean Diff = -2.9

Page 28: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

t-test for dependent (paired)

samples

t =

Mdiff

SEMD

Standard error

of the

Mean difference for Paired Scores

Page 29: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Estimated Standard Error of the Difference between 2 dependent means

SESESESEs mymxdmrmymx 2

22

?

Page 30: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Estimated Standard Error of the Difference between 2 dependent means

SESESESEs mymxdmrmymx 2

22

If r = 0, this term reduces

to the same equation as

for independent groups

Page 31: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

t-test for dependent (paired)

samples

t =

Mdiff

SEMD

df = ??

Page 32: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

t-test for dependent (paired)

samples

t =

Mdiff

SEMD

df = npairs - 1

Page 33: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Running the dependent t-test with SPSS

• Enter the data as pairs • atble401.sav

Page 34: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Reporting paired t-test outcome

Group n Mean SD

No brace 7 8.0 4.3

brace 7 10.9 3.5

Table 1. Descriptive statistics of vertical ground reaction

force (in N/kg) for the two conditions (n = 7)

Page 35: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Reporting t-test outcome

0

5

10

15

20

No Brace Braced

Brace Condition

Ve

rtic

al G

RF

(N/k

g)

*

Figure 1. Mean vertical GRF in the two conditions

(* p 0.05)

Page 36: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Reporting t-test in textDescriptive statistics of the vertical ground reaction force

(VGRF) data during landing in the two braced conditions

are presented in Table 1 and graphically in Figure 1. A

paired t-test indicated that the mean VGRF of 10.9

(SD = 3.5) N/kg in the braced condition was significantly

higher ( = 0.05) than the mean VGRF of 8.0 (4.3) N/kg

in the unbraced condition (t6 = 3.57, p = 0.012). The

mean difference of 2.9 N/kg represents a 36% higher

VGRF during the landings with a brace compared to

without a brace.

Page 37: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

What if you set = 0.01?

Descriptive statistics of the vertical ground reaction force

(VGRF) data during landing in the two braced conditions

are presented in Table 1 and graphically in Figure 1. A

paired t-test indicated that the mean VGRF of 10.9

(SD = 3.5) N/kg in the braced condition was ...

Page 38: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

What if you set = 0.01?Descriptive statistics of the vertical ground reaction force

(VGRF) data during landing in the two braced conditions

are presented in Table 1 and graphically in Figure 1. A

paired t-test indicated that the mean VGRF of 10.9

(SD = 3.5) N/kg in the braced condition was significantly

higher ( = 0.01) than the mean VGRF of 8.0 (4.3) N/kg

in the unbraced condition (t6 = 3.57, p = 0.012). The

mean difference of 2.9 N/kg represents a 36% higher

VGRF during the landings with a brace compared to

without a brace.

not

Page 39: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Statistics Humour

A student set forth on a quest

To learn which of the world’s beers was best

But his wallet was dried out

At the first pub he tried out

With two samples he flunked the means test

Gehlbach, SH (2002)

Interpreting the medical literature

Page 40: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Summary: both t-tests are of the form:

t = Standard Error

Mean Difference

Page 41: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

To increase statistical power

t = Standard Error

Mean Difference

Maximize

Minimize

Page 42: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Choosing which t-test to use

• Independent• no correlation

between the two groups

• Dependent• two sets of data (pair

of scores) from matched subjects or from the same subject (repeated measures)

• data are correlated

Page 43: Dependent t-tests. Factors affecting statistical power in the t-test Statistical power ability to identify a statistically significant difference when

Time for Lunch