HexMathv1.0.3

Statistics calculator with steps

Stuck on statistics homework? Type or scan the data. HexMath works out the measure you ask for, step by step.

Loading math input...

What this page covers

  • Measures of center: mean, median and mode.
  • Measures of spread: range, variance and standard deviation, for a sample (divide by n−1n - 1) or a whole population (divide by nn).
  • Standard scores (zz-scores) for a value in a data set.
  • Not covered here: probability questions (use Probability calculator) and comparing several groups with ANOVA (use ANOVA calculator).

How to enter the problem

  • Type the data separated by commas, then say what you need, such as sample standard deviation.
  • Scan it. Fit the one problem in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked examples

Example 1

Problem

Find the median of 12, 5, 9, 20, 7, 15.

Answer

Verified

The answer is

10.510.5

Explanation

  1. Sort the data
    5, 7, 9, 12, 15, 20.
  2. Find the middle
    There are 6 values, an even count, so the middle is between the 3rd and 4th values: 9 and 12.
  3. Average the two middle values
    9+122=10.5\frac{9 + 12}{2} = 10.5

Example 2

Problem

Find the population variance of 2, 4, 9, 5.

Answer

Verified

The answer is

σ2=6.5\sigma^2 = 6.5

Explanation

  1. Find the mean
    2+4+9+54=204=5\frac{2 + 4 + 9 + 5}{4} = \frac{20}{4} = 5
  2. Find each deviation from the mean
    −3-3, −1-1, 44, 00.
  3. Square the deviations and add them
    9+1+16+0=269 + 1 + 16 + 0 = 26
  4. Divide by nn for a population
    σ2=264=6.5\sigma^2 = \frac{26}{4} = 6.5

Example 3

Problem

The scores in a small sample are 47, 47, 50, 53, 53. Find the z-score of a score of 56.

Answer

Verified

The answer is

z=2z = 2

Explanation

  1. Find the mean
    47+47+50+53+535=2505=50\frac{47 + 47 + 50 + 53 + 53}{5} = \frac{250}{5} = 50
  2. Find the squared deviations
    The deviations are −3,−3,0,3,3-3, -3, 0, 3, 3, and their squares add to 9+9+0+9+9=369 + 9 + 0 + 9 + 9 = 36.
  3. Take the square root of the variance
    s=365−1=9=3s = \sqrt{\frac{36}{5 - 1}} = \sqrt{9} = 3
  4. Compute the z-score
    z=56−503=2z = \frac{56 - 50}{3} = 2. The score lies 2 standard deviations above the mean.

Common mistakes

  • Dividing by nn when the data are a sample. For the runnable example that gives 645≈3.58\sqrt{\frac{64}{5}} \approx 3.58 instead of 4.
  • Finding the median without sorting first. In 12, 5, 9, 20, 7, 15 as written, the middle pair is 9 and 20, which gives the wrong median.
  • Forgetting to square the deviations. The plain deviations from the mean add to 0, so they say nothing about spread.
  • Using the population standard deviation in a z-score when the data are a sample, or the reverse.

Checks, assumptions and limits

  • Check that the deviations add to 0. For the runnable example the mean is 8, and −5−1−1+1+6=0-5 - 1 - 1 + 1 + 6 = 0.
  • A standard deviation is never negative, and it is 0 only when every value is the same.
  • Sample formulas assume the data come from a larger group; population formulas assume the data include every member of the group.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

Use the population formula, dividing by nn, when the data include every member of the group. Use the sample formula, dividing by n−1n - 1, when the data are a sample used to estimate a larger group.

How many standard deviations a value lies from the mean. A z-score of 2 means 2 standard deviations above the mean, and a negative z-score means below it.

Yes. Use the camera on the one problem, or choose a photo. Several problems in one photo are solved as a list.

1 math question to try today without signing in, 3 a day signed in, unlimited with Pro.

Ready to solve your next math problem?

Try one problem free in your browser. Create a free account for 3 math questions a day.

Last updated: · HexMath