as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
develop a formula to compute the median of a dataset.
user
the formula for computing the median of a dataset is: 
if the dataset size is odd, the median is the middle-value element.
if the dataset size is even, the median is the average of the two middle-value elements.
assistant