Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a...

43

Transcript of Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a...

Page 1: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.
Page 2: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Practice• Does drinking milkshakes affect (alpha

= .05) your weight?

• To see if milkshakes affect a persons weight you collected data from 5 sets of twins. You randomly had one twin drink water and the other twin drank milkshakes. After 3 months you weighed them.

Page 3: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Results

Water

Twin A 186

Twin B 200

Twin C 190

Twin D 162

Twin E 175

Milkshakes

195

202

196

165

183

Page 4: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

HypothesisTwo-tailed

• Alternative hypothesis– H1: water = milkshake

• Null hypothesis– H0: water = milkshake

Page 5: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 2: Calculate the Critical t

• N = Number of pairs

• df = N - 1

• 5 - 1 = 4 = .05

• t critical = 2.776

Page 6: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 3: Draw Critical Region

tcrit = 2.776tcrit = -2.776

Page 7: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 4: Calculate t observed

tobs = (X - Y) / SD

Page 8: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

3.04 =

(D)

-9

-2

-6

-3

-8

D = -28

D2 =194

N = 6

-28194

5

5 - 1

Page 9: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 4: Calculate t observed

tobs = (X - Y) / SD

1.36=3.04 / 5

N = number of pairs

Page 10: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 4: Calculate t observed

-4.11 = (182.6 – 188.2) / 1.36

X = 182.6

Y = 188.2

SD = 1.36

Page 11: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 5: See if tobs falls in the critical region

tcrit = 2.776tcrit = -2.776

tobs = -4.11

Page 12: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 6: Decision

• If tobs falls in the critical region:

– Reject H0, and accept H1

• If tobs does not fall in the critical region:

– Fail to reject H0

Page 13: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Step 7: Put answer into words

• Reject H0, and accept H1

• Milkshakes significantly ( = .05) affect a persons weight.

Page 14: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.
Page 15: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

What if. . .

• You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person misses class)

• You would simply do a two-sample t-test– two-tailed

• Easy!

Page 16: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

But, what if. . .

• You were asked to determine if psychology, sociology, and biology majors have significantly different class attendance

• You can’t do a two-sample t-test – You have three samples

• No such thing as a three sample t-test!

Page 17: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

One-Way ANOVA

• ANOVA = Analysis of Variance

• This is a technique used to analyze the results of an experiment when you have more than two groups

Page 18: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Example• You measure the number of days 7

psychology majors, 7 sociology majors, and 7 biology majors are absent from class

• You wonder if the average number of days each of these three groups was absent is significantly different from one another

Page 19: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Hypothesis

• Alternative hypothesis (H1)

• H1: The three population means are not all equal

Page 20: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Hypothesis

• Alternative hypothesis (H1)

socio = bio

Page 21: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Hypothesis

• Alternative hypothesis (H1)

socio = psych

Page 22: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Hypothesis

• Alternative hypothesis (H1)

psych = bio

Page 23: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Hypothesis

• Alternative hypothesis (H1)

psych = bio = soc

Page 24: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Hypothesis

• Alternative hypothesis (H1)

– Notice: It does not say where this difference is at!!

Page 25: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Hypothesis

• Null hypothesis (H0)

psych = socio = bio

– In other words, all three means are equal to one another (i.e., no difference between the means)

Page 26: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Results

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

Page 27: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Logic

• Is the same as t-tests

• 1) calculate a variance ratio (called an F; like t-observed)

• 2) Find a critical value

• 3) See if the the F value falls in the critical area

Page 28: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between and Within Group Variability

• Two types of variability

• Between– the differences between the mean scores of the

three groups– The more different these means are, the more

variability!

Page 29: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Results

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

Page 30: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between Variability

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

S2 = .66

Page 31: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between Variability

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

+ 5

Page 32: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between Variability

Sociology Psychology Biology9 1 18 2 17 0 28 2 08 4 29 3 07 2 1

X = 8.00 X = 2.00 X = 1.00

Page 33: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between Variability

Sociology Psychology Biology9 1 18 2 17 0 28 2 08 4 29 3 07 2 1

X = 8.00 X = 2.00 X = 1.00

S2 = 9.55

Page 34: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between Group Variability

• What causes this variability to increase?

• 1) Effect of the variable (college major)

• 2) Sampling error

Page 35: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between and Within Group Variability

• Two types of variability

• Within– the variability of the scores within each group

Page 36: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Results

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

Page 37: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Within Variability

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

S2 =.57

Page 38: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Within Variability

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

S2 =.57 S2 =1.43 S2 =.57

Page 39: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Within Group Variability

• What causes this variability to increase?

• 1) Sampling error

Page 40: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between and Within Group Variability

Between-group variability

Within-group variability

Page 41: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between and Within Group Variability

sampling error + effect of variable

sampling error

Page 42: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between and Within Group Variability

sampling error + effect of variable

sampling error

Thus, if null hypothesis was true this would result in a value of 1.00

Page 43: Practice Does drinking milkshakes affect (alpha =.05) your weight? To see if milkshakes affect a persons weight you collected data from 5 sets of twins.

Between and Within Group Variability

sampling error + effect of variable

sampling error

Thus, if null hypothesis was not true this value would be greater than 1.00