mean function
The mean function displays the average attribute value calculated mathematically. It is the sum of the values divided by the number of values. (E.g.: the mean between 2; 3; 10 is 5).
This function doesn’t work with nominal attributes. For nominal attributes you can use the mode function.
Function and parameters
mean(column, group)
Parameter | Description |
---|---|
column | It identifies the column to which you want to apply the formula. The column parameter is mandatory. |
group | It allows you to group the results by a certain column. |
Example
The following example uses the Students Performance dataset.
Description | Screenshot |
---|---|
So, the mean of the math score attribute is 66.089. | |
|