I want calculate standard error of vector and I don't understand why it doesn't work. Let's consider vector:
a = range(10, 14)
Calculating standard error of mean is just to calculate standard deviation and divide it by square root of length of vector:
import numpy as np
se = np.std(a) / np.sqrt(len(a))
se
Out[819]: 0.5590169943749475
However when I calculate this by function:
import scipy.stats
scipy.stats.sem(a)
Out[820]: 0.6454972243679028
I obtain completely something different. Could you please explain to me why? I don't unsterstand why this difference occurs.