Commit d96a823
committed
use Pareto Distribution for Level 1 Problem 100
With inputs sampled from Unif(0,1), we can directly compute the expected value of the output using the mean of the targets.
We use the Pareto distribution to sample inputs w/finite mean and infinite variance to prevent hacking this way.1 parent bb1e23f commit d96a823
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
0 commit comments