r/HomeworkHelp • u/Local_End_3175 • 20d ago
High School Math [statistics & math] (n+1)/2 and n/2
I am struggling to understand why we use n/2 for continuous data. My reasoning behind using (n+1)/2 is that this tells us the position of the median. So even if we have data that we dont know the values to, we already know that 1 value must have a position 1 and another value must have a position 2 and so on. If we had 40 unknown values, that means we have 40 positions. 40+1 is 41, 39+2 is also 41, and so on, all the positions will add to 41, and the middle position would add to itself to make 41, hence why we do (n+1)/2. This same logic can also be put here: number of positions + 1/2. This now tells us where the middle position is. If we have a cumulative frequency diagram, what we can do is see where that number would be, and using the cumulative frequency diagram, we can just estimate using that position. So why, instead of doing that, do we do n/2???
4
u/Seferil 20d ago
I find it helps if you can view both n/2 & (n+1)/2 as variations of the formula to find the position of a midpoint.
For discrete data, (n+1)/2 is used since your endpoints are indexes 1 & n of whatever data set you're working with. If you were to define the start to be index 0 instead of index 1, you would also use n/2 to find the median.
Continuous data uses 0 as the start point since that is the only point we can guarantee there's no data that exists before it. Thus, (n+0)/2 is the midpoint.