Basic Statistics (stat)
Calculate various statistical measures like mean, median, mode, and standard deviation. Also supports weighted calculations.
Basic Statistics
Purpose
The Basic Statistics function in this web app is designed to help users calculate various statistical measures based on a set of input numbers. It provides information such as mean, median, mode, standard deviation, variance, and percentiles.
Use Cases
- Calculating average values from a set of numbers
- Finding the most frequently occurring number (mode)
- Understanding the spread of data using standard deviation and variance
- Identifying the middle values (median) and distribution percentiles
How to Use
- Enter the numbers you want to analyze in the Numbers field.
- Optionally, provide weights for each number in the Weights field if applicable.
- Click the "Calculate" button to see the statistical results.
Input Values
- Numbers (default unit is number): A list of numbers separated by commas.
- Weights (default unit is number): Optional weights corresponding to each number for weighted calculations.
Output Values
- Count: Total count of numbers entered.
- Sum: Sum of all numbers.
- Mean: Average value of the numbers.
- Weighted Mean: Weighted average if weights are provided.
- Harmonic Mean: Harmonic mean of the numbers.
- Weighted Harmonic Mean: Weighted harmonic mean if weights are provided.
- Geometric Mean: Geometric mean of the numbers.
- Median: Median value of the numbers.
- Median Low: Lower median value.
- Median High: Higher median value.
- Mode: Most frequently occurring number.
- Standard Deviation: Measure of the dispersion of numbers.
- Population StDev: Population standard deviation.
- Variance: Measure of the spread of numbers.
- Population Variance: Population variance.
- 25th Percentile: 25th percentile value.
- 50th Percentile: 50th percentile value (median).
- 75th Percentile: 75th percentile value.
Any other Instruction
- Make sure to enter numbers accurately and separate them with commas.
- If providing weights, ensure the number of weights matches the number of input values.
Code Analysis
- The function takes input numbers and weights (if provided).
- It calculates various statistical measures such as mean, median, mode, standard deviation, and percentiles.
- The output includes counts, sums, averages, and other statistical values based on the input.
Technical Parameters
- numbers, weights
Return Values
- Count, Sum, Mean, Weighted Mean, Harmonic Mean, Weighted Harmonic Mean, Geometric Mean, Median, Median Low, Median High, Mode, Standard Deviation, Population StDev, Variance, Population Variance, 25th Percentile, 50th Percentile, 75th Percentile
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eva():
eva("stat('1,2,3,4,5')")
eva("stat('10,20,30,40,50', '1,2,3,4,5')")
Click on Help icon to open the help page on a separate window.