Quartile CalculatorFormula

## How to Compute Quartiles

### Steps (for 5 sorted values)

1. **Q2 (Median)**: The middle value (3rd of 5)
2. **Q1**: Median of the lower half (values 1 and 2), so Q1 = (v1 + v2) / 2
3. **Q3**: Median of the upper half (values 4 and 5), so Q3 = (v4 + v5) / 2

Quartiles divide the sorted dataset into four equal parts. Q1 separates the lowest 25%, Q2 is the median, and Q3 separates the lowest 75%.

Exemplo Resolvido

Find the quartiles of the sorted dataset: 10, 20, 30, 40, 50.

  1. Q2 (Median) = v3 = 30
  2. Lower half: 10, 20 → Q1 = (10 + 20) / 2 = 15
  3. Upper half: 40, 50 → Q3 = (40 + 50) / 2 = 45
  4. IQR = 45 - 15 = 30