Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as.

Slides:



Advertisements
Similar presentations
1 COMM 301: Empirical Research in Communication Lecture 15 – Hypothesis Testing Kwan M Lee.
Advertisements

Chapter 12: Testing hypotheses about single means (z and t) Example: Suppose you have the hypothesis that UW undergrads have higher than the average IQ.
Review: What influences confidence intervals?
BCOR 1020 Business Statistics
T-Tests Lecture: Nov. 6, 2002.
1 T-test for the Mean of a Population: Unknown population standard deviation Here we will focus on two methods of hypothesis testing: the critical value.
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
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.,
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Copyright © 2012 by Nelson Education Limited. Chapter 7 Hypothesis Testing I: The One-Sample Case 7-1.
1 Lecture note 4 Hypothesis Testing Significant Difference ©
1 Psych 5500/6500 The t Test for a Single Group Mean (Part 1): Two-tail Tests & Confidence Intervals Fall, 2008.
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.
Reasoning in Psychology Using Statistics Psychology
Chapter 8 Parameter Estimates and Hypothesis Testing.
Example You give 100 random students a questionnaire designed to measure attitudes toward living in dormitories Scores range from 1 to 7 –(1 = unfavorable;
Chapter 8 Hypothesis Testing I. Significant Differences  Hypothesis testing is designed to detect significant differences: differences that did not occur.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
Chapter 12: Hypothesis Testing. Remember that our ultimate goal is to take information obtained in a sample and use it to come to some conclusion about.
Practice Is there a significant (  =.01) relationship between opinions about the death penalty and opinions about the legalization of marijuana? 933.
What if.... The two samples have different sample sizes (n)
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.
Statistical Techniques
Practice A research study was conducted to examine the differences between older and younger adults on perceived life satisfaction. A pilot study was.
SPSS Problem and slides Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of times would result in.
SPSS Homework Practice The Neuroticism Measure = S = 6.24 n = 54 How many people likely have a neuroticism score between 29 and 34?
Practice You recently finished giving 5 Villanova students the MMPI paranoia measure. Determine if Villanova students’ paranoia score is significantly.
SPSS Homework Practice The Neuroticism Measure = S = 6.24 n = 54 How many people likely have a neuroticism score between 29 and 34?
Dependent-Samples t-Test
Hypothesis Testing for Means (Small Samples)
Hypothesis Testing: One Sample Cases
Seven Steps for Doing 2 1) State the hypothesis 2) Create data table
Hypothesis Testing I The One-sample Case
Introduction to Statistics for the Social Sciences SBS200 - Lecture Section 001, Fall 2016 Room 150 Harvill Building 10: :50 Mondays, Wednesdays.
Is this quarter fair?. Is this quarter fair? Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of.
Inference and Tests of Hypotheses
Hypothesis Testing: Preliminaries
Hypothesis testing March 20, 2000.
Hypothesis Tests for 1-Sample Proportion
Hypothesis Testing: Hypotheses
CONCEPTS OF HYPOTHESIS TESTING
Seven Steps for Doing 2 1) State the hypothesis 2) Create data table
Review: What influences confidence intervals?
Is a persons’ size related to if they were bullied
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Practice I think it is colder in Philadelphia than in Anaheim ( = .10). To test this, I got temperatures from these two places on the Internet.
Reasoning in Psychology Using Statistics
What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days.
Extra Brownie Points! Lottery To Win: choose the 5 winnings numbers from 1 to 49 AND Choose the "Powerball" number from 1 to 42 What is the probability.
You can calculate: Central tendency Variability You could graph the data.
Statistics for the Social Sciences
Statistics Problem Set III
No class on Wednesday 11/1 No class on Friday 11/3
HYPOTHESIS TESTS ABOUT THE MEAN AND PROPORTION
Practice The Neuroticism Measure = S = 6.24 n = 54
Reasoning in Psychology Using Statistics
What are their purposes? What kinds?
Reasoning in Psychology Using Statistics
Practice You wonder if psychology majors have higher IQs than sociology majors ( = .05) You give an IQ test to 4 psychology majors and 4 sociology majors.
So far We have been doing independent samples designs The observations in one group were not linked to the observations in the other group.
Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as.
Extra Brownie Points! Lottery To Win: choose the 5 winnings numbers
Reasoning in Psychology Using Statistics
Practice Did the type of signal effect response time?
No class on Wednesday 11/1 No class on Friday 11/3
Is this quarter fair?. Is this quarter fair? Is this quarter fair? How could you determine this? You assume that flipping the coin a large number of.
Section 11.1: Significance Tests: Basics
Hypothesis Testing for Proportions
Practice You recently finished giving 5 Villanova students the MMPI paranoia measure. Determine if Villanova students’ paranoia score is significantly.
Presentation transcript:

Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as DeMere's problem, named after Chevalier De Mere. Blaise Pascal later solved this problem. 

Binomial Distribution p = .482 of zero aces 1 - .482 = .518 at least one ace will occur

Binomial Distribution p = .508 of zero double aces 1 - .508 = .492 at least one double ace will occur

Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as DeMere's problem, named after Chevalier De Mere. More likely at least one ace with 4 throws will occur

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 4

Hypothesis Alternative hypothesis H1: sample = 4 In other words, the population mean will be different than 4

Hypothesis Alternative hypothesis Null hypothesis H1: sample = 4 In other words, the population mean will not be different than 4

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

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

Observed t-value tobs = (X - ) / Sx

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

Observed t-value tobs = (X - ) / Sx Sx = S / N

Observed t-value tobs = (X - ) / .194 .194 = 1.94/ 100

Observed t-value tobs = (4.51 – 4.0) / .194

Observed t-value 2.63 = (4.51 – 4.0) / .194

t distribution

t distribution tobs = 2.63

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.

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 Page 747 First Column are df Look at an alpha of .05 with two-tails

t distribution tobs = 2.63

t distribution tcrit = -1.98 tcrit = 1.98 tobs = 2.63

t distribution tcrit = -1.98 tcrit = 1.98 tobs = 2.63

t distribution Reject H0:  sample = 4 tcrit = -1.98 tcrit = 1.98 tobs = 2.63 If tobs fall in critical area reject the null hypothesis Reject H0:  sample = 4

t distribution Do not reject H0:  sample = 4 tcrit = -1.98 tobs = 2.63 If tobs does not fall in critical area do not reject the null hypothesis Do not reject H0:  sample = 4

Decision Since tobs falls in the critical region we reject Ho and accept H1 It is statistically significant, students ratings of the dorms is different than 4. p < .05

Example You wonder if the average IQ score of students at Villanova significantly different (at alpha = .05)than the average IQ of the population (which is 100). You sample the students in this room. N = 54 X = 130 s = 18.4

The Steps Try to always follow these steps!

Step 1: Write out Hypotheses Alternative hypothesis H1: sample = 100 Null hypothesis H0: sample = 100

Step 2: Calculate the Critical t N = 54 df = 53  = .05 tcrit = 2.0

Step 3: Draw Critical Region tcrit = -2.00 tcrit = 2.00

Step 4: Calculate t observed tobs = (X - ) / Sx

Step 4: Calculate t observed tobs = (X - ) / Sx Sx = S / N

Step 4: Calculate t observed tobs = (X - ) / Sx 2.5 = 18.4 / 54

Step 4: Calculate t observed tobs = (X - ) / Sx 12 = (130 - 100) / 2.5 2.5 = 18.4 / 54

Step 5: See if tobs falls in the critical region tcrit = -2.00 tcrit = 2.00

Step 5: See if tobs falls in the critical region tcrit = -2.00 tcrit = 2.00 tobs = 12

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

Step 7: Put answer into words We reject H0 and accept H1. The average IQ of students at Villanova is statistically different ( = .05) than the average IQ of the population.

Practice You recently finished giving 5 of your friends the MMPI paranoia measure. Is your friends average average paranoia score significantly ( = .10) different than the average paranoia of the population ( = 56.1)?

Scores

Step 1: Write out Hypotheses Alternative hypothesis H1: sample = 56.1 Null hypothesis H0: sample = 56.1

Step 2: Calculate the Critical t N = 5 df =4  = .10 tcrit = 2.132

Step 3: Draw Critical Region tcrit = -2.132 tcrit = 2.132

Step 4: Calculate t observed tobs = (X - ) / Sx -.48 = (55.2 - 56.1) / 1.88 1.88 = 4.21/ 5

Step 5: See if tobs falls in the critical region tcrit = -2.132 tcrit = 2.132 tobs = -.48

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

Step 7: Put answer into words We fail to reject H0 The average paranoia of your friends is not statistically different ( = .10) than the average paranoia of the population.

SPSS

One-tailed test In the examples given so far we have only examined if a sample mean is different than some value What if we want to see if the sample mean is higher or lower than some value This is called a one-tailed test

Remember You recently finished giving 5 of your friends the MMPI paranoia measure. Is your friends average paranoia score significantly ( = .10) different than the average paranoia of the population ( = 56.1)?

Hypotheses Alternative hypothesis Null hypothesis H1: sample = 56.1

What if. . . You recently finished giving 5 of your friends the MMPI paranoia measure. Is your friends average paranoia score significantly ( = .10) lower than the average paranoia of the population ( = 56.1)?

Hypotheses Alternative hypothesis Null hypothesis H1: sample < 56.1 Null hypothesis H0: sample = or > 56.1

Step 2: Calculate the Critical t N = 5 df =4  = .10 Since this is a “one-tail” test use the one-tailed column Note: one-tail = directional test tcrit = -1.533 If H1 is < then tcrit = negative If H1 is > then tcrit = positive

Step 3: Draw Critical Region tcrit = -1.533

Step 4: Calculate t observed tobs = (X - ) / Sx

Step 4: Calculate t observed tobs = (X - ) / Sx -.48 = (55.2 - 56.1) / 1.88 1.88 = 4.21/ 5

Step 5: See if tobs falls in the critical region tcrit = -1.533

Step 5: See if tobs falls in the critical region tcrit = -1.533 tobs = -.48

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

Step 7: Put answer into words We fail to reject H0 The average paranoia of your friends is not statistically less then ( = .10) the average paranoia of the population.

Practice You just created a “Smart Pill” and you gave it to 150 subjects. Below are the results you found. Did your “Smart Pill” significantly ( = .05) increase the average IQ scores over the average IQ of the population ( = 100)? X = 103 s = 14.4

Step 1: Write out Hypotheses Alternative hypothesis H1: sample > 100 Null hypothesis H0: sample < or = 100

Step 2: Calculate the Critical t N = 150 df = 149  = .05 tcrit = 1.645

Step 3: Draw Critical Region tcrit = 1.645

Step 4: Calculate t observed tobs = (X - ) / Sx 2.54 = (103 - 100) / 1.18 1.18=14.4 / 150

Step 5: See if tobs falls in the critical region tcrit = 1.645 tobs = 2.54

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

Step 7: Put answer into words We reject H0 and accept H1. The average IQ of the people who took your “Smart Pill” is statistically greater ( = .05) than the average IQ of the population.

So far. . . We have been doing hypothesis testing with a single sample We find the mean of a sample and determine if it is statistically different than the mean of a population

Basic logic of research

Start with two equivalent groups of subjects

Treat them alike except for one thing

See if both groups are different at the end

Notice This means that we need to see if two samples are statistically different from each other We can use the same logic we learned earlier with single sample hypothesis testing

Example You just invented a “magic math pill” that will increase test scores. You give the pill to 4 subjects and another 4 subjects get no pill You then examine their final exam grades

Hypothesis Two-tailed Alternative hypothesis H1: pill = nopill In other words, the means of the two groups will be significantly different Null hypothesis H0: pill = nopill In other words, the means of the two groups will not be significantly different

Hypothesis One-tailed Alternative hypothesis H1: pill > nopill In other words, the pill group will score higher than the no pill group Null hypothesis H0: pill < or = nopill In other words, the pill group will be lower or equal to the no pill group

For current example, lets just see if there is a difference Alternative hypothesis H1: pill = nopill In other words, the means of the two groups will be significantly different Null hypothesis H0: pill = nopill In other words, the means of the two groups will not be significantly different

Results Pill Group 5 3 4 No Pill Group 1 2 4 3

Remember before. . . Step 2: Calculate the Critical t df = N -1

Now Step 2: Calculate the Critical t df = N1 + N2 - 2 df = 4 + 4 - 2 = 6  = .05 t critical = 2.447

Step 3: Draw Critical Region tcrit = -2.447 tcrit = 2.447

Remember before. . . Step 4: Calculate t observed tobs = (X - ) / Sx

Now Step 4: Calculate t observed tobs = (X1 - X2) / Sx1 - x2

Now Step 4: Calculate t observed tobs = (X1 - X2) / Sx1 - x2

Now Step 4: Calculate t observed tobs = (X1 - X2) / Sx1 - x2 X1 = 3.75 X2 = 2.50

Now Step 4: Calculate t observed tobs = (X1 - X2) / Sx1 - x2

Standard Error of a Difference Sx1 - x2 When the N of both samples are equal If N1 = N2: Sx1 - x2 = Sx12 + Sx22

Results Pill Group 5 3 4 No Pill Group 1 2 4 3

Standard Deviation S = -1

Standard Deviation Pill Group 5 3 4 No Pill Group 1 2 4 3 X2= 10

Standard Deviation Pill Group 5 3 4 No Pill Group 1 2 4 3 X2= 10

Standard Deviation Pill Group 5 3 4 No Pill Group 1 2 4 3 X2= 10 Sx= .48 Sx= . 645

Standard Error of a Difference Sx1 - x2 When the N of both samples are equal If N1 = N2: Sx1 - x2 = Sx12 + Sx22

Standard Error of a Difference Sx1 - x2 When the N of both samples are equal If N1 = N2: Sx1 - x2 = (.48)2 + (.645)2

Standard Error of a Difference Sx1 - x2 When the N of both samples are equal If N1 = N2: Sx1 - x2 = (.48)2 + (.645)2 = .80

Standard Error of a Difference Raw Score Formula When the N of both samples are equal If N1 = N2: Sx1 - x2 =

X1= 15 X12= 59 N1 = 4 X2= 10 X22= 30 N2 = 4 Sx1 - x2 =

X1= 15 X12= 59 N1 = 4 X2= 10 X22= 30 N2 = 4 Sx1 - x2 = 10 15

Sx1 - x2 = X1= 15 X12= 59 N1 = 4 X2= 10 X22= 30 N2 = 4 10 15

Sx1 - x2 = X1= 15 X12= 59 N1 = 4 X2= 10 X22= 30 N2 = 4 10 15 4 (4 - 1)

Sx1 - x2 = X1= 15 X12= 59 N1 = 4 X2= 10 X22= 30 N2 = 4 10 15 56.25 30 25 4 4 12

.80 = X1= 15 X12= 59 N1 = 4 X2= 10 X22= 30 N2 = 4 10 15 59 56.25 30 25 7.75 4 4 12

Now Step 4: Calculate t observed tobs = (X1 - X2) / Sx1 - x2 Sx1 - x2 = .80 X1 = 3.75 X2 = 2.50

Now Step 4: Calculate t observed Sx1 - x2 = .80 X1 = 3.75 X2 = 2.50

Now Step 4: Calculate t observed 1.56 = (3.75 - 2.50) / .80 Sx1 - x2 = .80 X1 = 3.75 X2 = 2.50

Step 5: See if tobs falls in the critical region tcrit = -2.447 tcrit = 2.447

Step 5: See if tobs falls in the critical region tcrit = -2.447 tcrit = 2.447 tobs = 1.56

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

Step 7: Put answer into words We fail to reject H0. The final exam grades of the “pill group” were not statistically different ( = .05) than the final exam grades of the “no pill” group.

SPSS

What if. . . . The two samples have different sample sizes (n)

Results Psychology 110 150 140 135 Sociology 90 95 80 98

Results Psychology 110 150 140 135 Sociology 90 95 80

If samples have unequal n All the steps are the same! Only difference is in calculating the Standard Error of a Difference

Standard Error of a Difference When the N of both samples is equal If N1 = N2: Sx1 - x2 =

Standard Error of a Difference When the N of both samples is not equal If N1 = N2: N1 + N2 - 2

Results Psychology 110 150 140 135 Sociology 90 95 80 X1= 535 N1 = 4 X2= 265 X22= 23525 N2 = 3

X1= 535 X12= 72425 N1 = 4 X2= 265 X22= 23525 N2 = 3 N1 + N2 - 2

X1= 535 X12= 72425 N1 = 4 X2= 265 X22= 23525 N2 = 3 265 535 N1 + N2 - 2

X1= 535 X12= 72425 N1 = 4 X2= 265 X22= 23525 N2 = 3 265 535 23525 72425 N1 + N2 - 2

X1= 535 X12= 72425 N1 = 4 X2= 265 X22= 23525 N2 = 3 265 535 23525 72425 3 4 4 3 4 + 3 - 2

X1= 535 X12= 72425 N1 = 4 X2= 265 X22= 23525 N2 = 3 265 535 23525 23408.33 72425 71556.25 3 4 .25+.33 4 3 5

X1= 535 X12= 72425 N1 = 4 X2= 265 X22= 23525 N2 = 3 265 535 23525 23408.33 72425 71556.25 197.08 (.58) 3 4 .25+.33 4 3 5

= 10.69 X1= 535 X12= 72425 N1 = 4 X2= 265 X22= 23525 N2 = 3 23408.33 72425 71556.25 114.31 3 4 .25+.33 4 3 5 = 10.69