# stat {#stat}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`stat(X)`

## Arguments {#arguments}

**X** is a vector/matrix.

## Details {#details}

Return a dictionary about the descriptive statistics of *X* including avg\(mean\), max, min, count, median, and stdev.

## Examples {#examples}

```
x=5 7 4 3 2 1 7 8 9 NULL;

stat(x);
/* output:
Median->5
Avg->5.111111
Min->1
Stdev->2.803767
Count->9
Size->10
Name->x
Max->9
*/

stats = stat(x);
stats[`Avg];
// output: 5.111111
```

