Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help me code this using python? The motion of a kinesin motor protein on a microtubule can be thought of as a one-dimensional

image text in transcribedCan someone help me code this using python?

The motion of a kinesin motor protein on a microtubule can be thought of as a one-dimensional random walk, where at each step of unit length, the protein either goes forward with probability p or reverse with probability 1 - p. Write a function that accepts values of p and number of steps N and returns the position x of a random walker after N steps, starting at the origin. Write a driver routine that calls this function 1000 times and stores the end positions in an array. Plot the distribution of end points in the form of a normalized histogram for N = 200 and p = 0.5, 0.6, 0.7. What do you observe? For a large number of steps, the distribution of end points should be described by a Gaussian distribution P(x) = exp [(x - x_0)^2/2 sigma^2]/squareroot 2 pi sigma^2. Fit P(x) to the three distributions you computed in (c), report the fit values for x_0 and sigma, and compare to the expected values from theory

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions