Example
Sample Complexity for Error Estimation
To calculate the dataset size required to estimate the population error within a confidence interval of , we can compare asymptotic analysis with finite sample bounds. Asymptotic analysis suggests that roughly samples are needed to achieve this confidence level. In contrast, applying Hoeffding's inequality provides a more conservative, valid finite sample guarantee, demonstrating that approximately examples are required. This sample complexity scale aligns with the test set sizes of many popular machine learning benchmarks.
0
1
Updated 2026-05-03
Tags
D2L
Dive into Deep Learning @ D2L