Docsity

Descriptive Statistics: Understanding Categorical and Numerical Data, Summaries of Descriptive statistics

Partial preview of the text

Download Descriptive Statistics: Understanding Categorical and Numerical Data and more Summaries Descriptive statistics in PDF only on Docsity!

Statistical Data Analysis:

Descriptive Statistics

Jane Meza, PhD

Fang Yu, PhD

Lynette Smith, PhD

Outline

Statistical Analysis: Descriptive vs.

Inferential

Data Type

Numeric Data

Categorical Data

Descriptive Statistics and Plots

Categorical Data

  • It provides qualitative description
  • Observations can take only one of limited set of possible values
  • Three Types of Categorical data:
    • Binary/Dichotomous data: Only two categories
    • Nominal: More than 2 categories, and no obvious ordering
of the categories
  • Ordinal: More than 2 categories, with a natural ordering
of categories
  • Examples:

Gender (female/male) Binary

Blood Group (A/B/AB/O) Nominal

Disease Stage (I/II/III/IV) Ordinal

Numerical Data

Provides quantitative description
Discrete data
1. Observations can only take certain numeric
values, usually counts of events
2. Example: number of doctor visits in a year
3. What is the difference between discrete data and
ordinal data?
  • Stage of breast cancer (ordinal): 1, 2, 3, 4
Number of doctor visits (discrete): 0, 1, 2, 3,

Methods for Descriptive

Statistics

Categorical data

1. Descriptive plots: barplot / bargraph

2. Descriptive statistics: contingency tables

Numerical data

1. Descriptive plots: histogram, boxplot, Scatter Plot

2. Descriptive statistics: location, spread

Barplot for Categorical Data

Useful to describe the distribution of values for a

categorical variable

Proportion of cases versus stage of cancer

*: number inside parenthesis is the percentage within the row (the corresponding treatment group)

What do we conclude about comparability of the
groups at baseline in terms of race?

White Black Other Total

Enalapril+Felodipine ER 52(48%*) 36(33%) 21(19%) 109

Enalapril 52(48%) 33(31%) 23(21%) 108

Total (^104 69 44) 217

Contingency Tables: Two Variables

Histogram for Continuous Data

  • bin width = 5 yrs
Data that is not symmetric is skewed.
Mean may not be a good measure of central tendency.
Why?

0 5 10 15 20

0

5

10

15

20

25

30

var

-20 -15 -10 -5 0

0

5

10

15

20

25

30

var

Skewed Distributions

Negative skew, or skewed to the left, mean < median

Positive skew, or skewed to the right, mean > median

Measures of Spread

Measure the variability:

  • Variance: average squared deviation from the mean
  • Standard deviation S (or SD ) : square root of
variance, in same units as the original data
Example: find the standard deviation of the disease
duration
(1) Mean=
(2) Variance: 4.
(3) Standard deviation: sqrt(4.5)=2.

Choosing Measures of Location & Spread

How to choose statistics to describe the location

and spread of data?

  • Symmetric distribution:

Location: mean

Spread: standard deviation

  • Skewed distribution:

Location: median

Spread: range and/or IQR

Boxplot

Median, Q

75 th^ Percentile, Q

25 th^ Percentile, Q

Age (yrs) vertical, without extreme/outlying values.

Scatter Plot : Describe joint distribution of

values from two continuous variables

0 .70 0 .80 0. Waist-hip Ratio

2 0.0 0

2 5.0 0

3 0.0 0

3 5.0 0

4 0.0 0

BMI





 







    (^) 

   (^)  

    







 (^)   



 



   

 (^)  









 







 

 

 

     (^) 



 



 





 (^) 



 

 







 



 ^   (^)   





    

 (^)  

 (^) 

  

 (^)   (^)   



 



  (^) 



   









 (^)  

 

  













  



   

 



 

 (^) 



   



















 



  













 













Plot of Body Mass Index versus Waist-hip Ratio

(Data Source: Fundamentals of Biostatistics by Rosner)

Summary of Descriptive

Statistics

• Categorical data

1. Bar plot

2. Contingency tables

• Numerical data

1. Histogram, box-plot, scatter plot

2. Symmetric distribution: mean, SD

3. Skewed distribution: median, IQR