presenting statistics in social media 2012

16
Or You Can Lie With Statistics but it’s a Lot Easier with Words Paul Ricci, MS PhD(c) @CSIwoDB

Upload: university-of-pittsburgh

Post on 11-Jul-2015

704 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Presenting statistics in social media 2012

Or You Can Lie With Statistics but it’s a Lot Easier with Words

Paul Ricci, MS PhD(c)

@CSIwoDB

Page 2: Presenting statistics in social media 2012

Everything is Numbers Statistics are used to estimate & describe patterns in

nature that aren’t easy to see with the naked eye

Sports-Earned Run Average, Slugging Percentage, QB Rating, Goals Against Average

Economics-Gross Domestic Product, Unemployment, Inflation

Medicine-Heart Rate, % Body Fat, T-Cell Counts

Education-IQ Scores, SAT scores, Dropout Rates

As long the statistic is from a source of data that is verifiable, it’s hard to lie using it.

Page 3: Presenting statistics in social media 2012

Ominous Quote Joseph Stalin “One death is a tragedy. A million deaths

are a statistic.”

Translation you need to supplement statistical information with more personal info.

Page 4: Presenting statistics in social media 2012

Types of Statistics Measures of Central Tendency (aka Averages)

Continuous-Number can take any value.

Mean (sum of all data divided by the number of data points)

Median (midpoint of all data when it is ranked from highest to lowest)

Mode (most frequently occurring data value)

Discrete-Value can only take certain values eg. 0 or 1, true or false.

Proportion-sum of values taking a certain value for a given variables divided by the maximum value for that variable.

Page 5: Presenting statistics in social media 2012

Types of Statistics (cont.) Measures of Spread

Range-highest data value-lowest data value

Variance-Average squared deviation from the mean

Standard Deviation-square root of the variance

Probability

Used to measure the chance of events

Also used to make a statement about the relationship between a sample and a population that it’s taken from eg. margin of error.

Page 6: Presenting statistics in social media 2012

But a Summary Statistic can Never Tell You the Whole StoryGraph with States Graph without States

Page 7: Presenting statistics in social media 2012

Graph TypesBar Graph-Good visually but not good for trends

Line Graph-Better for showing trends over time

0 10 20

time 1

time 2

time 3

time 4

Product A

Product B

Product C

0

1

2

3

4

5

6

time 1

time 2

time 3

time 4

Product A

Product B

Product C

Page 8: Presenting statistics in social media 2012

Graph Types (Cont)This is the first pie chart created by Florence Nightingale to show the number of British soldiers in the Crimean War who died due to infection rather than combat injuries.

Page 9: Presenting statistics in social media 2012

Graph Types (cont.)Mapping using Geographical Information Systems (GIS) is a good way to represent data by region. In this graph I showed which areas of the city have the highest number of crimes by census tract in the city for 2005.

Page 10: Presenting statistics in social media 2012

Posting Graphs on the Web Line, Bar, Pie, & other Graphs can be created using

Microsoft Excel, SPSS, SAS, ArcGIS, R, & other Packages

If that data package will allow you to save that graph as a .jpg, .gif, or .png file you can easily add it to your blog.

Microsoft Excel requires a visual basic command to save graphs as image files.

Page 11: Presenting statistics in social media 2012

Statistical Packages Microsoft Excel-Most readily available but not really

built for all but basic statistical analysis. OK to make basic graphs.

SPSS-Better for more advanced analysis and graphics but less accessible due to cost. User friendly.

R-Free software package that can be downloaded from the web. Can do many types of analyses. BUT it is syntax driven. Can save graphics as image files using syntax.

Page 12: Presenting statistics in social media 2012

Cutting Edge Graphics The Gapminder institute provides great interactive

graphics for free that can be seen in the documentary the Joy of Stats.

URL: www.gapminder.org

Joy of Stats Clip: http://csiwodeadbodies.blogspot.com/2010/12/income-and-life-expectancy-what-does-it.html

The website Fractracker uses advanced graphics and mapping techniques to monitor the impacts of Marcellus Shale drilling in Pennsylvania and New York.

URL: http://www.fractracker.org/

Page 14: Presenting statistics in social media 2012

Some Good Statistical Blogs FiveThirtyEight-Nate Silver’s blog which forecasts

elections, the Oscars, and other sporting events. http://fivethirtyeight.blogs.nytimes.com/

Data Visualisation-Has more examples of cutting edge graphics. http://www.datavis.ca/

The Incidental Economist-Good Analysis of health care data. http://theincidentaleconomist.com/wordpress/

CSI without Dead Bodies-My own website

http://csiwodeadbodies.blogspot.com

Page 15: Presenting statistics in social media 2012

Sources of Data on the Web Many websites, such as The Census Bureau’s provide

data for download with which to do your own analysis. Example-Small Area Health Insurance Estimates

(SAHIE) makes state and county level estimates for the whole US from 2005-2007 (2008 and 2009 estimates are forthcoming) http://www.census.gov/did/www/sahie/index.html

Other sites provide data that can be copied and pasted into a data file. Example-CNN makes it’s poll reports available as PDF’s

but not the raw data

Page 16: Presenting statistics in social media 2012

Summary When analyzing data leave no stones unturned

or if that is impossible turn over as many as possible and acknowledge that you couldn’t turn all of them over.

When interpreting an analysis ask yourself if they have turned over the important stones and or accounted for the ones that they couldn’t turnover.