Descriptive Statistics: Presenting and Summarising Data
Review of Fundamental Variable Types and Sampling Methods
Population vs. Sample:
A population encompasses all subjects, items, or observations of interest in a study.
A sample is a subset of observations selected from a population.
Random Sampling: A sampling design in which every subject in the population has an equal, non-zero probability of being selected into the sample.
Types of Quantitative Variables:
Continuous Variables: Quantitative variables that can take any value within a given numerical interval (e.g., height, weight, distance, temperature, moisture content).
Discrete Variables: Quantitative variables whose values are restricted to a finite or countably infinite set of distinct values (e.g., counts of events, number of cells, number of ticks).
Types of Categorical Variables:
Ordinal Variables: Categorical variables composed of ordered or ranked categories (e.g., satisfaction ratings like very dissatisfied, dissatisfied, satisfied, very satisfied).
Nominal Variables: Categorical variables with unordered categories that carry no natural quantitative ranking (e.g., eye color, blood type, species name).
Frequency Distributions
Definition: A tabular summary of data showing the number (frequency) of observations in each of several non-overlapping categories or class intervals.
Core Requirements for Class Intervals:
Mutually Exclusive: Class intervals must not overlap; every single observation fits into exactly one class.
All-Inclusive: Class intervals must span the full range of the data; no observation is left unclassified.
Number of Class Intervals: As a general rule, a frequency distribution should contain between and class intervals.
Constructing a Frequency Distribution (Step-by-Step):
Identify the sample minimum value () and maximum value ().
Determine an appropriate class width and starting point such that the first class includes the minimum value.
Define non-overlapping boundary conditions (e.g., ).
Tally and record the count (frequency) of data points falling into each class interval.
Detailed Example — Vitamin B1 Treatment on Tomato Transplants:
Scenario: A plant scientist evaluates the effect of thiamine hydrochloride (vitamin B1) on vegetable transplants. A random sample of tomato plants is measured post-treatment.

Raw Data (Heights in ):

Constructed Frequency Table (Class Width = ):
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Analytical Summary of Distribution:
Most plant heights are concentrated between and .
Plant heights vary continuously from a minimum of to a maximum of .
Frequencies taper off smoothly toward both extremes, showing no unusually tall or short plants.
Histograms and Distribution Shapes
Histogram Definition: A visual representation of a continuous frequency distribution consisting of contiguous vertical bars drawn over class intervals.
The base of each bar represents the class interval on the horizontal axis.
The area of each bar is proportional to the class frequency.
When all class intervals have equal width, the height of each bar is directly proportional to its class frequency.
Adjusting Bar Heights for Unequal Class Widths:
When class widths are unequal, bar heights must be adjusted so that bar area accurately represents frequency.
Standard Width: Select the narrowest class width in the dataset as the baseline standard width.
Width Multiple: Calculate the relative scale factor for each class interval:
Adjusted Bar Height (Frequency Density): Compute bar height as:
Handling Open-Ended Classes:
An open-ended class lacks a specified upper or lower boundary (e.g., ).
Assign a realistic boundary based on adjacent class widths or physical domain limits (e.g., capping percentage variables at ).
Detailed Example — Genome Sizes of Common Viruses:
Standard Width: (the smallest interval width present).
Adjustment Calculations Table:
Class : Width = , Multiple = , Frequency = , Adjusted Height =
Class : Width = , Multiple = , Frequency = , Adjusted Height =
Class : Width = , Multiple = , Frequency = , Adjusted Height =
Class : Width = , Multiple = , Frequency = , Adjusted Height =
Class : Width = , Multiple = , Frequency = , Adjusted Height =
Class : Width = , Multiple = , Frequency = , Adjusted Height =
Class (Assumed limit ): Width = , Multiple = , Frequency = , Adjusted Height =

Classifying Distribution Shapes:
Symmetric Distribution:
Left and right halves centered around the midpoint are mirror images.
Bell-shaped or unimodal curves.

Right-Skewed Distribution (Positively Skewed):
Data concentration is located on the left side, with a long tail stretching toward higher values on the right.

Left-Skewed Distribution (Negatively Skewed):
Data concentration is located on the right side, with a long tail stretching toward lower values on the left.

Bar Charts for Categorical Data
Definition: A visual representation of discrete or qualitative data where each category is represented by an isolated rectangular bar.
Key Features:
Bars are drawn separated by gaps to emphasize discrete, non-continuous categories.
All bars have equal width.
The length or height of each bar is directly proportional to category frequency or percentage.
Example — Customer Satisfaction Rating ():
Very satisfied: Frequency = , Percentage =
Satisfied: Frequency = , Percentage =
Dissatisfied: Frequency = , Percentage =
Very dissatisfied: Frequency = , Percentage =
Measures of Centrality
Purpose: Measures of centrality (or location) identify a single typical or central value around which data cluster.
Mean (Arithmetic Mean):
Defined as the sum of all numerical values divided by the total count of observations.
Population Mean Formula:
Sample Mean Formula:
Calculation Example: Cell diameters ():
Median ():
Defined as the exact middle observation when data are arranged in ascending order.
Positional Index: Located at position index .
Calculation Rules:
If sample size is odd: The median is the single observation in position .
If sample size is even: There is no single middle value. The median is the average of the two middle observations in positions and :
Calculation Example (Odd ): Canine tick counts:
Position = .
Calculation Example (Even ): Canine tick counts:
Middle positions are () and ().
Robustness and Sensitivity to Distribution Shape:
Robustness: The median is robust to extreme outliers; an extreme value change does not alter the middle position value. The mean is sensitive to outliers and gets pulled ("dragged") toward extreme values.
Symmetric Distributions: Mean and median are equal ().
Right-Skewed Distributions: Mean is larger than median ().
Left-Skewed Distributions: Mean is smaller than median ().
Measures of Variability and Spread

Range:
Difference between the maximum and minimum values in a dataset:
Simple to compute, but highly sensitive to outliers as it relies on only two extreme values.
Example: Bacteria doubling times ():
Variance:
Measures the mean squared deviation of data points from the sample mean.
Population Variance Formula:
Sample Variance Formula:
Worked Example: Butterfly wing lengths ():
Squared deviations: , , , , , ,
Sum of squared deviations:
Standard Deviation:
Positive square root of the variance, returning the dispersion measure to the original unit of measurement:
Population Standard Deviation:
Sample Standard Deviation:
Quartiles and Percentiles
Quartiles:
Values that partition an ordered dataset into four equal quarters.
First Quartile (): 25th percentile. Cutoff below which of observations fall.
Second Quartile (): 50th percentile (Median). Cutoff below which of observations fall.
Third Quartile (): 75th percentile. Cutoff below which of observations fall.
Positional Index Formulas in Ordered Data:
Index for :
Index for :
Index for :
Index for Percentile :
Linear Interpolation Rule: If a positional index is not a whole number, interpolate proportionally between adjacent ordered data values.
Worked Example — Gibraltar Dolphin Sightings ():
Ordered dataset:
Computing :
Position =
Computing :
Position =
Computing :
Position =
Interquartile Range (IQR):
The range of the middle of the data:
Unlike the total range, is robust to extreme outliers.
Boxplots and Outlier Detection
Definition: A visual representation based on the Five-Number Summary (, , , , ).
Anatomy of a Boxplot:
Central box spanning from to (length equals ).
Internal vertical/horizontal line drawn at median .
Whiskers: Lines extending from box limits to the adjacent values.
Lower Adjacent Value: The smallest observation that is .
Upper Adjacent Value: The largest observation that is .
Outliers: Observations falling strictly outside lower boundary () or upper boundary (). Outliers are plotted individually using symbols such as asterisks (
*) or open circles (o).
Worked Example — Virus Cell Diameters ():
Raw ordered data:
Quartiles:
position = value
position = value
position = value
and Threshold Boundaries:
Lower Fence =
Upper Fence =
Adjacent Values & Outliers:
Lower Adjacent Value = (smallest observation ).
Upper Adjacent Value = (largest observation ).
Outlier = (since ).
Comparative Boxplots:
Preparing boxplots side by side on a shared scale enables direct comparison between independent distributions regarding median location, overall dispersion ( and range), skewness, and extreme values.
Applied Practical Scenarios and Exam Exercises
Dublin ER Hospital Patient Ages Scenario (Summer 2009 Q1b):
Sample size . Age classes and frequencies:
: Frequency = (Width = , Height = )
: Frequency = (Width = , Height = )
: Frequency = (Width = , Height = )
: Frequency = (Width = , Multiple = , Height = )
: Frequency = (Width = , Multiple = , Height = )
: Frequency = (Width = , Multiple = , Height = )
Distribution Shape Analysis: Strongly right-skewed with concentration between and years and a thin upper tail extending to years.
Recommended Measures: Median and Interquartile Range (), because the histogram reveals clear skewness and unequal interval spread.
West Cork Soil Moisture Content Scenario (Summer 2011 Q2):
Sample size fields in West Cork.
Data ( moisture):
Mean & Median Calculations:
Mean
Median position = , between and . Median
Quartiles & Interpretation:
position = value
position = value
position = value
Interpretation: of fields have moisture , have moisture , and have moisture .
Boxplot Calculations:
Lower fence =
Upper fence =
Lower Adjacent Value =
Upper Adjacent Value =
Outlier =
Low Moisture Content Analysis:
Low moisture defined as . Count of fields is ().
Percentage =
Expected low moisture fields in a sample of fields = fields.
Student University Accommodation Distance Exercise (Summer 2010 Q2):
Sample size full-time students.
Data ():
Mean = , Median ( value) = .
Impact of Adding an Extreme Observation ():
New Mean = (increases significantly by ).
New Median = (increases slightly by ).
Demonstrates the median's robustness against extreme pull compared to the mean.
Cigarette Nicotine Concentration Exercise (Summer 2008 Q1a):
Sample size cigarette brands.
Classes: (), (), (), (), (), (), ().
Histogram Shape: Right-skewed distribution with peak at and a right tail stretching to .
Comparison: Mean > Median due to rightward tail drag. Median is selected as the superior centrality metric.
Children Weights Frequency Distribution Exercise (Autumn 2006 Q1c):
Dataset of five-year-old children weights ():
Class width = , first class .
Frequency Distribution Table:
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =
Class : Frequency =