Lecture 2 - Descriptive Statistics-2
📚 Lecture 2 - Descriptive Statistics-2.pdf
Brief overview
This document introduces fundamental descriptive statistics for summarizing and understanding data. It covers how to classify data types and presents methods for visualizing data distributions and quantifying their spread.
Key points
- Overview of variable types and frequency distributions
- How to describe the center of a data distribution
- Measures of data variability and dispersion
- Effective data presentation using tables and graphs
1. Understanding variable types and frequency distributions
1.1 Variable types
-
Variable: A characteristic that can take on different values.
-
Qualitative variables: Data that describe qualities or categories. They cannot be ordered meaningfully.
-
Dichotomous variables: Qualitative variables with only two possible categories. Example: Yes/No.
-
Nominal variables: Qualitative variables with more than two categories where order does not matter. Example: Marital status.
-
Ordinal variables: Qualitative variables where categories can be ordered, but the differences between them are not meaningful. Example: Health status (e.g., poor, fair, good).
-
Quantitative variables: Data that represent numerical quantities.
-
Discrete variables: Quantitative variables that can only take specific, separate values, often whole numbers. Example: Number of friends.
-
Continuous variables: Quantitative variables that can take any value within a given range. Example: Height or weight.
Variable types guide the choice of statistical methods.
1.2 Frequency distributions
- Frequency distribution table: Organizes data by showing how often each value or category occurs.
| Variable Type | Description | Example |
|---|---|---|
| Dichotomous | Two categories | Yes/No |
| Nominal (Categorical) | Categories, order doesn't matter | Marital status |
| Ordinal | Ordered categories, unequal intervals | Health status (e.g., poor, fair, good) |
| Discrete | Countable, separate numerical values | Number of Facebook friends |
| Continuous | Any value within a range, measurable | Age, height |
- Relative frequency: The proportion of times a specific value or category appears in the dataset. It estimates the likelihood of an outcome 2.
- Cumulative frequency: The sum of frequencies for a given value and all preceding values.
- Cumulative relative frequency: The sum of relative frequencies for a given value and all preceding values 5.
Frequency tables summarize raw data for easier interpretation.
1.3 Describing central tendency
- Descriptive statistics: Numerical summaries used to describe the main features of a dataset 1.
- Central tendency: A measure indicating the center or typical value of a distribution.
- Key measures: mean, median, and mode 8.
Central tendency helps us understand the "average" or "typical" value in data.
1.3.1 The mean
-
Mean: The arithmetic average of a dataset. Calculated by summing all values and dividing by the number of values (N).
-
Formula: xˉ=ΣX÷N. xˉ represents the sample mean, Σ is the sum, X are the data values, and N is the number of observations.
-
Population mean is denoted by μ 9 .
-
When mean is not ideal:
-
Sensitive to outliers, which can distort the "typical" value.
-
Less representative when data are skewed .
The mean represents the balance point of the data.
1.3.2 The median
- Median: The middle value in an ordered dataset, dividing it into two equal halves .
- Calculation:
- Order data from smallest to largest.
- If N is odd, the median is the middle value.
- If N is even, the median is the average of the two middle values .
The median is the 50th percentile.
- Advantages:
- Not influenced by outliers.
- Good index for skewed distributions.
- Appropriate for ordinal data.
- Disadvantages:
- Does not use all actual data values, only position.
1.3.3 The mode
-
Mode: The most frequently occurring value in a dataset.
-
Can be unimodal (one mode), bimodal (two modes), or multimodal (multiple modes) .
-
Advantages:
-
Applicable to all measurement levels, including nominal.
-
Represents an actual data value.
-
Useful for multimodal distributions.
-
Disadvantages:
-
Ignores most data points.
-
Can be unstable across samples.
-
A distribution might have no mode .
The mode is the peak of the distribution.
1.4 Central tendency in different distributions
-
In a normal distribution:
-
Mean, median, and mode are equal and coincide at the center .
-
In a skewed distribution:
-
The mean is pulled towards the tail of the skew .
-
For a right (positive) skew: Mode < Median < Mean.
-
For a left (negative) skew: Mean < Median < Mode.
Skewness reveals the asymmetry of a distribution.
🔑 Important: For skewed data or data with outliers, the median is generally a more robust measure of central tendency than the mean .
2. Measures of data variability
2.1 Understanding data spread
- Data variability, also known as dispersion or spread, describes how spread out a set of data points are.
- Two datasets can have the same central tendency (like the mean) but very different spreads.
- A dataset with high variability is heterogeneous, meaning its values are widely scattered.
- A dataset with low variability is homogeneous, meaning its values are clustered closely together.
- Understanding variability helps assess how well a central measure, like the mean, summarizes the entire dataset.
2.2 Key measures of variability
- Several metrics quantify data variability. Each offers a different perspective on the data's spread.
- These measures include the range, interquartile range (IQR), variance, standard deviation, and coefficient of variation (CV).
2.2.1 Range
- Range: the difference between the largest and smallest score in a dataset.
- Calculation: Range=MaxScore−MinScore .
- Advantages: Easy to understand and provides information about the total spread.
- Disadvantages:
- Sensitive to outliers, as it only uses two data points.
- Can fluctuate between samples and is influenced by sample size.
2.2.2 Interquartile range (IQR)
- Quartiles: values that divide a sorted dataset into four equal parts.
- Q1 (Lower Quartile): the median of the lower half of the data; 25% of scores are below it.
- Median (Q2): the middle value of the dataset.
- Q3 (Upper Quartile): the median of the upper half of the data; 75% of scores are below it.
- Interquartile Range (IQR): the difference between the upper and lower quartiles.
- Calculation: IQR=Q3−Q1 .
- Represents the spread of the middle 50% of the data .
- Advantages:
- Less affected by outliers than the range.
- Uses more data points than the range.
- Useful for identifying outliers.
- Disadvantages:
- More complex to compute.
- Does not consider all data values.
2.2.3 Variance and standard deviation
- Deviance: the difference between each score and the mean of the distribution .
- Sum of deviances from the mean is always zero.
- Variance: the average of the squared deviances from the mean.
- It indicates the total dispersion of scores from the mean.
- The units are squared (e.g., "friends squared" in a Facebook example).
- Calculation (for population): σ2=N∑(xi−μ)2.
- Calculation (for sample): s2=n−1∑(xi−xˉ)2 .
- Standard Deviation (SD): the square root of the variance.
- It brings the measure of spread back into the original units of the data.
- It represents the average amount of deviation of scores from the mean.
- Use this measure when the mean is used as the measure of central tendency.
- Calculation (for population): σ=σ2.
- Calculation (for sample): s=s2 .
Interpreting standard deviation
- The SD indicates how "off" the mean is as a summary of the overall distribution .
- For normal distributions:
- Approximately 68% of data falls within 1 SD of the mean.
- Approximately 95% of data falls within 2 SDs of the mean.
- Approximately 99.7% of data falls within 3 SDs of the mean .
Identifying unusual values
- Percentile approach: values below the 2.5th percentile or above the 97.5th percentile are unusual.
- Standard deviation approach: values beyond xˉ±1.96∗s are considered unusual.
- Minimum "usual" value: xˉ−1.96∗s.
- Maximum "usual" value: xˉ+1.96∗s .
Outlier definitions
| Outlier type | Condition | Range of values |
|---|---|---|
| Mild outlier | Between 1.5 and 3.0 times the IQR below Q1 or above Q3 | (Q1−1.5∗IQR,Q3+1.5∗IQR) |
| Extreme outlier | Greater than 3.0 times the IQR below Q1 or above Q3 | (Q1−3.0∗IQR,Q3+3.0∗IQR) |
2.2.4 Coefficient of variation (CV)
- Coefficient of Variation (CV): a ratio of the standard deviation to the mean, expressed as a percentage.
- Calculation: CV=xˉs∗100%.
- Use CV when:
- Units of measure are different between datasets.
- Comparing variability in populations with different average values (e.g., weight of children vs. adults) .
🔑 Important: The CV is crucial for comparing variability across datasets with different scales or units.
2.3 Using tables and graphs to describe data
- Tables and graphs visually summarize data, showing center, variability, shape, relationships, and comparisons .
2.3.1 Tables
- A good table includes a title, column index, row index (with units), and figures aligned by decimal point .
2.3.2 Graphs
- Bar charts: used for dichotomous or categorical data. Display absolute or relative frequencies.
- Histograms: used for ordinal or continuous data where the underlying continuum is clear (e.g., age in years).
- The y-axis shows frequency, relative frequency, or probability .
- Box plots: used for continuous data. They visually represent the median, quartiles, and potential outliers. .
- Scatter plots: used for continuous variables to display relationships between two variables (x, y). .
📝 Example: For a question about physical activity frequency per week (Never, 1 day, 2-3 days, etc.), a bar chart is appropriate as it represents categorical data .
2.3.3 Creating good visuals
- Examine data quality and understand the purpose of the visual.
- Keep your audience in mind and let the visual communicate clearly.
- Ensure tables and graphs have essential information like titles, legends, and footnotes .
| Variable type | Summary Measures | Appropriate Graph |
|---|---|---|
| Dichotomous | Frequencies, relative frequencies | Bar chart |
| Categorical | Frequencies, relative frequencies | Bar chart |
| Ordinal | Frequencies, relative frequencies, cumulative frequencies | Histogram |
| Continuous | Mean, standard deviation, min, max, range, median, quartiles, IQR | Box plot |
| Continuous Pairs | --- | Scatter plot (for relationship) |
23 .
🔑 Important: Choosing the right visual representation (table vs. graph, and type of graph) is key to effectively communicating data variability and other characteristics .
© 2026 Maeve. All rights reserved. This content is protected by copyright.