Let X be a Bernoulli random variable with the sample space (0,1) and with
Pr(0) = 0.42 .
Let Y be a random variable representing the number of Bernoulli trials before a 101 pattern is received. Generate 10,000 samples of Y and use the generated samples to sketch its PMF and CDF.
وشكرا لجهودكو