Pergunta de entrevista da empresa NVIDIA

Explain in mathematical language how sampling works?