Example 1
Input
1001101110Output
~0.02380952Each machine fails independently with probability on a given day. The probability that five machines all fail on the same day is .
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 based only on this sample.
Your answer is accepted within of the expected value.
d d consists of only '1' or '0'1001101110~0.02380952010111011010011111001111101110~0.10879541910011011100.023809523809523808