Sample Complexity
Sample complexity is the count of training examples a learning algorithm needs before it can reliably achieve a predefined level of performance. In other words, it quantifies how much data are required for the model to make predictions that meet a desired accuracy or error bound with high confidence. The definition does not depend on any particular dataset; it is a property of the learning task and the algorithm together, often expressed as a function of factors such as the hypothesis space size, the allowed error rate, and the probability of failure.
Understanding sample complexity matters because data collection can be expensive, time‑consuming, or ethically sensitive. By knowing how many examples are sufficient, practitioners can plan experiments, allocate resources, and avoid over‑collecting redundant information. Theoretical bounds on sample complexity also guide the design of algorithms: a method with lower required samples is typically more efficient in practice and may be preferable when data are scarce.
Sample complexity appears throughout statistical learning theory, especially in frameworks that reason about probably approximately correct guarantees. It shows up whenever one asks how many labelled examples are needed to train classifiers, regressors, or even deep neural networks under various assumptions. The concept also informs fields such as active learning, where the goal is to reduce the number of queries, and fairness‑aware machine learning, which must ensure that protected groups receive enough data to achieve equitable performance.