# Statistical Functions

Inforiver supports an array of statistical formulas and functions for calculating rank, standard deviation, variance, mean, median, mode, percentiles, and much more. Below is a list of all statistical formulas available:

<table data-full-width="false"><thead><tr><th width="247.8887939453125">Function</th><th>Description</th></tr></thead><tbody><tr><td><a href="/pages/k7hJz7bfJxF4KQDZ21i7">MEDIAN</a></td><td>Returns the middle value in a dataset.</td></tr><tr><td><a href="/pages/0oQyXx4m19MOmANLkDcn">MODE</a></td><td>Returns the most frequently occurring value in a dataset.</td></tr><tr><td><a href="/pages/BaoGjHgwjA3WzjJjhXHb">MODESNGL</a></td><td>Returns the single most frequently occurring value in a dataset. Returns the first mode when multiple numbers recur.</td></tr><tr><td><a href="/pages/21XrluY87b03ZUFaAiM3">RANK</a></td><td>Legacy version of <strong>RANKEQ</strong> function. It can be used in place of RANKEQ to return the rank of a number in a list of values.</td></tr><tr><td><a href="/pages/21XrluY87b03ZUFaAiM3">RANKEQ</a></td><td>Returns the rank of a number in a list; if there are duplicates, the rank remains the same (similar to RANK). The next rank is skipped.</td></tr><tr><td><a href="/pages/Xh7mfpQ8nXTjTcAbJL7q">RANKAVG</a></td><td>Returns the rank of a number in a list but gives the average rank if there are duplicates.</td></tr><tr><td><a href="/pages/GHOitaWPwaN4Ph7rNGWt">STDEV</a></td><td>Legacy version of the <strong>STDEVS</strong> function. It can be used in place of STDEVS for sample standard deviation calculations.</td></tr><tr><td><a href="/pages/GHOitaWPwaN4Ph7rNGWt">STDEVS</a></td><td>Calculates standard deviation based on a sample.</td></tr><tr><td><a href="/pages/Se8PfwZnM7JZzOZ65VPk">STDEVP</a></td><td>Calculates standard deviation based on the entire population.</td></tr><tr><td><a href="/pages/zAByYSui06UMjxM01sl9">VARS</a></td><td>Calculates the variance based on a sample.</td></tr><tr><td><a href="/pages/LqR03v4B7dJtmdqAnQ1O">VARP</a></td><td>Calculates the variance based on the entire population.</td></tr><tr><td><a href="/pages/pGJNdtPD7fyBnlIGz3L0">QUARTILE</a></td><td>Legacy version of the <strong>QUARTILEINC</strong> function. It can be used in place of QUARTILEINC for inclusive quartile calculations.</td></tr><tr><td><a href="/pages/pGJNdtPD7fyBnlIGz3L0">QUARTILEINC</a></td><td>Returns the quartile of a data set (0, 1, 2, 3, 4), including the minimum and maximum values.</td></tr><tr><td><a href="/pages/kObtzPZAC5SgOXVwHWZl">QUARTILEEXC</a></td><td>Returns the quartile of a data set (1, 2, 3), excluding the minimum and maximum values.</td></tr><tr><td><a href="/pages/hSsNnPfHtPRaqU8BgIPc">PERCENTILE</a></td><td>Legacy version of the <strong>PERCENTILEINC</strong> function. It can be used in place of PERCENTILEINC for inclusive percentile calculations.</td></tr><tr><td><a href="/pages/hSsNnPfHtPRaqU8BgIPc">PERCENTILEINC</a></td><td>Returns the k-th percentile of values in a range, including the lowest and highest percentiles.</td></tr><tr><td><a href="/pages/7TxeG0hGNtTH4mjaK9Fm">PERCENTILEEXC</a></td><td>Returns the k-th percentile of values in a range, excluding the lowest and highest percentiles.</td></tr><tr><td><a href="/pages/ncRD0ZdTfI4a9ITD3ett">NORMDIST</a></td><td>Returns the normal distribution for a value with specified mean and standard deviation.</td></tr><tr><td><a href="/pages/3X05jGkRj7cM0rC9bz39">NORMSDIST</a></td><td>Returns the standard normal distribution for a given value.</td></tr><tr><td><a href="/pages/xf0t5FeaBKX5BugBbeJ2">NORMINV</a></td><td>Calculates the inverse of the normal cumulative distribution for a specified mean and standard deviation.</td></tr><tr><td><a href="/pages/YmO411UeEnecFRdV5yBE">NORMSINV</a></td><td>Returns the inverse of the standard normal cumulative distribution.</td></tr><tr><td><a href="/pages/2fv3IJnpSe3NOX2G0VvT">PERCENTRANK</a></td><td>Legacy version of the <strong>PERCENTRANKINC</strong> function. It can be used in place of PERCENTRANKINC for inclusive percentage rank calculations.</td></tr><tr><td><a href="/pages/2fv3IJnpSe3NOX2G0VvT">PERCENTRANKINC</a></td><td>Returns the rank of a value as a percentage between 0 and 1 of the data set, including 0 and 1.</td></tr><tr><td><a href="/pages/J9R1X6YEpnGZG1uGnzoS">PERCENTRANKEXC</a></td><td>Returns the rank of a value as a percentage between 0 and 1 of the data set, excluding 0 and 1.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inforiver.com/formula-syntax/statistical-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
