Question: Define a function ` coin _ flip ( num ) ` that flips a coin $N$ ( here $N$ is the same as ` num

Define a function `coin_flip(num)` that flips a coin $N$ (here $N$ is the same as `num`) times, with probability $p=0.3$ for heads ($x=1$) and probability $1-p=0.7$ for tails ($x=0$), and returns $\langle x \rangle$.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!