Calculating the position of the median

I know this is a simple question, but I cannot find a straight answer anywhere.

When calculating the medium of listed data, the formula is (n+1)/2. My Statistics teacher said for grouped data the position of the medium is n/2. However, this seems contradictory as for discrete grouped data, the data could be written in a list if the original values were known. Therefore two different values for the median are found.

I know this question is probably going to get flagged as it has already been asked, however, it has never been answered. I find it frustrating that such a fundamental concept in Statistics, what is supposed to be precise and never subjective has a wishy-washy answer.

Rant over, I think the position should be (n+1)/2 for discrete data and n/2 for continuous data. Moreover, this then leads into the obvious question of how we should calculate quartiles as well.

It would be nice if everyone could agree on a certain method for calculating the medium as all my textbooks are saying different things.

Someone please dispell the confusion and this statistical mess.

I know this is a simple question, but I cannot find a straight answer anywhere.

When calculating the medium of listed data, the formula is (n+1)/2. My Statistics teacher said for grouped data the position of the medium is n/2. However, this seems contradictory as for discrete grouped data, the data could be written in a list if the original values were known. Therefore two different values for the median are found.

I know this question is probably going to get flagged as it has already been asked, however, it has never been answered. I find it frustrating that such a fundamental concept in Statistics, what is supposed to be precise and never subjective has a wishy-washy answer.

Rant over, I think the position should be (n+1)/2 for discrete data and n/2 for continuous data. Moreover, this then leads into the obvious question of how we should calculate quartiles as well.

It would be nice if everyone could agree on a certain method for calculating the medium as all my textbooks are saying different things.

Someone please dispell the confusion and this statistical mess.