Array Calculator
Array Operations
Statistical
Sum, Average, Median, Mode, and Range analyze your data.
Manipulation
Sort, Reverse, and Unique transform your array.
Operations
Related Calculators
Understanding Array Operations
Statistical Operations
Sum
The total of all numbers in the array added together.
Average (Mean)
Sum divided by the count of numbers.
Median
The middle value when sorted. For even counts, average the two middle values.
Mode
The value that appears most frequently.
Array Manipulation
| Operation | Input | Output |
|---|---|---|
| Sort | [5, 2, 8, 1, 9] | [1, 2, 5, 8, 9] |
| Reverse | [1, 2, 3, 4, 5] | [5, 4, 3, 2, 1] |
| Unique | [1, 2, 2, 3, 3, 3] | [1, 2, 3] |
| Range | [3, 7, 2, 9, 4] | 9 - 2 = 7 |
Mean vs Median vs Mode
Each measure of central tendency has different use cases:
Mean (Average)
Best for normally distributed data without outliers. Affected by extreme values.
Median
Best when data has outliers or is skewed. Not affected by extreme values. Common in salary and housing data.
Mode
Best for categorical data or finding the most common value. A dataset can have multiple modes (bimodal, multimodal) or no mode at all.
Example: Effect of Outliers
Data: [30, 35, 40, 45, 200]
The outlier (200) drastically affects the mean but not the median. In this case, the median (40) better represents the typical value.
Tips for Using This Calculator
- Separate numbers with commas, spaces, or both
- Decimals and negative numbers are supported
- Use "Unique" to remove duplicates before other operations
- Check the range to identify potential outliers
Frequently Asked Questions
What is the difference between mean and median?
The mean (average) is calculated by adding all numbers and dividing by the count. The median is the middle value when numbers are sorted. The median is less affected by extreme values (outliers), making it better for skewed data like income or house prices.
What does 'mode' mean in statistics?
The mode is the value that appears most frequently in a data set. A set can have no mode (all values unique), one mode (unimodal), or multiple modes (bimodal/multimodal). Mode is useful for categorical data or finding the most common value.
How do I enter numbers into the array calculator?
Enter numbers separated by commas, spaces, or both. The calculator accepts decimals and negative numbers. For example: '1, 2, 3, 4, 5' or '1 2 3 4 5' or '-2.5, 0, 3.7'.
What is the range of a data set?
The range is the difference between the maximum and minimum values in a data set. It measures the spread of data. For example, in the set [3, 7, 2, 9, 4], the range is 9 - 2 = 7.