Example You give 100 random students a questionnaire designed to measure attitudes toward living in dormitories Scores range from 1 to 7 –(1 = unfavorable;

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 8 Hypothesis Testing I. Significant Differences  Hypothesis testing is designed to detect significant differences: differences that did not occur.
Cal State Northridge  320 Ainsworth Sampling Distributions and Hypothesis Testing.
BCOR 1020 Business Statistics
Hypothesis testing & Inferential Statistics
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
T-Tests Lecture: Nov. 6, 2002.
Hypothesis Testing Using The One-Sample t-Test
Probability Population:
One Sample Z-test Convert raw scores to z-scores to test hypotheses about sample Using z-scores allows us to match z with a probability Calculate:
Chapter 5For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 Suppose we wish to know whether children who grow up in homes without access to.
Chapter Ten Introduction to Hypothesis Testing. Copyright © Houghton Mifflin Company. All rights reserved.Chapter New Statistical Notation The.
Statistics 11 Hypothesis Testing Discover the relationships that exist between events/things Accomplished by: Asking questions Getting answers In accord.
Hypothesis Testing:.
Overview of Statistical Hypothesis Testing: The z-Test
Descriptive statistics Inferential statistics
Hypothesis Testing.
Chapter 8 Hypothesis Testing. Section 8-1: Steps in Hypothesis Testing – Traditional Method Learning targets – IWBAT understand the definitions used in.
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.,
Single Sample Inferences
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.
Chapter 8 Hypothesis Testing I. Chapter Outline  An Overview of Hypothesis Testing  The Five-Step Model for Hypothesis Testing  One-Tailed and Two-Tailed.
Hypothesis Testing: One Sample Cases. Outline: – The logic of hypothesis testing – The Five-Step Model – Hypothesis testing for single sample means (z.
Chapter 9 Hypothesis Testing II: two samples Test of significance for sample means (large samples) The difference between “statistical significance” and.
Copyright © 2012 by Nelson Education Limited. Chapter 7 Hypothesis Testing I: The One-Sample Case 7-1.
PowerPoint presentations prepared by Lloyd Jaisingh, Morehead State University Statistical Inference: Hypotheses testing for single and two populations.
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.
Statistical Inference Statistical Inference involves estimating a population parameter (mean) from a sample that is taken from the population. Inference.
DIRECTIONAL HYPOTHESIS The 1-tailed test: –Instead of dividing alpha by 2, you are looking for unlikely outcomes on only 1 side of the distribution –No.
1 Chapter 8 Introduction to Hypothesis Testing. 2 Name of the game… Hypothesis testing Statistical method that uses sample data to evaluate a hypothesis.
Psych 230 Psychological Measurement and Statistics
Chapter 8 Parameter Estimates and Hypothesis Testing.
Practice You collect data from 53 females and find the correlation between candy and depression is Determine if this value is significantly different.
Inferences from sample data Confidence Intervals Hypothesis Testing Regression Model.
1 Where we are going : a graphic: Hypothesis Testing. 1 2 Paired 2 or more Means Variances Proportions Categories Slopes Ho: / CI Samples Ho: / CI Ho:
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.
With the growth of internet service providers, a researcher decides to examine whether there is a correlation between cost of internet service per.
SPSS SPSS Problem # (7.19) 7.11 (b) You can calculate: Central tendency Variability You could graph the data.
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.
Practice A research study was conducted to examine the differences between older and younger adults on perceived life satisfaction. A pilot study was.
Sampling Distribution (a.k.a. “Distribution of Sample Outcomes”) – Based on the laws of probability – “OUTCOMES” = proportions, means, test statistics.
Psych 230 Psychological Measurement and Statistics Pedro Wolf October 21, 2009.
Hypothesis test flow chart
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?
Psychology 290 Lab z-tests & t-tests March 5 - 7, 2007 –z-test –One sample t-test –SPSS – Chapter 7.
Welcome to MM570 Psychological Statistics Unit 5 Introduction to Hypothesis Testing Dr. Ami M. Gates.
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?
Hypothesis Testing for Means (Small Samples)
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.
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.
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.
What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days.
No class on Wednesday 11/1 No class on Friday 11/3
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
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.
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:

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 –H 1 :  sample = 4 –In other words, the population mean will be different than 4

Hypothesis Alternative hypothesis –H 1 :  sample = 4 Null hypothesis –H 0 :  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 H 1, 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 t obs = (X -  ) / S x

Observed t-value t obs = (X -  ) / S x This will test if the null hypothesis H 0 :  sample = 4 is true The bigger the t obs the more likely that H 1 :  sample = 4 is true

Observed t-value t obs = (X -  ) / S x S x = S / N

Observed t-value t obs = (X -  ) / = 1.94/ 100

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

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

t distribution

t obs = 2.63

t distribution t obs = 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 t obs must be to be significantly different than 0 you find a t crit value. Calculate df = N - 1 Page 747 –First Column are df –Look at an alpha of.05 with two-tails

t distribution t obs = 2.63

t distribution t obs = 2.63 t crit = 1.98 t crit = -1.98

t distribution t obs = 2.63 t crit = 1.98 t crit = -1.98

t distribution t obs = 2.63 t crit = 1.98 t crit = If t obs fall in critical area reject the null hypothesis Reject H 0 :  sample = 4

t distribution t obs = 2.63 t crit = 1.98 t crit = If t obs does not fall in critical area do not reject the null hypothesis Do not reject H 0 :  sample = 4

Decision Since t obs falls in the critical region we reject H o and accept H 1 It is statistically significant, students tend to think favorably about living in the dorms. 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 –H 1 :  sample = 100 Null hypothesis –H 0 :  sample = 100

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

Step 3: Draw Critical Region t crit = 2.00t crit = -2.00

Step 4: Calculate t observed t obs = (X -  ) / S x

Step 4: Calculate t observed t obs = (X -  ) / S x S x = S / N

Step 4: Calculate t observed t obs = (X -  ) / S x 2.5 = 18.4 / 54

Step 4: Calculate t observed t obs = (X -  ) / S x 12 = ( ) / = 18.4 / 54

Step 5: See if t obs falls in the critical region t crit = 2.00t crit = -2.00

Step 5: See if t obs falls in the critical region t crit = 2.00t crit = t obs = 12

Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

Step 7: Put answer into words We reject H 0 and accept H 1. 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 –H 1 :  sample = 56.1 Null hypothesis –H 0 :  sample = 56.1

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

Step 3: Draw Critical Region t crit = 2.132t crit =

Step 4: Calculate t observed t obs = (X -  ) / S x -.48 = ( ) / = 4.21/ 5

Step 5: See if t obs falls in the critical region t crit = 2.132t crit = t obs = -.48

Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

Step 7: Put answer into words We fail to reject H 0 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 –H 1 :  sample = 56.1 Null hypothesis –H 0 :  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 –H 1 :  sample < 56.1 Null hypothesis –H 0 :  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 t crit = –If H 1 is < then t crit = negative –If H 1 is > then t crit = positive

Step 3: Draw Critical Region t crit =

Step 4: Calculate t observed t obs = (X -  ) / S x

Step 4: Calculate t observed t obs = (X -  ) / S x -.48 = ( ) / = 4.21/ 5

Step 5: See if t obs falls in the critical region t crit =

Step 5: See if t obs falls in the critical region t crit = t obs = -.48

Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

Step 7: Put answer into words We fail to reject H 0 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 –H 1 :  sample > 100 Null hypothesis –H 0 :  sample < or = 100

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

Step 3: Draw Critical Region t crit = 1.645

Step 4: Calculate t observed t obs = (X -  ) / S x 2.54 = ( ) / =14.4 / 150

Step 5: See if t obs falls in the critical region t crit = t obs = 2.54

Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

Step 7: Put answer into words We reject H 0 and accept H 1. 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 –H 1 :  pill =  nopill –In other words, the means of the two groups will be significantly different Null hypothesis –H 0 :  pill =  nopill –In other words, the means of the two groups will not be significantly different

Hypothesis One-tailed Alternative hypothesis –H 1 :  pill >  nopill –In other words, the pill group will score higher than the no pill group Null hypothesis –H 0 :  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 –H 1 :  pill =  nopill –In other words, the means of the two groups will be significantly different Null hypothesis –H 0 :  pill =  nopill –In other words, the means of the two groups will not be significantly different

Results Pill Group No Pill Group

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

Now Step 2: Calculate the Critical t df = N 1 + N df = = 6  =.05 t critical = 2.447

Step 3: Draw Critical Region t crit = 2.447t crit =

Remember before... Step 4: Calculate t observed t obs = (X -  ) / S x

Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2 X 1 = 3.75 X 2 = 2.50

Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = S x1 2 + S x2 2

Results Pill Group No Pill Group

Standard Deviation S =

Standard Deviation Pill Group No Pill Group  X 1 = 15  X 1 2 = 59  X 2 = 10  X 2 2 = 30

Standard Deviation Pill Group No Pill Group S =.96S = 1.29  X 1 = 15  X 1 2 = 59  X 2 = 10  X 2 2 = 30

Standard Deviation Pill Group No Pill Group S =.96S = 1.29 S x =.48S x =. 645  X 1 = 15  X 1 2 = 59  X 2 = 10  X 2 2 = 30

Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = S x1 2 + S x2 2

Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = (.48) 2 + (.645) 2

Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = (.48) 2 + (.645) 2 =.80

Standard Error of a Difference Raw Score Formula When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 =

 X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = 4

Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 =

Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 =

Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = (4 - 1)

Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 =

 X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = =

Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2 Sx 1 - x 2 =.80 X 1 = 3.75 X 2 = 2.50

Now Step 4: Calculate t observed t obs = ( ) /.80 Sx 1 - x 2 =.80 X 1 = 3.75 X 2 = 2.50

Now Step 4: Calculate t observed 1.56 = ( ) /.80 Sx 1 - x 2 =.80 X 1 = 3.75 X 2 = 2.50

Step 5: See if t obs falls in the critical region t crit = 2.447t crit =

Step 5: See if t obs falls in the critical region t crit = 2.447t crit = t obs = 1.56

Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

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

SPSS

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

Results Psychology Sociology

Step 1: Hypotheses Alternative hypothesis –H 1 :  psychology >  sociology Null hypothesis –H 0 :  psychology = or <  sociology

Step 2: Calculate the Critical t df = N 1 + N df = = 6  =.05 One-tailed t critical = 1.943

Step 3: Draw Critical Region t crit = 1.943

Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

9.38 =  X 1 = 535  X 1 2 = N 1 = 4 X 1 =  X 2 = 363  X 2 2 = N 2 = 4 X 2 = (4 - 1)

Step 4: Calculate t observed 4.58 = ( ) / 9.38 Sx 1 - x 2 = 9.38 X 1 = X 2 = 90.75

Step 5: See if t obs falls in the critical region t crit = t obs = 4.58

Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

Step 7: Put answer into words We Reject H 0, and accept H 1 Psychology majors have significantly (  =.05) higher IQs than sociology majors.

Practice

SPSS Problem #