Summarising Data. Mark Lunt 09/10/2018. Arthritis Research UK Epidemiology Unit University of Manchester

Similar documents
2.1 Objectives. Math Chapter 2. Chapter 2. Variable. Categorical Variable EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES

AND NUMERICAL SUMMARIES. Chapter 2

Chapter 1. Looking at Data-Distribution

Statistical Methods. Instructor: Lingsong Zhang. Any questions, ask me during the office hour, or me, I will answer promptly.

Acquisition Description Exploration Examination Understanding what data is collected. Characterizing properties of data.

Chapter2 Description of samples and populations. 2.1 Introduction.

Chapter 3 - Displaying and Summarizing Quantitative Data

Chapter 2 Describing, Exploring, and Comparing Data

ECLT 5810 Data Preprocessing. Prof. Wai Lam

Table of Contents (As covered from textbook)

Part I, Chapters 4 & 5. Data Tables and Data Analysis Statistics and Figures

Vocabulary. 5-number summary Rule. Area principle. Bar chart. Boxplot. Categorical data condition. Categorical variable.

CHAPTER 1. Introduction. Statistics: Statistics is the science of collecting, organizing, analyzing, presenting and interpreting data.

MATH 1070 Introductory Statistics Lecture notes Descriptive Statistics and Graphical Representation

Chapter 6: DESCRIPTIVE STATISTICS

3. Data Analysis and Statistics

BIOSTATISTICS LABORATORY PART 1: INTRODUCTION TO DATA ANALYIS WITH STATA: EXPLORING AND SUMMARIZING DATA

STP 226 ELEMENTARY STATISTICS NOTES PART 2 - DESCRIPTIVE STATISTICS CHAPTER 3 DESCRIPTIVE MEASURES

Chapter 2. Descriptive Statistics: Organizing, Displaying and Summarizing Data

NOTES TO CONSIDER BEFORE ATTEMPTING EX 1A TYPES OF DATA

Week 2: Frequency distributions

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA

Data can be in the form of numbers, words, measurements, observations or even just descriptions of things.

The basic arrangement of numeric data is called an ARRAY. Array is the derived data from fundamental data Example :- To store marks of 50 student

Lecture 1: Exploratory data analysis

Prepare a stem-and-leaf graph for the following data. In your final display, you should arrange the leaves for each stem in increasing order.

Section 2-2 Frequency Distributions. Copyright 2010, 2007, 2004 Pearson Education, Inc

STP 226 ELEMENTARY STATISTICS NOTES

Averages and Variation

The main issue is that the mean and standard deviations are not accurate and should not be used in the analysis. Then what statistics should we use?

AP Statistics Summer Assignment:

Chapter 3 Analyzing Normal Quantitative Data

Math 120 Introduction to Statistics Mr. Toner s Lecture Notes 3.1 Measures of Central Tendency

STA 570 Spring Lecture 5 Tuesday, Feb 1

2.1: Frequency Distributions and Their Graphs

Measures of Central Tendency. A measure of central tendency is a value used to represent the typical or average value in a data set.

10.4 Measures of Central Tendency and Variation

10.4 Measures of Central Tendency and Variation

STA Rev. F Learning Objectives. Learning Objectives (Cont.) Module 3 Descriptive Measures

CHAPTER 2 DESCRIPTIVE STATISTICS

Frequency Distributions

Name Date Types of Graphs and Creating Graphs Notes

To calculate the arithmetic mean, sum all the values and divide by n (equivalently, multiple 1/n): 1 n. = 29 years.

UNIT 1A EXPLORING UNIVARIATE DATA

Chapter 2: Descriptive Statistics

Tabular & Graphical Presentation of data

Data Statistics Population. Census Sample Correlation... Statistical & Practical Significance. Qualitative Data Discrete Data Continuous Data

STA Module 2B Organizing Data and Comparing Distributions (Part II)

STA Learning Objectives. Learning Objectives (cont.) Module 2B Organizing Data and Comparing Distributions (Part II)

Chapter 2: Understanding Data Distributions with Tables and Graphs

CHAPTER 3: Data Description

Univariate Statistics Summary

Things you ll know (or know better to watch out for!) when you leave in December: 1. What you can and cannot infer from graphs.

Lecture Slides. Elementary Statistics Twelfth Edition. by Mario F. Triola. and the Triola Statistics Series. Section 2.1- #

MATH& 146 Lesson 10. Section 1.6 Graphing Numerical Data

Measures of Dispersion

IAT 355 Visual Analytics. Data and Statistical Models. Lyn Bartram

Descriptive Statistics

No. of blue jelly beans No. of bags

Lecture Notes 3: Data summarization

The first few questions on this worksheet will deal with measures of central tendency. These data types tell us where the center of the data set lies.

Measures of Central Tendency

At the end of the chapter, you will learn to: Present data in textual form. Construct different types of table and graphs

TMTH 3360 NOTES ON COMMON GRAPHS AND CHARTS

Raw Data is data before it has been arranged in a useful manner or analyzed using statistical techniques.

3 Graphical Displays of Data

Data Preprocessing. S1 Teknik Informatika Fakultas Teknologi Informasi Universitas Kristen Maranatha

CHAPTER 2: DESCRIPTIVE STATISTICS Lecture Notes for Introductory Statistics 1. Daphne Skipper, Augusta University (2016)

AP Statistics Prerequisite Packet

Statistics Lecture 6. Looking at data one variable

Create a bar graph that displays the data from the frequency table in Example 1. See the examples on p Does our graph look different?

DAY 52 BOX-AND-WHISKER

Name: Date: Period: Chapter 2. Section 1: Describing Location in a Distribution

Getting to Know Your Data

CHAPTER 2: SAMPLING AND DATA

CHAPTER-13. Mining Class Comparisons: Discrimination between DifferentClasses: 13.4 Class Description: Presentation of Both Characterization and

Understanding and Comparing Distributions. Chapter 4

Lecture 3 Questions that we should be able to answer by the end of this lecture:

Lecture 3 Questions that we should be able to answer by the end of this lecture:

MATH11400 Statistics Homepage

STA Module 4 The Normal Distribution

STA /25/12. Module 4 The Normal Distribution. Learning Objectives. Let s Look at Some Examples of Normal Curves

Bar Charts and Frequency Distributions

Chapter 2 Modeling Distributions of Data

Vocabulary: Data Distributions

LESSON 3: CENTRAL TENDENCY

SLStats.notebook. January 12, Statistics:

Date Lesson TOPIC HOMEWORK. Displaying Data WS 6.1. Measures of Central Tendency WS 6.2. Common Distributions WS 6.6. Outliers WS 6.

Unit 7 Statistics. AFM Mrs. Valentine. 7.1 Samples and Surveys

appstats6.notebook September 27, 2016

1.3 Graphical Summaries of Data

2.1: Frequency Distributions

Mineração de Dados Aplicada

Exploratory Data Analysis

Select Cases. Select Cases GRAPHS. The Select Cases command excludes from further. selection criteria. Select Use filter variables

Homework Packet Week #3

+ Statistical Methods in

Descriptive Statistics

Basic Statistical Terms and Definitions

Section 3.1 Shapes of Distributions MDM4U Jensen

Transcription:

Summarising Data Mark Lunt Arthritis Research UK Epidemiology Unit University of Manchester 09/10/2018

Summarising Data Today we will consider Different types of data Appropriate ways to summarise these data

Types of Data Types of data Qualitative Nominal Outcome is one of several categories Ordinal Outcome is one of several ordered categories Quantitative Discrete Can take one of a fixed set of numerical values Continuous Can take any numerical value

Examples of Types of Data Nominal Blood group; Hair colour. Ordinal Discrete Continuous Strongly agree, agree, disagree, strongly disagree. Number of children. Birthweight.

Caveats with Data Types Distinction between nominal and ordinal variables can be subjective: e.g. vertebral fracture types: Wedge, Concavity, Biconcavity, Crush. Could argue that a crush is worse than a biconcavity which is worse than a concavity..., but this is not self-evident. Distinction between ordinal and discrete variables can be subjective: e.g. cancer staging I, II, III, IV: sounds discrete, but better treated as ordinal. Continuous variables generally measured to a fixed level of precision, which makes them discrete. Not a problem, provide there are enough levels.

Types of Variables What type of variable are each of the following: Number of visits to a G.P. this year Marital Status Size of tumour in cm Pain, rated as minimal/moderate/severe/unbearable Blood pressure (mm Hg)

Summarizing Count the number of subjects in each group. The count is commonly refered to as the frequency The proportion in each group is referred to as the relative frequency Stata command to produce a tabulation is tabulate varname

of region Freq. Percent Cum. ------------+----------------------------------- Canada 422 22.84 22.84 USA 541 29.27 52.11 Mexico 223 12.07 64.18 Europe 493 26.68 90.85 Asia 169 9.15 100.00 ------------+----------------------------------- Total 1,848 100.00

of Bar Chart: Data represented as a series of bars, height of bar proportional to frequency. Pie Chart: Data represented as a circle divided into segments, area of segment proportional to frequency. Pictograms: Similar to bar chart, but uses a number of pictures to represent each bar. Bar chart is the easiest to understand.

Bar Chart Types of data Frequency 0 200 400 600 Canada USA Mexico Europe Asia region

Summarizing Simplest method: treat as qualitative data. Divide observations into groups May be unnecessary for discrete data. Look at the frequency distribution of these groups Can use table or diagram.

The Histogram Types of data Similar to a bar chart Continuous, not categorical variable Area of bars proportional to probability of observation being in that bar Axis can be Frequency (heights add up to n) Percentage (heights add up to 100%) Density (Areas add up to 1)

How Many Groups? Types of data Impossible to say. Depends on the number of observations: if individual groups are too small, results are meaningless. With discrete variables, exact positions of boundaries may be important. Tables need few groups, graphs can have more if sufficient numbers. May be decided for you in software.

Histograms Types of data Density 0.02.04.06.08 female male 140 160 180 200 140 160 180 200 Graphs by sex measured height (cm)

Histogram: Effect of Wrong number of bins Density 0.02.04.06 0 10 20 30 x Density 0.01.02.03.04 0 10 20 30 x 24 bins (default) 30 bins (correct)

Bar charts and histograms in Stata histogram varname produces a histogram Number of bars can by set by option bin() Width of a bar can be set by option width() histogram varname, discrete produces a bar chart What stata calls a bar chart is the mean of second variable subdivided by category, rather than a frequency.

of Need to know: 1 What is a typical value ( location ) 2 How much do the values vary ( scale ) Simplest distribution to summarize is the normal distribution Other summary statistics (skewness, kurtosis etc) thought of relative to normal distribution.

The Normal Distribution Symmetrical Bell-shaped distribution Easiest to use mathematically Many variables are normally distributed Can be described by two numbers Mean (measure of location) Standard Deviation (measure of variation)

Histogram & Normal Distribution Density 0.02.04.06.08 female male 140 160 180 200 140 160 180 200 Graphs by sex measured height (cm) Density normal nurseht

Non-Normal Distributions Normal distribution is symmetric. Asymmetric distributions are called skewed : Positively skewed = some extremely high values (mean > median). Negatively skewed = some extremely low values (mean < median). Distribution may have more than one peak : bi-modal. Usually formed by mixing two different groups.

Non-Normal Distributions Density 0.05.1.15.2 Density 0.05.1.15.2 4 2 0 2 4 6 y1 0 5 10 15 20 y2 Bimodal Distribution Positively Skewed Dist n

Measures of Location Types of data What is the value of a typical observation? May be: (Arithmetic) Mean Median Other forms of mean Rarely used Only if data has been transformed

Arithmetic Mean Types of data Add them up and divide by how many there are. x = x 1 + x 2 +... + x n n = (Σ n i=1 x i)/n

Median Types of data Arrange in increasing order, pick the middle. If an even number of observations, take mean of middle two. Ignores the precise magnitude of most observations Contains less information than mean May be useful if there are outliers Less easy to use mathematically.

Mean vs. Median Types of data Consider this series of durations of absence from work due to sickness (in days). 1,1,2,2,3,3,4,4,4,4,5,6,6,6,6,7,8,10,10,38,80 Mean = 10 Median = 5 Very few observations are as large as the mean: median is more typical.

Percentiles Types of data The x th percentile is the value than which x% of observations are smaller and (100 x)% are larger. The median is the 50th percentile. Other centiles can easily be calculated, eg 5th, 25th etc.

Measures of Variation How close to the typical value are other values. Range Inter-quartile range Variance

Simple Measures of Variation Range Inter-quartile Range (Largest measurement) - (smallest measurement) Depends on only two measurements Can only increase as you add more to the sample (75th centile) - (25th centile). Less sensitive to extreme values Need fairly large numbers of observations

Standard Deviation Types of data Standard Deviation = Σ(x i x) 2 /n Nearly the average difference from the mean Uses information from every observation Not robust to outliers Variance is easy to use mathematically Standard deviation is the same units as the observations

Summary Statistics in Stata summarize varlist will give mean, SD, min and max summarize varlist, detail also gives percentiles tabstat or table can produce tables of summary statistics

: Table 1 Quantitative variables Need a measure of location & variation Normal variables: mean and SD Skewed variables: median and IQR Need to give units Qualitative variables Number and % in each category

Example Age in years: Mean (SD) 63 (7.9) Spine BMD in g/cm 2 : Median (IQR) 1.05 (0.78, 1.30) Gender: n (%) Male 1537 (44) Female 1924 (56)

The Box and Whisker Plot Very efficient summary of distribution: Shows median, upper and lower quartiles (25th and 75th percentiles). Also shows range of normal values and individual unusual values. Definitions of normal and unusual differ. Will demonstrate skewness, not bimodality. Stata command: graph box varname, [by(groupname)]

Box and Whisker Plots 4 2 0 2 4 0 5 10 15 20 Normal Distribution Positively Skewed Dist n

Transforming Data Types of data Skewed distributions may be made symmetric by a transformation. Taking logs is the most common. Other transformations (e.g. square root, reciprocal) can be used, but can be very difficult to interpret. May be better to transform back to original units to present results. Geometric mean is back-transformation of mean of log-transformed data.

Further Reading Types of data Edward R. Tufte, The Visual Display of Quantitative Information was the classic text on statistical graphs. Huge data visualisation industry now