sciPy stats.mean() function | Python Last Updated : 10 Feb, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report scipy.stats.mean(array, axis=0) function calculates the arithmetic mean of the array elements along the specified axis of the array (list in python). It's formula - Parameters : array: Input array or object having the elements to calculate the arithmetic mean. axis: Axis along which the mean is to be computed. By default axis = 0 Returns : Arithmetic mean of the array elements based on the set parameters. Code #1: Python3 # Arithmetic Mean import scipy arr1 = scipy.mean([1, 3, 27]) print("Arithmetic Mean is :", arr1) Output: Arithmetic Mean is : 10.3333333333 Code #2: With multi-dimensional data Python3 # Arithmetic Mean from scipy import mean arr1 = [[1, 3, 27], [3, 4, 6], [7, 6, 3], [3, 6, 8]] print("Arithmetic Mean is :", mean(arr1)) # using axis = 0 print("\nArithmetic Mean is with default axis = 0 : \n", mean(arr1, axis = 0)) # using axis = 1 print("\nArithmetic Mean is with default axis = 1 : \n", mean(arr1, axis = 1)) Output: Arithmetic Mean is : 6.41666666667 Arithmetic Mean is with default axis = 0 : [ 3.5 4.75 11. ] Arithmetic Mean is with default axis = 1 : [ 10.33333333 4.33333333 5.33333333 5.66666667] Comment More infoAdvertise with us Next Article sciPy stats.mean() function | Python V vishal3096 Follow Improve Article Tags : Python Python-scipy Python scipy-stats-functions Practice Tags : python Similar Reads sciPy stats.gmean() function | Python scipy.stats.gmean(array, axis=0, dtype=None) calculates the geometric mean of the array elements along the specified axis of the array (list in python). It's formula -   Parameters : array: Input array or object having the elements to calculate the geometric mean. axis: Axis along which the mean is 1 min read sciPy stats.nanmean() function | Python scipy.stats.nanmean(array, axis=0) function calculates the arithmetic mean by ignoring the Nan (not a number) values of the array elements along the specified axis of the array. It's formula - Parameters : array : Input array or object having the elements, including Nan values, to calculate the arit 2 min read sciPy stats.sem() function | Python scipy.stats.sem(arr, axis=0, ddof=0) function is used to compute the standard error of the mean of the input data. Parameters : arr : [array_like]Input array or object having the elements to calculate the standard error. axis : Axis along which the mean is to be computed. By default axis = 0. ddof : 1 min read sciPy stats.tsem() function | Python scipy.stats.tsem(array, limits=None, inclusive=(True, True)) calculates the trimmed standard error of the mean of array elements along the specified axis of the array. Its formula :- Parameters : array: Input array or object having the elements to calculate the trimmed standard error of the mean. ax 2 min read statistics mean() function - Python The mean() function from Pythonâs statistics module is used to calculate the average of a set of numeric values. It adds up all the values in a list and divides the total by the number of elements. For example, if we have a list [2, 4, 6, 8], the mean would be (2 + 4 + 6 + 8) / 4 = 5.0. This functio 4 min read Like