Please could someone help me convert this excel formula into python? This is the formula I would like to use to calculate the standard deviation for each sample point between 2 lists.
Here are my 2 lists (dummy data):
P=[121,43.4,122.2,43.98]
N= [341,111,232,123]
Excel formula:
=SQRT(P*((1-P)/N))
My python code is:
my_data=[]
for p in list_p:
for n in list_n:
data= p*((1-p)/n))
squared=sqrt(data)
my_data.append(squared)
Please could someone help me out?
Thank you.