We live in a simulation.

Normal+ 4 Exclusive 10s 256 MB
Math HRT

Each machine fails independently with probability pp on a given day. The probability that five machines all fail on the same day is p′=p5p' = p^5.

You receive a binary string covering d days for one machine, where 1 means that the machine failed on that day. Output the minimum-variance unbiased estimator of p5p^5 based only on this sample.

Your answer is accepted within 1e−51e{-5} of the expected value.

  • Assume machine failures are independent across machines
  • The estimator should be a function of the observed data only (no simulation/randomization)
  • 5≤5 \le d ≤100\le 100
  • d consists of only '1' or '0'
Example 1
Input
1001101110
Output
~0.02380952
Example 2
Input
010111011010011111001111101110
Output
~0.108795419
Accepted 17/21
Acceptance 81%
Loading editor...
Input
1001101110
Expected output
0.023809523809523808