Top Banner
57

Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Dec 28, 2015

Download

Documents

Stuart Morgan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,
Page 2: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Is this quarter fair?

Page 3: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Is this quarter fair?

• How could you determine this?

• You assume that flipping the coin a large number of times would result in heads half the time (i.e., it has a .50 probability)

Page 4: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Is this quarter fair?

• Say you flip it 100 times

• 52 times it is a head

• Not exactly 50, but its close– probably due to random error

Page 5: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Is this quarter fair?

• What if you got 65 heads?

• 70?

• 95?

• At what point is the discrepancy from the expected becoming too great to attribute to chance?

Page 6: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Example• You give 100 random students a questionnaire designed

to measure attitudes toward living in dormitories

• Scores range from 1 to 7 – (1 = unfavorable; 4 = neutral; 7 = favorable)

• You wonder if the mean score of the population is different then the population mean at Haverford (which is 4)

Page 7: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Hypothesis

• Alternative hypothesis– H1: sample = 4

– In other words, the population mean will be different than 4

Page 8: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Hypothesis

• Alternative hypothesis– H1: sample = 4

• Null hypothesis– H0: sample = 4

– In other words, the population mean will not be different than 4

Page 9: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Results

• N = 100

• X = 4.51

• s = 1.94

• Notice, your sample mean is consistent with H1, but you must determine if this difference is simply due to chance

Page 10: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Results

• N = 100

• X = 4.51

• s = 1.94

• To determine if this difference is due to chance you must calculate an observed t value

Page 11: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Observed t-value

tobs = (X - ) / Sx

Page 12: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Observed t-value

tobs = (X - ) / Sx

This will test if the null hypothesis H0: sample = 4 is true

The bigger the tobs the more likely that H1: sample = 4 is true

Page 13: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Observed t-value

tobs = (X - ) / Sx

Sx = S / N

Page 14: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Observed t-value

tobs = (X - ) / .194

.194 = 1.94/ 100

Page 15: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Observed t-value

tobs = (4.51 – 4.0) / .194

Page 16: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Observed t-value

2.63 = (4.51 – 4.0) / .194

Page 17: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

Page 18: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

tobs = 2.63

Page 19: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

tobs = 2.63

Next, must determine if this t value happened due to chance or if represent a real difference in means. Usually, we want to be 95% certain.

Page 20: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t critical

• To find out how big the tobs must be to be significantly different than 0 you find a tcrit value.

• Calculate df = N - 1

• Table D – First Column are df

– Look at an alpha of .05 with two-tails

Page 21: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

tobs = 2.63

Page 22: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

tobs = 2.63

tcrit = 1.98tcrit = -1.98

Page 23: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

tobs = 2.63

tcrit = 1.98tcrit = -1.98

Page 24: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

tobs = 2.63

tcrit = 1.98tcrit = -1.98

If tobs fall in critical area reject the null hypothesis

Reject H0: sample = 4

Page 25: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

t distribution

tobs = 2.63

tcrit = 1.98tcrit = -1.98

If tobs does not fall in critical area do not reject the null hypothesis

Do not reject H0: sample = 4

Page 26: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Decision

• Since tobs falls in the critical region we reject Ho and accept H1

• It is statistically significant, the average favorability of Villanova dorms is significantly different than the favorability of Haverford dorms.

• p < .05

Page 27: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

p < .05

• We usually test for significance at the “.05 level”

• This means that the results we got in the previous example would only happen 5 times out of 100 if the true population mean was really 4

Page 28: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,
Page 29: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Hypothesis Testing

• Basic Logic• 1) Want to test a hypothesis (called the research or

alternative hypothesis).– “Second born children are smarter than everyone else

(Mean IQ of everyone else = 100”)

• 2) Set up the null hypothesis that your sample was drawn from the general population– “Your sample of second born children come from a

population with a mean of 100”

Page 30: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Hypothesis Testing

• Basic Logic• 3) Collect a random sample

– You collect a sample of second born children and find their mean IQ is 145

• 4) Calculate the probability of your sample mean occurring given the null hypothesis– What is the probability of getting a sample mean of 145

if they were from a population mean of 100

Page 31: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Hypothesis Testing

• Basic Logic• 5) On the basis of that probability you make a

decision to either reject of fail to reject the null hypothesis.

– If it is very unlikely (p < .05) to get a mean of 145 if the population mean was 100 you would reject the null

– Second born children are SIGNIFICANTLY smarter than the general population

Page 32: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Example• You wonder if the average IQ score of

Villanova students is significantly different (at alpha = .05)than the average IQ of the population (which is 100). To determine this you collect a sample of 54 students.

• N = 54

• X = 130

• s = 18.4

Page 33: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

The Steps

• Try to always follow these steps!

Page 34: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 1: Write out Hypotheses

• Alternative hypothesis– H1: sample = 100

• Null hypothesis– H0: sample = 100

Page 35: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 2: Calculate the Critical t

• N = 54

• df = 53 = .05

• tcrit = 2.0

Page 36: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 3: Draw Critical Region

tcrit = 2.00tcrit = -2.00

Page 37: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

Page 38: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

Sx = S / N

Page 39: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

2.5 = 18.4 / 54

Page 40: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

12 = (130 - 100) / 2.52.5 = 18.4 / 54

Page 41: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 5: See if tobs falls in the critical region

tcrit = 2.00tcrit = -2.00

Page 42: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 5: See if tobs falls in the critical region

tcrit = 2.00tcrit = -2.00

tobs = 12

Page 43: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

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 44: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 7: Put answer into words

• We reject H0 and accept H1.

• The average IQ of Villanova students statistically different ( = .05) than the average IQ of the population.

Page 45: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Practice• You wonder if the average agreeableness score of

Villanova students is significantly different (at alpha = .05) than the average agreeableness of the population (which is 3.8). You collect data from 31 people.

• N = 31

• X = 3.92

• s = 1.52

Page 46: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,
Page 47: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 1: Write out Hypotheses

• Alternative hypothesis– H1: sample = 3.8

• Null hypothesis– H0: sample = 3.8

Page 48: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 2: Calculate the Critical t

• N = 31

• df = 30 = .05

• tcrit = 2.042

Page 49: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 3: Draw Critical Region

tcrit = 2.042tcrit = -2.042

Page 50: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

Page 51: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

Sx = S / N

Page 52: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

.27 = 1.52 / 31

Page 53: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 4: Calculate t observed

tobs = (X - ) / Sx

.44 = (3.92 - 3.80) / .27

Page 54: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 5: See if tobs falls in the critical region

tcrit = 2.042tcrit = -2.042

Page 55: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 5: See if tobs falls in the critical region

tcrit = 2.042tcrit = -2.042

tobs = .44

Page 56: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

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 57: Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in heads half the time (i.e.,

Step 7: Put answer into words

• We fail to reject H0

• The average agreeableness score of Villanova students is not statistically different ( = .05) than the average agreeableness score of the population.