# General Statistics Calculator

Paste one or two columns of numbers and get the complete descriptive suite — mean/median/mode, sample and population variance, type-7 quartiles and percentiles, MAD, adjusted skewness and kurtosis, Tukey outliers — plus covariance, Pearson r, tie-corrected Spearman rho and least-squares regression for two columns.

> Canonical page: https://elysiatools.com/en/tools/general-statistics-calculator

- **Category:** Data Processing

- **Keywords:** statistics calculator, descriptive statistics, mean median mode, variance, standard deviation, quartiles, percentile, iqr, skewness, kurtosis, outliers, pearson correlation, spearman, linear regression, covariance

## Overview

Every quantity is computed from the standard formulas, with the conventions statisticians actually argue about made explicit. Quartiles and percentiles use R’s default "type 7" linear interpolation: h = (n − 1)·p + 1 on the sorted sample, so Q1/Q3 match what R, pandas and Excel’s PERCENTILE.INC produce. Variance and standard deviation are reported in both flavours — sample (divide by n − 1, the unbiased estimator for a sample) and population (divide by n) — and the variance-basis switch decides which one drives the coefficient of variation and the standard error of the mean. Shape statistics follow the moment conventions: skewness comes both as the biased moment ratio g1 = m3/m2^(3/2) and as the adjusted Fisher–Pearson G1 = √(n(n−1))/(n−2)·g1 that Excel’s SKEW returns; kurtosis is excess (normal = 0), both biased g2 = m4/m2² − 3 and the small-sample-adjusted G2. Outliers use Tukey’s fences (Q1 − 1.5·IQR, Q3 + 1.5·IQR) from the same type-7 quartiles. When you paste a second column, the calculator adds the bivariate suite: sample covariance, Pearson’s r on the raw pairs, Spearman’s rho computed as Pearson on average-assigned ranks (the tie-correct definition — the 6Σd² shortcut is wrong once ties exist), and the least-squares line ŷ = slope·x + intercept with R². Input accepts any mix of spaces, commas, semicolons and tabs, plus scientific notation; tokens that are not valid numbers are rejected up front rather than silently dropped.

## Inputs

- **Numbers** (textarea): e.g. 2 4 4 4 5 5 7 9 — spaces, commas, semicolons, tabs or new lines; scientific notation ok
- **Comparison dataset (optional)** (textarea): optional second column for correlation and regression (same number of values)
- **Variance basis** (select)
- **Decimal places** (number)
- **Show outliers** (checkbox)

## When to use

- Analyzing central tendency, spread, and shape characteristics across a single set of measurements.
- Detecting anomalous data points and extreme deviations using standard Tukey interquartile range fences.
- Evaluating linear and monotonic relationships between two paired variables via Pearson r, Spearman rho, and regression modeling.

## How it works

- Paste or type numbers into the primary dataset field using spaces, commas, semicolons, tabs, or newlines as delimiters.
- Optionally enter an equal-length second series into the comparison field for bivariate correlation and linear regression analysis.
- Select the variance calculation basis (Sample n−1 or Population n) and set the desired decimal precision up to 6 places.
- Review the generated report covering summary statistics, percentiles, distribution moments, outlier lists, and trendline equations.

## Use cases

- Quality control testing to verify manufacturing tolerances and detect extreme defect outliers.
- Academic research data analysis requiring standard descriptive tables with exact Fisher-Pearson skewness and excess kurtosis.
- Financial or sales data exploration comparing paired metric series for correlation and regression slope calculation.

## Frequently asked questions

### How does this tool calculate quartiles and percentiles?

It implements R's default Type-7 linear interpolation formula, matching outputs generated by R, pandas, and Excel's PERCENTILE.INC function.

### What is the difference between sample and population variance modes?

Sample variance divides sum of squares by n−1 as an unbiased estimator for sample data, whereas population variance divides by n.

### How are statistical outliers identified?

Outliers are determined using Tukey's fences at Q1 − 1.5·IQR for the lower threshold and Q3 + 1.5·IQR for the upper threshold.

### How does Spearman's rho handle duplicate or tied values?

Spearman's rho applies Pearson's correlation formula directly to average-assigned ranks, maintaining accurate results in the presence of tied data.

### What input formats and character delimiters are supported?

Input accepts numbers formatted with spaces, commas, semicolons, tabs, newlines, and standard scientific notation.

## Related tools

- [Monte Carlo Simulation Builder](https://elysiatools.com/en/tools/monte-carlo-simulation-builder): Define input distributions (normal/uniform/lognormal/triangular), write a formula, run thousands of trials, and get the output distribution histogram with confidence intervals.
- [Data Outlier Processor](https://elysiatools.com/en/tools/data-outlier-processor): Advanced outlier detection and processing tool that identifies, removes, or replaces anomalous values in numerical data using multiple statistical methods. Perfect for data cleaning, statistical analysis, and machine learning data preparation. Features: - Multiple detection methods (IQR, Z-score, Modified Z-score, Isolation Forest) - Flexible handling strategies (Remove, Replace with mean/median/mode, Cap) - Automatic threshold optimization - Multi-dimensional outlier detection - Visual outlier statistics and reporting - Batch processing capabilities - Custom sensitivity levels - Comprehensive impact analysis Common Use Cases: - Data cleaning and preprocessing - Statistical analysis preparation - Machine learning dataset cleaning - Quality control in manufacturing - Financial anomaly detection - Sensor data validation
- [QR Code Decoder](https://elysiatools.com/en/tools/qr-code-decoder): Decode QR codes from images and extract the contained text or URLs
- [A/B Test Significance Calculator](https://elysiatools.com/en/tools/ab-test-significance-calculator): Compute conversion-rate or mean differences, 95%/99% confidence intervals, two-sided p-values (Z-test for proportions, Welch t for continuous metrics), lift, sample size for 80%/90% power, recommended experiment days, plus sequential-testing and Bonferroni multiple-comparison warnings.
- [Normal Distribution Plotter](https://elysiatools.com/en/tools/normal-distribution-plotter): Plot a normal-distribution bell curve as SVG with z-score markers, interval or tail-probability shading, and 68/95/99.7 standard-deviation bands.
- [APACHE II Score Calculator](https://elysiatools.com/en/tools/apache-ii-score): Calculate the APACHE II (Acute Physiology and Chronic Health Evaluation II) ICU severity score. APACHE II = Acute Physiology Score (12 variables, each 0–4 using the worst value in the first 24 h) + Age points (0–6) + Chronic Health points (0/2/5). Range 0–71; higher scores indicate worse prognosis. Oxygenation uses the A-a gradient when FiO₂ ≥ 0.5, otherwise PaO₂. Creatinine points are doubled when acute renal failure is indicated. GCS contributes 15 − GCS. Also reports the base-model predicted mortality: R = 1/(1 + e^(−logit)), logit = −3.517 + 0.146 × score (diagnostic-category weight not included). Thresholds cross-verified against Knaus 1985 (Crit Care Med) and the SFAR scoring table. Not a substitute for clinical judgement. Not medical advice.
- [Average Calculator](https://elysiatools.com/en/tools/average-calculator): Compare arithmetic, geometric, and harmonic averages for a numeric dataset in one place
- [Barcode Batch Generator](https://elysiatools.com/en/tools/barcode-batch-generator): Batch generate Code 128, EAN-13, UPC-A, ITF-14, QR Code, and Data Matrix outputs from CSV or multiline text

## Samples

- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
