Q1.If a frog jumps forward with jump sizes that are uniformly distributed from 0 to 1, how many jumps on average does it take for the frog to cross a river of width 1?
Please run the simulation in Matlab to solve this problem. If you can also solve this problem analytically, I will give you bonus.