44

A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Embed Size (px)

Citation preview

Page 1: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 2: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 3: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 4: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 5: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 6: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 7: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

A Primer for Hypothesis Testing

i.e., the last “third” of this course

(and just what do these jokers know about it?)

Page 8: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 9: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 10: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 11: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)
Page 12: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“It's so easy to defend the Status Quo,

- NOFX, 180 degrees

But when you see the end don't justify the means...

with everyone so cool and cynical.

it's just that 180 degrees.”

Page 13: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Proof by Contradiction: the heart of Hypothesis Testing

Caffeine and Heart Rate Article

Sit on back whilst we do a little geometry and remember what a proof by contradiction is...

Page 14: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

ResultsCaffeine at 1.5 and 3.0 mg/kg body weight significantly lowered, by a range of 4 to 7 bpm, HR during all three submaximal exercise intensities compared to placebo(P < 0.05) but not at rest (P > 0.05) or maximal exercise (P > 0.05).

Page 15: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Research” Hypothesis – a belief to be tested using statistical methods...in this case, that caffeine will significantly lower HR during and after certain levels of exercise.

“Null” Hypothesis – the “status quo”… different than (often, the opposite of) the research hypothesis...in this case, that caffeine does not lower HR.

Hypothesis Test – the statistical method(s) used to support either the research or null hypothesis.

Page 16: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05) but not at rest (P > 0.05) or maximal exercise (P > 0.05).”

Experimental Group vs. Control Group

Page 17: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05) but not at rest (P > 0.05) or maximal exercise (P > 0.05).”

In any experiment, you start by assuming the opposite of what you’re trying to show (“assume the null”)

Page 18: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05) but not at rest (P > 0.05) or maximal exercise (P > 0.05).”

P is called the “P – value” (“probability value”)

• P(get the data we did | null hypothesis is true)

• In this case, P(HR was lowered | caffeine had no lowering effect)

Page 19: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05).”

Page 20: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05).”

P(we got lowered HR data| caffeine had no lowering affect on HR during sub maximal

exercise) < 0.05

Page 21: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05) but not at rest (P > 0.05) or maximal exercise (P > 0.05).”

Page 22: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05) but not at rest (P > 0.05).”

P(we got our nonlowered HR data| caffeine had no lowering affect on HR at rest) > 0.05

“Caffeine significantly lowered HR during all three sub maximal exercise intensities compared to placebo (P < 0.05) but not at rest (P > 0.05) or maximal exercise (P > 0.05).”

P(we got our nonlowered HR data| caffeine had no lowering affect on HR during

maximal exercise) > 0.05

Page 23: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

The “big” idea:

• Large P – values imply that nothing unusual has happened…in other words, whatever

effect you’re studying…well, had no effect.

• “Large” P – values imply that the two pieces of your conditional probability ________…i.e.:

P(we got our nonlowered HR data| caffeine had no lowering affect on HR during

maximal exercise) > 0.05

Page 24: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

The “big” idea:

• Large P – values imply that nothing unusual has happened…in other words, whatever

effect you’re studying…well, had no effect.

• “Large” P – values imply that your data falls within ____________________

• “Large” P – values are generally those greater than ________________

Page 25: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

The “big” idea (continued):Small P – values (less than 5%) imply the

opposite…whatever you’re studying had a measurable effect.

• “Small” P – values imply that the two pieces of your conditional probability ________...i.e.:

P(we got our lowered HR data| caffeine had no lowering affect on HR during sub

maximal exercise) < 0.05

Page 26: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

The “big” idea (continued):Small P – values (less than 5%) imply the

opposite…whatever you’re studying had a measurable effect.

• “Small” P – values imply that your data falls outside of ____________________

• “Small” P – values are generally those less than ________________

Green tea article...

Page 27: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“The proportion of lost or non-responding patients among the cases was 1.2%, similar to the percentage among the controls. Potential control women were excluded if they had a previous diagnosis of either breast cancer or another malignant disease.”

Page 28: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“The proportion of lost or non-responding patients among the cases was 1.2%, similar to the percentage among the controls. Potential control women were excluded if they had a previous diagnosis of either breast cancer or another malignant disease.”

Page 29: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

What is this study trying to show, with respect to green tea and breast cancer? That is, what is the Research

Hypothesis (AKA, H1)?

Therefore, what’s the Null Hypothesis (H0)?

Page 30: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Green tea consumption was associated with a reduced risk of breast cancer with a statistically significant test for trend (P < 0.001).”

95% CI (one – sided)

Page 31: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“Green tea consumption was associated with a reduced risk of breast cancer with a statistically significant test for trend (P < 0.001).”

P(we got our lowered breast cancer rate data| green tea had no affect on lowering

cancer rates) < 0.001

Does it appear that green tea is associated with lower rates of breast cancer?

Page 32: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

If you observed *, which is more likely: that your results

came from the green tea drinkers or non – green tea drinkers?

Second Hand Smoke article...

Page 33: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Measurements and Main ResultsAt 0 to 1 hour (time of initial SHS exposure) most lung function parameters were significantly reduced (P < 0.05), but at 3 hours they were at baseline levels (P > 0.05).

Page 34: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“At 0 to 1 hour (time of initial SHS exposure) most lung function parameters were significantly reduced (P < 0.05), but at 3 hours they were at baseline levels (P > 0.05).”

H0 ?

H1 ?

Page 35: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“At 0 to 1 hour (time of initial SHS exposure) most lung function parameters were significantly reduced (P < 0.05), but at 3 hours they were at baseline levels (P > 0.05).”

P(we got our lowered lung function data | SHS had no lowering effect on lung

function from 0 to 1 hour) < 5%

Does SHS appear to affect lung function from 0 to 1 hour?

Could we be wrong? How?

Page 36: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“At 0 to 1 hour (time of initial SHS exposure) most lung function parameters were significantly reduced (P < 0.05), but at 3 hours they were at baseline levels (P > 0.05).”

H0 ?

H1 ?

Page 37: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

“At 0 to 1 hour (time of initial SHS exposure) most lung function parameters were significantly reduced (P < 0.05), but at 3 hours they were at baseline levels (P > 0.05).”

P(we got our nonlowered lung function data | SHS had no lowering effect on lung

function after 3 hours) > 5%

Does SHS appear to affect lung function after 3 hours?

Could we be wrong? How?

Page 38: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Ways to be wrong with Hypothesis Tests!

If…

…you get a small P – value…

…the common response is “something changed!”

What’s the chance that you’re wrong?

Page 39: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Ways that Hypothesis Tests can Unfold

If…

…you get a small P – value…

…the common response is “something changed!”

P(false positive) = P(Type I Error) = α…usually 5%

Ways to be wrong with Hypothesis Tests!

Page 40: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Ways that Hypothesis Tests can Unfold

In the SHS article…

“At 0 to 1 hour (time of initial SHS exposure) most lung function parameters were significantly

reduced (P < 0.05).”

Define this Type I error…in context.

Ways to be wrong with Hypothesis Tests!

Page 41: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Ways that Hypothesis Tests can Unfold

If…

…you get a large P – value…

…the common response is “nothing changed.”

What’s the chance that you’re wrong?

Ways to be wrong with Hypothesis Tests!

Page 42: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Ways that Hypothesis Tests can Unfold

If…

…you get a large P – value…

P(false negative) = P(Type II Error) = β

Ways to be wrong with Hypothesis Tests!

…the common response is “nothing changed.”

Page 43: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

Ways that Hypothesis Tests can Unfold

In the SHS article…

At 3 hours, most lung function parameters were not reduced

(P > 0.05).

Ways to be wrong with Hypothesis Tests!

Define this Type II error…in context.

Page 44: A Primer for Hypothesis Testing i.e., the last “third” of this course (and just what do these jokers know about it?)

The takeaway about error (more to come):

If you get a small P – value and react appropriately, you could make a Type I

error (with probability α). If you get a large P – value and react

appropriately, you could make a Type II error (with probability β).