introduction to telling stories with...

22
Introduction to Telling Stories with Data Author: Nicholas G Reich This material is part of the statsTeachR project Made available under the Creative Commons Attribution-ShareAlike 3.0 Unported License: http://creativecommons.org/licenses/by-sa/3.0/deed.en US

Upload: others

Post on 26-Jul-2020

16 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

Introduction toTelling Stories with Data

Author: Nicholas G Reich

This material is part of the statsTeachR project

Made available under the Creative Commons Attribution-ShareAlike 3.0 UnportedLicense: http://creativecommons.org/licenses/by-sa/3.0/deed.en US

Page 2: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

Communicating ideas with evidence

What is a narrative? [From the OED]

An account of a series of events, facts, etc., given in order andwith the establishing of connections between them; a narration, astory, an account.

What is data? [From Google: literally, “what is data”]

Page 3: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,
Page 4: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,
Page 5: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,
Page 6: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

How to tell a story using data

Telling stories with data requires

I detective work

I creativity, both scientific and artistic

I experimentation

I good data, (good data does not nescessarily equal big data)

Page 7: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

A common tool: regression

� The goal is to learn about the relationship between acovariate (predictor) of interest and an outcome of interest.

� Some models focus on prediction.� Other models focus on description.

� Regression is an exercise in inferential statistics: we aredrawing evidence and conclusions from data about “noisy”systems.

Page 8: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

Alabama

AlaskaArizona

Arkansas

California

Colorado

ConnecticutDelaware

Florida

Georgia

Hawaii

Idaho

Illinois

Indiana

Iowa

Kansas

Kentucky

Louisiana

MaineMarylandMassachusetts

Michigan

Minnesota

MississippiMissouri

Montana

Nebraska

Nevada

New Hampshire

New Jersey

New Mexico

New York

North Carolina

North Dakota

Ohio

Oklahoma

Oregon

PennsylvaniaRhode Island

South Carolina

South Dakota

Tennessee

Texas

Utah

VermontVirginia

WashingtonWest Virginia

Wisconsin

Wyoming

900

1000

1100

25 30 35 40 45 50est. average public school teacher salary

aver

age

tota

l SAT

sco

re

Page 9: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

900

1000

1100

25 30 35 40 45 50est. average public school teacher salary

aver

age

tota

l SAT

sco

re

Page 10: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

900

1000

1100

25 30 35 40 45 50est. average public school teacher salary

aver

age

tota

l SAT

sco

re

Page 11: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

The SAT example

What is the outcome variable?

What is the covariate or predictor variable?

What other data might be part of this story?

Page 12: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

20

40

60

80

25 30 35 40 45 50est. average public school teacher salary

perc

enta

ge o

f all

elig

ible

stu

dent

s ta

king

the

SAT

Page 13: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

20

40

60

80

25 30 35 40 45 50est. average public school teacher salary

perc

enta

ge o

f all

elig

ible

stu

dent

s ta

king

the

SAT

% taking SATlow

medium

high

Page 14: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

900

1000

1100

25 30 35 40 45 50est. average public school teacher salary

aver

age

tota

l SAT

sco

re

% taking SATlow

medium

high

Page 15: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

low medium high

900

1000

1100

25 30 35 40 45 5025 30 35 40 45 5025 30 35 40 45 50est. average public school teacher salary

aver

age

tota

l SAT

sco

re

% taking SATlow

medium

high

Page 16: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

900

1000

1100

25 30 35 40 45 50est. average public school teacher salary

aver

age

tota

l SAT

sco

re

% taking SATlow

medium

high

Page 17: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

Alabama

AlaskaArizona

Arkansas

California

Colorado

ConnecticutDelaware

Florida

Georgia

Hawaii

Idaho

Illinois

Indiana

Iowa

Kansas

Kentucky

Louisiana

MaineMarylandMassachusetts

Michigan

Minnesota

MississippiMissouri

Montana

Nebraska

Nevada

New Hampshire

New Jersey

New Mexico

New York

North Carolina

North Dakota

Ohio

Oklahoma

Oregon

PennsylvaniaRhode Island

South Carolina

South Dakota

Tennessee

Texas

Utah

VermontVirginia

WashingtonWest Virginia

Wisconsin

Wyoming

900

1000

1100

25 30 35 40 45 50est. average public school teacher salary

aver

age

tota

l SAT

sco

re

% taking SATlow

medium

high

Page 18: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

State-level SAT score data (1994-95)

What can we conclude from all of this? (BTW, this is an exampleof ”Simpson’s Paradox”.)

Page 19: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

Beware of correlation!

Page 20: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

Beware of correlation!

1

1 Hat tip to www.tylervigen.com

Page 21: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

Regression modeling

The process of using data to describe the relationship betweenoutcomes and predictors is called modeling.

� Models are models, not reality.

� “All models are wrong, but some are useful.”

� Introduce structure to our model that balances realism with“goodness of fit”.

Page 22: Introduction to Telling Stories with Datanickreich.github.io/data-stories-2016/assets/lectures/lecture1-intro... · Telling stories with data requires I detective work I creativity,

Things to come

� Tools to help tell stories with data.I SoftwareI Statistical methods

� Practice developing and conceiving models/stories.