Lecture 2.2 - Describing Categorical Data - Charts of categorical data Flashcards
1
Q
Charts of categorical data
A
- Bar chart and pie chart are common displays for a categorical variable.
- Both summarize the variable using its frequency table.
2
Q
Pie charts
A
- A pie chart is a circular graph that represents the relative frequencies of different categories in a qualitative data set.
- The size of each slice is proportional to the relative frequency of its corresponding category. The slices are labeled with the category names and their relative frequencies.
3
Q
Pie chart in a google sheet
A
- Highlight data to visualize
- Click “Insert Chart” in toolbar
- Open chart editor and select “Pie chart” type.
4
Q
Bar chart
A
- Bar chart: displays distinct values of qualitative data on a horizontal axis and relative frequencies on a vertical axis.
- Each distinct value is represented by a vertical bar whose height is equal to its frequency/relative frequency.
- Bars should be positioned apart so they don’t touch.
5
Q
Steps to construct a Bar Chart
A
- Get frequency/relative frequency distribution of data
- Draw horizontal axis for values, vertical axis for frequency/relative frequency
- Construct bars for each value with height equal to frequency/relative frequency
- Label bars with values, horizontal axis with variable name, vertical axis with “Frequency”/ “Relative frequency”.
6
Q
Pie chart in a google sheet
A
- Highlight/select data to visualize.
- Click “Insert Chart” in Google Sheets toolbar.
- Change chart type in Chart Editor.
- Select “Bar Chart” in Chart Editor.
7
Q
Pareto Charts
A
- Bar chart sorted by frequency is a Pareto chart, used for quality control.
- Bar chart for an ordinal variable must preserve the ordering.