This statistics calculator finds the mean, median, mode, variance and standard deviation, and shows every step the way you write it in the exam. You can enter raw data, a discrete frequency table or a grouped frequency table with class intervals. For grouped data you can pick the direct method, the assumed mean method or the step deviation method from the NCERT Class 10 Statistics chapter; the variance and standard deviation follow the Class 11 Statistics chapter.
Formulas used
Raw (ungrouped) data
- Mean x̄ = Σx ÷ n
- Median: arrange the data in ascending order. If n is odd, the median is the ((n + 1) ÷ 2)th value. If n is even, it is the average of the (n ÷ 2)th and (n ÷ 2 + 1)th values.
- Mode: the value that occurs most often. A data set can have more than one mode, or no mode if every value occurs equally often.
- Variance σ2 = Σ(x − x̄)2 ÷ n and standard deviation σ = √variance
Grouped data (Class 10)
Each class is represented by its class mark x = (lower limit + upper limit) ÷ 2.
- Direct method: x̄ = Σfx ÷ Σf
- Assumed mean method: choose a (usually a class mark near the middle), take d = x − a, then x̄ = a + Σfd ÷ Σf
- Step deviation method: take u = (x − a) ÷ h, where h is the class size, then x̄ = a + h × (Σfu ÷ Σf)
- Median = l + [(N/2 − cf) ÷ f] × h, where l is the lower limit of the median class, cf the cumulative frequency of the class before it, f the frequency of the median class and h the class size.
- Mode = l + [(f1 − f0) ÷ (2f1 − f0 − f2)] × h, where l is the lower limit of the modal class (the class with the highest frequency), f1 its frequency, f0 the frequency of the class before it and f2 of the class after it.
All three methods give the same mean. The assumed mean and step deviation methods only make the numbers smaller and the working quicker.
Variance and standard deviation of grouped data (Class 11)
σ2 = Σf(x − x̄)2 ÷ N. With the step deviation u = (x − a) ÷ h the shortcut is σ2 = h2 × [Σfu2 ÷ N − (Σfu ÷ N)2], which is the same as σ = (h ÷ N) × √[NΣfu2 − (Σfu)2].
If the classes are written like 10-19, 20-29 (inclusive classes), the calculator first makes them continuous (9.5-19.5, 19.5-29.5) before finding the median and mode, as you should do in the exam.
Worked example
Question: Find the mean, median, mode and standard deviation of the following data, using the step deviation method for the mean.
| Class | f | x | u = (x − 25) ÷ 10 | fu | fu2 | cf |
|---|---|---|---|---|---|---|
| 0-10 | 5 | 5 | −2 | −10 | 20 | 5 |
| 10-20 | 8 | 15 | −1 | −8 | 8 | 13 |
| 20-30 | 15 | 25 | 0 | 0 | 0 | 28 |
| 30-40 | 12 | 35 | 1 | 12 | 12 | 40 |
| 40-50 | 10 | 45 | 2 | 20 | 40 | 50 |
| Total | 50 | 14 | 80 |
Mean: a = 25, h = 10, so x̄ = 25 + 10 × (14 ÷ 50) = 25 + 2.8 = 27.8.
Median: N ÷ 2 = 25. The cumulative frequency first reaches 25 in the class 20-30, so l = 20, cf = 13, f = 15, h = 10. Median = 20 + [(25 − 13) ÷ 15] × 10 = 20 + 8 = 28.
Mode: the highest frequency is 15, in the class 20-30, so f1 = 15, f0 = 8, f2 = 12. Mode = 20 + [(15 − 8) ÷ (30 − 8 − 12)] × 10 = 20 + 7 = 27.
Standard deviation: σ2 = 100 × [80 ÷ 50 − (14 ÷ 50)2] = 100 × (1.6 − 0.0784) = 152.16, so σ = √152.16 ≈ 12.34.
This data is already filled in above, and the calculator gives the same answers (it shows σ = 12.3353 to 4 decimal places).
Common mistakes
- Using the class limits instead of the class marks when finding the mean. Always use x = (lower + upper) ÷ 2.
- In the median formula, taking cf of the median class itself. Use the cumulative frequency of the class before the median class.
- In the mode formula, mixing up f0 and f2. f0 is the class before the modal class and f2 is the class after it.
- Forgetting to multiply by h at the end of the step deviation method, or in the variance shortcut (where it is h2).
- Not making inclusive classes like 10-19, 20-29 continuous before using the median and mode formulas.
Practise with
- KC Sinha Solutions Class 10 Maths Statistics
- CBSE Class 10 Mathematics Statistics Worksheet Set 07
- CBSE Class 11 Mathematics Statistics Worksheet
- Class 11 Maths Statistics Solutions Ex 15.2 (Variance and Standard Deviation)
Variance here divides by n (or N), as in NCERT. Some books divide by n − 1 for a sample; for raw data the calculator shows that value too.