# 範例 - 統計函式

StudentScore
Anna84
Ben71
Caleb76
Danielle87
Evan85
Faith92
Gabe85
Hannah99
Ian73
Jane68

`derive type:single value:AVERAGE(Score) as:'avgScore'`

`derive type:single value:MIN(Score) as:'minScore'`

`derive type:single value:MAX(Score) as:'maxScore'`

`derive type:single value:VAR(Score)`

`derive type:single value:STDEV(Score)`

`derive type:single value:((Score - avg_Score) / stdev_Score) as:'stDevs'`

AstDevs > 1
BstDevs > 0.5
C-1 <= stDevs <= 0.5
DstDevs < -1
FstDevs < -2

`derive type:single value:IF((stDevs > 1),'A',IF((stDevs < -2),'F',IF((stDevs < -1),'D',IF((stDevs > 0.5),'B','C'))))`

`set col:stdev_Score value:NUMFORMAT(stdev_Score, '##.00')`

`set col:stDevs value:NUMFORMAT(stDevs, '##.00')`

`derive type:single value:MODE(Score) as:'modeScore'`

Anna8485826899

87.00000000000001

9.330.21C
Ben718582689987.000000000000019.33-1.18D
Caleb768582689987.000000000000019.33-0.64C
Danielle878582689987.000000000000019.330.54B
Evan858582689987.000000000000019.330.32C
Faith928582689987.000000000000019.331.07A
Gabe858582689987.000000000000019.330.32C
Hannah998582689987.000000000000019.331.82A
Ian738582689987.000000000000019.33-0.96C
Jane688582689987.000000000000019.33-1.50D