Important: The stats package has been deprecated. Use the superseding package Statistics instead.
>

$\mathrm{with}\left(\mathrm{stats}\right)\:$

What is the average of the numbers 3 and 5
>

$\mathrm{describe}\left[\mathrm{mean}\right]\left(\left[3\,5\right]\right)$

A more complicated example
>

$\mathrm{data}\u2254\left[\mathrm{Weight}\left(3\,10\right)\,\mathrm{missing}\,4\,\mathrm{Weight}\left(11..13\,3\right)\right]$

${\mathrm{data}}{\u2254}\left[{\mathrm{Weight}}{}\left({3}{\,}{10}\right){\,}{\mathrm{missing}}{\,}{4}{\,}{\mathrm{Weight}}{}\left({11}{..}{13}{\,}{3}\right)\right]$
 (2) 
>

$\mathrm{describe}\left[\mathrm{mean}\right]\left(\mathrm{data}\right)$

>

$\frac{10\cdot 3+1\cdot 4+\frac{3\left(11+13\right)}{2}}{10+1+3}$
