Skip to content

Sample standard error

Maurice HT Ling edited this page Aug 13, 2021 · 2 revisions

Purpose: To get the sample standard error (standard deviation of means) of a data set.

Code:

>>> from scipy import stats
>>> X = [9.07, 8.97, 6.41, 3.03, 1.19, 2.67, 2.81, 9.2]
>>> result = stats.tsem(X)
>>> print("Standard error = %.2f" % result)
Standard error = 1.19
Clone this wiki locally