r/HomeworkHelp • u/Local_End_3175 Secondary School Student • Aug 24 '26
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???
•
u/AutoModerator Aug 24 '26
Off-topic Comments Section
All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.
OP and Valued/Notable Contributors can close this post by using
/lockcommandI am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/Seferil Aug 24 '26
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.
2
u/thor122088 👋 a fellow Redditor Aug 24 '26
Ok let's start with the set (0, 10] breaking it down into smaller chunks...
With just the sample containing the integers:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Median/mean is 5.5
With just the sample containing the multiples of ½:
.5, 1, 1.5, 2, 2.5, 3, 3.5,... ...8.5, 9, 9.5, 10
Median/mean is 5.25
With just the sample containing the multiples of ¼:
.25, .5, .75, 1, 1.25, 1.5,... ...8.75, 9, 9.25, 9.5, 9.75, 10
Median/mean is 5.125
Notice that as we break the range (0, 10) into smaller and smaller chunks, the median is slowly aligning itself with the n/2 as is used in the continuous case.
So the reason we switch is because a cumulative frequency distribution is continuous, and the above (loosely described) limit is why the median will be "found" at n/2
1
u/MegaHelios Aug 24 '26
Maybe it's not mathematically correct, but the way I see it is
If you've grouped your continuous data then you've lost what the actual data points were.
So you're estimating the median.
There's no point in trying to find one exact value if you don't know what the actual values were in the first place.
So a 'good enough' median is OK.