Question: Using python, randomly generate the number - 1 or 1 , both with equal probabilities, for 5 steps. If - 1 means to take 1

Using python, randomly generate the number -1 or 1, both with equal probabilities, for 5 steps. If -1 means to take 1 step back, and 1 means to take 1 step foward, Simulate this 1000 times and generate a histogram and fit it to a normal distribution curve. Please do write some comments or explanations at the side of your code thank u

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!