Concept:
Median: The median is the middle number in a sorted- ascending or descending list of numbers.
Case 1: If the number of observations (n) is even
Median;=;2value;of;(2n)th;observation;+;;value;of;(2n;+1)th;observation
Case 2: If the number of observations (n) is odd
Median;=value;of;(2n+1)th;observation
Calculation:
Given values 2, 6, 6, 8, 4, 2, 7, 9
Arrange the observations in ascending order:
2, 2, 4, 6, 6, 7, 8, 9
Here, n = 8 = even
As we know, If n is even then,
Median;=;2value;of;(2n)th;observation;+;;value;of;(2n;+1)th;observation
= 24th;observation+5th;observation
= 26+6=6
Hence Median = 6