SlideShare a Scribd company logo
1 of 30
APPLIED STATISTICS (FOR
HUMANITIES)
Muhammad Ghazi
Lecture 4: Charts and graphs
Spring 2023
MOTIVATION FOR THIS TOPIC:
DATA IN THE WORKPLACE
In a typical workplace (outside of research institutions),
the lion’s share of time is spent on:
1. Collecting the right data
2. ‘Cleaning’ the data to perform analysis
3. Presenting data
I. Making tables
II. Making charts
III. Interpreting
analytical
thought, logical
reasoning,
problem solving
skills and other
things learned at
LUMS
analytical
thought, logical
reasoning,
problem solving
skills
Pls make
PowerPoint
A PRODUCTIVE
EMPLOYEE
• Will know what kind of data
is needed
• Store and organize datasets
efficiently
• Be able to summarize and
present complex information
• Draw the correct
interpretation
• Make their work replicable
PRESENTING DATA
• Looking at raw data is not so intuitive
• Tables and descriptive statistics help summarize data
• But they’re sometimes boring
YOUR AUDIENCE
PRESENTING DATA
• Graphing data often drives the point
home
• Visually appealing
• Saves audience time
• Think about how you can tell the
most interesting story
A BASIC
FRAMEWORK FOR
GRAPHS
Categorical
variables
Bar charts
Pie chart
Quantitative
variables
Two variables
• Scatterplot
• Line plots
Single
Variable
• Box plots
• Histograms
This is not a strict classification
We can draw bar graphs for quantitative
variables
PIE CHARTS
• Categorical data
• Shows proportion
• Shows percentages of observations (individuals etc.) in
each category
• Relative size of slices is denoted by degrees of a full circle
48%
40%
12%
Biden Trump Jorgensen
PIE CHARTS
• Categorical data
• Shows proportion
• Shows percentages of observations (individuals etc.) in
each category
• Relative size of slices is denoted by degrees of a full circle
• A suitable color scheme can make the chart more
appealing
48%
40%
12%
Biden Trump Jorgensen
DATA VISUALIZASHUN
BAR CHART
• Also used for categorical data
• Shows magnitude of some indicator within each category
• Relative height used to denote size
• Consider the chart on the right that summarizes average
income for the supporters of each candidate
$-
$10,000
$20,000
$30,000
$40,000
$50,000
$60,000
$70,000
$80,000
Biden Trump Jorgensen
Avg. voter income
BAR CHART
• Also used for categorical data
• Shows magnitude of some indicator within each category
• Relative height used to denote size
• Consider the chart on the right that summarizes average
income for the supporters of each candidate
• Maintain consistency in chart schemes with a report $-
$10,000
$20,000
$30,000
$40,000
$50,000
$60,000
$70,000
$80,000
Biden Trump Jorgensen
Avg. voter income
Not being
stopped at a
naaka
TWO-WAY BAR CHARTS
• Bar charts can easily summarize two-way tables
• The chart on the right can show us visually
• Relative income for supporters of each candidate
• Segmented by gender
Avg. voter income
by gender
Male Female
Biden $ 56,417 $ 66,384
Trump $ 95,200 $ 54,020
Jorgensen $ 63,900 $ 62,000
TWO-WAY BAR CHARTS
• Bar charts can easily summarize two-way tables
• The chart on the right can show us visually
• Relative income for supporters of each candidate
• Segmented by gender
$-
$10,000
$20,000
$30,000
$40,000
$50,000
$60,000
$70,000
$80,000
$90,000
$100,000
Biden Trump Jorgensen
Avg. income by gender
Male Female
Avg. voter income
by gender
Male Female
Biden $ 56,417 $ 66,384
Trump $ 95,200 $ 54,020
Jorgensen $ 63,900 $ 62,000
TIPS ON MAKING BAR AND PIE CHARTS
In Excel: always need a table first
Use conditionals (countif, averageif, sumif)
Pivot tables are a blessing (upcoming)
Picking the right chart
Generally, use bar charts for magnitude
Generally use pie charts for proportion
Let Excel Suggest the chart
Alternate as to not bore your audience
SCATTER PLOTS
• Show simple relationship between two quantitative
variables
• One variable on the x-axis and the other on the y-axis
• Each point is one observation
• Will revisit when we look at correlations and regressions
• Consider the relationship between age and income from
our survey $-
$50,000
$100,000
$150,000
$200,000
$250,000
$300,000
0 20 40 60 80
Income
Age
LINE CHARTS
• Like scatterplots: show
relationship between two
quantitative variables
• But connected
• Most suitable when time is
on the x-axis (time charts)
• Each point in time should
only have one reading
0
2000
4000
6000
8000
10000
12000
14000
2020-02-25
2020-03-05
2020-03-14
2020-03-23
2020-04-01
2020-04-10
2020-04-19
2020-04-28
2020-05-07
2020-05-16
2020-05-25
2020-06-03
2020-06-12
2020-06-21
2020-06-30
2020-07-09
2020-07-18
2020-07-27
2020-08-05
2020-08-14
2020-08-23
2020-09-01
2020-09-10
2020-09-19
2020-09-28
2020-10-07
2020-10-16
2020-10-25
2020-11-03
2020-11-12
2020-11-21
2020-11-30
2020-12-09
2020-12-18
2020-12-27
2021-01-05
2021-01-14
New COVID-19 cases in Pakistan
PICKING THE RIGHT CHART
PICK SCATTER WHEN
TWO QUANTITATIVE
VARIABLES
PICK LINE WHEN TIME
ON X-AXIS
IF FEW VALUES IN TIME,
JUST MAKE BAR CHART
WHEN PRESENTING, TRY
TO ALTERNATE CHARTS
WHEN POSSIBLE
GRAPHING A SINGLE QUANTITATIVE
VARIABLE
Ironically, interpreting single
variable graphs is trickier than
graphs between two variables
Both box plots and histograms
represent the distribution of the
variable
BOX PLOTS / BOX AND WHISKER
PLOT
• Box plots depict the following information about a
variable:
• It’s median (line in the middle of the box)
• 25th percentile (lower edge of the box)
• 75th percentile (upper edge of the box)
• Minimum value (lower edge of the whisker)
• Maximum value (upper edge of the whisker)
• When using Excel: outliers (some magnitude of quartiles)
• Can help identify where bulk of the observations are
• The box and whisker plot of age of survey respondents is
shown
BOX PLOTS / BOX AND WHISKER
PLOT
• Box plots depict the following information about a
variable:
• It’s median (line in the middle of the box)
• 25th percentile (lower edge of the box)
• 75th percentile (upper edge of the box)
• Minimum value (lower edge of the whisker)
• Maximum value (upper edge of the whisker)
• When using Excel: outliers (some magnitude of quartiles)
• Can help identify where bulk of the observations are
• The box and whisker plot of age of survey respondents is
shown
VARIATIONS TO
WHISKER PLOTS
• Graphing min/max/quartiles is standard
• In practice, whiskers can be used to
graph many other measures:
• - Just min max (shown)
• - Confidence intervals (upcoming)
• The idea is the same: to show the
spread of the variable around some
center
Source: Ministry of Economic Affairs, Bhutan
HISTOGRAM
• Kind of like a bar graph
• Ranges of values of the variable on x-axis (called bins)
• No gaps or overlaps
• Ordered
• Frequency in each group on y-axis
• Graph of choice for single numerical variable
• On the y axis, can show frequency or fraction (density)
• Crucial to understanding probability distributions
INTERPRETING DISTRIBUTION:
SKEWNESS
Left hand size mirrors right hand size
Mode = Median = Mean
Example: Male heights
Symmetric
One tail stretching off to the right
Mode < Median < Mean
Example: Household income
Right / positively skewed
One tail stretching off to the left
Mode > Median > Mean
Example: Age of death
Left / negatively skewed
INTERPRETING DISTRIBUTION:
VARIABILITY
We can also comment on the spread (variance or std dev) of the variable
by looking at the histogram
Spread out
Example: Results of many dice rolls
High variability
Closely clustered around center
Example: Age brackets of sophomores
at LUMS
Low variability
FIN.

More Related Content

Similar to Lecture 4 - Charts and graphs.pptx

graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statisticsUnsa Shakir
 
Exploring Data (1).pptx
Exploring Data (1).pptxExploring Data (1).pptx
Exploring Data (1).pptxgina458018
 
Organizational Data Analysis by Mr Mumba.pptx
Organizational Data Analysis by Mr Mumba.pptxOrganizational Data Analysis by Mr Mumba.pptx
Organizational Data Analysis by Mr Mumba.pptxbentrym2
 
Descriptivestatistics
DescriptivestatisticsDescriptivestatistics
DescriptivestatisticsCarla Piper
 
Hanan's presentation.pptx
Hanan's presentation.pptxHanan's presentation.pptx
Hanan's presentation.pptxsaimwaheed2
 
ONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher Training
ONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher TrainingONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher Training
ONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher TrainingOffice for National Statistics
 
Data presentation
Data presentationData presentation
Data presentationWeam Banjar
 
2. AAdata presentation edited edited tutor srudents(1).pptx
2. AAdata presentation edited edited tutor srudents(1).pptx2. AAdata presentation edited edited tutor srudents(1).pptx
2. AAdata presentation edited edited tutor srudents(1).pptxssuser504dda
 
Univariate, bivariate analysis, hypothesis testing, chi square
Univariate, bivariate analysis, hypothesis testing, chi squareUnivariate, bivariate analysis, hypothesis testing, chi square
Univariate, bivariate analysis, hypothesis testing, chi squarekongara
 
Data Visualization & Analytics.pptx
Data Visualization & Analytics.pptxData Visualization & Analytics.pptx
Data Visualization & Analytics.pptxhiralpatel3085
 

Similar to Lecture 4 - Charts and graphs.pptx (20)

graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statistics
 
Exploring Data (1).pptx
Exploring Data (1).pptxExploring Data (1).pptx
Exploring Data (1).pptx
 
Exploring Data
Exploring DataExploring Data
Exploring Data
 
Organizational Data Analysis by Mr Mumba.pptx
Organizational Data Analysis by Mr Mumba.pptxOrganizational Data Analysis by Mr Mumba.pptx
Organizational Data Analysis by Mr Mumba.pptx
 
FREQUENCIES.ppt
FREQUENCIES.pptFREQUENCIES.ppt
FREQUENCIES.ppt
 
Descriptivestatistics
DescriptivestatisticsDescriptivestatistics
Descriptivestatistics
 
Eda sri
Eda sriEda sri
Eda sri
 
2. basic statistics
2. basic statistics2. basic statistics
2. basic statistics
 
Hanan's presentation.pptx
Hanan's presentation.pptxHanan's presentation.pptx
Hanan's presentation.pptx
 
IS100 Week 9
IS100 Week 9IS100 Week 9
IS100 Week 9
 
ONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher Training
ONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher TrainingONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher Training
ONS Guide to Social and Economic Research – Welsh Baccalaureate Teacher Training
 
IV STATISTICS I.pdf
IV STATISTICS I.pdfIV STATISTICS I.pdf
IV STATISTICS I.pdf
 
Introduction to Descriptive Statistics
Introduction to Descriptive StatisticsIntroduction to Descriptive Statistics
Introduction to Descriptive Statistics
 
Data presentation
Data presentationData presentation
Data presentation
 
Week_2_Lecture.pdf
Week_2_Lecture.pdfWeek_2_Lecture.pdf
Week_2_Lecture.pdf
 
Introduction
IntroductionIntroduction
Introduction
 
2. AAdata presentation edited edited tutor srudents(1).pptx
2. AAdata presentation edited edited tutor srudents(1).pptx2. AAdata presentation edited edited tutor srudents(1).pptx
2. AAdata presentation edited edited tutor srudents(1).pptx
 
data collection.pptx
data collection.pptxdata collection.pptx
data collection.pptx
 
Univariate, bivariate analysis, hypothesis testing, chi square
Univariate, bivariate analysis, hypothesis testing, chi squareUnivariate, bivariate analysis, hypothesis testing, chi square
Univariate, bivariate analysis, hypothesis testing, chi square
 
Data Visualization & Analytics.pptx
Data Visualization & Analytics.pptxData Visualization & Analytics.pptx
Data Visualization & Analytics.pptx
 

Recently uploaded

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 

Recently uploaded (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 

Lecture 4 - Charts and graphs.pptx

  • 1. APPLIED STATISTICS (FOR HUMANITIES) Muhammad Ghazi Lecture 4: Charts and graphs Spring 2023
  • 2. MOTIVATION FOR THIS TOPIC: DATA IN THE WORKPLACE In a typical workplace (outside of research institutions), the lion’s share of time is spent on: 1. Collecting the right data 2. ‘Cleaning’ the data to perform analysis 3. Presenting data I. Making tables II. Making charts III. Interpreting
  • 5. A PRODUCTIVE EMPLOYEE • Will know what kind of data is needed • Store and organize datasets efficiently • Be able to summarize and present complex information • Draw the correct interpretation • Make their work replicable
  • 6. PRESENTING DATA • Looking at raw data is not so intuitive • Tables and descriptive statistics help summarize data • But they’re sometimes boring
  • 8. PRESENTING DATA • Graphing data often drives the point home • Visually appealing • Saves audience time • Think about how you can tell the most interesting story
  • 9. A BASIC FRAMEWORK FOR GRAPHS Categorical variables Bar charts Pie chart Quantitative variables Two variables • Scatterplot • Line plots Single Variable • Box plots • Histograms This is not a strict classification We can draw bar graphs for quantitative variables
  • 10. PIE CHARTS • Categorical data • Shows proportion • Shows percentages of observations (individuals etc.) in each category • Relative size of slices is denoted by degrees of a full circle 48% 40% 12% Biden Trump Jorgensen
  • 11. PIE CHARTS • Categorical data • Shows proportion • Shows percentages of observations (individuals etc.) in each category • Relative size of slices is denoted by degrees of a full circle • A suitable color scheme can make the chart more appealing 48% 40% 12% Biden Trump Jorgensen
  • 13. BAR CHART • Also used for categorical data • Shows magnitude of some indicator within each category • Relative height used to denote size • Consider the chart on the right that summarizes average income for the supporters of each candidate $- $10,000 $20,000 $30,000 $40,000 $50,000 $60,000 $70,000 $80,000 Biden Trump Jorgensen Avg. voter income
  • 14. BAR CHART • Also used for categorical data • Shows magnitude of some indicator within each category • Relative height used to denote size • Consider the chart on the right that summarizes average income for the supporters of each candidate • Maintain consistency in chart schemes with a report $- $10,000 $20,000 $30,000 $40,000 $50,000 $60,000 $70,000 $80,000 Biden Trump Jorgensen Avg. voter income
  • 16. TWO-WAY BAR CHARTS • Bar charts can easily summarize two-way tables • The chart on the right can show us visually • Relative income for supporters of each candidate • Segmented by gender Avg. voter income by gender Male Female Biden $ 56,417 $ 66,384 Trump $ 95,200 $ 54,020 Jorgensen $ 63,900 $ 62,000
  • 17. TWO-WAY BAR CHARTS • Bar charts can easily summarize two-way tables • The chart on the right can show us visually • Relative income for supporters of each candidate • Segmented by gender $- $10,000 $20,000 $30,000 $40,000 $50,000 $60,000 $70,000 $80,000 $90,000 $100,000 Biden Trump Jorgensen Avg. income by gender Male Female Avg. voter income by gender Male Female Biden $ 56,417 $ 66,384 Trump $ 95,200 $ 54,020 Jorgensen $ 63,900 $ 62,000
  • 18. TIPS ON MAKING BAR AND PIE CHARTS In Excel: always need a table first Use conditionals (countif, averageif, sumif) Pivot tables are a blessing (upcoming) Picking the right chart Generally, use bar charts for magnitude Generally use pie charts for proportion Let Excel Suggest the chart Alternate as to not bore your audience
  • 19. SCATTER PLOTS • Show simple relationship between two quantitative variables • One variable on the x-axis and the other on the y-axis • Each point is one observation • Will revisit when we look at correlations and regressions • Consider the relationship between age and income from our survey $- $50,000 $100,000 $150,000 $200,000 $250,000 $300,000 0 20 40 60 80 Income Age
  • 20. LINE CHARTS • Like scatterplots: show relationship between two quantitative variables • But connected • Most suitable when time is on the x-axis (time charts) • Each point in time should only have one reading 0 2000 4000 6000 8000 10000 12000 14000 2020-02-25 2020-03-05 2020-03-14 2020-03-23 2020-04-01 2020-04-10 2020-04-19 2020-04-28 2020-05-07 2020-05-16 2020-05-25 2020-06-03 2020-06-12 2020-06-21 2020-06-30 2020-07-09 2020-07-18 2020-07-27 2020-08-05 2020-08-14 2020-08-23 2020-09-01 2020-09-10 2020-09-19 2020-09-28 2020-10-07 2020-10-16 2020-10-25 2020-11-03 2020-11-12 2020-11-21 2020-11-30 2020-12-09 2020-12-18 2020-12-27 2021-01-05 2021-01-14 New COVID-19 cases in Pakistan
  • 21. PICKING THE RIGHT CHART PICK SCATTER WHEN TWO QUANTITATIVE VARIABLES PICK LINE WHEN TIME ON X-AXIS IF FEW VALUES IN TIME, JUST MAKE BAR CHART WHEN PRESENTING, TRY TO ALTERNATE CHARTS WHEN POSSIBLE
  • 22. GRAPHING A SINGLE QUANTITATIVE VARIABLE Ironically, interpreting single variable graphs is trickier than graphs between two variables Both box plots and histograms represent the distribution of the variable
  • 23. BOX PLOTS / BOX AND WHISKER PLOT • Box plots depict the following information about a variable: • It’s median (line in the middle of the box) • 25th percentile (lower edge of the box) • 75th percentile (upper edge of the box) • Minimum value (lower edge of the whisker) • Maximum value (upper edge of the whisker) • When using Excel: outliers (some magnitude of quartiles) • Can help identify where bulk of the observations are • The box and whisker plot of age of survey respondents is shown
  • 24. BOX PLOTS / BOX AND WHISKER PLOT • Box plots depict the following information about a variable: • It’s median (line in the middle of the box) • 25th percentile (lower edge of the box) • 75th percentile (upper edge of the box) • Minimum value (lower edge of the whisker) • Maximum value (upper edge of the whisker) • When using Excel: outliers (some magnitude of quartiles) • Can help identify where bulk of the observations are • The box and whisker plot of age of survey respondents is shown
  • 25. VARIATIONS TO WHISKER PLOTS • Graphing min/max/quartiles is standard • In practice, whiskers can be used to graph many other measures: • - Just min max (shown) • - Confidence intervals (upcoming) • The idea is the same: to show the spread of the variable around some center Source: Ministry of Economic Affairs, Bhutan
  • 26. HISTOGRAM • Kind of like a bar graph • Ranges of values of the variable on x-axis (called bins) • No gaps or overlaps • Ordered • Frequency in each group on y-axis • Graph of choice for single numerical variable • On the y axis, can show frequency or fraction (density) • Crucial to understanding probability distributions
  • 27. INTERPRETING DISTRIBUTION: SKEWNESS Left hand size mirrors right hand size Mode = Median = Mean Example: Male heights Symmetric One tail stretching off to the right Mode < Median < Mean Example: Household income Right / positively skewed One tail stretching off to the left Mode > Median > Mean Example: Age of death Left / negatively skewed
  • 28.
  • 29. INTERPRETING DISTRIBUTION: VARIABILITY We can also comment on the spread (variance or std dev) of the variable by looking at the histogram Spread out Example: Results of many dice rolls High variability Closely clustered around center Example: Age brackets of sophomores at LUMS Low variability
  • 30. FIN.