~/matteospanio

#statistic#math

Principles of statistics

Populations, samples, estimators and the errors that separate an estimate from the parameter it chases.

Introduction

Statistics is the field of mathematics that studies collections of empirical data. How are data distributed? Can we infer something from our data?

With statistics we can answer these and other questions. In this article we discuss the fundamentals we need before starting any analysis of the data.

Population samples, parameters and statistics

Data collection is crucial in statistics. The samples collected and analysed are used to make assertions about the population at scale.

It is therefore necessary to distinguish the types of data we are dealing with. If a parameter (usually a number) concerns a fact about the entire object under consideration — say, the number of women living on earth at a given moment — then it observes the reality of the facts and does not change depending on the observation. It is usually the quantity we are after, since it is often very difficult or impossible to know it directly. Statistics takes a smaller sample of the population, studies the quantities at that smaller scale, and then carries them back up.

Glossary

  • Population: the reality whose aspects we want to know; all the units belonging to a certain group.
  • Parameter θ\theta: a characteristic that describes the population, for example its true mean or median.
  • Census: observation of all population units in order to quantify a parameter.
  • Sample: a subset of the population used to estimate θ\theta.
  • Statistic: any function of census or sample data.
  • Estimator θ^\hat{\theta}: a statistic used to reconstruct θ\theta.
  • Estimate: the value of the estimator on a particular sample.

Sampling and non-sampling errors

The discrepancy between the estimate and the parameter comes from two sources of error:

  1. Sampling errors, unavoidable. They arise because we observe only part of the population, and they decrease as the sample size grows provided the estimator θ^\hat{\theta} is well constructed.
  2. Non-sampling errors, avoidable. They arise from a badly constructed sample or an incorrect estimator, and there is no guarantee they decrease as the sample size grows.

Sample statistics

Once we have established which entities to focus on, let us define which statistics are of interest.

Consider a random sample of size nn:

(X1,,Xn)(X_1, \ldots, X_n)

The goal is to use the observed data to reconstruct parameters of the population. Simple descriptive statistics that measure location, variability and other properties need not already exist in the sample, but estimators and parameter estimates follow from it easily.

The main statistics for location are the sample mean, the sample median, and the quantiles, percentiles and quartiles that identify portions of the sample. The statistics that measure variability — how wide the curve is — are the sample variance and standard deviation, and the interquartile range.

Each statistic is a random variable, because it is computed from a sample. That is why they are said to describe the sampling distribution.

Throughout what follows, remember that we consider observations on independent and identically distributed random variables (i.i.d.) with expected value E(X)=μE(X) = \mu and variance Var(X)=σ2Var(X) = \sigma^2.

Sample mean

The sample mean estimates the population mean μ=E(X)\mu = E(X) and is written:

Xˉ=1ni=1nXi\bar{X} = \frac{1}{n} \sum_{i=1}^{n} X_i

So Xˉ\bar{X} is the random variable of the sample mean — the estimator — while xˉ\bar{x} is the estimate, the number actually observed for a given sample.

cite this post

apa

Spanio, M. (2022, August 30). Principles of statistics. Matteo Spanio. https://matteospanio.github.io/blog/2022/Principles-of-statistic/

bibtex
@misc{spanio2022principlesofstatis,
  author       = {Spanio, Matteo},
  title        = {Principles of statistics},
  year         = {2022},
  month        = aug,
  howpublished = {Blog post, \url{https://matteospanio.github.io/blog/2022/Principles-of-statistic/}},
  url          = {https://matteospanio.github.io/blog/2022/Principles-of-statistic/}
}