What’s Changed in How My Students Find (and Think About) P-values

20
What’s Changed in How My Students Find (and Think About) P-values Robin Lock St. Lawrence University USCOTS 2013 - Opening Session

description

What’s Changed in How My Students Find (and Think About) P-values. Robin Lock St. Lawrence University USCOTS 2013 - Opening Session. A Historical Comparison. Traditional: p-value in the year 10 BC* vs. Modern: p-value today . *BC = Before Cobb. Example: Beer and Mosquitoes - PowerPoint PPT Presentation

Transcript of What’s Changed in How My Students Find (and Think About) P-values

Page 1: What’s Changed in How My Students Find (and Think About)  P-values

What’s Changed in How My Students Find

(and Think About) P-values

Robin LockSt. Lawrence University

USCOTS 2013 - Opening Session

Page 2: What’s Changed in How My Students Find (and Think About)  P-values

A Historical Comparison

Traditional: p-value in the year 10 BC*vs.

Modern: p-value today

*BC = Before Cobb

Page 3: What’s Changed in How My Students Find (and Think About)  P-values

Example: Beer and MosquitoesDoes consuming beer attract mosquitoes?

Experiment*: • Volunteer were randomly assigned to drink a liter

of either beer or water• Mosquitoes were caught in traps as they

approached the volunteers.

H0: μB=μW

H0: μB>μW

*Lefvre, T., et. al., “Beer Consumption Increases Human Attractiveness to Malaria Mosquitoes, ” PLoS ONE, 2010; 5(3): e9546.

n mean std. dev.Beer 25 23.60 4.1Water 18 19.22 3.7

Page 4: What’s Changed in How My Students Find (and Think About)  P-values

Traditional p-value1. Pick a formula

𝑡=𝑥𝐵−𝑥𝑊

√ 𝑠𝐵2𝑛𝐵+𝑠𝑊

2

𝑛𝑊

𝑡= 23.6 − 19.22

√ 4.12

25+ 3.7❑

2

18

=3.68

2. Plug & Chug

3. Pick a reference distributionWhere is my t-table?

Page 5: What’s Changed in How My Students Find (and Think About)  P-values

0.0005 < p-value < 0.001

d.f.

t=3.68

Page 6: What’s Changed in How My Students Find (and Think About)  P-values

Oops! I forgot to check conditions...

Sample sizes are both less than 30, is the t-distribution even appropriate?

What if the data are heavily skewed?

...and, by the way, how does this method connect to the definition of a p-value?

Page 7: What’s Changed in How My Students Find (and Think About)  P-values

p-valueThe p-value is the proportion of samples, when H0 is true, that would give results as (or more) extreme as the original sample.

Page 8: What’s Changed in How My Students Find (and Think About)  P-values

Simulation Approach

“when H0 is true” It doesn’t matter whether the subject drank beer or water

Create randomization samples (under H0) by randomly re-assigning the beer/water labels to the 43 mosquito counts.

Find the difference, , for each sample.

Page 9: What’s Changed in How My Students Find (and Think About)  P-values

Physical Simulation• Put the 43 mosquito counts on cards.• Shuffle and deal cards into two piles

(25 beer and 18 water).• Compute the difference in means. • Repeat MANY times.

Page 10: What’s Changed in How My Students Find (and Think About)  P-values

We Need Some Technology!

StatKeywww.lock5stat.com/statkey

Page 11: What’s Changed in How My Students Find (and Think About)  P-values
Page 12: What’s Changed in How My Students Find (and Think About)  P-values
Page 13: What’s Changed in How My Students Find (and Think About)  P-values
Page 14: What’s Changed in How My Students Find (and Think About)  P-values
Page 15: What’s Changed in How My Students Find (and Think About)  P-values

“as extreme as the original sample”

Page 16: What’s Changed in How My Students Find (and Think About)  P-values

Background Required

• Random shuffle• Compute sample means• Dotplot• Find a proportion by counting

Page 17: What’s Changed in How My Students Find (and Think About)  P-values

• What about other parameters or different hypotheses?

• What about checking conditions? • What about confidence intervals?• What was that address for StatKey?

Questions?

Page 18: What’s Changed in How My Students Find (and Think About)  P-values

www.lock5stat.com/statkey

Page 19: What’s Changed in How My Students Find (and Think About)  P-values

p-value = proportion of samples, when H0 is true, that are as (or more) extreme as the original sample.

Page 20: What’s Changed in How My Students Find (and Think About)  P-values

p-value = proportion of samples, when H0 is true, that are as (or more) extreme as the original sample.

p-value