วิธีการคำนวณ Mean Median Mode B14
learn.whatIsHeading
Mean, median, and mode are measures of central tendency — they describe the "centre" of a dataset. Each is useful in different situations: mean for symmetric data, median for skewed data, mode for categorical data.
สูตร
Mean = Σx / n | Median = middle value when sorted | Mode = most frequent value
- x
- Data Value (various)
- n
- Number of Values (count)
- M
- Mean, Median, or Mode (same as data)
คำแนะนำทีละขั้นตอน
- 1Mean = Sum of all values ÷ Count
- 2Median = middle value when sorted (or average of two middle values)
- 3Mode = most frequently occurring value
- 4Range = Maximum − Minimum
ตัวอย่างที่มีคำตอบ
อินพุต
{4, 7, 13, 2, 1, 7, 4, 7}
ผลลัพธ์
Mean=5.625, Median=5.5, Mode=7, Range=12
คำถามที่พบบ่อย
When should I use mean vs median?
Use mean for symmetric data. Use median for skewed data or when outliers exist. Median is resistant to extreme values.
What if there's no mode?
If all values appear equally often (no repeat), the dataset is "amodal" — there is no mode.
Can mean, median, and mode be the same value?
Yes! In a perfectly symmetric distribution, all three are identical. This is ideal for normally distributed data.