본문 바로가기

Python

Standard Error of the Mean Calculation in Python

import numpy as np

import math

 

a = [1, 2, 3]

print(np.std(a, ddof=1)/math.sqrt(len(a)))

 

Result:

0.5773502691896258

'Python' 카테고리의 다른 글

numpy.std  (0) 2019.11.22
pytagcloud 0.3.5  (0) 2014.10.10
scipy.ndimage.filters.gaussian_filter1d  (0) 2014.10.06
scipy.signal.argrelextrema  (0) 2014.10.06
scipy.signal.find_peaks_cwt  (0) 2014.10.05