Cody

# Problem 44951. Verify Law of Large Numbers

Solution 2684210

Submitted on 12 Jul 2020 at 16:58
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
N = 6; rng(7); assert((round(abs(loln(N)),7) == 7.2900e-05))

num = 0 y = 1 num = 1 y = 5 num = 6 y = 3 num = 9 y = 5 num = 14 y = 6 num = 20 y = 4 num = 24 y = 4 num = 28 y = 1 num = 29 y = 2 num = 31 y = 3 num = 34 y = 5 num = 39 y = 5 num = 44 y = 3 num = 47 y = 1 num = 48 y = 2 num = 50 y = 6 num = 56 y = 2 num = 58 y = 3 num = 61 y = 6 num = 67 y = 1 num = 68 y = 4 num = 72 y = 6 num = 78 y = 2 num = 80 y = 4 num = 84 y = 6 num = 90 y = 1 num = 91 y = 4 num = 95 y = 5 num = 100 y = 5 num = 105 y = 3 num = 108 y = 2 num = 110 y = 3 num = 113 y = 3 num = 116 y = 3 num = 119 y = 3 num = 122 y = 6 num = 128 y = 5 num = 133 y = 2 num = 135 y = 4 num = 139 y = 2 num = 141 y = 3 num = 144 y = 3 num = 147 y = 4 num = 151 y = 3 num = 154 y = 3 num = 157 y = 5 num = 162 y = 3 num = 165 y = 6 num = 171 y = 2 num = 173 y = 5 num = 178 y = 3 num = 181 y = 3 num = 184 y = 4 num = 188 y = 4 num = 192 y = 3 num = 195 y = 1 num = 196 y = 1 num = 197 y = 5 num = 202 y = 4 num = 206 y = 5 num = 211 y = 6 num = 217 y = 5 num = 222 y = 1 num = 223 y = 2 num = 225 y = 4 num = 229 y = 2 num = 231 y = 6 num = 237 y = 6 num = 243 y = 6 num = 249 y = 3 num = 252 y = 6 num = 258 y = 1 num = 259 y = 2 num = 261 y = 3 num = 264 y = 5 num = 269 y = 3 num = 272 y = 1 num = 273 y = 3 num = 276 y = 2 num = 278 y = 2 num = 280 y = 1 num = 281 y = 3 num = 284 y = 3 num = 287 y = 5 num = 292 y = 5 num = 297 y = 4 num = 301 y = 3 num = 304 y = 5 num = 309 y = 6 num = 315 y = 5 num = 320 y = 5 num = 325 y = 6 num = 331 y = 1 num = 332 y = 6 num = 338 y = 2 num = 340 y = 3 num = 343 y = 5 num = 348 y = 5 num = 353 y = 1 num = 354 y = 4 num = 358 dice_dif = 7.2860e-05

2   Fail
N = 10; rng(1000); assert((round(abs(loln(N)),7) == 8.7600e-05))

num = 0 y = 7 num = 7 y = 2 num = 9 y = 10 num = 19 y = 5 num = 24 y = 9 num = 33 y = 3 num = 36 y = 1 num = 37 y = 4 num = 41 y = 3 num = 44 y = 9 num = 53 y = 3 num = 56 y = 8 num = 64 y = 4 num = 68 y = 2 num = 70 y = 8 num = 78 y = 1 num = 79 y = 9 num = 88 y = 10 num = 98 y = 10 num = 108 y = 5 num = 113 y = 1 num = 114 y = 10 num = 124 y = 4 num = 128 y = 8 num = 136 y = 4 num = 140 y = 1 num = 141 y = 9 num = 150 y = 7 num = 157 y = 8 num = 165 y = 6 num = 171 y = 9 num = 180 y = 10 num = 190 y = 1 num = 191 y = 1 num = 192 y = 3 num = 195 y = 2 num = 197 y = 7 num = 204 y = 4 num = 208 y = 9 num = 217 y = 2 num = 219 y = 5 num = 224 y = 1 num = 225 y = 7 num = 232 y = 5 num = 237 y = 2 num = 239 y = 9 num = 248 y = 10 num = 258 y = 1 num = 259 y = 1 num = 260 y = 5 num = 265 y = 7 num = 272 y = 4 num = 276 y = 7 num = 283 y = 3 num = 286 y = 6 num = 292 y = 6 num = 298 y = 5 num = 303 y = 2 num = 305 y = 3 num = 308 y = 2 num = 310 y = 4 num = 314 y = 3 num = 317 y = 6 num = 323 y = 6 num = 329 y = 5 num = 334 y = 4 num = 338 y = 6 num = 344 y = 9 num = 353 y = 9 num = 362 y = 2 num = 364 y = 4 num = 368 y = 5 num = 373 y = 7 num = 380 y = 8 num = 388 y = 5 num = 393 y = 5 num = 398 y = 9 num = 407 y = 6 num = 413 y = 10 num = 423 y = 1 num = 424 y = 4 num = 428 y = 10 num = 438 y = 7 num = 445 y = 9 num = 454 y = 3 num = 457 y = 8 num = 465 y = 3 num = 468 y = 6 num = 474 y = 3 num = 477 y = 5 num = 482 y = 8 num = 490 y = 4 num = 494 y = 7 num = 501 y = 5 num = 506 y = 10 num = 516 y = 7 num = 523 y = 7 num = 530 y = 4 num = 534 y = 6 num = 540 y = 1 num = 541 dice_dif = 8.1967e-05

Assertion failed.