Descriptive Statistics and Data Visualization
Upcoming SlideShare
Loading in...5
×
 

Descriptive Statistics and Data Visualization

on

  • 5,330 views

Outlines the basics of descriptive statistics

Outlines the basics of descriptive statistics

Statistics

Views

Total Views
5,330
Views on SlideShare
5,315
Embed Views
15

Actions

Likes
1
Downloads
75
Comments
0

2 Embeds 15

http://www.slideshare.net 14
https://blackboard.bsu.edu 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Descriptive Statistics and Data Visualization Descriptive Statistics and Data Visualization Presentation Transcript

  • Diversity in Datasets: (d) e constructing Descriptive Statistics and Data Visualization Douglas James Joubert National Institutes of Health Library
  • Outline
    • Types of Scale
    • Levels of Measurement
    • Descriptive vs. Inferential Statistics
    • Univariate Analysis
    • Graphical Methods for Displaying Data
  • Before you Survey Consult with a Statistician Vital to your success Great way to collaborate View slide
  • Analysis Always Follows Design Johnson (2005) Question Hypothesis Experimental Design Samples Data Analysis View slide
  • Descriptive Statistics Location Spread (Dispersion) Shape of the Distribution Mean Mode Median SD Variance COV Skewness (+ or -) Kurtosis
  • Levels of Measurement
    • The questions you ask are just as important as what is being measured
      • Consult, confer, and pick apart your hypothesis
    • Results are only as good as your poorest measurement
      • Your measurement will never provide the absolute truth
    • Try to control as much as possible to reduce error
      • Random error – due to chance – either direction
      • Systematic error – due to bias – one direction
  • Reducing Measurement Error Triangulate Different measures for same construct X2 X1
  • Types of Scale
    • Nominal or Categorical
      • Mutually exclusive group: gender, sick vs. healthy, remote user vs. library user
      • Used for identification purposes only
      • Cannot be ranked from smallest to largest
    • Ordinal
      • Mutually exclusive group that is also ordered in a meaningful manner
      • Distance between categories is unknown—you cannot say that a person with a job satisfaction of 2 is twice as satisfied as a person rated as a 1
  • Types of Scale
    • Interval
      • Ordered groups with equal intervals between any two pairs of adjacent classes
      • No absolute zero and you cannot compute ratios, for example, temperature
    • Ratio
      • Interval scale with a true absolute zero, for example, weight
      • You can tell how much larger or smaller one value is compared with another
  • Hierarchy of Measurement Ratio Interval Ordinal Nominal Trochim (2001) Absolute Zero Distance is meaningful Characteristics can be ordered Classification is arbitrary
  • Descriptive vs. Inferential Statistics
    • Descriptive (Summary) statistics describe or characterize data in such a way that none of the original information is lost or distorted 1
    • Inferential statistics allow one to draw conclusions about a population based on data obtained from a sample
    Munro (2002) S1 S2 S3 S4 S5 S6 ? ? ? ? ? ? Sample Population
  • Univariate Descriptive Analysis
    • Allows one to examine each variable separately to check for data inconsistencies, variability of variables
    • Also allows one to check statistical assumptions about the shape of the distribution before moving on to more complex analysis
    • Univariate descriptive statistics can also be used to determine central tendency, variability, skewness, and kurtosis
  • Graphical Methods for Displaying Data
    • Frequency Distributions
    • Histograms
    • Plots
    • Pareto Charts
    • Boxplots
    • Error Bar Charts
  • Frequency distributions
    • Frequency distributions are a nice tool for categorizing data into meaningful groups
    • Organizing data in tabular form using classes or frequencies
    • Two main types:
      • Categorical: qualitative data such as gender, treatment group or not, religious affiliation
      • Ungrouped or grouped quantitative data
  • Categorical Frequency distributions A O B A AB AB A A B B O O O A B AB 16 Total 3 AB 4 O 4 B 5 A Frequency f Class
  • Ungrouped Frequency distributions 161 155 103 103 Birth weight data in (oz) 101 100 98 98 89 94 94 93 91 88 88 67 64 64 58 32
  • Ungrouped Frequency distributions … 1 93 1 91 2 88 1 67 2 64 1 58 1 32 Count (Frequency f) Birth weight
  • Grouped Frequency Distribution
    • Grouped frequency distribution is obtained by constructing classes (intervals) for the data
    • If the difference between minimum and maximum values exceed 15 then you need to divide the data into classes
    • Should have a minimum of 5 classes and a maximum of 20
    • Histogram is a graphical representation of a frequency distribution
  • Grouped Frequency Distribution
    • Typically grouped frequency distributions will contain:
      • The frequency of the value within each category
      • Relative frequency: The percentage of values within each category based on the total number of cases
      • Valid percent is the percentage of cases in each category based on non-missing scores
      • Cumulative frequency: sum of the frequencies for all values at or below the given value
      • Cumulative relative frequency: sum of the relative frequencies for all values at or below the given value
  • Grouped Frequency Distribution of CA patients *=(E2/ $E$ 8)*100, in Excel to force absolute reference 1.00 .1463 .1498 .2439 .2055 .2473 0.0696 rf* 287 245 202 132 73 2 cf 287 Total .9997 42 More .8534 43 40 – 50 .7036 70 30 – 40 .4597 59 20 – 30 .2542 71 10 – 20 .0696 2 0 – 10 crf Frequency Age
  • Table Tips
    • Use tables to highlight major facts
    • Keep it simple – tables are usually intended to demystify your data, not make it more difficult to understand
    • If you are using a software program to create class intervals make sure the default works with you data
    • Think of your audience – how can I convey my message without losing important data
  • Table Tips
    • The clustering that best describes the data should be the ultimate guide
    • Too few or too many class intervals will obscure important information about your data
    • Tables used to analyzed data are rarely published
  • Charts
    • Effective way to give the reader a snapshot of the differences and patterns in a set of data
    • Primary disadvantage to charts is that you lose the details
    • Things to consider when constructing charts
      • Does my data represent a single moment in time (cross sectional) or does my data occur over time (time series)
      • Do I have a qualitative or quantitative variables?
      • If my variable is quantitative, is the variable discrete or continuous?
    Munro (2002)
  • Bar Charts
    • For nominal or ordinal data use simple bar charts
      • Simple bar charts you will have spaces between categories
    • Cluster bar charts can be used to represent univariate distributions
    • Cluster bar charts can also be stacked
  • Simple Bar Chart Nominal data
  • Stacked Bar Chart
    • You are really just stacking two or more columns into a single new column
    • Compares the percentage that each group contributes to the total across categories
    • Want to have 100% stacked columns so you can compare the percentages in each group
  • Stacked Bar Chart
  • Histograms
    • Best for interval and ratio data
    • Represent percentages rather than counts
    • Each histogram has total area of 100%
    • Since this is a range of values no gaps between bars
    • From a descriptive standpoint allows one to look at the distribution of variables
    • Consider grouping the data if range > 15
    • Height of the vertical axis is important
  • Histogram of Family Terms
  • Histogram Std Err Bars Normal Dist Fit
  • Histogram: SEM and Normal Distributions
    • Standard error of the mean is the estimate of how much we would expect the mean to vary in a population, given repeated samples
    • Fit distribution (Normal) estimates the parameters of the normal distribution based on the analysis sample
  • Pareto Charts
    • Pareto chart is a special type of histogram that is arranged from largest to smallest
    • Allows one to determine which values are least important and which values are more important
    • Pareto charts combines a bar chart displaying percentages of categories in the data with a line plot showing cumulative percentages of the categories
  • Pareto Chart SAS (1990)
  • 2-Way Comparative Pareto Chart SAS (1990)
  • Overlay Chart
    • Similar to a scatterplot but…your are only looking at one variable
    SAS (1989–2004)
  • Plots
    • Scatterplots look at the relationship between two or more variables
    • Great way to identify outliers
    • Typically the Y-axis is the DV and X-axis the IV
    • Using a control variable allows one to identify different groups
    • For example, the relationship between bp and weight, and controlling for smoking vs. non-smoking
  • Plots
    • Scatterplots look at the relationship between two or more variables
    • Great way to identify outliers
    • Typically the Y-axis is the DV and X-axis the IV
    • Using a control variable allows one to identify different groups
    • For example, the relationship between bp and weight, and controlling for smoking vs. non-smoking
    • Why? Because we are controlling for some factor
  • Simple Scatterplot SAS (1989–2004)
  • Simple Scatterplot
    • In correlation, this is the least-square line (scary math, but very important)
    SAS (1989–2004)
  • Box-and-Whisker Plots
    • A graphical method based on percentiles
    • Useful for visualizing the distribution of a variable
    • Simultaneously displays the median, the IQR, and the smallest and largest values for a group
    • More compact than a histogram but less revealing
    • Good tool for identifying outliers and extreme values
    • Two common types: Outlier Box Plot and a Quantile Box Plot
  • Outlier Box Plot Possible Outliers IQR Largest value not an outlier Smallest value not an outlier 75th 25th 50 th (median)
  • Quantile Box Plot
  • Contact Information
    • Douglas J. Joubert, MLIS
    • Biomedical Informationist
    • National Institutes of Health Library
    • Bldg. 10, Room 1L09A
    • Bethesda, MD 20906-1150
    • Phone: 301.594.6282
    • Fax: 301.402.0254
    • E-mail: joubertd@ors.od.nih.gov
    • E-mail: joubertd@helix.nih.gov
    • http://nihlibrary.nih.gov/
  • References
    • Johnson, Laura Lee Ph.D (2004). Principles and Practices of Clinical Research (Lecture), NIH.
    • SAS (1990). Common causes of failure during the fabrication of integrated circuits. Data from "Selected SAS/QC Software Examples, Release 6.06, SAS Users Group International Conference, April 2, 1990 pg 383.
    • Munro, B. H. (2001). Statistical methods for health care research (4th ed.). Philadelphia: Lippincott Williams & Wilkins.
    • SAS Institute Inc. (1989-2004). SAS Help Files. Cary: North Carolina.