Discrepancy Minimization: From Sample Space to Parameter Space