STAT200 Lecture 2 Notes
STAT200 LECTURE 2 Notes
Tabular and Graphical Displays: Categorical One-Variable Case
- Prof. Angela Mak
Introduction to Descriptive Statistics
Descriptive statistics summarize data to make it easy to understand. Common measures include:
- Mean
- Variance
Data visualization methods include:
- Tabular Displays
- Graphical Displays
Types of Categorization for Data
Tabular Displays
- Frequency Distribution
- Relative Frequency Distribution
- Percent Frequency Distribution
- Crosstabulation
Graphical Displays
- Bar Chart
- Pie Chart
- Side-by-Side Bar Chart
- Stacked Bar Chart
Focus on Categorical Data
We will begin with the one-variable case and discuss appropriate displays:
Tabular Displays:
Frequency Distribution
Relative Frequency Distribution
Percent Frequency Distribution
Graphical Displays:
Bar Chart
Pie Chart
Frequency Distribution
- Definition: A frequency distribution is a tabular summary showing the number (frequency) of observations in each of several non-overlapping categories or classes.
| Rating | Frequency |
|---|---|
| Poor | 2 |
| Below Average | 3 |
| Average | 5 |
| Above Average | 9 |
| Excellent | 1 |
| Total | 20 |
Relative Frequency and Percent Frequency Distributions
Relative Frequency: The fraction or proportion of the total number of observations that belong to a specific class.
Percent Frequency: The relative frequency multiplied by 100, expressed in percentage.
| Rating | Relative Frequency | Percent Frequency |
|---|---|---|
| Poor | 0.10 | 10% |
| Below Average | 0.15 | 15% |
| Average | 0.25 | 25% |
| Above Average | 0.45 | 45% |
| Excellent | 0.05 | 5% |
| Total | 1.00 | 100% |
Bar Chart
- Definition: A bar chart is a graphical display used to depict qualitative data.
- The vertical axis can represent frequency, relative frequency, or percent frequency.
- Bars are separated to emphasize the individuality of each category.
Pie Chart
- Definition: A pie chart is often used to present relative frequency and percent frequency distributions.
- A circle represents 360 degrees; for example, a class with a relative frequency of 0.25 corresponds to:
of the circle.
Creating Pivot Tables and Charts for Categorical Data
- Steps to Create Pivot Table and Charts:
- Click on a cell containing data.
- Insert ➔ Pivot Table.
- Under the Pivot Chart Fields List:
- Drag information to Rows and Values (default shows counts).
- To create relative and percent frequency, drag the information again and adjust value field settings to display as "% of grand total".
- Optionally adjust number format.
- Duplicate the Pivot Table to another sheet, remove unwanted elements, then create the Pivot Chart for visualization.