Yournotes sponsored in part by

Study Break!

Hypothesis Testing

Lecture Goals

You should be able to:

- Explain null and alternative hypotheses, and alpha

- Understand the relationship between sampling error and hypothesis testing

- Test hypotheses

- Explain the logic of testing hypotheses
 
 

Reading

TBA
 
 

Definitions

hypothesis = a prediction about a change

  Everyday hypotheses:

Light switch

Flowers and candy

Seasonal temperatures
 
 

null hypothesis = assumption that nothing has changed

= assumption of status quo

= nothing unusual has occurred

alternative hypothesis

= assumption that something has changed

 
Court Cases Presumption of innocence = assume innocent until proven guilty

null hypothesis

= assumption of status quo

= assumption of innocence

= nothing unusual has occurred
 
 

alternative hypothesis

= assumption of change (not innocent)

Start by assuming null hypothesis is correct (assumption of innocence)

Collect data (evidence)

Observe evidence (data)
 
 

Do data provide reason to reject the assumption of innocence?

- No, assume null hypothesis is true (not guilty verdict )

- Yes, assume opposite of null hypothesis is true (alternative hypothesis = guilty verdict )

 
Coin Flipping Case Is the coin fair?

Start by assuming null hypothesis is correct (assumption of fair coin)

Collect data (evidence)

Observe evidence (data)
 
 

Results: 5 heads & 5 tails

Q = Are the results likely if the coin is fair?

A = Yes

- Conclude nothing is unusual

- Assume null hypothesis is true (fair coin)
 
 

Results: 10 heads & 0 tails

Q = Are the results likely if the coin is fair?

A = No

Why did we get these results?

1) an unlikely event occurred

2) our initial assumption is wrong

Odds of # 1 = .0001, # 2 more probable
 

Results: 10 heads & 0 tails

Q = Are the results likely if the coin is fair?

A = No
 

2) our initial assumption is wrong

- assumption of fair coin wrong

- null hypothesis wrong

- reject null hypothesis

- assume opposite is true

- assume alt. hyp. is correct

- conclude coin is NOT a fair coin
 

Psychological Research

hypothesis = a prediction about a change Usually about group differences

- same group before & after

- 2 different groups (treatments)

- control vs. experimental groups
 
 

alternative hypothesis

= assumption of change/effect

= assumption of group differences
 
 

Victaphine is a better drug than Pecson

Positive reinforcement promotes learning

Women mature faster than men
 
 

null hypothesis

= assumption of status quo

= assumption of no change/effect

= assumption of no group differences

Victaphine and Pecson have exactly the same effects

Women and men mature at equal rates
 
 

Formal Process Outline

Start by assuming null hypothesis is correct (assumption of fair coin)

Collect data (evidence)

Observe evidence (data)

Is something unusual? Did an unlikely event occur? Make decision about null & alt. hyp.
 
 
Formal 7 Step Process State null hypothesis

State alternative hypothesis

Set level of significance

Calculate the z-score

Find percentile

Decision about the null hypothesis

Draw a conclusion

A researcher wants to know whether the mean IQ score of PSU students is different from the mean IQ score of all Americans.

The IQ scores of all Americans are normally distributed with a m = 100 and s = 16.

The researcher randomly selects one PSU student and finds that student's IQ score is 130.
 
 

Step 1: State the Null Hypothesis

null hypothesis

= assumption of status quo

= assumption of no change/effect

= assumption of no group differences

= assumes all scores from SAME

group or population
symbol = Ho

Ho : mean IQ of PSU students = mean IQ

of all Americans Ho : mean IQ of PSU students = 100

Ho : m psu = 100 (or m psu = m Amer)
 
 

Step 2: State the Alternative Hyp.

alternative hypothesis

= assumption of change/effect

= assumption of group differences

= assumes scores from DIFFERENT

groups or populations

 

symbol = HA

HA : mean IQ of PSU students ¹ mean IQ

of all Americans HA : mean IQ of PSU students ¹ 100

HA : m psu ¹ 100 (or m psu ¹ m Amer)
 
 

Time Out for Theory

Q = Are the numbers from the same population of scores or different populations of scores?

Q = How likely is it that the scores are from the same population of scores?

A = Depends on sampling error & criterion that an unlikely event has occurred

  Let's start by assuming HO

HO = assumption of no group differences

Assumes that distribution of PSU IQ scores and the distribution of American IQ scores have identical characteristics

Means that randomly selected PSU score is from a normal distribution with m = 100 and s = 16

The researcher randomly selects one PSU student and finds that student's IQ score.

What is the likelihood that the score is 1s from the mean or closer?
 
 

(graph)
 
 

What is the likelihood that the score is between 1s and 2s from the mean?
 
 

(graph)
 
 

What is the likelihood that the score is between 2s and 3s from the mean?
 
 

(graph)
 
 

What is the likelihood that the score is greater than 3s from the mean?
 
 

(graph)
 
 

 The researcher randomly selects one PSU student and finds that student's IQ score.

Distance from the mean Likelihood

less than 1s 68.14%

1s to 2s 27.08%

2s to 3s 4.30%

greater than 3s .26%
 
 

More scores are close to the mean

Fewer scores are farther from the mean

More likely to randomly select scores closer to the mean
 
 

Less likely to randomly select scores farthest from the mean

Randomly selecting a score that is far from the mean is an unlikely event
 
 

Sampling Error

= how far a random sample is from being a representative sample In this case the sample size = 1, so it is how far a random score is from the pop. Mean
 
 
When the score's distance from the mean is large, the sampling error is large

When the score is close to the mean, the sampling error is small

More likely to randomly select scores closer to the mean

- More likely to have small sampling error
 
 

Less likely to randomly select scores farthest from the mean

- Less likely to have large sampling error
 
 

Large sampling error is an unlikely event
 
 

Sampling Error

= how far a random sample is from being a representative sample In this case the sample size = 1, so it is how far a random score is from the pop. mean
 
  (formula)
 
 
Large z score = unlikely event

If we get an unlikely result?

1) unlikely event occurred by chance

**2) our initial assumption is wrong
 

What do we do?

- we assumed HO (PSU score from A. pop.)

- reject null hypothesis

- assume opposite is true (HA)

- conclude mean IQ score of PSU students is different from the mean IQ score of all Americans
 

Step 3: Set Level of Significance

How do we know how unlikely is unlikely enough to reject HO

Larger sampling errors = more unlikely

Larger z scores = more unlikely

How large does a z score have to be to be considered unlikely?
 
 

We set a criterion a (alpha)

Set arbitrarily

a = symbol for level of significance

a = how unlikely an event must be to reject HO Convention = event must be 95% or 99% unlikely to reject HO

= z-scores in the outer 5% or outer 1% of the distribution are considered unlikely so we should reject HO

 
a = .05 Means we decide z-scores in the outer 5% of distribution are unlikely

a = .01 Means we decide z-scores in the outer 1% of distribution are unlikely
 
 

3 Types of Hypotheses:

1) Group 1 scored higher than Group 2

2) Group 1 scored lower than Group 2

3) Group 1 and Group 2 scored differently

(non-directional)
 
 
1) Group 1 scored higher than Group 2

a = .05 = Z-scores in extreme 5th percentile are unlikely
 
 

(graph)

 1) Group 1 scored higher than Group 2

a = .01 = Z-scores in extreme 1 percentile are unlikely
 
 

(graph)
 
 
2) Group 1 scored lower than Group 2

a = .05 = Z-scores in extreme 5th percentile are unlikely
 
 

(graph)  

2) Group 1 scored lower than Group 2

a = .01 = Z-scores in extreme 1 percentile are unlikely
 
 

(graph)
 
 
3) Non-directional difference

a = .05 = Z-scores in extreme 2.5th percentiles are unlikely
 
 

(graph)

Step 3: Set Level of Significance
 
 

3) Non-directional difference

a = .01 = Z-scores in extreme .005th percentiles are unlikely
 
 

(graph)

 Step 4: Calculate Z-Score

  (formula)

 

REVIEW

    (see table)

 
 
A researcher wants to know whether the mean IQ score of PSU students is different from the mean IQ score of all Americans

Hypothesis is non-directional

(formula)
 
 

Step 5: Find Percentile

(formula)
 
 

Use Area C to find percentile rank for score

Area for Z1.875 = .0310

Indicates that score is in the extreme 3rd percentile
 
 

Step 6: Decision About Ho

For a = .05 = Z-scores in extreme 2.5th percentiles are unlikely

Calculated score is in extreme 3rd percentile, does NOT qualify as unlikely
 
 

(graph)
 
  (see table)
 
 

 What if research questions was different?

A researcher wants to know whether the mean IQ score of PSU students is GREATER than the mean IQ score of all Americans
 
 

For a = .05 = Z-scores in extreme 5th percentile are unlikely

Calculated score is in extreme 3rd percentile, DOES qualify as unlikely
 
 

General Rule:

When calculated percentile £ a reject Ho

When calculated percentile > a fail to reject Ho

 

Symbols:

p = symbol for calculated percentile

If p £ a reject Ho

If p > a fail to reject Ho
 
 

REVIEW of 1st Problem A researcher wants to know whether the mean IQ score of PSU students is different from the mean IQ score of all Americans p = .0310 a = .025 If p £ a reject Ho

If p > a fail to reject Ho
 
 

REVIEW of 2nd Problem A researcher wants to know whether the mean IQ score of PSU students is different from the mean IQ score of all Americans p = .0310 a = .05 If p £ a reject Ho

If p > a fail to reject Ho
 
 

Time Out for Theory "Not guilty" Verdict

¹ necessarily mean person is innocent

= not enough evidence to convict

= not enough evidence to overcome presumption of innocence

 
"Fail to reject Ho" ¹ necessarily mean Ho is true

= not enough evidence to reject Ho (our original assumption)

= there might be group differences, but we haven't found any yet   Step 7: Draw a Conclusion If you reject Ho : Conclude that mean the IQ score of PSU students is different (greater, lower) than the mean IQ score of all Americans m PSU ¹ m AMER

m PSU > m AMER

m PSU < m AMER
 
 

If you fail to reject Ho :
Conclude that the data do not show that the mean IQ score of PSU students is different (greater, lower) than the mean IQ score of all Americans   Restatement Step 1: State the Null Hypothesis Ho : m psu = 100 (or m psu = m Amer)
 
 
Step 2: State the Alternative Hypothesis HA : m psu ¹ 100 (or m psu ¹ m Amer)
 
 
Step 3: Set Level of Significance
a = .05
 
  Step 4: Calculate Z-Score (formula)
 
 
Step 5: Find Percentile: Collum C: Area for Z1.875 = .0310
 
 
Step 6: Decision About Ho
For directional hypothesis: If p £ a reject Ho

If p > a fail to reject Ho

For non-directional hypothesis: If p £ a /2 reject Ho

If p > a /2 fail to reject Ho

Hypothesis is NON-directional a /2 = .05/2 = .025

p = .0310

If p > a /2 fail to reject Ho
 
 

Step 7: Draw a Conclusion The data do not show that the mean IQ score of PSU students is different than the mean IQ score of all Americans
Information contained on this page does not represent the lecture verbatim.
These notes are not a substitute for class attendance.



This page last updated: [an error occurred while processing this directive]
Copyright 1998.
Questions?  Email: info@yournotes.com