# Exercise scaffold. Reference implementation is in a separate directory."""G04: explicit statistical procedures; validity still needs a sampling model."""importmathimportrandomdefwilson(successes,trials,z=1.96):raiseNotImplementedError('Implement this contract from the book.')defentropy(probabilities):raiseNotImplementedError('Implement this contract from the book.')defquantile(values,probability):raiseNotImplementedError('Implement this contract from the book.')defpaired_bootstrap(old,new,repeats=2000,seed=21,confidence=0.95):raiseNotImplementedError('Implement this contract from the book.')