Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Designate a starting point on the graphing paper. Ideally it should be near the leftmost middle part of the width of the paper(activity
1. Designate a starting point on the graphing paper. Ideally it should be near the leftmost middle part of the width of the paper(activity sheet). The line which contains the starting point will be called the origin line. UP start 2. Toss a coin. If you get "heads" go one step forward and up. If you get "tails" move one step forward and down. Repeat this step 30 times or until you hit the upper side or the lower side of the graphing paper. In case you hit the upper or lower bound of your graphing paper within less than 30 coin flip events, eliminate that instance from your results and try again. Any position above the origin line (the line where the starting point is incident on) are positive positions and any point below are negative positions. Example, If after 30 coin flips you end up at a point 10 units above the origin line, then log that result as 10 if you end up at a point 5 units below the origin line, then record it as -5. 3. Perform step (2) 20 times. 4. With the endpoints that you have gathered, take the average, the variance and in a discussion and relate it to Brownian motion.
Step by Step Solution
★★★★★
3.41 Rating (164 Votes )
There are 3 Steps involved in it
Step: 1
PHYTHON PROGRAM from random import randint import math rows cols 30 30 arr 1 for i in rangecols for j in rangerows startcelli mathceilrows2 startcellj0 function to simulate coin flip def tosscoingetcordinates flip randint01 0 is tail 1 is head return flip funciton to indicate a valid move as given def moveonbordijflip if flip1 ii1 jj1 else ii1 jj1 position positionappendi positionappendj return position function to simulate the def simulatemoveonbordsimulationinstance currentpositonstartcellistartcellj ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started