Pregunta de entrevista de NVIDIA

Explain in mathematical language how sampling works?