Jsara
asked on
Hi - new to python and all the functions. - can any one please help
Random Walk
• Run ten trials with n = 5 and for each trial report:
Trial # Very First Step First Edge Reached Final Direction Steps
1 left – right left – right left – right
2 left – right left – right left – right
3 left – right left – right left – right
4 left – right left – right left – right
5 left – right left – right left – right
6 left – right left – right left – right
7 left – right left – right left – right
8 left – right left – right left – right
9 left – right left – right left – right
10 left – right left – right left – right
• How often did the direction of the first step match the final direction of the walk?
• How often did the first edge reached match the final direction of the walk?
• What was the average number of steps required for these ten particular trials?
• Run ten trials with n = 5 and for each trial report:
Trial # Very First Step First Edge Reached Final Direction Steps
1 left – right left – right left – right
2 left – right left – right left – right
3 left – right left – right left – right
4 left – right left – right left – right
5 left – right left – right left – right
6 left – right left – right left – right
7 left – right left – right left – right
8 left – right left – right left – right
9 left – right left – right left – right
10 left – right left – right left – right
• How often did the direction of the first step match the final direction of the walk?
• How often did the first edge reached match the final direction of the walk?
• What was the average number of steps required for these ten particular trials?
What is the assignment and what is your question? You should not expect that it will be solved for you. It is against the rules here, and it would also be unfair to yourself as you would miss the chance to learn. On the other hand, you can get advices here.
ASKER
ok, let me explain I am trying to learn python and this is an excercise. I don't have a math background and do not know what is random walking means and what does the left right has to do.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the grade & points.
Good luck & have a great day.
Good luck & have a great day.