# Quartile calculator Q1, Q3

For quartiles Q1, Q3 calculation, please enter numerical data separated with comma (or space, tab, semicolon, or newline). For example: 113.8 300.8 392.3 -683.5 286.8 -670.6 550.2 884.1 368.5 109.6 -921.6 796.1 483.6 *For low count distributions, there is no universal agreement on selecting the quartile values (divide the ordered data set into two halves and then next halving...). If there are even number of data points, all methods give the same results.

### Quartile

In statistics, a quartile, a type of quantile, is three points that divide sorted data set into four equal groups (by count of numbers), each representing a fourth of the distributed sampled population.
There are three quartiles: the first quartile (Q1), the second quartile (Q2), and the third quartile (Q3).
The first quartile (lower quartile, QL), is equal to the 25th percentile of the data. (splits off the lowest 25% of data from the highest 75%)
The second (middle) quartile or median of a data set is equal to the 50th percentile of the data (cuts data in half)
The third quartile, called upper quartile (QU), is equal to the 75th percentile of the data. (splits off the lowest 75% of data from highest 25%)

### How we calculating quartiles?

We sort set of data with n items (numbers) and pick n/4-th item as Q1, n/2-th item as Q2 and 3n/4-th item as Q3 quartile. If indexes n/4, n/2 or 3n/4 aren't integers then we use interpolation between nearest items.

For example, for n=100 items, the first quartile Q1 is 25th item of ordered data, quartile Q2 is 50th item and quartile Q3 is 75th item. Zero quartile Q0 would be minimal item and the fourth quartile Q4 would be the maximum item of data, but these extreme quartiles are called minimum resp. maximum of set.

Reference: wikipedia

### How to enter data as a frequency table?

Simple. First-type data elements (separated by spaces or commas, etc.), then type f: and further write frequency of each data item. Each element must have defined frequency that count of numbers before and after symbol f: must be equal. For example:

1.1 2.5 3.99
f: 5 10 15

### How to enter a grouped data?

Grouped data are data formed by aggregating individual data into groups so that a frequency distribution of these groups serves as a convenient means of summarizing or analyzing the data.

 group frequency 10-20 5 20-30 10 30-40 15
This grouped data you can enter:
10-20 20-30 30-40
f: 5 10 15

### How to enter data as a cumulative frequency table?

Similar as frequency table, but instead f: type cf: in second line. For example:

10 20 30 40 50 60 70 80
cf: 5 13 20 32 60 80 90 100

The cumulative frequency is calculated by adding each frequency from a frequency distribution table to the sum of its predecessors. The last value will always be equal to the total for all observations since all frequencies will already have been added to the previous total.