📊 Statistics (Mean, Median, Mode, Variance, SD)
Day 4 | ⏱️ Part of 2.5-Hour Stats & DI Block | TCS Interview Prep
📌 Subtopics
- Mean: Arithmetic mean, weighted mean
- Median: Middle value, for odd/even count
- Mode: Most frequently occurring value
- Variance: Measure of data spread
- Standard Deviation: Square root of variance
📖 Comprehensive Notes
1. Mean (Arithmetic & Weighted)
The mean is the average of a set of numbers.
- Arithmetic Mean:
- Weighted Mean: Used when data values have different weights/frequencies:
Example: Find the mean of and . .
2. Median
The median is the middle value in a sorted, ascending or descending list of numbers.
- Steps to Calculate:
- Arrange the data in ascending order.
- If the number of terms () is odd, the median is the -th term.
- If the number of terms () is even, the median is the average of the -th and -th terms.
Example: Find the median of . Sorted order: (, even). Median .
3. Mode
The mode is the value that appears most frequently in a data set.
- A dataset can be unimodal (one mode), bimodal (two modes), multimodal (more than two modes), or have no mode (if all values appear once).
- Empirical Relationship: For moderately skewed distributions:
Example: Find the mode of the dataset: . Frequencies: appears three times, appears twice, others once. .
4. Variance
Variance measures how far a set of numbers is spread out from their average value.
- Population Variance ():
- Shortcut formula:
Example: Find the variance of the numbers . . Deviations from mean: , , . Squared deviations: . .
5. Standard Deviation
Standard Deviation (SD) is the square root of the variance. It is expressed in the same units as the original data, making it easier to interpret.
- A low standard deviation indicates that the data points tend to be close to the mean.
- A high standard deviation indicates that the data points are spread out over a wider range.
🌐 Learning Resources
| Resource | Link |
|---|---|
| IndiaBIX — Average (Mean) | indiabix.com |
| GFG — Mean, Median, Mode | geeksforgeeks.org |
| GFG — Variance & Standard Deviation | geeksforgeeks.org |
| PrepInsta — TCS Statistics | prepinsta.com |
| Khan Academy — Statistics | khanacademy.org |
| Math is Fun — Standard Deviation | mathsisfun.com |
✅ Practice Links
| Platform | Link |
|---|---|
| PrepInsta — Statistics Questions | prepinsta.com |
| GFG — Statistics Practice | geeksforgeeks.org |
📝 Key Formulas
MEAN:
Mean = Σxᵢ / n
MEDIAN:
Sort the data first
Odd n: Median = (n+1)/2 th term
Even n: Median = average of (n/2)th and (n/2+1)th terms
MODE:
Most frequent value (a data set can have no mode, one mode, or multiple modes)
VARIANCE:
σ² = Σ(xᵢ - x̄)² / n [Population]
s² = Σ(xᵢ - x̄)² / (n-1) [Sample]
STANDARD DEVIATION:
σ = √(Variance)
Shortcut for Variance:
σ² = (Σxᵢ²/n) - (Σxᵢ/n)²
🔗 Related Topics
- Averages — Mean is identical to the arithmetic average
- Data Interpretation — Stats formulas are heavily used in interpreting datasets
- Permutations Combinations and Probability — Probability distributions and stats
- Ages — Finding average, median, or standard deviation of ages of a group
- Ratios and Proportion — Distribution and frequency analysis