You are trying to measure a difference in the $K_{D}$ of two proteins binding to a ligand. From previous experiments, you know that the values of replicate measurements of $K_{D}$ follow a normal distribution with $\sigma = 2\ \mu M$. How many measurements would you need to make to confidently tell the difference between two proteins with $K_{D} = 10 \mu M$ and $K_{D} = 12 \mu M$?
In [ ]:
In [ ]:
%matplotlib inline
import numpy as np
from matplotlib import pyplot as plt
In [ ]:
In [30]:
numbers = np.random.random(100000)
plt.hist(numbers)
Out[30]:
In [31]:
def simple_psuedo_random(current_value,
multiplier=13110243,
divisor=13132):
return current_value*multiplier % divisor
In [33]:
seed = 10218888
out = []
current = seed
for i in range(1000):
current = simple_psuedo_random(current)
out.append(current)
plt.hist(out)
Out[33]:
In [ ]:
seed = 1021888
out = []
current = seed
for i in range(1000):
current = simple_psuedo_random(current)
out.append(current)
In [37]:
s1 = np.random.random(10)
print(s1)
In [54]:
np.random.seed(5235412)
s1 = np.random.random(10)
print(s1)
In [56]:
numbers = np.random.normal(size=10000)
counts, bins, junk = plt.hist(numbers,
range(-10,10))
In [ ]:
np.random.normal
np.random.binomial
np.random.uniform
np.random.poisson
np.random.choice
np.random.shuffle
In [ ]: