What Is Statistics? Populations, Samples and Frequency Distributions
Samir Orujov, PhD
ADA University, School of Business
Information Communication Technologies Agency, Statistics Unit
2026-09-10
π― Learning Objectives
By the end of this lecture, you will be able to:
Distinguish a population from a sample, and a parameter from a statistic, in a financial setting
State the objective of statistics as making an inference together with a measure of its goodness
Construct a frequency distribution and a relative frequency histogram from raw return data
Choose a sensible number of classes and explain how that choice changes what the picture shows
Interpret the shape of a distribution β symmetry, skewness, tail weight β in economic terms
πΊοΈ Overview
Wackerly Β§Β§1.1 β 1.3
What statistics is, and what it is for
Populations, samples, parameters, statistics
The inferential problem and its measure of goodness
Describing a data set graphically
Frequency distributions and relative frequency histograms
Relative frequency as the bridge to probability
π‘ Motivation: One Number Is Never Enough
A risk desk in Baku holds a portfolio of bank shares. It has 250 daily returns from last year.
The desk does not care about those 250 days. It cares about tomorrow, and about the process that produced them.
So it must reason from what it saw to what it did not see β and say how much confidence that reasoning deserves.
That reasoning is the whole subject of this course.
π The Objective of Statistics
Definition
Statistics is the science of making an inference about a population, based on information contained in a sample from that population, together with a measure of the goodness of that inference.
Three words carry the weight: inference, sample, goodness.
Drop the third and you are not doing statistics β you are guessing with arithmetic.
π₯ Population and Sample
Population
The whole set of measurements of interest to the investigator.
All daily returns the AZ banking index will ever generate.
Sample
A subset of measurements selected from the population.
The 250 daily returns actually observed in 2025.
The population is usually conceptual and infinite. The sample is finite and in your spreadsheet.
π’ Parameter and Statistic
Describes
Symbol
Known?
Parameter
Population
\(\mu,\ \sigma^2,\ p\)
Never
Statistic
Sample
\(\bar{y},\ s^2,\ \hat{p}\)
Always
A statistic is a function of the sample, so it is computable β and it is a random variable, because a different sample would give a different value.
That randomness is what we will spend the semester quantifying.
π€ Why Sample At All?
Cost. Auditing every loan in a portfolio of 400,000 is not a budget line anyone approves.
Time. A credit decision made in six months is not a credit decision.
Destruction. Some tests consume the item β stress-testing a system until it fails.
Impossibility. The population may not exist yet: next yearβs returns have not happened.
The last reason is the deep one. In finance, the population is almost always hypothetical.
π― The Inferential Problem
Four questions, and this course answers them in order:
What population is of interest?
What parameter of it do we want to know?
What sample information is available?
How good is the resulting inference?
Chapters 1β5 build the machinery of question 4. Everything before that is bookkeeping.
π Describing a Data Set
Before inference, look at the data.
A list of 250 numbers tells you nothing; the same 250 numbers arranged by size tell you a great deal.
Two routes:
Graphical β frequency distributions, histograms (Β§1.2, today)
Numerical β mean, variance, standard deviation (Β§Β§1.4β1.5, Saturday)
π§± Building a Frequency Distribution
Find the range: \(\text{range} = \max - \min\)
Choose the number of classes\(k\): between 5 and 20; more data, more classes
Class width\(\approx \text{range} / k\), rounded to something a human reads easily
Set boundaries so that no observation falls on one
Count the observations in each class: the class frequency \(f_i\)
Divide by \(n\): the relative frequency\(f_i / n\)
π A Worked Example: 40 Daily Returns
Forty daily percentage returns on a bank share, sorted into classes of width 1%:
Class (%)
Frequency \(f_i\)
Relative frequency \(f_i/n\)
\([-4,-3)\)
1
0.025
\([-3,-2)\)
3
0.075
\([-2,-1)\)
6
0.150
\([-1,0)\)
10
0.250
\([0,1)\)
11
0.275
\([1,2)\)
6
0.150
\([2,3)\)
2
0.050
\([3,4)\)
1
0.025
The relative frequencies sum to 1. That is not an accident β it is the reason this construction matters.
π Relative Frequency Is a Probability in Waiting
The bridge to Chapter 2
If a measurement is drawn at random from the sample, the probability that it lands in a class is that classβs relative frequency.
As \(n\) grows, the histogram settles down toward the probability distribution of the population.
Everything in Chapters 3 and 4 is this idea, made exact.
π Reading the Shape
Symmetric, mound-shaped
Returns of a broad index over a calm year. The empirical rule will apply.
Skewed right
Loan losses, insurance claims, waiting times. A long right tail, most mass near zero.
Heavy-tailed
Crisis-period returns. The centre looks normal; the tails are where the money is lost.
The histogram is the first place a bad model announces itself.
β οΈ The Number of Classes Is a Choice
Too few classes: everything looks like one lump. Structure is hidden.
Too many classes: every observation gets its own bar. Noise looks like structure.
There is no formula that removes the judgement. There is only the discipline of trying several and reporting one you can defend.
Move the sliders on the next slide and watch a conclusion change shape.
rng = {let s =42;return () => (s = (s *1103515245+12345) %2147483648) /2147483648;}normal = () => {const u =Math.max(rng(),1e-12), v =rng();returnMath.sqrt(-2*Math.log(u)) *Math.cos(2*Math.PI* v);}sample = {const out = [];for (let i =0; i < n_obs; i++) {if (shape ==="mound-shaped") out.push(0.05+1.2*normal());elseif (shape ==="skewed right") out.push(Math.exp(0.35*normal()) -1);else out.push(1.2*normal() * (rng() <0.06?4:1)); }return out;}Plot.plot({width:1050,height:380,marginLeft:60,marginBottom:50,x: {label:"Daily return (%)"},y: {label:"Relative frequency",tickFormat:".2f"},marks: [ Plot.rectY(sample, Plot.binX( {y: (bin, all) => bin.length/ all.length}, {x: d => d,thresholds: n_bins,fill:"#8b2635",fillOpacity:0.85} )), Plot.ruleY([0]) ]})
π§ Think-Pair-Share
A colleague shows you a histogram of 500 daily returns built with 3 classes. It looks perfectly symmetric, and he concludes the returns are normally distributed.
Two minutes, in pairs:
What has his choice of classes hidden?
What would you ask him to produce before you accept the conclusion?
Which feature of returns is most likely to be invisible at \(k = 3\)?
β Think-Pair-Share: Solution
With three classes every observation falls into a wide bin. Symmetry of three bars says almost nothing about symmetry of the underlying distribution β it is an artefact of coarse binning.
Ask for the same data at \(k \approx \sqrt{500} \approx 22\) classes, plus the numerical summaries of Saturdayβs lecture and, ideally, a normal reference curve on the same axes.
Tail behaviour. Crisis returns live in the outer 1β2% of the data. At \(k=3\) they are absorbed into the outermost bars and vanish. In risk management that is precisely the part you cannot afford to lose.
The moral: a histogram is a claim, and the number of classes is part of the claim.
π° Case Study: Descriptive Analysis of Real Returns
Run this in R to repeat todayβs construction on live market data.
library(quantmod)# Download five years of daily pricesgetSymbols("^GSPC", src ="yahoo", from ="2021-01-01", auto.assign =TRUE)prices <-as.numeric(Cl(GSPC))returns <-100*diff(log(prices)) # daily log returns, in per cent# 1. The frequency distributionk <-ceiling(sqrt(length(returns))) # a defensible starting choicebreaks <-pretty(range(returns), n = k)tab <-table(cut(returns, breaks))rel_freq <- tab /length(returns)round(rel_freq, 3)# 2. The relative frequency histogramhist(returns, breaks = breaks, freq =FALSE,main ="S&P 500 daily returns", xlab ="Return (%)", col ="grey85")
Ask of the output: where is the centre, how wide is the spread, and how much mass sits beyond Β±3%?
π Quiz #1: Population or Sample?
A regulator collects the download speeds of all 1.2 million fixed broadband subscribers in the country during March.
For the question βwhat is the mean speed of subscribers in March?β, this collection is:
the population
a sample
a statistic
a parameter
π Quiz #2: Parameters and Statistics
Which of the following is a statistic?
The average return of the 250 days in your data set
The true mean daily return of the index
The population variance \(\sigma^2\)
The probability of default of a AAA borrower
π Quiz #3: Relative Frequency
In a sample of \(n = 40\) returns, 11 fall in the class \([0,1)\). The relative frequency of that class is:
0.275
11
0.11
2.75
π Summary
Statistics makes an inference about a population from a sample, and attaches a measure of goodness to it
Parameters describe populations and are unknown; statistics describe samples and are random variables
A frequency distribution groups data into classes; dividing by \(n\) gives relative frequencies that sum to 1
The relative frequency histogram is the empirical ancestor of the probability distribution
The number of classes is a judgement, and it can hide exactly the tail behaviour that matters in finance
π Practice Problems
Wackerly, 7th edition
Exercises at the end of Β§1.3 β construct relative frequency histograms and read them
Chapter 1 supplementary exercises 1.1 β 1.10
Before Saturday
Read Β§Β§1.4 β 1.6. We will replace the picture with three numbers, and then ask how much of the picture those numbers actually keep.