Given the dataset:
[tex]\mleft\lbrace29,22,23,31,29,29,22,23\mright\rbrace[/tex]First of all, we order it:
[tex]\mleft\lbrace22,22,23,23,29,29,29,31\mright\rbrace[/tex]There are 8 elements, so, for the median we have:
[tex]i=\frac{n}{2}[/tex]Where n is the number of elements. Now, for n = 8:
[tex]i=\frac{8}{2}=4[/tex]This is a whole number, so the median is the semi-sum between the elements at positions i and (i + 1). That is, the fourth and fifth elements of the ordered dataset:
[tex]Q_{50}=\frac{23+29}{2}=26[/tex]