# Question 4

a)

```
/shared-libs/python3.7/py-core/lib/python3.7/site-packages/ipykernel_launcher.py:47: MatplotlibDeprecationWarning: Calling gca() with keyword arguments was deprecated in Matplotlib 3.4. Starting two minor releases later, gca() will take no keyword arguments. The gca() function should only be used to get the current axes, or if no axes exist, create new axes with default keyword arguments. To create a new axes with non-default arguments, use plt.axes() or plt.subplot().
```

The polymers look pretty globular. They all have 100 monomers and we see that they are never really further than 10 monomer units from the origin.

b)

```
The mean total displacement of 10 polymers of 500 monomers is [9.7, -4.7]
The mean total displacement of 100 polymers of 500 monomers is [-2.21, -1.85]
The mean total displacement of 1000 polymers of 500 monomers is [0.682, -0.264]
The number of polymers out of 1000 polymers of 500 monomers that are equal to the mean value, [0,0], are 3
```

I assumed here that when it asked how many simulations actually met the mean value you wanted us to use the mean value we calculated in 3 not the experimental ones we have above because the elements of the experimental ones are not even integers.

c) The root mean squared end to end distance is a better representation of length than the average end to end vector because of the symmetry of the end to end vectors. This causes the average to be zero even tho practically no polymer has end to end distance 0. Thus it is better to use the root mean squared end to end distance as a measure of the extent of a polymer because it will give us something similar to the length of a polymer with respect to distance from the origin. Then because the length is always positive we get a distribution of the extent of each polymer and dont get any cancelations from negative terms. We also saw above that practically no polymers actually meet the mean value so it is still quite unlikely.

d)

```
the root mean squared end to end distance for 1000 polymers of length 100 is 9.993097617856037
the root mean squared end to end distance for 1000 polymers of length 500 is 22.911656422004935
the root mean squared end to end distance for 1000 polymers of length 1000 is 31.909810403698735
```

This answer is consistent with the scaling we calculated in 3d! because all of our values are quite close to the square root of length. The square roots of the different lengths are , 10, ~22.36, ~31.62 which are all very similar to our values.