Docsity

Hypothesis Testing: Two Hypotheses, Types of Errors, and Four Steps, Slides of Statistics

Toggle sidebar
bg1
1
Hypothesis Testing
I. Introduction
II. Two Hypotheses
III. Selection of alpha
IV. Two Types of Errors
V. Directionality
VI. Four Steps
VII. Examples
VIII. Power
I. Introduction
Based on statements of probability we mak e
conclusions concerning populations.
For example, suppose I hit a coin with my
“magic” hammer. I then toss the coin 4 times
and get four heads in a row.
p(4 heads in 4 tosses of a coin) = .0625
We might want to conclude that the popula tion
of coin tosses with this new coin does not
have a mean = np, wh ere p = .5.
Population
µ1
Treatment
Population
µ2
If µ1 ≠ µ2 then we
would conclude
that there was a
treatment effect
Docsity.com
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Hypothesis Testing: Two Hypotheses, Types of Errors, and Four Steps and more Slides Statistics in PDF only on Docsity!

Hypothesis Testing

I. Introduction

II. Two Hypotheses

III. Selection of alpha

IV. Two Types of Errors

V. Directionality

VI. Four Steps

VII. Examples

VIII. Power

I. Introduction Based on statements of probability we make conclusions concerning populations. For example, suppose I hit a coin with my “magic” hammer. I then toss the coin 4 times and get four heads in a row. p(4 heads in 4 tosses of a coin) =. We might want to conclude that the population of coin tosses with this new coin does not have a mean = np, where p = .5. Population μ 1 Treatment Population μ 2 If μ 1 ≠ μ 2 then we would conclude that there was a treatment effect

II. Two Hypotheses

HO = null hypothesis

No treatment effect μ 1 = μ 2 H 1 = alternative hypothesis There is a treatment effect

II. Two Hypotheses A statistical decision is reached by choosing between these two hypotheses. We do this by calculating the probability that the null hypothesis is true. If this probability is small, we reject the null hypothesis, and accept the alternative hypothesis. Example: Toss my coin 4 times, I expect 2 heads (4*.5). But I get 4. The probability that I get 4 if μ 2 = np is small, p = .0625. Do we reject the null hypothesis? Population μ 1 = np Magic hammer Population μ 2 =?

Two Types of Errors

Type I errors (concluding there is a

treatment effect when there is not) are

usually consider the more costly.

  • expense of useless treatments
  • possible negative side effects of treatments.

As a result we directly control type I errors.

α = the probability of a Type I error_._ Two Types of Errors Correct Decision Probability of a Type I error, p = . Fair coin (no treatment effect). Correct Type II error Decision Magic coin. Magic coin Fair coin

Conclusions

Actual State of the real world. Because the p(Type I error) > .05, we conclude that the coin is fair. Legal system as an analogy. Correct Decision Did not do it. Type I error Correct Type II error Decision Did it. Guilty Not Guilty

Conclusions

Actual State of the real world. Type I error (sentencing an innocent person to jail) is usually considered the worse error, as a result we have a presumption of innocence.

Directionality When evaluating the probability of a type I error, one has to decide between directional (one tailed) and non-directional (two tailed) tests. If you do not know whether the treatment should raise or lower the scores, use a two tailed (non-directional) test. For example, if I hit my coin with a hammer, I don’t know if that will increase or decrease the probability of a head. Two Tailed tests:

HO = null hypothesis

No treatment effect μ 1 = μ 2 H 1 = alternative hypothesis There is a treatment effect

Two Tailed tests: Split α in half, and put 1/2 in each tail.

Four Steps in Hypothesis Testing

  1. State H 0 , H 1 , and choose α

2. Determine what type of observation it

would take to reject H 0

a) What is the appropriate test statistic? b) What is the critical value?

3. Evaluate the sample data

4. Reach a conclusion

Examples The simplest case: Known μ, and σ Example 1: The effect of Project Help on academic performance. Population of disadvantaged children: μ = 2 years below grade level σ = .5 years Sample of n = 1 child, after project help, who is only 1 year below grade level. Is there a treatment effect? Use α =. Examples Rework the problem, with n = 25, and a sample mean M = 1.5. Example 2: Adult males have a life expectancy, μ = 74 years, with σ = 15. A sample, n = 16, is encouraged to exercise regularly. This sample lived on average M = 79 years. Test the hypothesis that exercise increases longevity. Use the .01 level of significance.

Examples

Rework this example, with the same

sample mean, but assume n = 100.

What do these examples demonstrate

about hypothesis testing and sample

size?

Power

Power = the ability to detect a treatment

effect when there is a treatment effect.

Power increases with:

sample size

the magnitude of the effect.

Power and sample size: