Measure of central tendency.

Searching the Web

measures of central tendency mean median mode statistics

Measures of Central Tendency

A measure of central tendency is a single value that attempts to describe a dataset by identifying the central position within it. The three primary measures are Mean, Median, and Mode.

1. Mean (Arithmetic Average)

The sum of all values divided by the total number of values.
Formula:
$$\bar{x} = \frac{\sum x_i}{n}$$
Example: Dataset: 85, 90, 92, 87, 95 $$\bar{x} = \frac{85 + 90 + 92 + 87 + 95}{5} = \frac{449}{5} = 89.8$$
When to use:
  • Data is symmetrically distributed (no significant skew)
  • No extreme outliers present
  • Continuous or discrete numerical data
  • When all data points should contribute to the measure (e.g., regression analysis)
Limitation: Highly sensitive to outliers. One extreme value can significantly distort the mean.

2. Median

The middle value of an ordered dataset. If there is an even number of values, it is the average of the two middle values.
Steps:
  1. Sort data in ascending order
  2. Find the middle value (or average of two middle values for even n)
Example (odd n): 3, 5, 7, 9, 11 → Median = 7 Example (even n): 3, 5, 7, 9 → Median = (5 + 7) / 2 = 6
When to use:
  • Data is skewed (e.g., income distributions)
  • Outliers are present (the median is resistant to them)
  • Ordinal data (ranked categories)

3. Mode

The value that appears most frequently in a dataset.
  • A dataset can be unimodal (one mode), bimodal (two modes), or multimodal (more than two modes)
  • A dataset with no repeating values has no mode
Example: 2, 3, 3, 5, 7, 3, 9 → Mode = 3
When to use:
  • Categorical/nominal data (e.g., most popular product color)
  • Identifying the most common occurrence
  • When you need a value that actually exists in the dataset

Comparison Table

FeatureMeanMedianMode
DefinitionArithmetic averageMiddle valueMost frequent value
Uses all data?YesNoNo
Affected by outliers?Yes (strongly)No (resistant)No
Data typeNumericalNumerical / OrdinalAny (incl. nominal)
Symmetric distributionBest choiceEqual to meanEqual to mean
Skewed distributionMisleadingBest choiceUseful

Empirical Relationship (Karl Pearson)

For a moderately skewed distribution, the three measures are related by:
$$\text{Mode} = 3 \times \text{Median} - 2 \times \text{Mean}$$
This is useful for estimating one measure when the other two are known.

Which Measure to Choose?

SituationBest Measure
Symmetrical data, no outliersMean
Skewed data or outliers presentMedian
Categorical/nominal dataMode
Need a value present in the datasetMode
Most common in further statistical analysisMean

Other Measures of Central Tendency

Beyond the classic three, there are a few additional measures:
  • Weighted Mean - assigns different weights to values based on importance: $\bar{x}_w = \frac{\sum w_i x_i}{\sum w_i}$
  • Geometric Mean - used for rates of change and ratios: $GM = (x_1 \cdot x_2 \cdots x_n)^{1/n}$
  • Harmonic Mean - useful for averaging rates/speeds: $HM = \frac{n}{\sum (1/x_i)}$
  • Trimmed Mean - removes a percentage of extreme values before calculating the mean, balancing robustness and efficiency

Key takeaway: No single measure is universally "best." The choice depends on the shape of your data distribution, the presence of outliers, and the level of measurement (nominal, ordinal, interval, ratio).

Tests of significance

Searching the Web

tests of significance statistics z-test t-test chi-square ANOVA overview

Tests of Significance

A test of significance is a formal statistical procedure to decide whether sample data provides sufficient evidence to reject a null hypothesis about a population parameter. It answers the question: "Could this result have occurred by chance alone?"

Core Concepts (Foundation)

Null Hypothesis (H₀) vs. Alternative Hypothesis (H₁)

H₀ (Null)Assumes no effect, no difference, or no association
H₁ (Alternative)Assumes an effect, difference, or association exists

Significance Level (α)

  • The threshold probability for rejecting H₀
  • Commonly set at α = 0.05 (5%) or α = 0.01 (1%)
  • Represents the acceptable risk of a Type I error

p-value

  • The probability of obtaining the observed result (or more extreme) if H₀ were true
  • p < α → Reject H₀ (result is statistically significant)
  • p ≥ α → Fail to reject H₀ (insufficient evidence)
Important: A small p-value does NOT prove H₁ is true - it only means the data is unlikely under H₀.

Types of Errors

H₀ is TrueH₀ is False
Reject H₀Type I Error (α) - False PositiveCorrect (Power = 1-β)
Fail to Reject H₀Correct (1-α)Type II Error (β) - False Negative

One-tailed vs. Two-tailed Tests

  • Two-tailed: Tests for difference in either direction (H₁: μ₁ ≠ μ₂) - most common
  • One-tailed: Tests for difference in a specific direction (H₁: μ₁ > μ₂ or μ₁ < μ₂)

Major Tests of Significance

1. Z-Test

Purpose: Tests the mean of a sample against a known population mean.
Formula: $$z = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}$$
Conditions:
  • Population standard deviation (σ) is known
  • Sample size n ≥ 30 (large sample)
  • Data is normally distributed
Critical values: z = ±1.96 (α = 0.05, two-tailed); z = ±2.576 (α = 0.01)
Types:
  • One-sample Z-test: Compare sample mean to population mean
  • Two-sample Z-test: Compare means of two independent large samples
  • Z-test for proportions: Compare a sample proportion to a known population proportion

2. t-Test (Student's t-Test)

Purpose: Tests means when population SD is unknown and/or sample is small.
Formula: $$t = \frac{\bar{x} - \mu}{s / \sqrt{n}}$$
Conditions:
  • Population SD is unknown
  • Small sample (n < 30), though valid for any n
  • Data approximately normally distributed
Degrees of freedom (df): n - 1 (one-sample); n₁ + n₂ - 2 (two-sample)
Types:
TypeWhen Used
One-sample t-testCompare sample mean to a known/hypothesized population mean
Independent (two-sample) t-testCompare means of two separate, unrelated groups
Paired t-testCompare means of the same group at two time points (before/after)
Example: Testing whether a new drug changes blood pressure compared to a control group.

3. Chi-Square Test (χ²)

Purpose: Tests relationships between categorical variables (no numerical means involved).
Formula: $$\chi^2 = \sum \frac{(O - E)^2}{E}$$
Where O = observed frequency, E = expected frequency
Types:
TypePurpose
Chi-square goodness of fitTests if observed data fits an expected distribution
Chi-square test of independenceTests if two categorical variables are associated
Conditions:
  • Data must be in frequency/count form
  • Expected frequency in each cell ≥ 5
  • Observations are independent
Example: Is there an association between smoking (yes/no) and lung disease (yes/no)?

4. F-Test / ANOVA (Analysis of Variance)

Purpose: Compares means of three or more groups simultaneously.
Formula: $$F = \frac{\text{Variance Between Groups}}{\text{Variance Within Groups}} = \frac{MS_{between}}{MS_{within}}$$
Types:
TypeDescription
One-way ANOVAOne independent variable with 3+ groups
Two-way ANOVATwo independent variables; also tests interaction effects
Repeated measures ANOVASame subjects measured multiple times
Why not just use multiple t-tests? Running multiple t-tests inflates the Type I error rate. ANOVA controls this with a single test.
Post-hoc tests (after significant ANOVA): Tukey's HSD, Bonferroni, Scheffe - identify which groups differ.

5. Correlation Tests

TestVariablesPurpose
Pearson's rTwo continuous, normally distributedLinear relationship strength
Spearman's ρ (rho)Ordinal or non-normal continuousRank-based correlation
Kendall's τ (tau)Ordinal, small samplesRank-based, more robust

6. Non-Parametric Tests

Used when data does not meet parametric assumptions (normality, equal variance):
Non-Parametric TestParametric Equivalent
Mann-Whitney U testIndependent t-test
Wilcoxon signed-rank testPaired t-test
Kruskal-Wallis testOne-way ANOVA
Friedman testRepeated measures ANOVA
Fisher's exact testChi-square (small samples)

Quick Selection Guide

What type of data?
├── Categorical → Chi-square test (or Fisher's exact)
└── Numerical
    ├── Comparing to a known population mean?
    │   ├── σ known, n ≥ 30 → Z-test
    │   └── σ unknown or n < 30 → One-sample t-test
    ├── Comparing TWO groups?
    │   ├── Independent groups → Independent t-test (or Mann-Whitney)
    │   └── Same group, two time points → Paired t-test (or Wilcoxon)
    └── Comparing THREE or more groups?
        └── ANOVA (or Kruskal-Wallis if non-parametric)

Summary Table

TestData TypeGroupsSD Known?Sample Size
Z-testNumerical1 or 2YesLarge (≥30)
t-testNumerical1 or 2NoAny (esp. small)
Chi-squareCategoricalAny-Expected freq ≥ 5
ANOVA (F)Numerical3+NoAny
Mann-WhitneyOrdinal/Non-normal2-Any
Kruskal-WallisOrdinal/Non-normal3+-Any

Steps in Performing a Test of Significance

  1. State the hypotheses - H₀ and H₁
  2. Set the significance level (α = 0.05 or 0.01)
  3. Choose the appropriate test (based on data type, sample size, number of groups)
  4. Calculate the test statistic (z, t, χ², F)
  5. Find the p-value (or compare test statistic to critical value)
  6. Make a decision - Reject or fail to reject H₀
  7. State the conclusion in context

Key reminder: Statistical significance ≠ Practical significance. A result can be statistically significant with a tiny real-world effect (especially with large samples), and a meaningful effect can fail to reach significance with a small sample. Always consider effect size (Cohen's d, η², r) alongside p-values.
This is a shared conversation. Sign in to Orris to start your own chat.