MATHEMATICA HOW TO
How to | Calculate Basic Descriptive Statistics
Mathematica has many powerful features to handle a wide range of statistical needs. Some of the most elementary are outlined below.
Here is some data (20 random real numbers between 0 and 50):
| In[41]:= |
| Out[41]= | ![]() |
Use Mean to find the mean of
:
| In[42]:= |
| Out[42]= |
Use Median to find the median:
| In[43]:= |
| Out[43]= |
Use Max to find the maximum element:
| In[44]:= |
| Out[44]= |
You can also find the Variance and the StandardDeviation:
| In[45]:= |
| Out[45]= |
| In[46]:= |
| Out[46]= |
If you want to figure out quantiles, you can use Quantile. The first argument is a set of data; the second is a number
between 0 and 1:
| In[47]:= |
| Out[47]= |
If you want to find out quartiles or percentiles, you can use Quantile with an argument of
or
, respectively:
| In[48]:= |
| Out[48]= |
If you would like a list of the quartiles, use the Quartiles function:
| In[49]:= |
| Out[49]= |

