hypothesis testing - stat concepts

24
Hypothesis Testing Computations

Upload: others

Post on 19-Apr-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hypothesis Testing - Stat Concepts

Hypothesis Testing Computations

Page 2: Hypothesis Testing - Stat Concepts

This video is designed to accompany

Module 3 in

Beyond the Numbers Student-Centered Activities for Learning

Statistical Reasoning a publication of the Van-Griner Publishing Company

Page 3: Hypothesis Testing - Stat Concepts

Brass Tacks

!  There are countless hypotheses that can be tested with statistical science. Some of these are very complex conceptually and mathematically.

!  Almost all share the same logic with respect to the choice that is being made between a null and alternative hypothesis.

Page 4: Hypothesis Testing - Stat Concepts

Brass Tacks

!  In this video, we are going to learn the details of just one, a very simple one.

!  Others are addressed in the accompanying workbook.

Page 5: Hypothesis Testing - Stat Concepts

From Words To Symbols

While we may talk about hypotheses in words:

H0: Flibanserin is no better than a Placebo HA: Flibanserin is better than a Placebo

These words eventually have to be translated to symbols, typically symbols representing unknown parameters:

H0: µFlibanserin = µPlacebo HA: µFlibanserin > µPlacebo

where µFlibanserin means the true average number of sexually satisfying events for women using Flibanserin; similarly for the placebo group.

Page 6: Hypothesis Testing - Stat Concepts

Proportions

We are ONLY going to address the following hypothesis:

H0: p = p0 HA: p > p0

where p is an unknown population proportion.

For some pretty technical reasons this hypothesis is treated the exact same way whether there is just an “=“ in the null or a “< or =“. Your instructor may choose to explain this subtlety.

Page 7: Hypothesis Testing - Stat Concepts

Stressed?

Stress affects the quality of college students’ sleep far more than alcohol, caffeine or late-night electronics use, a new study shows.

Stress about school and life keeps 68 percent of them awake at night ….

The study of 1,125 students … appears online in the Journal of Adolescent Health ….

Lund HG, et al. Sleep patterns and predictors of disturbed sleep in a large population of college students. J Adolesc Health online, 2009.

Page 8: Hypothesis Testing - Stat Concepts

The Challenge

68% of the sample said stress kept them awake at night. Is it safe to say that more than 65% of the population of all college students feel the same way?

We are being challenged to test the following hypothesis and decide based on the data if we can safely accept HA.

H0: p ≤ 0.65 HA: p > 0.65

Recall, this means we have to set a value for the Type I error rate, compute a p-value, and compare that p-value to the Type I error rate.

Page 9: Hypothesis Testing - Stat Concepts

Step 1 of 4 – Set Type I Error Rate

•  Typical to take α = 0.05. This is what we will assume when we read the work of others, unless otherwise stated.

•  We will compute a p-value and compare it 0.05

•  If the p-value is smaller than 0.05 we will reject H0. Else we want.

To test: H0: p ≤ p0 HA: p > p0

Page 10: Hypothesis Testing - Stat Concepts

Be Aware

! Deciding to compare a p-value to an alpha level can be dangerous.

! In general, the mixing of p-values and Type I error rates has caused almost irreparable confusion in the application of statistical science.

Page 11: Hypothesis Testing - Stat Concepts

Be Aware

! Still, it is unwise to disconnect you too much from what “everyone else does,” even if what is done is often incorrectly interpreted.

! It will be fine as long as you don’t start to misinterpret a p-value as an error rate.

Page 12: Hypothesis Testing - Stat Concepts

Sample size/Number of subjects studied

Step 2 of 4 – Compute the Standard Score

Compute the “standard score”:

Sample Proportion Hypothesized value of the population proportion

To test: H0: p ≤ p0 HA: p > p0

Page 13: Hypothesis Testing - Stat Concepts

Step 3 of 4 – Look up the p-value

Take the standard score to a standard score table and record the p-value

Page 14: Hypothesis Testing - Stat Concepts

Step 4 of 4 – Make Your Decision

!  If p-value is less than alpha, reject H0.

!  If p-value is not less than alpha, fail to reject H0.

!  DO NOT interpret the p-value as an error rate. It is not.

Page 15: Hypothesis Testing - Stat Concepts

Step 1 of Example

Take the Type I error rate to be α = 0.05.

This means that in all the experiments being done all around the world with an alpha level of 0.05, only 1 in 20 will wrongly reject their null hypotheses.

To test: H0: p ≤ 0.65 HA: p > 0.65

Page 16: Hypothesis Testing - Stat Concepts

Step 2 of Example

Compute the “standard score”:

To test: H0: p ≤ 0.65 HA: p > 0.65

Page 17: Hypothesis Testing - Stat Concepts

Step 3 of Example

The computed value of z was 2.11. Take 2.11 to the standard score table and come out with a p-value of 0.01743

Page 18: Hypothesis Testing - Stat Concepts

Step 4 of Example

!  The p-value of 0.01743 is smaller than the preset Type I error rate of α = 0.05 so H0 can be rejected.

!  Of all the tests being done with this alpha level, only 1 in 20 will reject the null incorrectly.

Page 19: Hypothesis Testing - Stat Concepts

Step 4 of Example

!  The p-value has nothing to do with Type I error rate.

!  We can say that the chances of seeing a statistic that supports the null as much or more than the one we computed, assuming the null is true, are about 17 in 1000.

Page 20: Hypothesis Testing - Stat Concepts

Decision Revisited

!  The p-value is 0.01743.

!  So we will reject H0 in favor of HA since 0.01743 is less than 0.05. It is a safe bet to say that more than 65% of all college students lose sleep because of stress. The results of the study are statistically significant.

Page 21: Hypothesis Testing - Stat Concepts

Decision Revisited

!  The risk involved in this decision is that HA is really not true.

!  The fixed alpha level of 0.05 helps us get a handle on that risk.

Page 22: Hypothesis Testing - Stat Concepts

Extensions

H0: p ≤ p0 HA: p > p0

Page 23: Hypothesis Testing - Stat Concepts

Extensions

H0: p ≤ p0 HA: p > p0

Page 24: Hypothesis Testing - Stat Concepts

One-Sentence Reflection

Testing a simple hypothesis involves the computation of a standard score, which leads to a p-value that we can compare to our preset Type I error rate.