X is a Bernoulli (p = 1/2) random variable. The sample mean Mn (X) has standard error

The probability that Mn(X) is within one standard error of p is

Use the binomialcdf function to calculate the exact probability pn as a function of n. Whhat is the source of the unusual sawtooth pattern? Compare your results to the solution of Quiz 7.5.
Quiz 7.5
Generate m = 1000 traces (each of length n = 100) of the sample mean of a Bernoulli (p) random variable. At each step k, calculate Mk, the number of traces, such that Mk is