Join free to take this lesson
Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.
9 steps ยท about 25 min
By the end you can
- Count how many walkers are at a position with np.sum(x == k)
- Draw a histogram of the crowd: the count at every position
- Explain the gaps at odd positions
- Simulate a walker who stays put half the time, and find its spread, โ(N/2)
Who it is for: Anyone who has done lesson 18.4.
The steps
- Counting with ==
- How many are back?
- A count for every position
- The crowd's shape
- Every other dot
- Sometimes staying put
- A lazy hundred
- The lazy crowd
- Reading a histogram
Discussion 0 comments
Log in to join the discussion.